/* ================================
   RESET
   ================================ */

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


/* ================================
   BASE
   ================================ */

body {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #a1d3e8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}


/* ================================
   HEADER & NAV
   ================================ */

header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.logo {
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    color: #222;
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #222;
}

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


/* ================================
   FOOTER
   ================================ */

footer {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.socials {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.socials a {
    text-decoration: none;
    color: #222;
}

.socials a:hover {
    color: #888;
}


/* ================================
   HOME
   ================================ */

.hero {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-text p {
    font-size: 1.25rem;
}


/* ================================
   GALLERY
   ================================ */

.gallery-intro {
    max-width: 1600px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.gallery-intro h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.gallery-intro p {
    color: #666;
}

.gallery {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.2s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}

.gallery-caption {
    padding: 1rem 0;
}

.gallery-caption h2 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.gallery-caption p {
    color: #666;
    font-size: 0.9rem;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}


/* speciale layout voor 3 boven + 2 gecentreerd onder */
.project-gallery .gallery-item:nth-child(4) {
    grid-column: 1 / 2;
    justify-self: end;
}

.project-gallery .gallery-item:nth-child(5) {
    grid-column: 3 / 4;
    justify-self: start;
}


/* ================================
   ABOUT
   ================================ */

main.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about {
    max-width: 900px;
    margin: auto;
    padding: 2rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.about-portrait {
    width: 300px;
    height: 500px;
    object-fit: cover;
    flex-shrink: 0;
}

.about-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.about-text p {
    color: #444;
    margin-bottom: 1rem;
}


/* ================================
   RESUME
   ================================ */

.resume-page {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.resume-header h1 {
    font-size: 2rem;
}

.pdf-button {
    text-decoration: none;
    color: #222;
    border: 1px solid #222;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.pdf-button:hover {
    background-color: #222;
    color: #fff;
}

.resume-pdf {
    width: 100%;
    display: block;
    border: 1px solid #eee;
    margin-bottom: 3rem;
}

.resume-section {
    margin-bottom: 2.5rem;
}

.resume-section h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.resume-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.resume-year {
    width: 110px;
    flex-shrink: 0;
    color: #888;
    font-size: 0.9rem;
    padding-top: 0.1rem;
}

.resume-item h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.resume-item p {
    color: #666;
    font-size: 0.9rem;
}

.resume-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.resume-list li {
    color: #444;
    font-size: 0.95rem;
}


/* ================================
   CONTACT
   ================================ */

.contact-links {
    max-width: 600px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.contact-links h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-links p {
    color: #666;
    margin-bottom: 2rem;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    text-decoration: none;
    color: #222;
    border: 1px solid #222;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
}

.contact-btn:hover {
    background-color: #222;
    color: #fff;
}


/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .about {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

@media (max-width: 600px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.project-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

.project-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.project-row .gallery-item {
    width: 30%;
}

.project-row.bottom {
    justify-content: center;
}

.project-row.bottom .gallery-item {
    width: 30%;
}

/* ================================
   MODERN LIVING
   ================================ */

.modern-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;

    align-items: start;
}

/* rechterkant bepaalt de hoogte */
.right-column img {
    width: 100%;
    height: auto;
    display: block;
}

/* linkerkant vult exact dezelfde hoogte */
.left-column {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    height: 100%;
    gap: 1rem;
}

/* elke linkse afbeelding vult zijn vak zonder crop */
.left-column .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* rechts gewoon origineel */
.right-column .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================
   MORIYAMA
   ================================ */

.ten-grid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;

    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.ten-grid .gallery-item {
    width: auto !important;
    float: none !important;
    flex: unset !important;
    display: block;
}


/* ================================
   SPANJE - 8 boven, 7 gecentreerd
   ================================ */

.spain-layout .project-row.bottom {
    grid-template-columns: repeat(7, 1fr);
    justify-content: center;
}

.spain-layout .project-row:first-child {
    grid-template-columns: repeat(8, 1fr);
}

.spain-layout .project-row.bottom {
    grid-template-columns: repeat(7, 1fr);
    width: calc(87.5% - 0.5rem);
    margin-left: auto;
    margin-right: auto;
}

.spain-layout .gallery-item {
    width: 100%;
}

.spain-layout .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}



/* Alleen voor gallery.html */

.gallery-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-home .gallery-item a {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 20px;
}

.gallery-home .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ENKEL voor deze Moriyama pagina */
main .ten-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 1rem !important;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

main .ten-grid .gallery-item {
    width: 100% !important;
}

main .ten-grid .gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}