/* =========================================================
   Simple Carousel Plugin v3.0 — Stylesheet
   ========================================================= */

/* ── Wrapper ── */
.simple-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    outline: none;
}

/* ── Track (slide modus) ── */
.carousel-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
    will-change: transform;
}

/* ── Track (fade modus) ── */
.scp-transition-fade .carousel-track {
    display: block;
    position: relative;
}

.scp-transition-fade .carousel-item {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    flex: none !important;
}

.scp-transition-fade .carousel-item.scp-fade-active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

/* ── Item — breedte via CSS variabele ── */
.carousel-item {
    flex: 0 0 calc(100% / var(--scp-visible, 3));
    box-sizing: border-box;
    padding: 8px;
    display: flex;
}

/* ── Card ── */
.carousel-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.carousel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.13);
}

/* ── Afbeelding ── */
.carousel-img-wrap {
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.carousel-img-wrap img {
    width: 100%;
    height: auto;
    max-height: var(--scp-height, 300px);
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

/* Lightbox cursor */
.simple-carousel[data-lightbox="1"] .carousel-img-wrap {
    cursor: zoom-in;
}

.simple-carousel[data-lightbox="1"] .carousel-img-wrap:hover img {
    transform: scale(1.02);
}

/* ── Tekstbox — onder afbeelding (default) ── */
.carousel-text-box {
    padding: 12px 14px;
    border-top: 1px solid #eee;
    background: var(--scp-box-bg, #ffffff);
    color:      var(--scp-text-color, #222222);
    font-size:  var(--scp-font-size, 15px);
    line-height: 1.55;
}

.carousel-slide-title {
    display: block;
    font-size: calc(var(--scp-font-size, 15px) + 1px);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--scp-text-color, #222222);
}

.carousel-slide-text {
    color: var(--scp-text-color, #222222);
    margin-bottom: 4px;
}

.carousel-slide-link {
    display: inline-block;
    font-size: 13px;
    color: inherit;
    opacity: .7;
    text-decoration: underline;
    margin-top: 4px;
}

/* ── Tekstbox — overlay over afbeelding ── */
.scp-text-overlay .carousel-card {
    position: relative;
}

.scp-text-overlay .carousel-text-box {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    border-top: none;
    background: var(--scp-box-bg, rgba(0,0,0,0.55));
    color: var(--scp-text-color, #ffffff);
    padding: 10px 14px;
    z-index: 2;
}

.scp-text-overlay .carousel-slide-title {
    color: var(--scp-text-color, #ffffff);
}

.scp-text-overlay .carousel-slide-text {
    color: var(--scp-text-color, #ffffff);
}

.scp-text-overlay .carousel-img-wrap img {
    max-height: var(--scp-height, 300px);
}

/* ── Dots ── */
.carousel-dots {
    display: block;
    text-align: center;
    margin-top: 10px;
    padding-bottom: 4px;
    width: 100%;
}

.carousel-dots .dot {
    display: inline-block;
    width: 9px; height: 9px;
    margin: 4px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.carousel-dots .dot.active {
    background: #444;
    transform: scale(1.3);
}

/* ── Pijlen ── */
.scp-prev, .scp-next {
    position: absolute;
    top: calc(var(--scp-height, 300px) / 2);
    transform: translateY(-50%);
    z-index: 10;
    background: var(--scp-arrow-bg, rgba(0,0,0,0.55));
    color: var(--scp-arrow-color, #ffffff);
    border: none;
    padding: 10px 13px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s, transform 0.15s;
}

.scp-prev:hover, .scp-next:hover {
    filter: brightness(1.2);
    transform: translateY(-50%) scale(1.05);
}

.scp-prev { left: 6px; }
.scp-next { right: 6px; }

/* ── Lightbox ── */
.scp-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.scp-lightbox.open {
    display: flex;
}

.scp-lb-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 94vw;
    max-height: 88vh;
}

.scp-lb-img {
    max-width: 92vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    transition: opacity 0.25s ease;
}

.scp-lb-caption {
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
    max-width: 600px;
}

.scp-lb-close {
    position: fixed;
    top: 18px; right: 24px;
    color: #fff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 100000;
    opacity: .8;
    transition: opacity .15s;
}
.scp-lb-close:hover { opacity: 1; }

.scp-lb-prev, .scp-lb-next {
    position: fixed;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: none;
    padding: 14px 16px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 100000;
    transition: background .15s;
}
.scp-lb-prev:hover, .scp-lb-next:hover { background: rgba(255,255,255,0.25); }
.scp-lb-prev { left: 16px; }
.scp-lb-next { right: 16px; }

/* ── Tablet ── */
@media (max-width: 1024px) {
    .carousel-item {
        flex: 0 0 calc(100% / max(1, calc(var(--scp-visible, 3) / 2)));
    }
}

/* ── Mobiel ── */
@media (max-width: 600px) {
    .carousel-item {
        flex: 0 0 100%;
        padding: 5px;
    }
    .carousel-img-wrap img {
        max-height: min(var(--scp-height, 300px), 65vw);
    }
    .scp-prev { left: 2px; }
    .scp-next { right: 2px; }
    .scp-lb-prev { left: 4px; padding: 10px 12px; }
    .scp-lb-next { right: 4px; padding: 10px 12px; }
}
