/* ============================================
   JC GALLERY SLIDER
   ============================================ */

.jc-gallery-slider {
    position: relative;
    border-radius: var(--jc-radius-lg, 12px);
    overflow: hidden;
    background: #0a0a14;
}

/* Swiper overrides */
.jc-gallery-swiper {
    width: 100%;
}

.jc-gallery-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a14;
}

/* ---- Slides ---- */
.jc-gallery-slide {
    position: relative;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
}

.jc-gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 520px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.jc-gallery-slide:hover img {
    transform: scale(1.02);
}

/* Video slide overlay */
.jc-gallery-slide--video {
    position: relative;
}

.jc-gallery-slide--video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.3s;
}

.jc-gallery-slide--video:hover::after {
    background: rgba(0, 0, 0, 0.15);
}

/* Play button */
.jc-gallery-slide__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 72px;
    height: 72px;
    background: rgba(220, 38, 38, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, background 0.3s;
}

.jc-gallery-slide--video:hover .jc-gallery-slide__play {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(220, 38, 38, 1);
}

.jc-gallery-slide__play svg {
    margin-left: 4px; /* optical centering for play icon */
}

/* No-thumb fallback for videos */
.jc-gallery-slide__no-thumb {
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Navigation arrows ---- */
.jc-gallery-nav {
    color: #fff !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    transition: background 0.2s, transform 0.2s !important;
}

.jc-gallery-nav:hover {
    background: rgba(0, 0, 0, 0.75) !important;
    transform: scale(1.05);
}

.jc-gallery-nav::after {
    font-size: 18px !important;
    font-weight: 700 !important;
}

/* ---- Pagination dots ---- */
.jc-gallery-pagination {
    position: relative !important;
    bottom: auto !important;
    padding: 12px 0;
    text-align: center;
    background: #0a0a14;
}

.jc-gallery-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transition: background 0.2s, transform 0.2s;
}

.jc-gallery-pagination .swiper-pagination-bullet-active {
    background: var(--jc-red, #dc2626);
    transform: scale(1.2);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .jc-gallery-slide img {
        max-height: 300px;
    }

    .jc-gallery-slide__no-thumb {
        height: 220px;
    }

    .jc-gallery-slide__play {
        width: 56px;
        height: 56px;
    }

    .jc-gallery-slide__play svg {
        width: 36px;
        height: 36px;
    }

    .jc-gallery-nav {
        width: 36px !important;
        height: 36px !important;
    }

    .jc-gallery-nav::after {
        font-size: 14px !important;
    }
}
