:root {

    /* Algemene layout */

    --content-width: 1800px;

    --side-padding: 40px;

    --grid-gap: 10px;


    /* Header */

    --title-size: 82px;

    --title-opacity: .14;

    --title-spacing: 8px;


    /* Lijnen */

    --line-color: #dddddd;

    --line-spacing: 18px;


    /* Typografie */

    --text-color: #222;


    /* Back to top */

    --back-to-top-size: 36px;

}


/* --------------------------------------------------
   RESET
-------------------------------------------------- */

* {

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    margin: 0;

    padding: 0;

    background: #fff;

    color: var(--text-color);

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

}


/* --------------------------------------------------
   PAGINA
-------------------------------------------------- */

.site {

    width: 100%;

    max-width: var(--content-width);

    margin: 0 auto;

    padding:
        50px
        var(--side-padding)
        40px;

}


/* --------------------------------------------------
   HEADER
-------------------------------------------------- */

.hero {

    margin: 0;

}


.hero h1 {

    margin:
        0
        0
        28px;

    text-align: center;

    font-size: var(--title-size);

    font-weight: 300;

    line-height: 1;

    letter-spacing: var(--title-spacing);

    text-transform: uppercase;

    opacity: var(--title-opacity);

}


.email {

    display: block;

    margin: 0;

    color: var(--text-color);

    text-decoration: none;

}


/* --------------------------------------------------
   LIJN
-------------------------------------------------- */

.portfolio-line {

    width: 100%;

    height: 1px;

    margin:
        9px
        0
        var(--line-spacing);

    background:
        var(--line-color);

}


.portfolio-line-bottom {

    margin:
        var(--line-spacing)
        0
        9px;

}


/* --------------------------------------------------
   PORTFOLIO GRID
-------------------------------------------------- */

.portfolio {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: var(--grid-gap);

    width: 100%;

}


.portfolio-item {

    display: block;

    width: 100%;

    margin: 0;

    padding: 0;

    border: 0;

    background: none;

    cursor: pointer;

}


.portfolio-item img {

    display: block;

    width: 100%;

    height: auto;

    max-width: 100%;

    transition:
        filter .2s ease;

}


.portfolio-item:hover img {

    filter:
        saturate(1.15)
        brightness(1.06);

}


/* --------------------------------------------------
   SOCIALS
-------------------------------------------------- */

.socials {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 40px;

    margin-top: 40px;

}


.socials a {

    color: var(--text-color);

    text-decoration: none;

}


/* --------------------------------------------------
   BACK TO TOP
-------------------------------------------------- */

#backToTop {

    position: fixed;

    right: 25px;

    bottom: 25px;

    z-index: 100;

    display: flex;

    align-items: center;

    justify-content: center;

    width: var(--back-to-top-size);

    height: var(--back-to-top-size);

    padding: 0;

    border: 0;

    background: rgba(255,255,255,.85);

    color: #222;

    font-size: 20px;

    line-height: 1;

    cursor: pointer;

    opacity: .4;

    transition:
        opacity .2s ease;

}


#backToTop:hover {

    opacity: 1;

}


/* --------------------------------------------------
   LIGHTBOX
-------------------------------------------------- */

.lightbox {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 50px;

    background:
        rgba(255,255,255,.97);

}


.lightbox.is-open {

    display: flex;

}


.lightbox-content {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    height: 100%;

}


.lightbox-image {

    display: block;

    width: auto;

    height: auto;

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

}


/* --------------------------------------------------
   LIGHTBOX KNOPPEN
-------------------------------------------------- */

.lightbox-close,
.lightbox-prev,
.lightbox-next {

    position: fixed;

    z-index: 1001;

    border: 0;

    background: transparent;

    color: #222;

    cursor: pointer;

    font-family: Arial, sans-serif;

    font-size: 28px;

    font-weight: 300;

}


.lightbox-close {

    top: 20px;

    right: 25px;

    font-size: 34px;

}


.lightbox-prev {

    left: 25px;

    top: 50%;

    transform:
        translateY(-50%);

}


.lightbox-next {

    right: 25px;

    top: 50%;

    transform:
        translateY(-50%);

}


/* --------------------------------------------------
   RESPONSIVE
-------------------------------------------------- */

@media (max-width: 900px) {

    :root {

        --side-padding: 25px;

        --title-size: 60px;

    }

}


@media (max-width: 600px) {

    :root {

        --side-padding: 15px;

        --grid-gap: 6px;

        --title-size: 40px;

    }


    .site {

        padding-top: 30px;

    }


    .portfolio {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


    .lightbox {

        padding: 25px;

    }


    .lightbox-prev {

        left: 10px;

    }


    .lightbox-next {

        right: 10px;

    }

}


@media (max-width: 450px) {

    .portfolio {

        grid-template-columns:
            1fr;

    }

}