/* VAROXA 1.15 | Stable native WooCommerce FlexSlider + square media. */
.woocommerce .xagor-product-purchase .woocommerce-product-gallery,
body.xagor-mobile-theme .xagor-mpdp-gallery .woocommerce-product-gallery {
  min-width:0; max-width:100%; overflow:hidden; background:transparent;
}
/* FlexSlider owns viewport heights and slide inline widths. No overriding either. */
.woocommerce .xagor-product-purchase .woocommerce-product-gallery .flex-viewport,
body.xagor-mobile-theme .xagor-mpdp-gallery .woocommerce-product-gallery .flex-viewport {
  min-width:0; max-width:100%; overflow:hidden; background:transparent;
}
.woocommerce .xagor-product-purchase .woocommerce-product-gallery__wrapper,
body.xagor-mobile-theme .xagor-mpdp-gallery .woocommerce-product-gallery__wrapper {
  min-height:0!important; background:transparent!important;
}
.woocommerce .xagor-product-purchase .woocommerce-product-gallery__image>a,
body.xagor-mobile-theme .xagor-mpdp-gallery .woocommerce-product-gallery__image>a {
  min-height:0!important; background:transparent!important;
}
.woocommerce .xagor-product-purchase .woocommerce-product-gallery__image img,
body.xagor-mobile-theme .xagor-mpdp-gallery .woocommerce-product-gallery__image img {
  display:block!important; width:100%!important; height:auto!important;
  max-width:100%!important; max-height:none!important;
  aspect-ratio:1/1; object-fit:contain!important;
  margin:0 auto!important; padding:0!important;
  background:transparent!important;
}
/* Thumbnails are square without hardcoded minimum heights on the main image. */
.woocommerce .xagor-product-purchase .flex-control-thumbs img,
body.xagor-mobile-theme .xagor-mpdp-gallery .flex-control-thumbs img {
  display:block!important;aspect-ratio:1/1;object-fit:cover!important;
}
/* Woo's default gallery without JS also needs no gray letterbox. */
.woocommerce .xagor-product-purchase .woocommerce-product-gallery:not(.woocommerce-product-gallery--with-images) {
  background:transparent;
}
