/* Просмотр фото на весь экран (js/photo_viewer.js) */
.pv {
	display: none;
	position: fixed;
	left: 0; top: 0; right: 0; bottom: 0;
	z-index: 100000;
	background: #000;
	transition: opacity .15s;
}
html.pv-lock, html.pv-lock body { overflow: hidden; }
.pv-swiper { width: 100%; height: 100%; }
.pv-swiper .swiper-slide { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pv-swiper .swiper-zoom-container img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	-webkit-user-select: none; user-select: none;
}
.pv-top {
	position: absolute; left: 0; right: 0; top: 0; z-index: 10;
	display: flex; justify-content: space-between; align-items: center;
	padding: 6px 10px 6px 16px;
	color: #fff; font-size: 15px;
	background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,0));
	pointer-events: none;
}
.pv-close {
	pointer-events: auto;
	font-size: 40px; line-height: 40px; width: 44px; text-align: center;
	cursor: pointer; opacity: .85;
}
.pv-close:hover { opacity: 1; }
.pv-caption {
	display: none;
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 10;
	padding: 12px 16px 16px;
	color: #fff; font-size: 14px; text-align: center;
	background: linear-gradient(rgba(0,0,0,0), rgba(0,0,0,.6));
}
.pv .swiper-button-prev, .pv .swiper-button-next { color: #fff; opacity: .7; }
.pv .swiper-button-prev:hover, .pv .swiper-button-next:hover { opacity: 1; }
.pv.pv-single .swiper-button-prev, .pv.pv-single .swiper-button-next { display: none; }
@media (hover: none) {
	/* на телефоне листают пальцем — стрелки не нужны */
	.pv .swiper-button-prev, .pv .swiper-button-next { display: none; }
}

/* Мозаика фото на страницах (photo_gallery в plugins/photoload/functions.php) */
.pg { width: 100%; }
.pg-row { display: flex; width: 100%; }
.pg-row img {
	display: block;
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	object-fit: cover;
	cursor: pointer;
}
.pg-more { overflow: hidden; }
.pg-more img { display: block; float: left; width: 20%; object-fit: cover; cursor: pointer; }
.pg-cell { position: relative; flex: 1 1 0; min-width: 0; }
.pg-plus {
	position: absolute; left: 0; top: 0; right: 0; bottom: 0;
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.45); color: #fff; font-size: 22px; font-weight: bold;
	pointer-events: none;
}
/* стили слайдеров на страницах не должны влиять на просмотр */
.pv .pv-swiper { max-width: none !important; margin: 0; border-radius: 0; background: none; }
.pv .pv-swiper .swiper-slide { height: 100%; }
