.ezpv-stage{position:relative;aspect-ratio:1/1;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.ezpv-stage>img,.ezpv-stage>video{width:100%;height:100%;object-fit:contain}
.ezpv-stage>video[hidden]{display:none!important}
.ezpv-play{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);border:0;border-radius:50%;width:64px;height:64px;background:#222;color:#fff;font-size:24px;cursor:pointer;padding:0}
.ezpv-playing>img,.ezpv-playing>.ezpv-play{display:none!important}
.ezpv-thumb{position:relative}
.ezpv-thumb:after{content:'▶';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:30px;height:30px;display:grid;place-items:center;background:#222;color:white;border-radius:50%;pointer-events:none;font-size:12px}
.ezpv-restricted .ezpv-stage{visibility:hidden;pointer-events:none}

/* Match the existing square product thumbnails, including generated frames. */
.woocommerce-product-gallery .flex-control-thumbs li.ezpv-thumb img{width:100%!important;height:auto!important;aspect-ratio:1 / 1!important;object-fit:cover!important;object-position:center!important;display:block!important;box-sizing:border-box!important;}

.ezpv-installation{display:grid;gap:12px}
.ezpv-installation:has(> .ezpv-install-item:not([hidden])){margin:16px 0}
.ezpv-install-item[hidden]{display:none!important}
.ezpv-install-item video{display:block;width:100%;height:auto;max-width:100%;aspect-ratio:16/9;object-fit:contain;background:#111;border-radius:10px}

/* Reflow visible thumbnails without changing FlexSlider's slide indices. */
.woocommerce-product-gallery.ezpv-gallery-managed .flex-control-thumbs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;align-items:start;padding:0!important;list-style:none!important;}
.woocommerce-product-gallery.ezpv-gallery-managed .flex-control-thumbs::before,.woocommerce-product-gallery.ezpv-gallery-managed .flex-control-thumbs::after{content:none!important;display:none!important;}
.woocommerce-product-gallery.ezpv-gallery-managed .flex-control-thumbs > li{float:none!important;clear:none!important;width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;box-sizing:border-box!important;}
.woocommerce-product-gallery.ezpv-gallery-managed .flex-control-thumbs > li.ezpv-thumb-restricted{display:none!important;}
.woocommerce-product-gallery.ezpv-gallery-managed .flex-control-thumbs > li > img{display:block;width:100%!important;height:auto!important;aspect-ratio:1/1;object-fit:cover;box-sizing:border-box;}
@media(max-width:480px){.woocommerce-product-gallery.ezpv-gallery-managed .flex-control-thumbs{gap:6px;}}
