/**
 * SRD Shop Suite — Divi compatibility overrides.
 *
 * The only Divi-coupled file in the plugin. Loaded only when Divi (theme or
 * Divi Builder plugin) is active. Revisit for Divi 5 when the site migrates.
 */

/* Divi lays product thumbnails out as a floated 4-per-row grid
   (width:20%, margin-right/bottom:6.6666%). Neutralize inside SRD galleries;
   the layout stylesheet takes over. */
.woocommerce div.product .srd-gallery div.images .flex-control-thumbs li,
.woocommerce-page div.product .srd-gallery div.images .flex-control-thumbs li,
.et-db #et-boc .et-l .srd-gallery div.images .flex-control-thumbs li {
	width: auto;
	margin: 0;
}

/* Divi forces overflow:visible on the thumbs list; the scrolling layouts
   need the value from the layout stylesheet. */
.srd-gallery div.images ol.flex-control-thumbs.flex-control-nav {
	overflow: hidden;
}

/* Visual Builder: gallery scripts don't run inside the builder, so the
   template's inline opacity:0 would leave the gallery invisible. Show it
   statically (first image only, per the FOUC guard) while editing. */
.et-fb .srd-gallery .woocommerce-product-gallery,
.et-bfb .srd-gallery .woocommerce-product-gallery {
	opacity: 1 !important;
}
