@media (min-width: 1025px) {
  /* Only the 99 product template has these two sibling containers. */
  body.single-product .single-product-page .elementor-element-460b6e4 > .e-con-inner:has(> .elementor-element-5da0c27):has(> .elementor-element-aebb676) {
    display: grid !important;
    grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(28px, 4vw, 60px);
    width: 100%;
    max-width: 1080px;
    margin-inline: auto;
  }
  body.single-product .single-product-page .elementor-element-460b6e4 > .e-con-inner > :is(.elementor-element-5da0c27, .elementor-element-aebb676) {
    width: 100% !important;
    min-width: 0;
    margin: 0;
  }
  body.single-product .single-product-page .elementor-element-460b6e4 .elementor-element-5da0c27 { grid-column: 1; grid-row: 1; }
  body.single-product .single-product-page .elementor-element-460b6e4 .elementor-element-aebb676 { grid-column: 2; grid-row: 1; }

  body.single-product .single-product-page .wd-single-gallery .woocommerce-product-gallery {
    width: 100%;
    max-width: 440px;
    margin-inline: auto;
  }
  /* Keep native gallery links and live sliders intact. Static images become tiles. */
  body.single-product .single-product-page .wd-single-gallery .wd-gallery-images .wd-carousel.wd-grid:not(.wd-initialized) > .wd-carousel-wrap {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  body.single-product .single-product-page .wd-single-gallery .wd-gallery-images .wd-carousel.wd-grid:not(.wd-initialized) > .wd-carousel-wrap > .wd-carousel-item {
    width: auto;
    min-width: 0;
  }
  body.single-product .single-product-page .wd-single-gallery .wd-gallery-images .wd-carousel.wd-grid:not(.wd-initialized) > .wd-carousel-wrap > .wd-carousel-item:first-child {
    grid-column: 1 / -1;
  }
  body.single-product .single-product-page .wd-single-gallery .wd-gallery-images .wd-carousel.wd-grid:not(.wd-initialized) .woocommerce-product-gallery__image {
    display: block;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e4e9e4;
    border-radius: 8px;
    background: #fff;
  }
  body.single-product .single-product-page .wd-single-gallery .wd-gallery-images .woocommerce-product-gallery__image > a {
    display: block;
  }
  body.single-product .single-product-page .wd-single-gallery .wd-gallery-images :is(.woocommerce-product-gallery__image > img, .woocommerce-product-gallery__image > a > img):not(.zoomImg) {
    display: block;
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
  }
  body.single-product .single-product-page .wd-single-gallery .wd-gallery-images .wd-carousel.wd-grid:not(.wd-initialized) .wd-carousel-item:not(:first-child) :is(.woocommerce-product-gallery__image > img, .woocommerce-product-gallery__image > a > img):not(.zoomImg) {
    height: 104px;
  }
}
