dialog{box-sizing:border-box;width:min(96vw,1200px);max-height:96dvh;margin:auto;border:0;padding:12px;background:#181a19;color:white;border-radius:6px}
dialog::backdrop{background:#000d}
dialog img{display:block;width:100%;height:min(73vh,78dvh);object-fit:contain;touch-action:pan-y pinch-zoom}
dialog footer{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:8px}
dialog button{min-height:44px;min-width:44px;color:white;background:#343633;border:1px solid #777;border-radius:4px;cursor:pointer;font:inherit}
dialog button:disabled{opacity:.4}
body:has(dialog[open]){overflow:hidden}