* { margin: 0; padding: 0; }
body {
	background: #fff;
	color: #2C3724;
	font-size: 16px;
	font-family: "Cormorant", serif;
}

a { color: #6b593c; text-decoration: none; }

h1, h2, h3 { color: #556A27; font-weight: normal; font-family: "Cormorant", serif; }

h1 { font-size: 30px; }

p { font-size: 16px; line-height: 120%; }

header {
	align-items: center;
	display: flex;
	justify-content: space-between;
	margin: 0 auto;
	padding: 4vw 0;
	position: relative;
	width: 92%;
	z-index: 2;
}

header .logo { max-width: 320px; width: 60vw; }
header .logo img { max-width: 100%; }

header .nav {
	background: #fff;
	box-sizing: border-box;
	box-shadow: 0 0 128px rgb(45 41 26 / 0);
	height: 100%;
	padding: 5vw;
	position: fixed;
	right: 0;
	top: 0;
	transform: translateX(100%);
	transition: .3s transform;
	width: 60vw;
	z-index: 999;
}
header .nav nav {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	font-size: 17px;
}
header .nav nav a { height: 1.5em; margin: 1em 0; }
header .nav nav a img { display: block; max-width: 100%; max-height: 100%; }
header .nav.open { box-shadow: 0 0 64px rgb(45 41 26 / 50); transform: translateX(0); }

header .nav-toggle a {
	background: #D1BD8E;
	display: inline-block;
	height: 2px;
	position: relative;
	top: -4px;
	width: 2em;
}
header .nav-toggle a:after,
header .nav-toggle a:before {
	background: #D1BD8E;
	content: '';
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	width: 100%;
}

header .nav-toggle a:after { top: -500%; }
header .nav-toggle a:before { top: 500%; }

header .nav .close {
	height: 2em;
	position: absolute;
	right: 1em;
	top: 1em;
	transform: rotate(-90deg);
	transition: .7s transform;
	width: 2em;
}
header .nav .close:before,
header .nav .close:after {
	background: #D1BD8E;
	content: '';
	display: block;
	height: 2px;
	left: 0;
	position: absolute;
	top: 50%;
	width: 100%;
}
header .nav .close:before { transform: rotate(-45deg); }
header .nav .close:after { transform: rotate(45deg); }

header .nav.open .close { transform: rotate(0deg);  }

footer { height: 5vw; }

.container {
	margin: 0 auto;
	width: 92%;
}

.container img { max-width: 100%; }

/*
.serie-images {
	display: flex;
	flex-wrap: wrap;
	gap: 2.5vw;
}
.serie-images > * {
	flex-basis: 50%;
	position: relative;
}
.serie-images img {
	object-fit: cover;
	display: block;
	height: 100%;
	width: 100%;
	vertical-align: middle;
}
*/

.content .header-image img { display: block; margin: 0 auto 2vh; max-width: 100%; }

.serie-images {
	display: flex;
	flex-wrap: wrap;
	gap: 1vw;
}
.serie-images > * {
	flex-grow: 1;
	height: 33vw;
    max-width: 49vw;
}
.serie-images > *:last-child { flex-grow: 0; }
.serie-images img {
	object-fit: cover;
	display: block;
	height: 100%;
	width: 100%;
	vertical-align: middle;
}

.gallery-series > div { margin: 1em 0 3em; }
.gallery-series .cover {
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	height: 20em;
	margin-bottom: .75em;
}
.gallery-series h4 { font-size: 24px; }
.gallery-series h4 img { margin: 0 auto; }

.serie-image-header {
	display: block;
	height: 1.5em;
	margin: 0 0 1em;
}
.serie-image-header.long-serie-name { height: 3em; }

.serie-descr { margin: 12vw auto; }
.serie-descr h1 { margin-bottom: .2em; }
.serie-descr p { margin-bottom: 1em; }

.content-list { margin: 1em 0 1em 1em; }
.content-list li { margin: .5em 0; line-height: 1.2; }

.content h4 { font-size: 17px; line-height: 1.2; margin: 2em 0 1em 0; }
.content p { font-size: 17px; line-height: 1.55; margin-bottom: 1em; }
.content img { display: block; margin: 0 auto; }

.contact-links {
	align-items: center;
	display: flex;
	flex-direction: column;
	margin: 2em 0;
}
.contact-links > div {
	margin: 2em 0;
}

.contact-links > div a {
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
	display: inline-block;
	font-size: 20px;
	padding-left: 1.7em;
}
.contact-links > div a.tg { background-image: url(/i/telegram.svg); }
.contact-links > div a.vk { background-image: url(/i/vkontakte.svg); }
.contact-links > div a.ig { background-image: url(/i/instagram.svg); }
.contact-links > div a.em { background-image: url(/i/email.svg); }

.home img { max-width: 100%; }

.images-wall-viewport {
	height: 100vh;
	left: 0;
	overflow: hidden;
	position: absolute;
	top: 0;
	width: 100vw;
	z-index: 1;	
}

.images-wall {
	display: flex;
	height: 100vh;
	overflow-x: scroll;
	scroll-snap-type: x mandatory;
}

.images-wall > div {
	align-items: center;
	display: flex;
	height: 100%;
	min-width: 100vw;
	scroll-snap-align: start;
}

.images-wall > div > div {
	align-items: stretch;
	display: flex;
	height: 72%;
	margin: 14vh auto;
	width: 92%;
}

.images-wall > div figure {
	align-self: center;
	align-items: center;
	display: flex;
	flex-direction: column;
	/*justify-content: center;*/
	margin: 0 auto;
	max-height: 100%;
	max-width: 100%;
}
.images-wall > div picture { display: flex; }
.images-wall > div picture,
.images-wall > div img {
	border-radius: 2px;
	margin: 0 auto;
	max-height: 100%;
	max-width: 100%;
}

.images-wall > div figure figcaption {
	margin-top: 1em;
	position: relative;
	text-align: center;
}
.images-wall > div figure figcaption h3 { font-weight: bold; font-size: 16px; margin-bottom: .5em; }
.images-wall > div figure figcaption p { font-size: 14px; line-height: 1.2; }

.images-wall-nav { display: none; }

.content .text-right { text-align: right; }


.exhibition-list {
	display: grid;
	grid-template-columns: 4.25em auto;
}

.exhibition-list dt {
	color: #99644A;
	font-size: 23px;
	font-weight: bold;
}

.exhibition-list dd {
	margin-bottom: 1em;
}

.exhibition-list li {
	font-size: 17px;
	list-style: none;
	margin: .25em 0 1em;
}

.exhibition-list li span {
	color: #777;
	display: block;
	font-size: 90%;
}
.exhibition-list li img { display: inline-block; max-height: .85em; margin-left: .5em; vertical-align: middle; }

.critic-text .text-right { font-size: 90%; line-height: 1.2; }
.critic-text .text-right span { color: #777; display: inline-block; max-width: 20em; }


body.home {
	align-items: center;
	background: url(/i/contacts.jpg);
	background-size: cover;
	background-position: left center;
	display: flex;
	height: 100vh;
	justify-content: center;
	position: relative;
}

body.home:after {
	background: rgba(0 0 0 / 64%);
	content: '';
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 1;
}

body.home header { display: none; }

body.home .home {
	display: flex;
	flex-direction: column;
	max-height: 90vh;
	max-width: 800px;
	width: 77%;
	position: relative;
	z-index: 2;
}
body.home .home .logo { margin-bottom: 7vh; }
body.home .home .logo img {
	display: block;
	max-height: 3em;
	margin: 0 auto;
	max-width: 100%;
}

body.home .home nav {
	align-items: center;
	gap: 10%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
body.home .home nav a { margin: 1em 0; }
body.home .home nav img { height: 2em; }