/* ============================================================
   Jewelry Video Gallery - Desktop Grid + Mobile Carousel
   ============================================================ */

.jvg-gallery {
    position: relative;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}

/* -------- Desktop / Tablet (default): simple grid, jaisa abhi hai -------- */
.jvg-gallery .jvg-track {
    display: flex;
    gap: 20px;
    width: 100%;
}

.jvg-gallery .jvg-slide {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    position: relative;
    background: #000;
}

.jvg-gallery .jvg-slide a {
    display: block;
    line-height: 0;
}

.jvg-gallery .jvg-video {
    width: 100%;
    height: 460px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.jvg-gallery .jvg-slide:hover .jvg-video {
    transform: scale(1.04);
}

/* Arrows + dots hidden on desktop */
.jvg-gallery .jvg-arrow,
.jvg-gallery .jvg-dots {
    display: none;
}

/* ============================================================
   MOBILE (phone view): carousel with arrows
   ============================================================ */
@media (max-width: 767px) {

    .jvg-gallery {
        padding: 0 6px;
    }

    .jvg-gallery .jvg-track {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        border-radius: 14px;
        scrollbar-width: none;
    }

    .jvg-gallery .jvg-track::-webkit-scrollbar {
        display: none;
    }

    .jvg-gallery .jvg-slide {
        flex: 0 0 100%;
        scroll-snap-align: center;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0d0d0d;
    }

    .jvg-gallery .jvg-video {
        height: auto;
        max-height: 480px;
        width: 100%;
        object-fit: contain;
    }

    /* Arrows visible on mobile only */
    .jvg-gallery .jvg-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        background: rgba(20, 15, 10, 0.55);
        color: #fff;
        z-index: 5;
        cursor: pointer;
        transition: background 0.25s ease, opacity 0.25s ease;
    }

    .jvg-gallery .jvg-arrow:active {
        background: rgba(20, 15, 10, 0.85);
    }

    .jvg-gallery .jvg-prev {
        left: 12px;
    }

    .jvg-gallery .jvg-next {
        right: 12px;
    }

    .jvg-gallery .jvg-arrow[disabled] {
        opacity: 0.35;
        pointer-events: none;
    }

    /* Dots */
    .jvg-gallery .jvg-dots {
        display: flex;
        justify-content: center;
        gap: 6px;
        margin-top: 12px;
    }

    .jvg-gallery .jvg-dots span {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: rgba(0,0,0,0.2);
        transition: background 0.25s ease, transform 0.25s ease;
    }

    .jvg-gallery .jvg-dots span.active {
        background: #7a1f2b;
        transform: scale(1.25);
    }
}
