.image-zoom-trigger{display:block;width:100%;padding:0;border:0;background:white;color:inherit;cursor:zoom-in;text-align:inherit;border-radius:8px}
.image-zoom-trigger:focus-visible{outline:3px solid var(--berry);outline-offset:4px}
.image-viewer-open{overflow:hidden}
dialog.image-viewer{box-sizing:border-box;width:calc(100vw - 32px);max-width:1400px;height:calc(100dvh - 32px);max-height:none;padding:0;overflow:hidden;border:0;border-radius:16px;background:white}
.image-viewer[open]{display:flex;flex-direction:column}
.image-viewer::backdrop{background:#15131bd9}
.image-viewer-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:16px;padding:8px 12px 8px 20px;border-bottom:1px solid var(--line);font-weight:650;background:white}
.image-viewer-close{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;padding:0;border:1px solid var(--line);border-radius:10px;background:white;color:var(--ink);font-size:32px;line-height:1;cursor:pointer}
.image-viewer-close:focus-visible{outline:3px solid var(--berry);outline-offset:2px}
.image-viewer-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;background:white;padding:12px}
.image-viewer-scroll img{display:block;width:100%;min-width:900px;max-width:none;height:auto}
@media(max-width:700px){dialog.image-viewer{width:100%;height:100dvh;max-width:100%;max-height:100dvh;margin:0;border-radius:0}.image-viewer-header{padding-top:max(8px,env(safe-area-inset-top));padding-right:max(12px,env(safe-area-inset-right))}.image-viewer-scroll{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
