/* Scoped to an active product video; clearing it restores the original photo gallery. */
html body.storefront-body.product-detail-route [data-product-media-gallery].tl-video-player {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    grid-template-rows: auto !important;
    align-items: start !important;
}
html body.storefront-body.product-detail-route .tl-video-player [data-product-gallery-stage] {
    width: var(--tl-video-width, 100%) !important;
    height: var(--tl-video-height, auto) !important;
    min-height: 0 !important;
    max-height: none !important;
    min-width: 0 !important;
    max-width: 100% !important;
    aspect-ratio: auto !important;
    padding: 0 !important;
    justify-self: center !important;
    align-self: start !important;
    display: block !important;
    background: #05080d !important;
}
html body.storefront-body.product-detail-route .tl-video-player [data-product-gallery-stage]::before,
html body.storefront-body.product-detail-route .tl-video-player [data-product-gallery-stage]::after,
html body.storefront-body.product-detail-route .tl-video-player [data-mobile-product-discount] {
    display: none !important;
}
html body.storefront-body.product-detail-route .tl-video-player [data-product-gallery-video-host]:not([hidden]) {
    position: relative !important;
    inset: auto !important;
    z-index: 10 !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    pointer-events: auto !important;
    direction: ltr;
    overflow: visible !important;
}
html body.storefront-body.product-detail-route .tl-video-player .gallery-video-media {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    max-width: 100% !important;
    object-fit: contain !important;
    pointer-events: auto !important;
    border-radius: inherit;
}
html body.storefront-body.product-detail-route .tl-video-player video:fullscreen {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* The play control belongs to the video poster, never to product photos. */
html body.storefront-body.product-detail-route .gallery-video-cover { display: none !important; }
html body.storefront-body.product-detail-route .tl-video-cover:not(.is-video-active) [data-video-cover] {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}
html body.storefront-body.product-detail-route .tl-video-cover [data-product-gallery-main-image],
html body.storefront-body.product-detail-route .tl-video-cover [data-product-gallery-empty] { display: none !important; }
html body.storefront-body.product-detail-route .tl-video-cover [data-video-cover-image] {
    display: block !important;
    position: static !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
}
