.image-viewport{position:relative;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;cursor:zoom-in;overscroll-behavior:contain}
.image-viewport.is-zoomed{cursor:grab}.image-viewport.is-zoomed:active{cursor:grabbing}
.image-viewport>img{position:static!important;inset:auto!important;display:block;max-width:none!important;max-height:none!important;object-fit:fill;flex:none;user-select:none;transform-origin:center;transition:none}
.image-viewport:focus-visible{outline:2px solid #b16d10;outline-offset:-3px}
.storefront-body .gallery-zoom{box-sizing:border-box;width:min(1100px,calc(100vw - 24px));height:min(900px,calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom)));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:0;overflow:hidden;margin:auto;border-radius:14px}
.storefront-body .gallery-zoom[open]{display:flex;flex-direction:column}
.gallery-zoom>.popup-heading{flex:none;position:static!important;padding:10px 14px!important;margin:0!important;display:flex;align-items:center;gap:10px;min-height:52px;box-sizing:border-box}
.gallery-zoom .popup-heading h2{flex:1;min-width:0;font-size:18px;margin:0}
.gallery-zoom .popup-close{position:static!important;flex:none;min-width:44px;min-height:44px}
.gallery-zoom>.popup-body{display:flex;flex:1;min-height:0;min-width:0;padding:12px!important;overflow:hidden}
.gallery-zoom .image-viewport{flex:1;width:100%;height:100%;background:#faf7f3;border-radius:8px}
.gallery-zoom .image-viewport>img{box-shadow:none}
.image-fit-button{flex:none;min-height:40px;font-size:12px}
.viewer-detail-status{position:absolute;bottom:12px;left:12px;max-width:calc(100% - 24px);z-index:3;background:#fffef5ed;border-radius:8px;padding:8px 10px;display:flex;align-items:center;gap:7px;font-size:12px}.viewer-detail-status>svg{width:18px;height:18px;animation:thumbnail-spin 1s linear infinite}.viewer-detail-status.is-error>svg{animation:none}.gallery-zoom .popup-heading>.popup-close,.art-review-dialog .popup-heading>.popup-close{order:3}.image-fit-button{order:2}
.art-review-dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}
.art-review-dialog>.popup-heading{position:static!important;flex:none}
.art-review-dialog>.art-review-body{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior:contain}
@media(max-width:640px){.gallery-zoom>.popup-heading{gap:4px;padding:8px!important}.gallery-zoom .popup-heading h2{font-size:15px}.gallery-zoom>.popup-body{padding:8px!important}.image-fit-button{padding:6px!important;font-size:11px}.art-review-dialog .popup-close{min-width:44px;min-height:44px}}
@media(prefers-reduced-motion:reduce){.viewer-detail-status>svg{animation:none}}
