/* 1. Basis instellingen */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

* {
    box-sizing: border-box;
}

/* 2. Logo */
.logo-balk {
    width: 100%;
    line-height: 0;
    display: block;
}

.logo-balk img {
    width: 100%;
    height: auto;
    display: block;
}

/* 3. Navigatie */
nav {
    border-bottom: 2px solid #66FF00;
    padding: 10px 0;
    text-align: center;
    background-color: #ffffff;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

nav ul li a.active {
    color: #66FF00;
}

/* 4. Inhoud Container */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.6;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #000;
}

/* 5. Categorie Grid (voor voorbeelden.html) */
.categorie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.categorie-item {
    display: block;
    background-color: #f4f4f4;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.2s;
}

.categorie-item:hover {
    background-color: #66FF00;
    color: #000;
    border-color: #66FF00;
    transform: translateY(-3px);
}

/* 6. Fotogalerij Thumbnails (voor de subpagina's) */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
    cursor: pointer;
    display: block;
    transition: transform 0.2s;
}

.gallery-item img:hover {
    transform: scale(1.02);
    border-color: #66FF00;
}

/* 7. Lightbox (Grote weergave fix) */
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
}

.lightbox:target {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox img {
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 80vh !important;
    object-fit: contain !important;
    border: 3px solid white;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 50px;
    text-decoration: none;
    font-weight: bold;
}

/* 8. Mobiele aanpassingen */
@media (max-width: 600px) {
    nav { padding: 6px 0; }
    nav ul li { margin: 0 8px; }
    nav ul li a { font-size: 0.75rem; }
    h1 { font-size: 1.5rem; }
    .container { margin-top: 25px; }
    
    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }
    
    .gallery-item img {
        height: 150px;
    }

    .close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}