:root {
    --primary-color: #4CAF50; /* Groen voor natuur/Center Parcs sfeer */
    --secondary-color: #388E3C;
    --background-color: #f7fdf7;
    --text-color: #333;
    --overlay-bg: rgba(0, 0, 0, 0.6);
    --slide-transition: 0.5s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
}

/* Slideshow Container */
.slideshow-container {
    position: relative;
    max-width: 1000px;
    width: 100%;
    height: 600px; /* Vaste hoogte voor desktop, responsive met media queries */
    background-color: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

#slide-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--slide-transition);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.media-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

img.media-content, video.media-content {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Zorg dat hele foto/video zichtbaar is */
}

/* Navigatie Knoppen */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
}

#prev-btn { left: 20px; }
#next-btn { right: 20px; }

/* Controles onder slideshow */
.controls {
    margin-top: 1rem;
    text-align: center;
}

#play-pause-btn {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#play-pause-btn:hover {
    background-color: var(--primary-color);
}

/* Thumbnails */
.thumbnails {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 2rem;
    max-width: 1000px;
}

.thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
    border: 2px solid transparent;
}

.thumb:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumb.active-thumb {
    opacity: 1;
    border-color: var(--primary-color);
}

footer {
    text-align: center;
    padding: 2rem;
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .slideshow-container {
        height: 300px;
    }
    
    .nav-btn {
        padding: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
}