/* Pardeh Monsef — product gallery video slide (inc/product-video.php). */
.woocommerce div.product .woocommerce-product-gallery__image.pm-gallery-video{position:relative;background:#18292b}
.pm-gallery-video__frame{position:relative;width:100%;aspect-ratio:var(--pm-video-ratio,16 / 9);max-height:760px;margin-inline:auto;overflow:hidden;background:#18292b}
.pm-gallery-video__media{position:absolute;inset:0;display:block;width:100%!important;height:100%!important;max-height:none!important;border:0;object-fit:contain;background:#18292b}
/* Portrait phone videos: keep them from towering over the page. */
@media (max-width:767px){.pm-gallery-video__frame{max-height:72vh}}

/* Play badge on the video thumbnail. */
.woocommerce div.product div.images .flex-control-thumbs li.pm-gallery-video-thumb{position:relative}
.woocommerce div.product div.images .flex-control-thumbs li.pm-gallery-video-thumb::after{content:"";position:absolute;inset:50% auto auto 50%;width:28px;height:28px;transform:translate(-50%,-50%);border-radius:50%;background:rgba(24,41,43,.78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fff'/%3E%3C/svg%3E") center/16px no-repeat;box-shadow:0 0 0 2px rgba(255,255,255,.85);pointer-events:none}
/* The no-cover thumbnail already draws its own play mark. */
.woocommerce div.product div.images .flex-control-thumbs li.pm-gallery-video-thumb:has(img[src^="data:image/svg"])::after{display:none}
@media (max-width:767px){.woocommerce div.product div.images .flex-control-thumbs li.pm-gallery-video-thumb::after{width:22px;height:22px;background-size:12px}}

/* Lightbox. */
.pm-pswp-video{display:flex;align-items:center;justify-content:center;width:100%;height:100%;padding:44px 0}
.pm-pswp-video video{display:block;max-width:100%;max-height:100%;width:auto;height:auto;background:#000}
.pm-pswp-video iframe{display:block;width:min(100%,calc((100vh - 88px) * 16 / 9));aspect-ratio:16 / 9;height:auto;border:0;background:#000}
