.beach-gallery {margin-top:clamp(2.75rem, 6vw, 5rem);scroll-margin-top:6rem}
.beach-gallery h2 {margin-bottom:1.15rem}
.beach-gallery h3 {margin:2.6rem 0 1rem}
.beach-gallery-grid {display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(.85rem, 2.25vw, 1.75rem)}
.beach-gallery figure {margin:0;min-width:0;grid-column:span 6}
.beach-gallery .beach-feature {grid-column:1/-1}
.beach-gallery .beach-portrait {grid-column:span 4}
.beach-gallery figure a {display:block;border-radius:.75rem;overflow:hidden;background:#e9efec}
.beach-gallery figure a:focus-visible {outline:3px solid var(--sea);outline-offset:4px}
.beach-gallery figure img {display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.beach-gallery .beach-feature img {aspect-ratio:1600/739}
.beach-gallery .beach-portrait img {aspect-ratio:3/4;object-position:center 58%}
.beach-gallery figcaption {margin-top:.55rem;color:var(--sea);font-size:.95rem;line-height:1.35}
.beach-lightbox .gallery-caption {text-align:center;margin:.45rem 0}
.beach-lightbox .gallery-controls {display:flex;align-items:center;justify-content:center;gap:1rem}
.beach-lightbox form button {font-size:1.5rem;line-height:1}
@media (max-width:700px) {
 .beach-gallery-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .beach-gallery figure,.beach-gallery .beach-feature {grid-column:1/-1}
 .beach-gallery .beach-portrait {grid-column:span 1}
 .beach-gallery .beach-portrait:nth-child(4) {grid-column:1/-1}
 .beach-gallery .beach-portrait:nth-child(4) img {aspect-ratio:4/3;object-position:center 51%}
}
