/* ========================================
   1. ALGEMENE PAGINA-OPMAAK
   Basisopmaak voor de hele website
   ======================================== */

body {

    margin: 0;

    background: #f8f8f5;

    color: #333;

    font-family: Arial, Helvetica, sans-serif;

}

main {

    max-width: 1200px;

    margin: auto;

    padding: 40px;

}


/* ========================================
   2. HEADER
   Titel en subtitel bovenaan de website
   ======================================== */

header {

    text-align: center;

    padding: 50px 20px;

    background: white;

    border-bottom: 1px solid #ddd;

}

h1 {

    margin: 0;

    font-family: Georgia, serif;

    font-size: 48px;

    font-weight: normal;

}

.subtitle {

    margin-top: 12px;

    color: #777;

    font-size: 20px;

}


/* ========================================
   3. HERO
   Grote uitgelichte afbeelding bovenaan
   ======================================== */

.hero img {

    width: 100%;

    border-radius: 8px;

    box-shadow: 0 8px 25px rgba(0,0,0,.15);

}


/* ========================================
   4. WELKOM
   Introductietekst op de homepage
   ======================================== */

.welcome {

    margin-top: 50px;

}

.welcome h2 {

    font-family: Georgia, serif;

    font-size: 32px;

}

.welcome p {
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.7;
    color: #444;
}


/* ========================================
   5. GALERIE EN SCHILDERIJEN
   Raster met schilderijen en titels
   ======================================== */

.gallery {

    margin-top: 80px;

}

.gallery h2 {

    font-family: Georgia, serif;

    font-size: 32px;

    margin-bottom: 25px;

}

.gallery-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 32px;

}

.gallery-grid img {

    width: 100%;

    display: block;

    border-radius: 0px;

    box-shadow: 0 3px 10px rgba(0,0,0,.12);

    cursor: pointer;

}

.painting-card p {
    margin: 12px 0 0 0;
    font-family: Georgia, serif;
    font-size: 18px;
    color: #555;
    text-align: center;
}


/* ========================================
   6. LIGHTBOX
   Vergrote weergave van schilderijen
   ======================================== */

.lightbox {

    display: none;

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.95);

    align-items: center;
    justify-content: center;
    flex-direction: column;

    z-index: 1000;

}

.lightbox img {

    max-width: 90%;
    max-height: 90%;

    object-fit: contain;

    /* Geen klik-handje: de vergrote afbeelding is niet aanklikbaar.
       De lightbox wordt gesloten met de X. */
    cursor: default;

}

.lightbox-close {

    position: absolute;

    top: 20px;
    right: 30px;

    font-size: 40px;

    color: white;

    background: none;

    border: none;

    cursor: pointer;

}

.lightbox-info {
    text-align: center;
    color: white;
    margin-top: 18px;
    font-family: Georgia, serif;
}

.lightbox-info h3 {
    margin: 0 0 6px 0;
    font-size: 28px;
    font-weight: normal;
}

.lightbox-info p {
    margin: 0;
    font-size: 20px;
    color: #ccc;
}


/* ========================================
   7. OVER JOHAN
   Sectie onder de galerie op de homepage
   ======================================== */

.about-johan {
    margin-top: 90px;
    padding-top: 50px;
    border-top: 1px solid #ddd;

    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    align-items: center;
}

.about-johan img {
    width: 100%;
    display: block;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}

.about-johan h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: normal;
}

.about-johan p {
    margin-bottom: 20px;
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.7;
    color: #444;
}

.about-johan a {
    font-family: Georgia, serif;
    font-size: 18px;
    color: #555;
    text-decoration: none;
}

.about-johan a:hover {
    text-decoration: underline;
}


/* ========================================
   8. ESSAYPAGINA
   Johan's verhaal 'De Worsteling'
   ======================================== */

.essay {
    max-width: 760px;
    margin: 0 auto;
}

.essay h2 {
    font-family: Georgia, serif;
    font-size: 38px;
    font-weight: normal;
    margin-bottom: 8px;
}

.essay-subtitle {
    margin-top: 0;
    margin-bottom: 40px;
    font-family: Georgia, serif;
    font-size: 20px;
    font-style: italic;
    color: #777;
}

.essay h3 {
    margin-top: 38px;
    margin-bottom: 12px;
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: normal;
}

.essay p {
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.7;
    color: #444;
}

.essay-photo {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
}


/* ========================================
   9. NAVIGATIE ESSAYPAGINA
   Link onder het essay terug naar de galerie
   ======================================== */

.back-link {
    display: inline-block;
    margin-top: 40px;
    font-family: Georgia, serif;
    font-size: 18px;
    color: #555;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}
