/* Square product-gallery candidates; preserve native gallery navigation. */
body.swp-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel-inner {
 position: relative !important;
 height: auto !important;
}
body.swp-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel.wd-vertical {
 height: auto !important;
 aspect-ratio: 1 / var(--wd-col-lg, 3);
}
body.swp-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel-item {
 box-sizing: border-box;
 aspect-ratio: 1;
 height: auto !important;
 padding: 0 !important;
 background: #fff;
}
body.swp-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel.wd-vertical .wd-carousel-item {
 width: 100% !important;
}
body.swp-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel-item img {
 display: block;
 box-sizing: border-box;
 width: 100% !important;
 height: 100% !important;
 aspect-ratio: 1;
 object-fit: contain !important;
 object-position: center;
 padding: 4px;
}

/* Four square gallery candidates at every breakpoint, across enabled markets. */
body.swp-product .woocommerce-product-gallery .wd-gallery-thumb .wd-carousel {
 --wd-col-lg: 4 !important;
 --wd-col-md: 4 !important;
 --wd-col-sm: 4 !important;
}
