/* =========================================
   1. ALGEMENE INSTELLINGEN & KLEUREN
   ========================================= */
:root {
    --hoofdkleur: #1a243d; /* Donkerblauw uit logo */
    --achtergrond: #f0f2f5;
    --wit: #ffffff;
    --border: #dddddd;
}

body {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: var(--achtergrond);
}

/* =========================================
   2. HEADER & NAVIGATIE (Gecentreerd)
   ========================================= */
.main-header {
    background-color: var(--hoofdkleur);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; 
    align-items: center;    
    text-align: center;
}

.logo img {
    height: 80px; 
    width: auto;
    margin-bottom: 5px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li a {
    color: var(--wit);
    text-decoration: none;
    padding: 10px 15px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1.5px;
}

nav ul li a:hover {
    color: #cbd5e0;
}

/* =========================================
   3. PROJECTEN GRID (VERKLEINDE MINIATUREN)
   ========================================= */
.image-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin-top: 20px;
    width: 100%;
}

.image-item {
    width: 100%;
    aspect-ratio: 1 / 1;    /* Houdt het vakje vierkant */
    border: 1px solid var(--border);
    background-color: var(--wit); /* Witvlak achter de verkleinde foto */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.image-item img {
    /* Dwingt de foto om binnen het vierkant te passen zonder in te zoomen */
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important; /* Toont de VOLLEDIGE foto verkleind */
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.image-item img:hover {
    transform: scale(1.05); /* Subtiele feedback */
}

/* =========================================
   4. LIGHTBOX (VERGROTING)
   ========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 36, 61, 0.95);
}

.lightbox:target {
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain !important;
    border: 4px solid var(--wit);
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--wit);
    font-size: 50px;
    text-decoration: none;
    font-weight: bold;
}

/* =========================================
   5. ALGEMENE SECTIES & CONTACT
   ========================================= */
main {
    padding: 20px;
    max-width: 1000px;
    margin: auto;
    min-height: 60vh;
}

section {
    background: var(--wit);
    padding: 25px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    color: var(--hoofdkleur);
    border-bottom: 2px solid var(--hoofdkleur);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contact-form {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 10px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-family: inherit;
    font-size: 16px;
}

.submit-button {
    background-color: var(--hoofdkleur);
    color: var(--wit);
    padding: 12px;
    border: none;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background-color: var(--hoofdkleur);
    color: var(--wit);
    padding: 30px 20px;
    text-align: center;
    font-size: 0.85rem;
}

.footer-info h3 { margin: 0 0 5px 0; text-transform: uppercase; }
.footer-info p { margin: 2px 0; opacity: 0.8; }
.footer-bottom { margin-top: 15px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.1); opacity: 0.6; }

/* =========================================
   7. MOBIELE WEERGAVE
   ========================================= */
@media (max-width: 768px) {
    .logo img { height: 60px; }
    nav ul { flex-direction: column; }
    nav ul li a { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }
    
    .image-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Navigatie pijlen in Lightbox */
.lightbox .prev, .lightbox .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    text-decoration: none;
    user-select: none;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

.lightbox .prev:hover, .lightbox .next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Zorg dat het kruisje (close) boven de pijlen staat */
.lightbox .close {
    z-index: 10001;
}