/* ============================================================
   Slider Lightbox – stylesheet
   ============================================================ */

/* ---------- WRAPPER ---------- */
.slb-wrap {
    position: relative;
    width: 100%;
    margin: 0 auto;
    user-select: none;
}

/* ---------- SLIDER ---------- */
.slb-slider {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: transparent;
}

.slb-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

.slb-slide {
    min-width: 100%;
    position: relative;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slb-slide .slb-open {
    display: flex !important;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    line-height: 0;
    width: 100%;
}

.slb-img {
    width: 100%;
    height: auto;
    max-height: var(--slb-height, 500px);
    object-fit: contain;
    display: block !important;
    margin: 0 auto !important;
    background: transparent;
    transition: transform 0.4s ease, opacity 0.3s ease;
    mix-blend-mode: normal !important;
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none;
}

.slb-slide .slb-open:hover .slb-img {
    transform: scale(1.03);
    opacity: .9;
}

/* zoom icon removed */

/* caption */
.slb-caption {
    margin: 0;
    padding: 8px 12px;
    font-size: .85rem;
    color: #555;
    text-align: center;
    background: #fafafa;
    border-top: 1px solid #eee;
    border-radius: 0 0 4px 4px;
}

/* ---------- PREV / NEXT ---------- */
.slb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    width: 40px;
    height: 56px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    border-radius: 3px;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.slb-btn:hover  { background: rgba(0,0,0,.75); }
.slb-prev       { left: 0; }
.slb-next       { right: 0; }

/* ---------- DOTS ---------- */
.slb-dots {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 10px 0 4px;
}
.slb-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #aaa;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background .2s, border-color .2s, transform .2s;
}
.slb-dot:hover       { border-color: #555; }
.slb-dot.is-active   { background: #333; border-color: #333; transform: scale(1.2); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.slb-lightbox {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: #000 !important;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 60px 20px 20px;
    box-sizing: border-box;
    animation: slb-fade-in .2s ease;
    mix-blend-mode: normal !important;
    filter: none !important;
    opacity: 1 !important;
    margin: 0 !important;
    transform: none !important;
}
.slb-lightbox.is-open { display: flex; }

@keyframes slb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* track */
.slb-lb-track {
    position: relative;
    display: block;
    max-width: min(1400px, 96vw);
    width: 100%;
    margin: 0 auto;
}

.slb-lb-slide {
    display: none;   /* JS shows the active one */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.slb-lb-slide img {
    max-width: min(var(--slb-lb-size, 800px), 90vw);
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block !important;
    border-radius: 3px;
    box-shadow: 0 8px 48px rgba(0,0,0,.6);
    animation: slb-img-in .3s ease;
    margin: 0 auto !important;
    left: auto !important;
    right: auto !important;
    position: relative !important;
    mix-blend-mode: normal !important;
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    background: transparent !important;
    transform-origin: center center;
}

@keyframes slb-img-in {
    from { opacity: 0; transform: scale(.97); }
    to   { opacity: 1; transform: scale(1); }
}

.slb-lb-caption {
    margin: 10px 0 0;
    color: #ccc;
    font-size: .88rem;
    text-align: center;
    max-width: 600px;
}

/* close */
.slb-lb-close {
    position: fixed;
    top: 14px;
    right: 18px;
    z-index: 99999;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    opacity: .7;
    transition: opacity .2s, transform .2s;
    padding: 0;
}
.slb-lb-close:hover { opacity: 1; transform: scale(1.15) rotate(90deg); }

/* lb prev/next */
.slb-lb-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99995;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 42px;
    width: 52px;
    height: 80px;
    cursor: pointer;
    border-radius: 4px;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.slb-lb-btn:hover   { background: rgba(255,255,255,.28); }
.slb-lb-prev        { left: 10px; }
.slb-lb-next        { right: 10px; }

/* counter */
.slb-lb-counter {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.6);
    font-size: .85rem;
    letter-spacing: .05em;
}

/* ---------- Accessibility: focus ring ---------- */
.slb-btn:focus-visible,
.slb-dot:focus-visible,
.slb-lb-close:focus-visible,
.slb-lb-btn:focus-visible,
.slb-open:focus-visible { outline: 2px solid #4af; outline-offset: 2px; }

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
    .slb-lb-btn { font-size: 30px; width: 38px; height: 60px; }
    .slb-btn    { width: 32px; height: 48px; font-size: 22px; }
}
