.product-video-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.product-video-container img {
    display: block;
    width: 100%;
    height: auto;
}

.product-video-container .video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2em;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 2.5em;
    height: 2.5em;
    line-height: 2.5em;
    text-align: center;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.product-video-container:hover .video-play-icon {
    opacity: 1;
}

/* Lightbox Styles (Basic - you might need a more advanced lightbox library) */
#video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.2s ease;
}

#video-lightbox.active {
    visibility: visible;
    opacity: 1;
}

#video-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

#video-lightbox-content iframe,
#video-lightbox-content video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

#video-lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    border: none;
    background: none;
}

#video-lightbox-close:hover {
    opacity: 1;
}

.woocommerce-product-gallery__item {
    position: relative; /* Make sure the gallery item is a positioning context */
}
