/* ✅ Algemene styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    padding: 10px;
    margin: 0;
}

/* ✅ Hero-sectie */
.productie-header {
    text-align: center;
    padding: 40px 20px;
}

.productie-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d4af37;
    text-transform: uppercase;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.productie-info {
    text-align: center;
    font-size: 1.2rem;
    color: #555;
    margin-top: 10px;
}

/* ✅ Gelijke breedte voor tekst en slider */
.productie-beschrijving,
.productie-slider-container {
    max-width: 900px; /* 🔥 Exact dezelfde breedte */
    margin: 20px auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* ✅ Beschrijving */
.productie-beschrijving {
    padding: 25px;
    text-align: center;
}

/* ✅ Slider-container */
.productie-slider-container {
    padding: 25px; /* 🔥 Zelfde padding als .productie-beschrijving voor een gelijke breedte */
}

/* ✅ Slider */
.slider-container {
    width: 100%; /* 🔥 Past zich aan aan de .productie-slider-container */
    margin: 0 auto;
    position: relative;
    touch-action: pan-y;
    overflow: hidden;
    border-radius: 10px;
}

/* ✅ Hoofdafbeelding op maximale breedte */
.slider-image {
    display: none;
    width: 100%;
    border-radius: 10px;
}

.slider-image.active {
    display: block;
}

/* ✅ Pijlen altijd op de voorgrond en zichtbaar */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    z-index: 9999;
}

.prev { left: 2%; }
.next { right: 2%; }

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* ✅ Thumbnails-container */
.thumbnails-container {
    position: relative;
    max-width: 900px;
    margin: 10px auto;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    padding: 10px 0;
    justify-content: center;
    max-width: 100%;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: transform 0.2s ease-in-out, opacity 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover,
.thumbnail.active {
    transform: scale(1.1);
    opacity: 1;
    border: 2px solid #d4af37;
}

/* ✅ Automatische sliding van de thumbnails */
.thumbnails::-webkit-scrollbar {
    display: none;
}

/* ✅ Swipe voorkomen dat pagina schuift */
html, body {
    overscroll-behavior: contain;
}

/* ✅ Screenshot blokkeren (voor zover technisch mogelijk) */
@media screen and (max-width: 800px) {
    body {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
}

/* ✅ Voorkomen van het opslaan van afbeeldingen */
img {
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* ✅ Terug-link */
.terug-link {
    display: block;
    text-align: center;
    margin: 30px auto;
    font-size: 16px;
    color: #d4af37;
    text-decoration: none;
}

.terug-link:hover {
    text-decoration: underline;
}

/* ✅ Responsiviteit */
@media (max-width: 900px) {
    .productie-beschrijving,
    .productie-slider-container {
        max-width: 600px;
    }

    .thumbnails-container {
        max-width: 500px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 600px) {
    .productie-beschrijving,
    .productie-slider-container {
        max-width: 400px;
    }

    .thumbnails-container {
        max-width: 320px;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .prev, .next {
        padding: 10px 15px;
        font-size: 18px;
    }
}
