@import url('https://fonts.googleapis.com/css2?family=Fleur+De+Leah&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --base-color: #89758C;
    --system-color: #d3af37;
    --text-color: #9B7F22;
    --primary-color: #0b1a0f;
    --secondary-color: #44fb9c;
    --tertiary-color: rgba(256,256,256, 0.8);
    --header-height: 4.5rem;
    --footer-height: 4.5rem;
    --side-margin: clamp(20px, 5vw, 80px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Prompt','Times New Roman', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    font-weight: 200;
    font-size: 16px;
}

/* ..............................body.............................*/

body {
    padding: 0em;
    background-image: url(images/achtergrond/bosv2.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

h1, h2 {
    font-family: 'Fleur de Leah','Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

h1 {
    font-size: 5rem;
}

h2 {
    font-size: 3rem;
}

h3 {
    font-family: 'Prompt','Times New Roman', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    font-weight: 200;
}

/* ..............................header.............................*/

.header-nav {
    margin: 0em auto 0em auto;
    width: 100%
}

    .header-nav ul {
        display: flex;
        align-items: center;
        list-style-type: none;
        gap: 2em;
    }

    .header-nav li:first-child {
        margin-right: auto;
        font-family: 'Fleur de Leah','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    .header-nav a {
        text-decoration: none;
        color: var(--system-color);
    }

        .header-nav a:hover {
            text-decoration: underline;
        }

header {
    position: sticky;
    top: 0;
    margin: 0em auto;
    width: 100%;
    background-color: var(--primary-color);
    padding-left: min(2em, 15%);
    padding-right: min(2em, 15%);
    padding-bottom: min(1em, 8%);
    padding-top: min(1em, 8%);
    z-index: 501;
}

/* .............................. all sections.............................*/

section {
    margin: 2em auto;
    width: 95%;
    padding: 2em 6em;
    border-radius: 0.25em;
    background-color: var(--tertiary-color);
    text-align: center;
}

.cta-button {
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    background-color: var(--primary-color);
    padding: 0.75em 1.25em;
    border-radius: 0.25em;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1em auto 0 auto;
}

    .cta-button:hover {
        text-decoration: underline;
        --text-color: var(--primary-color);
        background-color: var(--system-color);
    }

/* ..............................index intro.............................*/

.grid-container-intro {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
}

.text-container-intro {
    font-size: 1.25rem;
    padding-right: 2em;
}

.grid-container-intro img {
    padding-right: 0.75em;
    max-width: 100%;
    object-fit: cover;
    object-position: left;
}

/* ..............................index portfolio.............................*/

.grid-container {
    margin-top: 3em;
    margin-bottom: 3em;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    width: 70%;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "img-1 img-1 img-2 img-3"
        "img-1 img-1 img-4 img-5";
    gap: 1em;
}

    .grid-container img {
        height: 100%;
        width: 100%;
        border-radius: 0.25em;
        transition: 100ms ease;
        object-fit: cover;
    }

        .grid-container img:hover {
            scale: 1.05;
        }

/* ..............................index articles.............................*/

.flex-container {
    display: flex;
    align-items: center;
    gap: 3em;
}

.text-container-articles {
    flex: 0 1 34em;
}

    .text-container-articles p {
        font-size: 1.25rem;
    }

.articles-img img {
    max-width: 1000px;
    width: 100%;
    height: auto;
    display: block;
}

/* ..............................backtotop.............................*/

.backtotopknop {
    display: none;
    position: fixed;
    bottom: 16px;
    right: 16px;
    background-color: transparent;
    border: none;
    z-index: 999;
    transition: ease;
    cursor: pointer;
}

.hide-backtotop {
    display: none !important;
}

/* ..............................footer.............................*/

footer {
    text-align: center;
    margin: 0em auto;
    width: 100%;
    background-color: var(--primary-color);
    padding: min(0.5em, 4%);
}

.footer-fixed {
    position: fixed;
    bottom: 0em;
}

footer a {
    margin: 0 1em;
    text-decoration: none;
}

.footer-nav {
    margin: 0.5em auto 0.5em auto;
    width: 100%
}

    .footer-nav ul {
        display: flex;
        align-items: center;
        list-style-type: none;
    }

    .footer-nav li:first-child {
        margin-right: auto;
    }

.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

.footer-nav li:nth-child(2) {
    padding-right: 1em;
    color: var(--system-color);
}

.footer-nav a {
    text-decoration: none;
    color: var(--system-color);
}

    .footer-nav a:hover {
        text-decoration: underline;
    }


/* ..............................portfolio.............................*/

.grid-container-portfolio {
    margin-top: 3em;
    margin-bottom: 3em;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    width: 80%;
    gap: 1em;
    grid-template-columns: repeat(5, 1fr);
}

    .grid-container-portfolio .tile {
        width: 100%;
        aspect-ratio: 3 / 4;
        overflow: hidden;
        position: relative;
        border-radius: 0.25em;
    }

    .grid-container-portfolio img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        transition: 100ms ease;
        cursor: pointer;
    }

        .grid-container-portfolio img:hover {
            scale: 1.05;
        }

/* ..............................lightbox.............................*/

#lightbox {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.92);
    z-index: 500;
}

body.lightbox-open {
    overflow: hidden;
}

/* Main layout */
.lightbox-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* LEFT: IMAGE */
.lightbox-image-container {
    position: relative;
    width: 50%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

#lightbox-img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 110%;
    object-fit: contain;
}

/* RIGHT: PANEL */
.right-panel {
    width: 40%;
    height: 88%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5rem;
    padding-right: 5vw;
}

/* TITLE */
.img-title-container {
    background: rgba(0,0,0,0.6);
    padding: 1rem;
    border-radius: 0.5em;
}

#img-title {
    color: var(--system-color);
    font-size: 28px;
}

/* DESCRIPTION */
#img-txt-container {
    background: rgba(0,0,0,0.6);
    border-radius: 1em;
    flex: 1;
    overflow: hidden;
    font-size: 1.2rem;
}

#img-description {
    padding: 1.5em;
    color: var(--system-color);
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    white-space: pre-wrap;
}

/* ZOOM BOX */
.img-zoom-lens {
    position: absolute;
    width: 10px;
    height: 10px;
}

.img-zoom-result {
    width: 25vh;
    height: 25vh;
    border: 1px solid #d4d4d4;
    display: inline-block;
    vertical-align: top;
    align-self: flex-end;
}

/* CONTROLS */
#close-btn {
    position: absolute;
    top: 6%;
    right: 2%;
    font-size: 28px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: var(--system-color);
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    cursor: pointer;
}

#prev-btn,
#next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: var(--system-color);
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 10px;
    cursor: pointer;
}

#prev-btn {
    left: 2%;
}

#next-btn {
    right: 2%;
}

#share-btn {
    position: absolute;
    background-color: transparent;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    bottom: 11%;
    right: 2%;
}

    #share-btn img {
        width: 100%;
    }

/* COUNTER */
.image-counter {
    position: absolute;
    bottom: 6%;
    right: 2%;
    color: var(--system-color);
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 0.5em;
    font-size: 18px;
}

/* HIDE UNUSED */
.thumbnail {
    display: none;
}

#img-title-mobile,
#info-btn {
    display: none;
}

/* ..............................articles.............................*/

.articles-intro {
    padding-top: 1em;
    padding-bottom: 1em;
}

    .articles-intro h1 {
        margin-top: 0;
    }

    .articles-intro .flex-container {
        align-items: flex-start;
        margin-bottom: 1em;
    }

    .articles-intro .text-container-articles {
        margin-left: 10%;
    }

    .articles-intro img {
        height: 32em;
        width: auto;
        margin-left: 10%;
    }

#articles-container {
    font-size: 1.25em;
    width: 80%;
    margin: 0 auto 0 auto;
}

/* ..............................contact.............................*/

.contact-logos {
    margin: 3em auto;
    display: grid;
    width: 60%;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1em;
}

/* .................................................................tablet................................................................*/

@media(max-width: 1004px) {
    header {
        text-align: center;
    }

    .grid-container-intro {
        display: flex;
        justify-items: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .text-container-intro {
        padding-right: 0;
    }

    .grid-container-intro img {
        height: auto;
        padding-right: 0;
    }

    #portfolio-grid {
        width: 100%;
    }

    .lightbox-image-container {
        width: 80%;
        left: 10%;
        justify-content: center;
    }

    .img-zoom-result {
        display: none;
    }

    .flex-container {
        flex-direction: column;
    }

    .articles-img {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .text-container-articles {
        flex-basis: auto;
    }

    .articles-img img {
        max-width: 100%;
    }
}

/* .................................................................mobiel................................................................*/

@media(max-width: 700px) {

    nav li {
        display: none;
    }

        nav li:first-child,
        nav li:nth-child(2),
        nav li:nth-child(3) {
            display: block;
        }

    section {
        padding: 1.25em;
        margin: 1em auto;
    }

    .text-container-intro {
        padding-right: 0;
        font-size: 1rem;
        margin-bottom: 1em;
    }

    .grid-container-intro img {
        height: auto;
        padding-right: 0;
    }

    header {
        margin-top: 0;
    }

    .cta-button {
        width: 100%;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
        margin: 0;
        width: 100%
    }

        .grid-container img {
            display: none;
        }

            .grid-container img:first-child {
                display: block;
            }

    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }

    .text-container-articles p {
        font-size: 1rem;
    }

    /* .............................portfolio......................................*/

    #portfolio-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5em;
        margin-top: 0em;
    }

        #portfolio-grid .tile {
            grid-column: span 1 !important;
            grid-row: span 1 !important;
        }

    /* .............................lightbox......................................*/

    #lightbox {
        top: var(--header-height);
        height: calc(100dvh - var(--header-height) - var(--footer-height));
        padding: 0;
        align-items: center;
        justify-content: center;
    }

    body.lightbox-open footer {
        position: sticky;
        bottom: 0;
    }

    .img-zoom-container,
    .img-lens,
    .img-zoom-lens,
    .img-zoom-result,
    #share-btn,
    .img-title-container {
        display: none;
    }

    #close-btn {
        top: 5vh;
        touch-action: manipulation;
        z-index: 800;
    }

    #prev-btn,
    #next-btn {
        touch-action: manipulation;
        z-index: 800;
    }

    #info-btn {
        display: block;
        position: absolute;
        top: 5vh;
        left: 3vw;
        margin-bottom: min(3vh, 12px);
        border: none;
        border-radius: 50%;
        background-color: rgba(0,0,0,0.5);
        font-size: 30px;
        line-height: 1.5em;
        width: 1.5em;
        font-size: 30px;
        color: var(--system-color);
        cursor: pointer;
        pointer-events: auto;
        z-index: 9999;
    }

    #img-txt-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        margin-top: 1em;
        background-color: rgba(0,0,0,0.9);
        font-size: 16px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 3em;
        box-sizing: border-box;
        transform: translateY(100vh);
        opacity: 0;
        transition: transform 0.25s ease, opacity 0.25s ease;
        pointer-events: none;
        z-index: 501;
    }

    #img-title-mobile {
        font-size: 16px;
    }

    #img-title-mobile {
        display: block;
        margin: 0.5em 0;
        text-align: center;
        font-size: 1.5rem;
        color: var(--system-color);
    }

    .right-panel {
        position: absolute;
        inset: 0;
        display: flex;
        pointer-events: none;
    }

    #img-txt-container.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
        z-index: 999;
    }

    .img-title-container {
        width: 70%;
        left: 5%;
        top: 3%;
        height: 6%;
        padding: 0.5%;
    }

    .image-counter {
        bottom: 2%;
        right: 3%;
    }

    .lightbox-image-container {
        position: static;
        width: 90%;
        height: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: none;
    }

    #lightbox img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        touch-action: none;
        transform-origin: center;
    }

    /* .............................articles......................................*/

    .flex-container {
        gap: 1em;
    }

    .articles-intro img {
        height: auto;
        width: auto;
    }

    .articles-intro .text-container-articles {
        margin-left: 0;
    }

    .articles-intro img {
        height: auto;
        width: auto;
        margin-left: 0;
    }

    #articles-container {
        width: 100%;
        font-size: 1rem;
    }

    /* .............................contact......................................*/

    .contact-logos {
        width: 100%;
    }
}
