@charset "utf-8";
@font-face
{
	font-family: PlayfairDisplay;
	src: local('☺'),
	     url('fonts/PlayfairDisplay-Regular.ttf');
}

@font-face
{
	font-family: PlayfairDisplay;
	font-weight: bold;
	src: local('☺'),
	     url('fonts/PlayfairDisplay-Bold.ttf');
}

@font-face
{
	font-family: PlayfairDisplay;
	font-style: italic;
	src: local('☺'),
	     url('fonts/PlayfairDisplay-Italic.ttf');
}

p 
{
    font-family: 'PlayfairDisplay';
    font-weight: 200;
	font-style: normal;
}

h1
{
    font-family: 'PlayfairDisplay';
	font-style: normal;
	font-weight: 200;
}

h2
{
    font-family: 'PlayfairDisplay';
	font-weight: bold;
}
	



#portfolioCollapse
{
	margin: 0 0 30px 143px;
}

#portfolioCollapse > p
{
	font-family: 'PlayfairDisplay';
    font-size: 1.46em;
	text-align: left;
	line-height: 2;
}

#portfolioCollapse a.current
{
	font-weight: bold;
}

#portfolioCollapse .books-submenu
{
	margin: 0 0 0 1.2em;
	padding-left: 0;
	padding-right: 12px;
	max-width: 100%;
	box-sizing: border-box;
}

#portfolioCollapse .books-submenu p,
#portfolioCollapse .books-submenu a
{
	font-family: 'PlayfairDisplay';
	font-size: 1.20em;
	font-style: italic;
	line-height: 2;
	margin-bottom: 0.25em;
	white-space: normal;
	word-wrap: break-word;
}

#portfolioCollapse .books-submenu a
{
	display: inline;
}

#portfolioCollapse .books-submenu a.current
{
	font-weight: bold;
}

#portfolioCollapseTop
{
	margin: 45px auto 0;
	clear: both;
}

#portfolioCollapseTop > p
{
	font-family: 'PlayfairDisplay';
    font-size: 1.46em;
	text-align: left;
	line-height: 2;
	margin-bottom: 6px;
}

#wrapper
{
	max-width: 1920px;
	margin: 0 auto;
	padding-top: 60px;
	
}


body
{
	font-size: 13px;
    height:100%;
    margin:0;
    padding:0;
    background-color: white;
    font-family: PlayfairDisplay, Arial, Helvetica, Sans-serif;
    color: #000000;
}

#column1 {
    float: left;
    width: 540px;
}

#column2 {
    float: left;
    width: 300px;
}

#column3 {
    float: left;
    width: 350px;
}

#column4 {
    float: left;
    width: 355px;
}


#row:after {
    content: "";
    display: table;
    clear: both;
}

.overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%;
	width: 100%;
	opacity: 0;
	transition: .5s ease;
	background-color: white;
}

.imageWrapper {
	position: relative;
}

.imageWrapper:hover .overlay {
  opacity: 0.9;
}

.textImage {
  color: black;
  font-size: 3.38em;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.textImage--lead {
  font-size: 60px;
}

#navbarButton {
	border-color: #ddd;
	position: relative;
    float: right;
    padding: 9px 10px;
    margin-top: 11px;
    background-color: transparent;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px
	
}

#navbarButton:focus {
	outline: none;
}

#navbarButton > .icon-bar {
	background-color: #888;
	display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
	margin-top: 4px;
}

/* Nagłówek mobilny – ukryty na desktopie */
.mobile-header {
	display: none;
}

@media (max-width: 799px) {
	.mobile-header {
		display: block;
		max-width: 320px;
		margin: 0 auto;
		padding: 30px 0 0;
		clear: both;
	}
	.mobile-header-left {
		float: left;
	}
	.mobile-header-right {
		float: right;
	}
	.mobile-logo {
		display: block;
		margin-bottom: 5px;
	}
	.mobile-title {
		display: block;
		text-align: center;
		color: black;
		font-size: 14px;
		margin: 0;
	}
	.mobile-social {
		margin: 0 auto;
		max-width: 34px;
	}
	.mobile-social img {
		display: block;
		width: 34px;
		height: auto;
	}
	.mobile-social a + a img {
		margin-top: 12px;
	}
	.mobile-social a:nth-child(3) img {
		margin-top: 28px;
	}
	.mobile-lang-label {
		font-size: 10px;
		text-align: center;
		display: block;
		margin-top: 5px;
	}
	.navbar-toggle {
		border-color: #ddd;
		float: right;
		padding: 9px 10px;
		margin-top: 11px;
		background: transparent;
		border: 1px solid transparent;
		border-radius: 4px;
		cursor: pointer;
	}
	.navbar-toggle .icon-bar {
		background-color: #888;
		display: block;
		width: 22px;
		height: 2px;
		border-radius: 1px;
		margin-top: 4px;
	}
	.mobile-portfolio-menu {
		clear: both;
		float: left;
		margin-top: 45px;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.35s ease-out;
	}
	.mobile-portfolio-menu.collapse-open {
		max-height: 2000px;
		transition: max-height 0.4s ease-in;
	}
	.mobile-portfolio-menu h2 {
		margin-bottom: 23px;
	}
	.mobile-menu-bio {
		margin-top: 15px;
	}

	.mobile-portfolio-menu a.current,
	#portfolioCollapseTop a.current {
		font-weight: bold;
	}

	.portfolio-main {
		clear: both;
		max-width: 320px;
		margin: 0 auto;
		padding-top: 20px;
	}
	.portfolio-row {
		display: flex;
		flex-direction: column;
		align-items: center;
		max-width: 320px;
		margin: 0 auto;
	}
	.portfolio-column {
		float: none;
		width: 100%;
		max-width: 320px;
	}
	.portfolio-main .imageWrapper {
		max-width: 320px;
		width: 320px;
		margin: 0 auto;
		display: flex;
		flex-direction: column;
	}
	.portfolio-main .imageWrapper img {
		width: 100%;
		height: auto;
		display: block;
	}
	/* Na małych ekranach: tekst odnośników pod obrazkiem */
	.portfolio-main .imageWrapper .overlay {
		position: static;
		width: 100%;
		height: auto;
		opacity: 1;
		background: transparent;
		padding: 0.5em 0 0.85em;
	}
	.portfolio-main .imageWrapper .textImage {
		position: static;
		transform: none;
		top: auto;
		left: auto;
		font-size: 35px;
		line-height: 1.35;
		text-align: center;
		padding: 0 0 20px 0;
	}
	.portfolio-main .imageWrapper:hover .overlay {
		opacity: 1;
	}
	.scroll-to-top {
		display: block;
		margin: 73px auto 20px;
		width: 60px;
		height: 60px;
		text-align: center;
		clear: both;
	}
	.scroll-to-top img {
		display: block;
		margin: 0 auto;
		width: 60px;
		height: 60px;
		object-fit: contain;
	}

	#left {
		display: none;
	}
	h1 {
		font-size: 14px;
	}
	h2 {
		font-size: 22px;
	}
	p {
		font-size: 20px;
	}
}


/* Kontener do skalowania całego layoutu (wysokość + szerokość) */
@media (min-width: 800px) {
	#scale-viewport {
		position: relative;
		width: 100%;
		min-height: 100vh;
		overflow-x: hidden;
		overflow-y: visible;
	}
}

/* Menu boczne - lewa kolumna na dużych ekranach */
@media (min-width: 800px) {
	.mobile-header {
		display: none;
	}
	.portfolio-main {
		margin-left: 350px;
		padding-left: 20px;
		box-sizing: border-box;
		max-width: 1570px;
	}
	.portfolio-row {
		max-width: 1570px;
		display: block;
	}
	.scroll-to-top {
		display: none;
	}

	#left {
		display: block;
		position: absolute;
		left: 0;
		top: 0;
		width: 350px;
		min-height: 100%;
		overflow-x: hidden;
		padding: 0;
		box-sizing: border-box;
		background-color: white;
		z-index: 100;
		padding-top: 60px;

	}
	#left-inner {
		box-sizing: border-box;
		padding: 20px 0;
		transform-origin: top left;
	}
	
	#left #portfolioContainer {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
	
	#left #portfolioCollapse {
		max-height: 0;
		margin: 0 0 30px 120px;
		text-align: left;
		padding-left: 1.5em;
		padding-right: 1em;
		overflow: hidden;
		transition: max-height 0.35s ease-out;
		box-sizing: border-box;
	}
	
	#left #portfolioCollapse.open {
		max-height: 2000px;
		transition: max-height 0.4s ease-in;
	}
	
	#left #portfolioCollapse p {
		text-align: left;
		margin-bottom: 0.25em;
	}
	
	#left .portfolio-toggle {
		display: block;
		width: 100%;
		padding: 0;
		margin: 0 0 23px 0;
		border: none;
		background: none;
		font: inherit;
		color: inherit;
		cursor: pointer;
		text-align: center;
		text-decoration: none;
	}
	
	#left .portfolio-toggle:hover,
	#left .portfolio-toggle:focus {
		outline: none;
	}
	
	#left #socialContainer {
		margin-left: auto;
		margin-right: auto;
	}

	p {
		font-size: 1em;
	}

	h1 {
		font-size: 1.62em;
	}

	h2 {
		font-size: 1.92em;
	}

}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top:0;
    /* removing the top margin gets around an issue where margins can escape from their containing block. The remaining bottom margin will hold it away from any elements that follow. */;
}

a img {
    /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
    	border: none;
}

/*~~ Styling for your site's links must remain in this order - including
the group of selectors that create the hover effect. ~~*/
a:link {
    text-decoration:none;
    color: #212121;
    font-weight: normal;
    /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */;
}

a:visited {
    text-decoration:none;
    color: #212121;
    font-weight: normal;
}

a:hover,
a:active,
a:focus {
    text-decoration:none;
    /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
    	color: #212121;
}

/*HTML 5 support - Sets new HTML 5 tags to display:block so browsers know
how to render the tags properly.*/
header,
section,
footer,
aside,
article,
figure {
    display:block;
}

/* Szablon Książka – jeden scroll (tylko #scale-viewport), bez podwójnego scrolla */
@media (min-width: 800px) {
	html.single-book-scale,
	body.single-book-scale {
		height: 100%;
		overflow: hidden;
	}
	body.single-book-scale #scale-viewport {
		height: 100vh;
		min-height: 0;
		overflow-y: auto;
		overflow-x: hidden;
	}
}
