/* ── WC Video Gallery · gallery.css ─────────────────────────────────────── */


/* ── Wrapper principal ────────────────────────────────────────────────────── */
.wcvg-gallery-wrap {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 720px;
    margin: 0 auto 32px;
    position: relative;
    font-family: inherit;
}
.wcvg-thumb-track .wcvg-thumb-btn{
    border-radius: 3px !important;
}

/* ── Rail de miniaturas (izquierda) ──────────────────────────────────────── */
.wcvg-thumb-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 72px;
    flex-shrink: 0;
}

.wcvg-rail-arrow {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #555;
    padding: 0;
    line-height: 1;
    transition: background 0.18s, color 0.18s;
    flex-shrink: 0;
}

.wcvg-rail-arrow:hover {
    background: #111;
    color: #fff;
    border-color: #111;
}

.wcvg-arrow-icon {
    display: block;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.wcvg-thumb-track-wrap {
    flex: 1;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.wcvg-thumb-track {
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform;
}

/* ── Botones miniatura ─────────────────────────────────────────────────────── */
.wcvg-thumb-btn {
    position: relative;
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #f3f3f3;
    flex-shrink: 0;
    transition: border-color 0.18s, transform 0.15s;
    outline: none;
}

.wcvg-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.wcvg-thumb-btn:hover {
    border-color: #888;
    transform: scale(1.03);
}

.wcvg-thumb-btn.is-active {
    border-color: #111;
}

/* Badge play en miniatura */
.wcvg-play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    font-size: 20px;
    pointer-events: none;
    border-radius: 2px;
}

/* ── Viewer principal ─────────────────────────────────────────────────────── */
.wcvg-main-viewer {
    flex: 1;
    min-width: 0;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f8f8;
    aspect-ratio: 1 / 1;
}

/* Imagen principal */
.wcvg-img-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.wcvg-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    opacity: 0;
    cursor: zoom-in;
    transition: opacity 0.25s, transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.wcvg-main-img.is-active {
    opacity: 1;
}

.wcvg-main-img.wcvg-zoomed {
    cursor: zoom-out;
    transform: scale(2.2);
}

/* Contenedor video */
.wcvg-video-container {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcvg-main-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Overlay play inicial */
.wcvg-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    transition: background 0.2s;
}

.wcvg-video-overlay:hover {
    background: rgba(0,0,0,0.08);
}

.wcvg-video-overlay.is-hidden {
    display: none;
}

.wcvg-big-play {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 72px;
    height: 72px;
    transition: transform 0.2s;
    filter: drop-shadow(0 2px 12px rgba(0,0,0,0.4));
}

.wcvg-big-play:hover {
    transform: scale(1.12);
}

.wcvg-big-play svg {
    width: 72px;
    height: 72px;
}

/* Badge VIDEO */
.wcvg-badge-wrap {
    position: absolute;
    top: 10px;
    left: 10px;
    pointer-events: none;
    z-index: 5;
}

.wcvg-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    background: #111;
    color: #fff;
}

/* ── Transición de slides ─────────────────────────────────────────────────── */
.wcvg-fade-out {
    opacity: 0 !important;
    transition: opacity 0.18s !important;
}

.wcvg-fade-in {
    opacity: 1 !important;
    transition: opacity 0.22s !important;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .wcvg-gallery-wrap {
        gap: 8px;
    }

    .wcvg-thumb-rail {
        width: 56px;
    }

    .wcvg-thumb-btn {
        width: 56px;
        height: 56px;
    }

    .wcvg-big-play {
        width: 56px;
        height: 56px;
    }

    .wcvg-big-play svg {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 400px) {
    .wcvg-gallery-wrap {
        flex-direction: column-reverse;
    }

    .wcvg-thumb-rail {
        flex-direction: row;
        width: 100%;
        height: 56px;
    }

    .wcvg-thumb-track {
        flex-direction: row;
    }

    .wcvg-thumb-track-wrap {
        flex: 1;
        height: 56px;
        overflow: hidden;
    }

    .wcvg-rail-arrow {
        width: 28px;
        height: 56px;
    }

    .wcvg-rail-up .wcvg-arrow-icon {
        transform: rotate(-90deg);
    }

    .wcvg-rail-down .wcvg-arrow-icon {
        transform: rotate(-90deg);
    }

    .wcvg-main-viewer {
        aspect-ratio: 4 / 3;
    }
}
