/* v1.5.2 – image slot contracts: cover is for photographic sections; 1:1 for product photography */
.xw-interior-aside:has(> .xw-interior-photo){padding:0!important;overflow:hidden!important;}
.xw-interior-photo,.xw-interior-aside>.xw-interior-photo{display:block!important;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;object-position:50% 45%!important;}
.xw-interior--story .xw-interior-photo{object-position:50% 40%!important;}
.xw-interior--journal .xw-interior-photo{object-position:50% 40%!important;}
.xagor-product-chapter-photo,.xw-split-photo,.xw-story-photo{overflow:hidden!important;}
.xagor-product-chapter-photo::before{display:none!important;content:none!important;}
.xagor-product-chapter-photo img,.xw-split-photo img,.xw-story-photo img{width:100%!important;height:100%!important;max-height:none!important;object-fit:cover!important;}
.xagor-product-card .xagor-product-art,.xagor-v12-product-media,.xagor-v134-related-photo,.xagor-mega-product-img,.xagor-mega-photo,.xw-product-card-image{aspect-ratio:1/1!important;overflow:hidden!important;min-height:0!important;background:transparent!important;}
.xagor-product-card .xagor-product-art img,.xagor-v12-product-media img,.xagor-v134-related-photo img,.xagor-mega-product-img img,.xagor-mega-photo img,.xw-product-card-image img{display:block!important;width:100%!important;height:100%!important;aspect-ratio:1/1!important;object-fit:cover!important;object-position:center!important;padding:0!important;margin:0!important;}
/* Let native FlexSlider compute the viewport height. Images are 1:1,
   but never override JavaScript's measured height or slide dimensions. */
.woocommerce .woocommerce-product-gallery .flex-viewport{max-height:none;overflow:hidden!important;}
/* FlexSlider sets an inline width on EACH slide. Never override it with
   width:100%!important, or multi-image galleries break once a second photo arrives. */
.woocommerce .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image{display:block!important;}
.woocommerce .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__image a{display:block!important;width:100%;}
.woocommerce .woocommerce-product-gallery .flex-viewport img{display:block!important;width:100%!important;aspect-ratio:1/1!important;height:auto!important;object-fit:contain!important;background:transparent!important;}
@media(max-width:1023px){.woocommerce ul.products,.xagor-v134-related-grid,.xagor-product-grid,.xw-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;}}
@media(min-width:1024px){.woocommerce ul.products,.xagor-v134-related-grid,.xagor-product-grid,.xw-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}}
