/* =========================
   Basis – warm & rustig
   ========================= */

body {
    margin: 0;
    padding: 0;
    font-family: "Georgia", "Times New Roman", serif;
    color: #2a2a2a;

    /* Warm pastel, geen patroon */
    background-color: #f1eee9;

    /* Zeer subtiele lichtzweem (impressionistisch) */
    background-image:
        radial-gradient(circle at 25% 30%, rgba(255, 242, 220, 0.35), transparent 60%),
        radial-gradient(circle at 75% 70%, rgba(235, 230, 215, 0.25), transparent 65%);
}

/* Centrale inhoud */
.page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================
   Hoofding
   ========================= */

header {
    text-align: center;
    margin: 70px 0 50px;
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: normal;
    letter-spacing: 0.04em;
}

/* =========================
   Rubriektitel
   ========================= */

h2 {
    text-align: center;
    font-weight: normal;
    margin-bottom: 30px;
}

/* =========================
   Gallery raster
   ========================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Thumbnail-vak */
.gallery a {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e6e1d9;
}

/* Thumbnail-afbeelding */
.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================
   Paginering
   ========================= */

.pagination {
    text-align: center;
    margin: 30px 0;
}

.pagination a {
    margin: 0 12px;
    text-decoration: none;
    color: #2a2a2a;
}

/* =========================
   Lightbox (grote foto)
   ========================= */

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

#lightbox.open {
    display: flex;
}

#lightbox .lb-inner {
    position: relative;
    width: 90vw;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightbox img {
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

/* Navigatieknoppen */
#lightbox button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #f2f2f2;
    font-size: 2.2em;
    cursor: pointer;
    padding: 0 15px;
    opacity: 0.85;
}

#lightbox button:hover {
    opacity: 1;
}

#lightbox .lb-prev {
    left: -50px;
}

#lightbox .lb-next {
    right: -50px;
}
/* =========================
   Homepagina
   ========================= */

.home header h1 {
    font-size: 2.4em;
    letter-spacing: 0.06em;
}

.home-wrapper {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-grid {
    max-width: 1200px;
    margin: 80px auto 120px;   /* DIT is de sleutel */
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 40px;
}

.home-item {
    text-decoration: none;
    color: #2a2a2a;
    text-align: center;
}

.home-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #e6e1d9;
}

.home-item span {
    display: block;
    margin-top: 14px;
    font-size: 1.1em;
    letter-spacing: 0.05em;
}

/* =========================
   Grote klikzones voor navigatie (lightbox)
   ========================= */

#lightbox .lb-prev,
#lightbox .lb-next {
    width: 25vw;          /* groot klikgebied */
    height: 100vh;        /* volledige schermhoogte */
    top: 0;
    transform: none;
    display: flex;
    align-items: center;
}

#lightbox .lb-prev {
    left: 0;
    justify-content: flex-start;
}

#lightbox .lb-next {
    right: 0;
    justify-content: flex-end;
}

/* Pijltje iets naar binnen */
#lightbox button {
    padding: 0 30px;
}

/* =========================
   Home footer
   ========================= */

.home-footer {
    max-width: 1200px;
    margin: 20px auto 60px;
    padding: 0 40px;
    text-align: center;
    font-size: 1.1em;
    letter-spacing: 0.08em;
    color: #444;
}
