.image-viewer{box-sizing:border-box;width:fit-content;max-width:min(92vw,64rem);max-height:90vh;max-height:90dvh;margin:auto;padding:0;border:1px solid #d6d3cc;border-radius:12px;background:#f8f7f3;color:#232321;box-shadow:0 14px 60px #211e3040}
.image-viewer::backdrop{background:rgb(26 24 32 / .68)}
.image-viewer[open]{display:flex;flex-direction:column}
.image-viewer header{position:static;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.4rem .65rem .4rem 1rem;border-bottom:1px solid #dedad3}
.image-viewer header strong{font-size:1rem}.image-viewer header div{display:flex;align-items:center;gap:.2rem}
.image-viewer button{font:inherit;font-size:.9rem;padding:.4rem .65rem;min-height:44px;color:#494090;background:transparent;border:0;border-radius:4px;cursor:pointer}.image-viewer button:focus-visible{outline:2px solid #4a43b6}
.image-viewer .image-viewport{overflow:auto;max-height:calc(90vh - 4rem);max-height:calc(90dvh - 4rem);padding:.65rem;overscroll-behavior:contain}
.image-viewer img{display:block;margin:auto;width:auto;height:auto;max-width:min(84vw,60rem);max-height:calc(90vh - 5.5rem);max-height:calc(90dvh - 5.5rem);object-fit:contain}
.image-viewer.zoomed .image-viewport{width:min(84vw,60rem)}.image-viewer.zoomed img{max-width:none;max-height:none}
.image-viewer button[hidden]{display:none}

