.ns-gallery-page { padding-block: 28px; }
.ns-gallery-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.ns-gallery-intro h2 { max-width: 550px; margin: 0; font-size: clamp(30px, 3vw, 42px); line-height: 1.15; }
.ns-gallery-intro p { max-width: 580px; margin: 0; color: var(--ns-muted); font-size: 17px; line-height: 1.65; }
.ns-gallery-page .ns-photo-gallery.wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; }
.ns-gallery-page .ns-photo-gallery.wp-block-gallery.has-nested-images > figure.wp-block-image { position: relative; display: block; width: auto !important; min-width: 0; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 5px; background: #e1dacd; }
.ns-gallery-page .ns-photo-gallery figure.wp-block-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.ns-gallery-page .ns-photo-gallery figure.wp-block-image figcaption { position: absolute; z-index: 1; inset: auto 0 0; width: auto; max-height: 50%; margin: 0; padding: 32px 16px 14px; overflow-y: auto; background: linear-gradient(transparent, #17201bcf 48%, #17201bf2); color: #fff8ee; text-align: left; font-size: 16px; line-height: 1.5; pointer-events: none; }
.ns-gallery-page .ns-photo-gallery .lightbox-trigger { z-index: 2; }
.ns-gallery-note { margin: 20px 0 0; color: var(--ns-muted); font-size: 15px; }
@media (hover: hover) { .ns-photo-gallery figure.wp-block-image:hover img { transform: scale(1.025); } }
@media (max-width: 1000px) { .ns-gallery-page .ns-photo-gallery.wp-block-gallery.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); }.ns-gallery-intro { display: block; }.ns-gallery-intro h2 { margin-bottom: 12px; } }
@media (max-width: 600px) { .ns-gallery-page { padding-block: 22px; }.ns-gallery-page .ns-photo-gallery.wp-block-gallery.has-nested-images { grid-template-columns: minmax(0, 1fr); gap: 14px; }.ns-gallery-intro h2 { font-size: 31px; } }
