#panheader {
	width: 100%;
	margin: 0 auto;
	padding-bottom: 50px;
	background: #f9e637 url(img/panbackground-desktop.jpg) no-repeat;
	background-position: center 115px;
	background-size: cover;
}

#panheader .top, #panheader .bottom {
	clear: both;
	margin: 0 auto;
	padding-top: 60px;
	width: 94%;
	max-width: 1300px;
}

#panheader .top {
}

#panheader .bottom {
}

.topleft {
	float: left;
	width: 90%;
	font-size: 90px;
	font-weight: 500;
	text-transform: uppercase;
	text-align: left;
}

.topleft .white {
	color: #ffffff;
}

.topright {
	float: right;
	text-align: right;
}

.topright a {
	text-decoration: none;
}

.topright .linklang {
	margin-top: 0;
}

.topright .linklang .wpml-ls-legacy-list-horizontal {
	padding: 0 !important;
}

.topright .linklang .wpml-ls-legacy-list-horizontal a {
	padding: 0 !important;
}

.topright .linklang a {
	font-size: 32px;
	color: #5b669e;
	font-weight: 400;
	text-transform: lowercase;
}

.topright .linkhome {
	transform: rotate(-90deg);
	margin-top: 50px;
	margin-right: -34px;
}

.topright .linkhome a {
	color: #ffffff;
	font-size: 52px;
	font-weight: 700;
	/*opacity: 0.6;*/
	text-transform: uppercase;
}

.hiddenpart {
	display: none;
}

.bottom {
	text-align: right;
}

.bottom p {
	font-size: 48px;
	font-weight: 400;
	line-height: 84px;
}

body.pandemia #post-content {
	width: 94%;
	max-width: 1150px;
}

body.pandemia #post-content p {
	font-size: 22px;
	margin: 115px auto;
	line-height: 1.25em;
}

.masonry {
	columns: 3;
	column-gap: 16px;
	width: calc(100% - 32px);
	margin: 0 auto;
}

.grid {
    display: inline-block;
    margin-bottom: 16px;
	position: relative;
}

.grid:before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	margin-bottom: 2px;
}

.grid img {
	width: 100%;
	height: auto;
}

.grid-author {
	font-size: 22px;
	font-weight: 400;
	margin: 0 auto;
	text-align: center;
	text-transform: uppercase;
}

.grid-title {
	font-size: 22px;
	font-weight: 400;
	margin: 5px auto 0 auto;
	text-align: center;
}

.grid-body {
	position: absolute;
	top: 50%;
	left: 50%;
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	color: #fff;
	display: flex;
	flex-direction: column;
	width: 96%;
}

.category-skoro {
	pointer-events: none;
}

.relative {
	display: none;
}

.grid:hover .relative {
	display: block;
}

.grid:hover:before {
	background: rgba(0,0,0,0.5);
}

.category-skoro .relative {
	display: block;
}

.category-skoro .grid-title {
	text-transform: uppercase;
}

body.pandemia #footer-gray, body.pandemia #footer-credits {
	background: #f9e637;
}


/* шапка для внутренних страниц */

#panheader-single {
	clear: both;
	width: 100%;
	margin: 0 auto;
	padding-bottom: 120px;
}

#panheader-single .top-bar {
	clear: both;
	width: 94%;
	max-width: 1300px;
	height: 65px;
	margin: 0 auto;
	text-align: right;
	padding-top: 50px;
}

.top-bar p {
	padding-top: 50px;
}

.top-bar .language {
	float: right;
	font-size: 32px;
	font-weight: 400;
	text-transform: lowercase;
}

.top-bar .home {
	float: right;
	font-size: 42px;
	font-weight: 800;
	margin-left: 35px;
	text-transform: uppercase;
}

.top-bar a {
	color: #ffffff;
	text-decoration: none;
}

.top-bar .wpml-ls-legacy-list-horizontal {
	padding: 0 !important;
}

.top-bar .wpml-ls-legacy-list-horizontal a {
    padding: 4px 7px !important;
}

#panheader-single .bottom-bar {
	clear: both;
	width: 94%;
	max-width: 1300px;
	margin: 0 auto;
	text-align: left;
}

.bottom-bar h1 {
	width: 100%;
	max-width: none;
	font-size: 72px;
	font-weight: 600;
	color: #000000;
	text-transform: uppercase;
	margin: 0 auto;
}

.bottom-bar h2.artist {
	text-align: left;
	font-size: 60px;
	font-weight: 500;
	color: #ffffff;
	margin: 0 auto;
}

.bottom-bar h2.event {
	text-align: left;
	font-size: 36px;
	font-weight: 500;
	color: #ffffff;
	margin: 20px auto 0 auto;
	text-transform: lowercase;
}

.pandemia.single #post-content {
	padding-top: 110px;
}

.pandemia.single #post-content p {
	margin: 20px auto;
	line-height: 1.25em;
}

.pandemia.single #prev-next {
	max-width: 1150px;
	font-size: 24px;
	font-weight: 500;
}

.pandemia.single #prev-next a {
	color: #000000;
}

.pandemia.single #tagline {
	clear: both;
	text-align: center;
	font-size: 28px;
	font-weight: 600;
	line-height: 36px;
	text-transform: uppercase;
	padding-top: 80px;
}

.pandemia.single #tagline a {
	color: #000000;
}


/* цветик-семицветик */

body.orange #panheader-single {
	background-color: #fed7ce;
}

body.yellow #panheader-single {
	background-color: #fdf7c3;
}

body.green #panheader-single {
	background-color: #b7c7c3;
}

body.blue #panheader-single {
	background-color: #cdd1e2;
}

body.lilac #panheader-single {
	background-color: #d0c4d1;
}


/* RWD */

@media screen and (max-width: 850px) {
	
	#panheader {
		background-position: center 105px;
	}
	
	.topleft {
		width: 80%;
		font-size: 4.5em;
	}
	
	.bottom p {
		font-size: 2em;
		line-height: 2em;
	}
	
	#panheader-single .top-bar {
		height: 105px;
	}
	
	.grid-author, .grid-title {
		font-size: 1em;
	}

}

@media screen and (max-width: 768px) {
	
	#panheader {
		background: #f9e637 url(img/panbackground-mobile.jpg) no-repeat;
		background-position: center 80px;
		background-size: cover;
	}
	
	.topleft {
		float: none;
		clear: both;
		width: 100%;
		font-size: 4em;
		padding-top: 6px;
	}
	
	.linklang, .linkhome {
		display: none;
	}
	
	.topright {
		float: none;
		clear: both;
	}
	
	.hiddenpart {
		display: block;
		margin-top: -50px;
	}
	
	.bottom p {
		font-size: 2em;
		line-height: 2em;
	}
	
	#panheader-single .top-bar {
		height: 70px;
		padding-top: 10px;
	}
	
	.top-bar .home {
		font-size: 1.5em;
	}
	
	.top-bar .wpml-ls-legacy-list-horizontal a {
		padding: 1px 6px !important;
	}
	
	.top-bar p {
		padding-top: 10px;
	}
	
	.bottom-bar h1 {
		font-size: 3em;
	}
	
	.bottom-bar h2.artist {
		font-size: 2em;
	}
	
	.hiddenpart .language, .hiddenpart .home {
		float: right;
	}
	
	.hiddenpart .language, .top-bar .language {
		font-size: 1.25em;
		font-weight: 400;
	}
	
	.hiddenpart .language {
		text-transform: lowercase;
	}
	
	.hiddenpart .language .wpml-ls-legacy-list-horizontal {
		padding: 0 !important;
	}
	
	.hiddenpart .language .wpml-ls-legacy-list-horizontal a {
		padding: 1px 6px !important;
	}
	
	.hiddenpart .home, .top-bar .home {
		font-size: 1.5em;
		font-weight: 800;
		margin-left: 20px;
		text-transform: uppercase;
	}
	
	.hiddenpart .home a {
		color: #ffffff;
		opacity: 0.85;
	}
	
	body.pandemia #post-content p {
		margin: 80px auto;
	}
	
	#panheader-single {
		padding-bottom: 80px;
	}
	
	.pandemia.single #post-content {
		padding-top: 80px;
	}

}

@media screen and (max-width: 550px) {
	
	#panheader {
		padding-bottom: 40px;
	}
	
	.topleft {
		font-size: 3em;
		padding-top: 16px;
	}
	
	.hiddenpart .home a {
		color: #ffffff;
		opacity: 0.85;
	}
	
	#panheader .bottom {
		padding-top: 40px;
	}
	
	.bottom p {
		font-size: 1.5em;
		line-height: 1.5em;
	}
	
	.masonry {
		column-gap: 10px;
		width: calc(100% - 20px);
	}
	
	.grid {
		margin-bottom: 9px;
	}
	
	.grid-author, .grid-title {
		font-size: 0.8em;
	}
	
	.bottom-bar h1 {
		font-size: 2em;
	}
	
	.bottom-bar h2.artist {
		font-size: 1.5em;
	}
	
	.pandemia.single #tagline {
		font-size: 1.25em;
		line-height: 1.5em;
	}
	
	.pandemia.single #post-content {
		padding-top: 40px;
	}
	
	body.pandemia #post-content p {
		font-size: 1em;
	}
	
}

@media screen and (max-width: 390px) {
	
	.topleft {
		font-size: 2.5em;
		padding-top: 21px;
	}
	
	.bottom p {
		font-size: 1.25em;
		line-height: 1.25em;
	}
}

















/* styles for test page

.grid {clear: both; width: 100%; margin: 0 auto;}

.grid-item { width: calc(33% - 16px); margin: 16px;}
.grid-item img { width: 100%; height: auto;}*/
