/* JC Image Slider — Frontend */
.jcis-slider {
    max-width: 900px;
    margin: 0 auto;
    user-select: none;
}

/* ── Main Slide ── */
.jcis-main-slide {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #111;
}
.jcis-slide-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.jcis-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .4s ease;
    cursor: zoom-in;
}
.jcis-slide.active {
    opacity: 1;
    z-index: 1;
}
.jcis-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Nav Arrows ── */
.jcis-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jcis-nav:hover { background: rgba(123,31,255,.7); }
.jcis-prev { left: 12px; }
.jcis-next { right: 12px; }

/* ── Counter ── */
.jcis-counter {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,.55);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 13px;
    z-index: 5;
}

/* ── Thumbnails ── */
.jcis-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}
.jcis-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: .5;
    transition: all .25s;
}
.jcis-thumb:hover { opacity: .8; }
.jcis-thumb.active {
    border-color: #7B1FFF;
    opacity: 1;
}
.jcis-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════ */
.jcis-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0,0,0,.92);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.jcis-lightbox.open {
    display: flex;
    animation: jcisLbIn .25s ease;
}
@keyframes jcisLbIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.jcis-lb-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jcis-lb-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity .3s;
}

/* Lightbox nav */
.jcis-lb-close,
.jcis-lb-prev,
.jcis-lb-next {
    position: absolute;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: color .2s;
}
.jcis-lb-close {
    top: 20px;
    right: 24px;
    font-size: 36px;
}
.jcis-lb-close:hover { color: #ff5555; }

.jcis-lb-prev,
.jcis-lb-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 32px;
    background: rgba(255,255,255,.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jcis-lb-prev { left: 20px; }
.jcis-lb-next { right: 20px; }
.jcis-lb-prev:hover,
.jcis-lb-next:hover { background: rgba(123,31,255,.6); }

.jcis-lb-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    background: rgba(0,0,0,.5);
    padding: 4px 16px;
    border-radius: 20px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .jcis-thumb { width: 60px; height: 42px; }
    .jcis-nav { width: 36px; height: 36px; font-size: 16px; }
    .jcis-lb-prev, .jcis-lb-next { width: 40px; height: 40px; font-size: 24px; }
}
