/* ============================================================
   Product Video Gallery v3.2 - pvg-style.css
   ============================================================ */

.pvg-video-main-slide {
    cursor: pointer !important;
    position: relative;
    width: 100%;
}

.pvg-main-video-thumb {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.pvg-main-video-thumb::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    transition: background 0.2s;
}

.pvg-video-main-slide:hover .pvg-main-video-thumb::before {
    background: rgba(0,0,0,0.15);
}

.pvg-main-play {
    position: relative;
    z-index: 2;
}

.pvg-main-play svg {
    width: 68px;
    height: 68px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
    transition: transform 0.2s ease;
}

.pvg-video-main-slide:hover .pvg-main-play svg {
    transform: scale(1.12);
}

/* ── NAV THUMB ── */
.pvg-video-nav-thumb {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
}

.pvg-nav-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.2);
}

.pvg-nav-play-icon svg {
    width: 24px;
    height: 24px;
}

/* ── LIGHTBOX MODAL ── */
.pvg-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.pvg-lightbox.pvg-is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvg-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.pvg-lb-shell {
    background: #151515;
    color: #ffffff;
    border-radius: 12px;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 960px;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    box-sizing: border-box;
    gap: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.pvg-lb-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pvg-lb-label {
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 65%;
}

.pvg-lb-close {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 6px;
    font-size: 13px;
    padding: 6px 14px;
    cursor: pointer;
    color: #fff;
}

.pvg-lb-stage {
    position: relative;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvg-lb-view {
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

.pvg-lb-view.pvg-view--image {
    aspect-ratio: 1 / 1;
    max-height: 65vh;
    max-width: 65vh;
}

.pvg-lb-view.pvg-view--video {
    aspect-ratio: 16 / 9;
    max-height: 65vh;
    width: 100%;
}

.pvg-lb-img, .pvg-lb-iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border: none;
}

.pvg-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pvg-lb-prev { left: 10px; }
.pvg-lb-next { right: 10px; }

.pvg-lb-counter {
    text-align: center;
    font-size: 12px;
}

.pvg-lb-thumbstrip {
    overflow-x: auto;
    scrollbar-width: none;
}
.pvg-lb-thumbstrip::-webkit-scrollbar { display: none; }

.pvg-lb-thumbtrack {
    display: flex;
    gap: 7px;
    justify-content: center;
    min-width: 100%;
}

.pvg-lb-thumb {
    width: 68px;
    height: 68px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.4;
    position: relative;
    background: #000;
}

.pvg-lb-thumb.pvg-active {
    border-color: #ff3333;
    opacity: 1;
}

.pvg-lb-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pvg-lb-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
}
.pvg-lb-thumb-play svg { width: 22px; height: 22px; }

@media (max-width: 640px) {
    .pvg-lb-view.pvg-view--image { max-height: 80vw; }
    .pvg-lb-view.pvg-view--video { max-height: 56vw; }
    .pvg-lb-thumb { width: 54px; height: 54px; }
    .pvg-lb-thumbtrack { justify-content: flex-start; }
}