figure a:has(img){cursor:zoom-in}
.image-viewer{width:calc(100% - 40px);max-width:1600px;max-height:calc(100dvh - 40px);padding:0;border:1px solid #24345c;border-radius:16px;background:#0f1c36;color:#fff;box-shadow:0 24px 90px #0008;overflow:hidden}
.image-viewer::backdrop{background:rgb(10 20 40 / 90%)}
.image-viewer[open]{display:flex;flex-direction:column}
.image-viewer__toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px;font-size:14px;flex-shrink:0}
.image-viewer__close{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #24345c;border-radius:8px;background:#142544;color:white;padding:8px 16px;cursor:pointer;font:inherit;line-height:1;min-height:44px}
.image-viewer__close:hover{background:#2a5cf4}
.image-viewer__close:focus-visible{outline:3px solid #12c7c0;outline-offset:3px}
.image-viewer__close span{display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1}
.image-viewer__content{overflow:auto;min-height:0;background:#0a1428;overscroll-behavior:contain}
.image-viewer__content img{display:block;width:100%;height:auto;margin:auto}
.image-viewer__caption{padding:12px 20px;margin:0;font-size:13px;line-height:1.4;flex-shrink:0}
@media(max-width:540px){.image-viewer{width:calc(100% - 16px);max-height:calc(100dvh - 16px);border-radius:10px}.image-viewer__toolbar{padding:8px 12px}.image-viewer__caption{padding:10px 12px}}
@media print{.image-viewer{display:none!important}}
