/* Algemene reset en body styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    background-color: #f5ecda; /* kleur achtergrondkleur */
    color: #333;
    max-width: 100vw;
    overflow-x: hidden; /* Voorkomt horizontale scrollbars */
    padding: 0 20px; /* Zorg ervoor dat er altijd 20px ruimte is links en rechts op mobiel */
}

/* Header en logo */
header {
    background-color: #f08505; /* kleur header */
    padding: 10px 0;
    text-align: center;
}

header .logo img {
    width: 100%;
    max-width: 350px; /* Maximaal logo grootte van 350px */
    height: auto;
}

/* Navigatie */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f08505; /* Donker groene balk */
    padding: 10px 20px;
}

.navbar .nav-links {
    list-style: none;
    display: flex;
}

.navbar .nav-links li {
    margin: 0 15px;
}

.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.navbar .hamburger {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Mobile menu toggle */
.navbar.active .nav-links {
    display: block;
    width: 100%;
    text-align: center;
    padding-top: 20px;
}

.navbar .nav-links li {
    margin: 10px 0;
}

.navbar .nav-links a {
    font-size: 20px;
    padding: 10px 0;
    display: block;
}

/* Media queries voor navigatie */
@media (max-width: 768px) {
    .navbar .nav-links {
        display: none;
    }

    .navbar .hamburger {
        display: block;
    }
}

/* Main Content */
main {
    padding: 40px 20px;
    text-align: center;
}

/* Stijl voor de modale pop-up */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    text-align: center;
    color: #ccc;
    font-size: 18px;
    padding: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Stijl voor de modale pop-up */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Responsieve aanpassing voor afbeeldingen */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-width: 95%;
        height: auto;
    }
}

#caption {
    text-align: center;
    color: #ccc;
    font-size: 18px;
    padding: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 36px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}


/* Media Section - Afbeeldingen en Video's */
.media {
    margin-top: 40px;
}

.media h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));  /* Kolommen passen zich aan het scherm aan */
    gap: 20px;
}

.media-item {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    overflow: hidden;  /* Zorg ervoor dat media-elementen niet buiten hun container vallen */
}

.media-item img,
.media-item video {
    width: 100%;    /* Zorg ervoor dat de media-items de volledige breedte van hun container innemen */
    height: auto;   /* Zorg ervoor dat de hoogte proportioneel blijft */
    max-width: 100%; /* Zorg ervoor dat de media-items zich niet groter maken dan hun container */
    max-height: 350px; /* Maximaal 350px hoog, dit voorkomt dat ze te groot worden */
    object-fit: contain; /* Zorg ervoor dat de afbeelding/video binnen de container past, zonder vervorming */
    border-radius: 8px;
    display: block; /* Voorkom ongewenste marge rond de media */
    margin: 0 auto; /* Centreer de afbeelding/video */
}

.media-item p {
    margin-top: 10px;
    font-size: 16px;
}

/* Media queries voor kleinere schermen */
@media (max-width: 768px) {
    .media-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Kleinere kolommen op kleinere schermen */
    }

    .media-item {
        padding: 10px;  /* Minder padding op kleine schermen */
    }

    .media-item p {
        font-size: 14px;  /* Kleinere tekst op kleine schermen */
    }

    .media-item img,
    .media-item video {
        max-width: 100%;  /* Zorg ervoor dat media altijd goed schaalt op kleinere schermen */
        width: 100%;  /* Zorg ervoor dat ze niet buiten de viewport vallen */
    }
}

@media (max-width: 480px) {
    .media-item {
        padding: 5px;  /* Nog minder padding op zeer kleine schermen */
    }

    .media-item img,
    .media-item video {
        max-width: 100%; /* Zorg ervoor dat de media-elementen zich volledig aanpassen */
    }

    .media-item p {
        font-size: 12px;  /* Nog kleinere tekst op zeer kleine schermen */
    }
}

/* Footer */
footer {
    background-color: #f08505; /* kleur footer */
    color: white;
    text-align: center;
    padding: 20px 0;
}

footer p {
    font-size: 16px;
}
