html:has(#photo-viewer[open]){overflow:hidden}#photo-viewer{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:4.5rem 1rem 1rem;border:0;background:0 0;overscroll-behavior:contain}#photo-viewer[open]{display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center}#photo-viewer::backdrop{background:rgb(0 0 0/92%)}#photo-viewer img{max-height:100%;min-height:0;object-fit:contain}#photo-viewer form{position:absolute;top:max(1rem,env(safe-area-inset-top));right:max(1rem,env(safe-area-inset-right));margin:0}#photo-viewer button{display:grid;place-items:center;width:3rem;height:3rem;padding:0;border:0;border-radius:50%;background:#fff;color:#161616;font:2rem/1 system-ui,sans-serif;cursor:pointer}#photo-viewer button:focus-visible{outline:2px solid #fff;outline-offset:4px}