﻿/* ---------- BASIS ---------- */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #222;
    background-color: #f7f8fa;
    line-height: 1.7;
}

/* ---------- HEADER MET FOTO (ansichtkaartstijl) ---------- */
.site-header {
    position: relative;
    height: 320px;
    background:
        linear-gradient(rgba(0, 60, 128, 0.45), rgba(0, 60, 128, 0.45)),
        url("images/bijbeldag1946.jpg") center 55%/cover no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.site-header h1 {
    margin: 0;
    font-size: 2.4rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.site-header a {
    color: #fff;
    text-decoration: none;
}

.site-header a:hover {
    text-decoration: underline;
}

.site-header .subtitle {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    font-weight: 300;
    color: #e8e8e8;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

/* ---- figure met caption --- */
figure {
    margin: 1.5em 0;
    text-align: center;
}

figure img {
    max-width: 100%;
    height: auto;
}

figcaption {
    font-size: 0.9em;
    color: #555;
    margin-top: 0.5em;
}

/* ---------- GALLERY (omzetting van frontpage photogallery) ---------- */


/* Grid Instellingen */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    justify-items: center;
}

/* Item Styling met Stippellijn */
.gallery-item {
    text-align: center;
    display: flex;    
    flex-direction: column;
    align-items: center;
    
    /* Standaard stippellijn rondom het item */
    border: 1px dashed #cccccc; 
    border-radius: 6px; 
    padding: 10px;
    background-color: #fcfcfc;
    box-shadow: none;
    transition: all 0.3s ease;
}

/* De thumbnail zelf */
.gallery-thumbnail {
    max-width: 100%;
    height: 100px;    
    object-fit: cover;    
    border: none;    
    padding: 0;    
    box-sizing: border-box;
}

/* Hover-effect om aan te geven dat het klikbaar is */
.gallery-item:hover {
    /* De stippellijn wordt effen en donkerder bij hover */
    border: 1px solid #999999;    
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.gallery-item:hover .gallery-thumbnail {
    transform: scale(1.02);    
}

/* --- CORRECTE BIJSCHRIFT STYLING --- */

/* 1. De Vette Titel Class (Alleen voor titels, bijv. "Bunge, Edouard") */
.caption-title {
    font-size: 1em;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #333;
    text-align: center;    
    max-width: 100%;
    padding: 0 5px;
}

/* 2. De Normale, Links Uitgelijnde Classes (Voor alle uitgebreide teksten, inclusief de oude .caption) */
.caption,
.caption-description {
    font-size: 0.8em;
    text-align: left; /* Voldoet aan de eis om links uitgelijnd te zijn */
    font-weight: normal; /* Voldoet aan de eis om niet vet te zijn */
    max-width: 100%;    
    padding: 0 5px;
    line-height: 1.3;
    color: #666;
    margin-top: 0;
}

/* ---------- NAVIGATIE (sticky bovenaan) ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-inner {
    max-width: 1024px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.25rem;
}

.nav-inner a {
    color: #004c99;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.25s ease;
}

.nav-inner a:hover,
.nav-inner a:focus {
    background-color: #004c99;
    color: #fff;
}

/* ---------- INHOUD ---------- */
.content {
    max-width: 1024px;
    margin: 2.5rem auto;
    background-color: #fff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}

.content h1, .content h2, .content h3 {
    color: #004c99;
    font-weight: 500;
    margin-top: 1.6em;
    margin-bottom: 0.8em;
}

.content p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ---------- FOOTER ---------- */
.site-footer {
    text-align: center;
    padding: 1.8rem 0;
    font-size: 0.9rem;
    color: #555;
    background-color: #f0f0f0;
    border-top: 1px solid #ddd;
}

.site-footer p {
    margin: 0;
}

/* ---------- RESPONSIEF MEDIA QUERIES ---------- */
@media (max-width: 900px) {
    .content {
        margin: 1.5rem;
        padding: 1.5rem;
    }
    .nav-inner a {
        padding: 0.6rem 0.9rem;
        font-size: 0.95rem;
    }
    .site-header h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .content {
        margin: 1rem;
        padding: 1.25rem;
    }
    .nav-inner {
        flex-direction: column;
        align-items: center;
    }
    .nav-inner a {
        width: 100%;
        text-align: center;
        padding: 0.75rem 0;
    }
    /* Galerij aanpassing voor kleine schermen */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px; 
    }
}
