/* Scoped to the existing product gallery and its native modal dialog. */
body.warm-storefront .h4y-gallery-open{display:block;width:100%;min-width:0;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;cursor:zoom-in;color:inherit}
body.warm-storefront .h4y-gallery-open:focus-visible{outline:3px solid #e8620e;outline-offset:4px}
body.warm-storefront dialog.h4y-gallery-lightbox{position:fixed;inset:0;box-sizing:border-box;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:#10110ff5;color:#fff;overscroll-behavior:contain}
body.warm-storefront dialog.h4y-gallery-lightbox::backdrop{background:#10110f}
body.warm-storefront .h4y-gallery-toolbar{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;gap:10px;padding:12px max(16px,env(safe-area-inset-right)) 12px max(16px,env(safe-area-inset-left));min-height:72px;z-index:2;background:#10110fd9}
body.warm-storefront .h4y-gallery-counter{font-size:15px;line-height:1.4;margin:0 auto 0 0;color:#fff}
body.warm-storefront .h4y-gallery-lightbox button{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:6px 10px;margin:0;border:1px solid #ffffff70;border-radius:5px;background:#252722;color:#fff;font:24px/1 Arial,sans-serif;box-shadow:none;cursor:pointer}
body.warm-storefront .h4y-gallery-lightbox button:disabled{opacity:.35;cursor:default}
body.warm-storefront .h4y-gallery-lightbox button:focus-visible{outline:3px solid #ff8b35;outline-offset:3px}
body.warm-storefront .h4y-gallery-lightbox .h4y-gallery-reset{font-size:14px;min-width:62px}
body.warm-storefront .h4y-gallery-viewport{position:absolute;inset:84px 64px max(20px,env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:center;overflow:hidden;touch-action:none;user-select:none;cursor:default}
body.warm-storefront .h4y-gallery-viewport.is-zoomed{cursor:grab}
body.warm-storefront .h4y-gallery-viewport.is-zoomed:active{cursor:grabbing}
body.warm-storefront .h4y-gallery-lightbox .h4y-gallery-image{display:block;flex:none;max-width:none;max-height:none;object-fit:contain;transform-origin:center;pointer-events:auto;user-select:none;-webkit-user-drag:none}
body.warm-storefront .h4y-gallery-lightbox [hidden]{display:none!important}
body.warm-storefront .h4y-gallery-lightbox .h4y-gallery-prev,body.warm-storefront .h4y-gallery-lightbox .h4y-gallery-next{position:absolute;top:50%;z-index:2;width:44px;height:58px;font-size:38px}
body.warm-storefront .h4y-gallery-prev{left:10px}
body.warm-storefront .h4y-gallery-next{right:10px}
body.warm-storefront .h4y-gallery-error{color:#fff;text-align:center;padding:16px;font-size:16px}
@media(max-width:600px){
 body.warm-storefront .h4y-gallery-toolbar{gap:6px;padding:10px 8px;min-height:64px}
 body.warm-storefront .h4y-gallery-counter{font-size:12px}
 body.warm-storefront .h4y-gallery-lightbox .h4y-gallery-reset{min-width:52px;padding:6px}
 body.warm-storefront .h4y-gallery-viewport{inset:76px 10px max(76px,env(safe-area-inset-bottom))}
 body.warm-storefront .h4y-gallery-lightbox .h4y-gallery-prev,body.warm-storefront .h4y-gallery-lightbox .h4y-gallery-next{top:auto;bottom:max(12px,env(safe-area-inset-bottom));height:48px}
}
