/* Impluto Product Video Gallery - Frontend styles */

/* Video thumbnail under the Add to Cart button */
.ipvg-video-thumb-wrap {
    margin: 20px 0;
    clear: both;
}

.ipvg-video-thumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    cursor: pointer;
}

.ipvg-thumb-inner {
    position: relative;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #000;
    flex-shrink: 0;
}

.ipvg-thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.ipvg-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

.ipvg-thumb-label {
    color: #444;
    font-size: 14px;
    font-weight: 600;
}

/* Lightbox */
.ipvg-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ipvg-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.ipvg-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90%;
    max-height: 90%;
}

.ipvg-lightbox-video {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 4px;
}

.ipvg-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ipvg-lightbox-close:hover {
    color: #ccc;
}

body.ipvg-lightbox-open {
    overflow: hidden;
}