/* Natural photo proportions, compact captions, and three staggered columns. */
.gallery-page .editorial-content .intro-body{max-width:65ch;margin-bottom:24px}
.gallery-page .gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start}
.gallery-page .gallery-grid.is-masonry{grid-auto-rows:1px}
.gallery-page .gallery-grid>figure{margin:0;min-width:0;height:fit-content;border:0;background:transparent;box-shadow:none;border-radius:0;overflow:visible}
.gallery-page .gallery-grid>figure>img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:auto;object-fit:cover;border-radius:14px}
.gallery-page .gallery-grid figcaption{padding:12px 2px 2px;background:transparent}
.gallery-page .gallery-grid figcaption h2{font-size:18px;line-height:1.25;margin:0 0 5px;letter-spacing:-.02em}
.gallery-page .gallery-grid figcaption .badge{background:transparent;border:0;padding:0;font-size:12px;line-height:1.5;color:var(--edit-ink);opacity:.75}
.gallery-page .page-content{padding-block:32px 40px}
@media(max-width:1000px){.gallery-page .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.gallery-page .gallery-grid{grid-template-columns:minmax(0,1fr);gap:24px}.gallery-page .gallery-grid.is-masonry{grid-auto-rows:auto}.gallery-page .gallery-grid>figure{grid-row-end:auto!important}.gallery-page .page-content{padding-block:24px 32px}}
@media print{.gallery-page .gallery-grid.is-masonry{grid-auto-rows:auto}.gallery-page .gallery-grid>figure{grid-row-end:auto!important;break-inside:avoid}}
/* Photo viewer: tap a gallery photo to see it larger. */
.gallery-page .gallery-grid>figure>img{cursor:zoom-in}
.photo-viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:64px 16px 24px;border:0;background:#0d0a08f2;color:#fff}
.photo-viewer[open]{display:grid;place-items:center}
.photo-viewer::backdrop{background:#0d0a08cc}
.photo-viewer figure{margin:0;display:grid;justify-items:center;gap:12px;max-width:100%}
.photo-viewer img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100dvh - 140px);object-fit:contain;border-radius:8px}
.photo-viewer figcaption{font-size:16px;text-align:center}
.photo-viewer figcaption[hidden]{display:none}
.photo-viewer-close{position:absolute;top:12px;right:12px;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:1px solid #ffffffb3;border-radius:30px;background:#00000080;color:#fff;font:600 15px/1 Jakarta,Arial,sans-serif;cursor:pointer}
.photo-viewer-close svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.photo-viewer-close:hover{background:#fff;color:#111}
