.photo-gallery .gallery-photo{display:block;break-inside:avoid;margin-bottom:30px;cursor:zoom-in}
.photo-gallery .gallery-photo img{margin-bottom:0}
.photo-gallery .gallery-photo:focus-visible{outline:2px solid var(--accent);outline-offset:6px}
.photo-viewer{border:0;width:100%;max-width:none;height:100vh;height:100dvh;max-height:none;margin:0;padding:20px 28px;background:#251e1b;color:#faf7f2;overflow:hidden}
.photo-viewer[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:12px}
.photo-viewer::backdrop{background:#251e1b}
.photo-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.photo-viewer h2{font:18px/1.5 'Avenir Next',Avenir,sans-serif;letter-spacing:.3px;margin:0;color:inherit}
.photo-viewer button{min-width:90px;min-height:46px;padding:10px 18px;border:1px solid #8c7a6e;background:transparent;color:#faf7f2;font-size:14px;line-height:1.5;letter-spacing:.3px}
.photo-viewer button:hover{background:#493b34}
.photo-viewer button:focus-visible{outline:2px solid #ead8c3;outline-offset:3px}
.photo-viewer figure{margin:0;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:12px;touch-action:pan-y pinch-zoom}
.photo-viewer-image{width:100%;height:100%;min-height:0;object-fit:contain;object-position:center;margin:auto}
.photo-viewer figcaption{text-align:center;font-size:14px;line-height:1.6;max-width:850px;margin:0 auto;color:#e5d9cd}
.photo-viewer-footer{display:flex;align-items:center;justify-content:center;gap:28px}
.photo-viewer-count{min-width:65px;text-align:center;margin:0;font-size:14px;font-variant-numeric:tabular-nums}
.photo-viewer-status{position:absolute;top:78px;left:8%;right:8%;text-align:center;font-size:14px;background:#251e1b}
.photo-viewer-status:empty{display:none}
@media(max-width:760px){.photo-gallery .gallery-photo{margin-bottom:14px}.photo-viewer{padding:12px 16px;padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom))}.photo-viewer-header{gap:12px}.photo-viewer h2{font-size:15px}.photo-viewer-footer{gap:18px}.photo-viewer button{min-width:82px;padding-inline:14px}.photo-viewer figcaption{font-size:13px}.photo-viewer[open]{gap:10px}}
