.gallery-grid .photo-open{display:block;overflow:hidden;border:0;padding:0;border-radius:4px;background:#ece4d7;box-shadow:0 4px 18px #6b5d4f15;cursor:zoom-in}
.photo-open:focus-visible,[data-photo]:focus-visible{outline:3px solid #b39460;outline-offset:5px}
.photo-viewer-open{overflow:hidden}
#photo-viewer{width:min(94vw,1050px);max-width:94vw;max-height:94vh;max-height:94dvh;margin:auto;padding:1rem;border:1px solid #84755f;border-radius:12px;background:#1c1b18;color:#faf7f0;box-shadow:0 20px 100px #0008}
#photo-viewer::backdrop{background:#000d}
.photo-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:44px;margin-bottom:.7rem}
#photo-viewer button{min-height:44px;min-width:44px;padding:.5rem 1rem;border:1px solid #81745e;border-radius:6px;background:#302d26;color:#faf7f0;font:inherit;cursor:pointer}
#photo-viewer button:focus-visible{outline:3px solid #d3b87e;outline-offset:3px}
#photo-viewer figure{margin:0;text-align:center}
#photo-viewer img{display:block;width:auto;max-width:100%;height:auto;max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px);object-fit:contain;margin:auto}
#photo-caption{font-size:.8rem;margin-top:.8rem;line-height:1.5}
.photo-controls{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem}
img[data-photo]{cursor:zoom-in}
.text-link.photo-open{border:0;padding:0;background:transparent;font-family:inherit;font-size:.85rem;text-decoration:underline;text-underline-offset:5px;cursor:zoom-in}
#photo-viewer button:disabled{opacity:.35;cursor:default}
#photo-count{font-size:.8rem}
