/* The shared .product wrapper lets WooCommerce switch variation galleries.
 * Keep its classic 48% gallery width from halving this block's own column. */
body.single-product .wmw-single-product .wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery {
  width: 100%;
  float: none;
}

/* Slide borders are excluded from WooCommerce's viewport height calculation. */
body.single-product .woocommerce-product-gallery .woocommerce-product-gallery__image {
  border: 0 !important;
  border-radius: 0 !important;
}

/* The direct wrapper also covers products that do not initialize a slider. */
body.single-product .woocommerce-product-gallery .flex-viewport,
body.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 50px;
}

/* Paint inside the viewport without changing the dimensions of any slide. */
body.single-product .woocommerce-product-gallery .flex-viewport::after,
body.single-product .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1px solid #cdff09;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
}

