/* Poliana — страница „Природата на Поляна“: галерия. */


/* решетка: еднакви снимки 4:3 */
.pl-gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.pl-gallery__item { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--pl-field-deep); animation: pl-fade-in .45s ease both; }
.pl-gallery__item a { display: block; height: 100%; cursor: zoom-in; }
.pl-page .pl-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .1, 1); }
.pl-gallery__item:hover img { transform: scale(1.04); }
.pl-gallery__item figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 13px; border-radius: 99px; background: rgba(20, 28, 18, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-size: 13px; font-weight: 500; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.pl-gallery__item:hover figcaption, .pl-gallery__item:focus-within figcaption { opacity: 1; transform: none; }
@keyframes pl-fade-in { from { opacity: 0; transform: translateY(8px); } }

.pl-nature-cta { padding-top: clamp(40px, 5vw, 72px); }

@media (max-width: 1200px) { .pl-gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
	.pl-gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (hover: none) {
	.pl-gallery__item figcaption { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
	.pl-gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.pl-gallery__item { border-radius: 14px; }
	.pl-gallery__item figcaption { display: none; }
}
