/* Standalone gallery overrides the legacy WooCommerce 25% secondary-image layout. */
.elementor-widget-woocommerce-product-images{width:100%!important;max-width:640px!important;min-width:0!important;align-self:stretch!important;margin-left:auto!important;margin-right:auto!important}
.elementor-widget-woocommerce-product-images>.elementor-widget-container{width:100%!important;min-width:0!important}
.e-con:has(>.elementor-widget-woocommerce-product-images){justify-content:flex-start!important}
.woocommerce .kw-product-gallery,.kw-product-gallery{width:100%!important;max-width:100%!important;min-width:0;float:none!important;margin:0!important;opacity:1!important}
.kw-product-gallery .kw-gallery-stage{display:grid!important;grid-template-columns:minmax(0,1fr)!important;position:relative;width:100%!important;height:auto!important;aspect-ratio:1/1;margin:0!important;padding:0!important;overflow:hidden;border:1px solid #e9e9e9;border-radius:12px;background:#fff;transform:none!important}
.kw-product-gallery .kw-gallery-stage>.woocommerce-product-gallery__image{grid-area:1/1!important;display:block!important;width:100%!important;max-width:none!important;height:100%!important;min-width:0!important;margin:0!important;padding:0!important;float:none!important;transform:none!important}
.kw-product-gallery .kw-gallery-stage>.woocommerce-product-gallery__image[hidden]{display:none!important}
.kw-product-gallery .kw-gallery-stage>.woocommerce-product-gallery__image>a{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:100%!important;margin:0!important;padding:24px;box-sizing:border-box;cursor:zoom-in}
.kw-product-gallery .kw-gallery-stage>.woocommerce-product-gallery__image img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;object-fit:contain!important;object-position:center!important;transform:none!important}
.kw-product-gallery .kw-gallery-thumbs{display:flex!important;justify-content:flex-start;align-items:center;gap:10px;width:100%;max-width:100%;height:82px;margin:12px 0 0!important;padding:2px;overflow-x:auto;overflow-y:hidden;box-sizing:border-box;scrollbar-width:thin}
.kw-product-gallery .kw-gallery-thumbs>button{display:flex!important;align-items:center;justify-content:center;flex:0 0 72px!important;width:72px!important;min-width:72px!important;height:72px!important;min-height:0!important;margin:0!important;padding:6px!important;border:1px solid #dedede!important;border-radius:8px!important;background:#fff!important;cursor:pointer;box-sizing:border-box}
.kw-product-gallery .kw-gallery-thumbs>button[aria-pressed=true]{border:2px solid #ca2229!important;padding:5px!important}
.kw-product-gallery .kw-gallery-thumbs>button>img{display:block!important;position:static!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;margin:0!important;transform:none!important}
.kw-product-gallery .kw-gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:34px;height:42px;min-height:0;padding:0;border:1px solid #e1e1e1;border-radius:6px;background:#fffffff0;color:#303030;font:28px/1 Arial;cursor:pointer;box-shadow:0 2px 8px #0000000a}
.kw-product-gallery .kw-gallery-arrow.prev{left:8px}.kw-product-gallery .kw-gallery-arrow.next{right:8px}.kw-product-gallery .kw-gallery-count{position:absolute;right:12px;bottom:10px;padding:3px 9px;border-radius:20px;background:#f3f3f3;color:#666;font:11px/1.5 Arial;pointer-events:none}
.kw-product-gallery button:focus-visible,.kw-product-gallery a:focus-visible{outline:2px solid #ca2229;outline-offset:3px}
@media(max-width:767px){.kw-product-gallery .kw-gallery-stage>.woocommerce-product-gallery__image>a{padding:18px}.kw-product-gallery .kw-gallery-thumbs{gap:8px;height:72px}.kw-product-gallery .kw-gallery-thumbs>button{flex-basis:62px!important;min-width:62px!important;width:62px!important;height:62px!important}.kw-product-gallery .kw-gallery-arrow{width:30px;height:38px}}
/* Absolutely position the selected slide so intrinsic portrait height cannot enlarge a grid row. */
.kw-product-gallery .kw-gallery-stage>.woocommerce-product-gallery__image{position:absolute!important;inset:0!important}
.elementor-widget-woocommerce-product-images{margin:0 auto!important}
.e-con:has(>.elementor-widget-woocommerce-product-images){align-self:flex-start!important}
.kw-product-gallery .kw-gallery-stage>.woocommerce-product-gallery__image img,.kw-product-gallery .kw-gallery-thumbs>button>img{transform:translate(var(--kw-image-x,0px),var(--kw-image-y,0px)) scale(var(--kw-image-scale,1))!important;transform-origin:center}
.kw-product-gallery .kw-gallery-thumbs>button{overflow:hidden}
.kw-product-gallery .kw-gallery-stage{box-sizing:border-box!important;border:1px solid #e9e9e9!important;transition:none!important}
.kw-image-dialog{width:min(900px,90vw);height:min(900px,85vh);max-width:90vw;max-height:85vh;box-sizing:border-box;padding:24px!important;background:#fff!important;border-radius:12px;overflow:hidden}
.kw-image-dialog img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center;transform:translate(var(--kw-image-x,0px),var(--kw-image-y,0px)) scale(var(--kw-image-scale,1))!important;transform-origin:center}
.kw-image-dialog button{position:absolute!important;right:8px!important;top:8px!important;z-index:2;border-radius:6px;box-shadow:0 2px 8px #0001;font-size:25px!important;line-height:30px;padding:0 8px!important}
