* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    line-height: 1.6;
    background-color: #0f161d; /* Nieuwe achtergrondkleur */
    padding-bottom: 60px; /* zorg ervoor dat de body voldoende padding heeft zodat de footer niet over de inhoud heen ligt */
}

/* Header - navigatie*/

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}


nav {
    background-color: #2a5a8d;
    padding: 0.2rem 0;
    font-size: 25px;
    /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem; 
    padding-right: 2rem;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.5rem;
    transition: background-color 0.3s ease;
}

.nav-links li a:hover {
    background-color: #0f161d; /* Donkerder blauw */
}

.logo {
    font-size: 2rem;
    font-family: "Open Sans", sans-serif;
    font-weight: 600;
    color: #0f161d;
    padding-left: 2rem;
}

/* Mobiele menu */
.burger {
    display: none;
    cursor: pointer;
    padding-right: 2rem;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: #2a5a8d;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transition: 0.5s;
    }

    .nav-links.active {
        right: 0;
    }

    .burger {
        display: block;
    }

    .about-content {
        grid-template-columns: 1fr;
    }
}

.burger.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.burger.toggle .line2 {
    opacity: 0;
}
.burger.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* main onder menu */

main {
    margin-top: 73px; /* Gelijk aan de hoogte van je header */
}

/* Responsive aanpassing voor mobiel */
@media screen and (max-width: 768px) {
    main {
        margin-top: 60px; /* Kleinere marge voor mobiel */
    }
}

/* Container voor centreren en max breedte */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 1rem; /* Ruimte boven menu en hero */
}


/* Headerafbeelding styling */
.header-image {
    max-width: 1420px;
    margin: 0 auto;
    height: 400px;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.1); */
}

.header-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Mobiele aanpassingen */
@media (max-width: 1600px) {
    .header-image {
        margin: 0 20px;
        width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    .header-image {
        height: 250px;
        margin: 0 10px;
        width: calc(100% - 20px);
        border-radius: 8px;
    }
}


/* Paginatitels */
main h1 {
    font-family: "Open Sans", sans-serif;
    font-weight: 500;
    text-align: center;
    margin: 1rem 0;
    color: #3673b4;
    font-size: 2.5rem;
    padding-top: 1rem;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 1rem 2rem 2rem;
    background-color: #20303f; 
    border-radius: 10pt; /* afgeronde hoeken */
    margin: -0.5rem 20px 0.5rem 20px;
}

.hero .subtitle {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.2rem;
    color: #8298bd; /* Donkergrijs-blauw */
    line-height: 1.6;
}

.view-all-link {
    text-align: center;
    margin: 1rem 0;
    padding: 10px 0;
}

.view-all-link a {
    color: #5f6e86;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.view-all-link a:hover {
    color: #1a3a5d;
    border-bottom-color: currentColor;
}

/* Werk grid Homepage */
.werk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 2rem;
    background-color: #20303f;
    border-radius: 10px;
    margin: 0 20px 0 20px;
}

.werk-item {
    height: 300px; /* Vaste hoogte */
    background-color: #414f5f; /* grijze achtergrond */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.schilderij-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Toont hele afbeelding zonder bijsnijden */
    border: 2px solid #dee2e6; /*Lichtgrijze rand */
    background-color: white; /* Witte achtergrond voor transparante PNG's */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Css voor Werk */

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Bepaal hier de grootte van de tegels: 250px */
    gap: 2rem;
    padding: 2rem;
}

.artwork-item {
    position: relative;
    aspect-ratio: 1/1;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.3s ease;
    overflow: hidden; /* Belangrijk voor hover-text positioning */
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #414f5f;
    border-radius: 8px;
    overflow: hidden;
}

.artwork-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.artwork-hover-text {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.5); /* dat laatste getal 0.5 geeft de transparantie aan */
    color: white;
    padding: 0.5rem;
    text-align: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.artwork-item:hover {
    transform: translateY(-5px);
}

.artwork-item:hover .artwork-hover-text {
    opacity: 1;
    bottom: 0;
}

/* Fullscreen Overlay */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
}

.overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    margin: 2% auto;
    text-align: center;
}

.fullscreen-img {
    max-height: 70vh;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    border: 10px solid rgba(255, 255, 255, 0.534);
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 1001;
    display: none; /* Verberg het kruisje */
}

.overlay-content {
    cursor: pointer; /* Laat zien dat je kunt klikken om te sluiten */
}

.artwork-info {
    color: white;
    padding: 20px;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .artwork-grid {
        grid-template-columns: 1fr;
    }
    
    .fullscreen-img {
        max-height: 50vh;
    }
}

/* Navigatiepijlen */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 1001;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    background: rgba(216, 216, 216, 0.2);
    border-radius: 50%;
    padding: 10px;
}

.nav-arrow:hover {
    opacity: 1;
    background: rgba(0,0,0,0.8);
}

.left-arrow {
    left: 20px;
}

.right-arrow {
    right: 20px;
}

.nav-arrow svg {
    display: block;
}

.close-btn {
    display: block !important;
    top: 20px;
    right: 30px;
    font-size: 50px;
    opacity: 0.7;
}

.close-btn:hover {
    opacity: 1;
    font-weight: bold;
}


/* Over Esther pagina */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    background-color: #647b93;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-content img {
    width: 100%;
    border-radius: 8px;
    border: 2px solid #dee2e6;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #c7ddf7;
}

.about-text p:first-of-type {
    font-weight: 500;
}

/* Aanpassingen voor smallere tekst */
.about-text {
    max-width: 800px; /* Beperk de maximale breedte */
    margin: 0 auto; /* Centreer de tekstblokken */
}

.text-column {
    column-width: 300px; /* Verdeel in smallere kolommen */
    column-gap: 3rem;
    line-height: 1.7;
}

@media screen and (min-width: 768px) {
    .text-column {
        column-count: 2; /* Twee kolommen op desktop */
    }
}

/* Om te zorgen dat op een mobiel de foto boven de tekst komt te staan: */
@media screen and (max-width: 767px) {
    /* Over mij sectie aanpassingen */
    .about-content {
        grid-template-columns: 1fr; /* Maak 1 kolom */
        gap: 0;
        padding: 1.5rem; /* Iets minder padding op mobiel */
    }
    
    .about-content img {
        width: 70%; /* Kleinere breedte voor betere pasvorm */
        margin: 0 auto 2rem; /* Centreer + ruimte onder */
    }
    
    .about-text {
        text-align: left; /* Behoud leesrichting */
        padding: 0 1rem; /* Zijpadding voor tekst */
    }

    /* Optioneel: basisstijl voor tekstkolommen resetten */
    .text-column {
        column-count: 1;
    }
    
    /* Container aanpassing voor betere spacing */
    .container {
        margin-top: 0.5rem;
        padding: 0 15px;
    }
}

/* Contactformulier */

.contactcontainer {
    display: flex; /* Activeert flexbox */
    justify-content: center; /* Horizontaal centreren */
    align-items: center; /* Verticaal centreren */
    height: 100%; /* Zorgt ervoor dat de container de volledige viewport-hoogte inneemt */
  }
  
  iframe {
    max-width: 100%; /* zorg ervoor dat de iframe niet breder is dan zijn container */
  }

/* footer */

footer {
    /*background-color: #f0f0f0;  Optioneel: Achtergrondkleur voor de footer */
    padding: 20px 0;
    text-align: center;
    /* position: fixed; */
    bottom: 0;
    width: 100%;
}

footer p {
    font-size: 0.8em; /* Kleine letters */
    color: rgb(100, 188, 218);
    margin: 0;
}

footer a {
    color: lightblue; /* Link kleur */
    text-decoration: none; /* Verwijdert de onderstreping van de link */
}

footer a:hover {
    text-decoration: underline; /* Onderstreep de link bij hover */
}


