body.image-viewer-open { overflow:hidden; }
.image-viewer { width:fit-content; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); padding:16px; border:1px solid var(--sage); border-radius:10px; background:var(--paper); color:var(--ink); box-shadow:0 25px 100px #0006; }
.image-viewer::backdrop { background:rgba(12,25,17,.8); backdrop-filter:blur(5px); }
.image-viewer-header { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:12px; }
.image-viewer-header h2 { margin:0; font:400 1.3rem/1.25 var(--serif); overflow-wrap:anywhere; }
.image-viewer-header button { flex:0 0 44px; width:44px; height:44px; padding:0; border:1px solid var(--sage); border-radius:50%; background:var(--cream); color:var(--forest); font-size:1.8rem; cursor:pointer; }
.image-viewer>img { display:block; width:auto; height:auto; max-width:100%; max-height:calc(100dvh - 140px); margin:auto; object-fit:contain; }
.image-viewer>img[hidden],.image-viewer>[role=status]:empty { display:none; }
