/* Keep the controls outside the scrollable image stage, including in older WebViews. */
.image-preview-target{cursor:zoom-in}
.image-preview-card{position:relative;min-width:0;display:grid}
.image-preview-card>a{min-width:0;height:100%}
.image-preview-button{position:absolute;right:10px;top:10px;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:11px;border:1px solid #ffffff70;border-radius:10px;background:#071626d9;color:#fff;box-shadow:0 3px 14px #0003}
.image-preview-button svg{width:22px;height:22px;pointer-events:none}
.image-preview-button:hover{background:#145975}
html.image-viewer-open{overflow:hidden!important;scroll-behavior:auto!important}
html.image-viewer-open body{position:fixed!important;top:var(--image-viewer-scroll)!important;left:0;right:0;width:100%;overflow:hidden!important}
.image-viewer[hidden]{display:none!important}
.image-viewer{position:fixed;inset:0;z-index:2147483647;display:flex;flex-direction:column;width:100%;height:100%;height:100dvh;background:rgba(3,10,20,.96);color:#fff;isolation:isolate;overscroll-behavior:contain;line-height:1.5}
.image-viewer-toolbar{position:relative;z-index:2;flex:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;padding-top:max(12px,env(safe-area-inset-top));padding-right:max(20px,env(safe-area-inset-right));padding-left:max(20px,env(safe-area-inset-left));background:#071626;border-bottom:1px solid #ffffff26}
.image-viewer-count{font-size:14px;color:#d5e5ef;font-variant-numeric:tabular-nums;white-space:nowrap}
.image-viewer-controls{display:flex;gap:8px;align-items:center}
.image-viewer-controls button{display:inline-flex;align-items:center;justify-content:center;gap:7px;flex-shrink:0;min-width:44px;min-height:44px;padding:8px 12px;border:1px solid #ffffff50;border-radius:8px;background:#102b40;color:#fff;font:inherit;font-size:21px;cursor:pointer;touch-action:manipulation}
.image-viewer-controls button:disabled{opacity:.35;cursor:default}
.image-viewer-controls button:hover:not(:disabled){background:#1a5067}
.image-viewer-controls button:focus-visible{outline:3px solid #77d7f3;outline-offset:3px}
.image-viewer-close span{font-size:15px;font-weight:600}
.image-viewer-close svg{width:22px;height:22px}
.image-viewer-stage{position:relative;display:flex;flex:1;min-height:0;min-width:0;overflow:auto;padding:20px;padding-bottom:max(20px,env(safe-area-inset-bottom));overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
.image-viewer .image-viewer-image{display:block;flex:none;margin:auto;max-width:none;max-height:none;object-fit:contain;border-radius:4px;background:#fff}
.image-viewer .image-viewer-image[hidden],.image-viewer-brand[hidden]{display:none!important}
.image-viewer-brand{display:grid;place-items:center;flex:none;margin:auto;width:min(100%,960px);background:#fff;border-radius:12px;overflow:hidden}
.image-viewer-brand .brand-lockup-visual{width:100%;max-height:100%;cursor:default}
.image-viewer-status{position:absolute;inset:50% 20px auto;text-align:center;pointer-events:none;font-size:15px;color:#d5e5ef}
.image-viewer-status:empty{display:none}
@media(max-width:640px){.image-viewer-toolbar{padding-inline:12px;gap:8px}.image-viewer-controls{gap:5px}.image-viewer-controls button{padding:7px 10px}.image-viewer-stage{padding:16px}.image-viewer-brand{max-width:100%}.image-preview-button{width:40px;height:40px;right:8px;top:8px}}
