.woocommerce-product-gallery.ais-product-video-gallery {
    opacity: 1 !important;
}

.woocommerce-product-gallery .ais-product-gallery__launch {
    position: relative;
    display: block;
    border-radius: 0.75rem;
}

.woocommerce-product-gallery .ais-product-gallery__poster {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: inherit;
}

.woocommerce-product-gallery .ais-product-gallery__play {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    background: #211b2b;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
}

.woocommerce-product-gallery .ais-product-gallery__player {
    display: block;
    width: 100%;
    height: auto;
    max-height: 41rem;
    max-height: min(41rem, 76svh);
    aspect-ratio: auto 1 / 1;
    object-fit: contain;
    background-color: #211b2b;
    border-radius: 0.75rem;
}

.woocommerce-product-gallery .ais-product-gallery__player:focus-visible,
.woocommerce-product-gallery .ais-product-gallery__launch:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
