/* Custom properties */
:root {
    --clr-primary-500: #F6F3F1;
    --clr-accent-blue-400: #affffb;
    --clr-accent-blue-500: #70FFF8;
    --clr-accent-yellow-400: #ffffd4;
    --clr-accent-yellow-500: #FFFFBB;
    --clr-neutral-100: #ffffff;
    --clr-neutral-700: #333333;
    --clr-neutral-800: #0F0F0F;
    --clr-rgb-neutral-800: 15, 15, 15;
    --clr-shadow-neutral-800: rgba(var(--clr-rgb-neutral-800), 0.1);

    --body-padding-inline: 4rem;
    --base-grid-column-gap: 0.5em;
    --section-padding-top: 12.5rem;
    --section-padding-bottom: 5rem;

    --ff-primary: "objektiv-mk1", sans-serif;
    --ff-secondary: "ivyora-display", sans-serif;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    --fs-200: 0.75rem;
    --fs-400: 1.075rem;
    --fs-500: 1.375rem;
    --fs-600: 2.5rem;
    --fs-700: 3.75rem;
    --fs-900: 9rem;

    --border-rad-300: 0.25rem;
    --border-rad-400: 0.375rem;
    --border-rad-600: 1rem;
}

@media (max-width: 950px) {
    :root {
        --body-padding-inline: 2rem;
        --section-padding-top: 5rem;
        --section-padding-bottom: 5rem;
    }
}

/* Modern CSS reset */
/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role='list'],
ol[role='list'] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

/* Set core body defaults */
body {
    min-height: 100vh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

button,
input,
optgroup,
select,
textarea,
html input[type="button"],
input[type="reset"],
input[type="submit"],
button[disabled],
html input[disabled],
button::-moz-focus-inner,
input::-moz-focus-inner,
input[type="checkbox"],
input[type="radio"],
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
input[type="search"],
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
    border: none;
    background-image: none;
    background-color: none;
    box-shadow: none;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* De eigenlijke css code. */

/* Algemene rulesets */
button,
.btn {
    border-radius: var(--border-rad-300);
    padding: 0.4rem 1.75rem;
    outline: none;
    cursor: pointer;
    width: fit-content;
}

li {
    cursor: pointer;
}

/* utility classes */
.base-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--base-grid-column-gap);
    padding-inline: var(--body-padding-inline);
}

@media (max-width: 950px) {
    .base-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.border-right {
    border-right: solid 1px rgba(var(--clr-rgb-neutral-800), 0.1);
}

.border-left {
    border-left: solid 1px rgba(var(--clr-rgb-neutral-800), 0.1);
}

/* Wijs de parent van de paragraaf class een grid area toe van tenminste 3 kolommen breed. */
.paragraaf {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: baseline;
}

.paragraaf :first-child {
    grid-column: 1;
    height: fit-content;
}

.paragraaf p {
    grid-column: 2 / -1;
    height: fit-content;
}

.proj-img_schaduw {
    filter: drop-shadow(-0.75rem 0.5rem 0.225rem var(--clr-shadow-neutral-800));
}

/* Font rulesets */
a {
    text-decoration: none;
    color: inherit;
}

button,
.btn {
    font-family: var(--ff-primary);
    font-weight: var(--fw-regular);
    font-size: var(--fs-200);
}

.footer-cta_btn {
    font-weight: var(--fw-medium);
}

.nav_logo a {
    font-family: var(--ff-primary);
    font-weight: var(--fw-bold);
    font-size: var(--fs-200);
}

.nav_item a {
    font-family: var(--ff-primary);
    font-weight: var(--fw-regular);
    font-size: var(--fs-200);
}

.prim-titel {
    font-family: var(--ff-secondary);
    font-weight: var(--fw-regular);
    font-size: clamp(var(--fs-600), 5vw, var(--fs-700));
}

.header-titel_accent {
    background-color: var(--clr-neutral-800);
    padding: 0.1em 0.2em;
    border-radius: var(--border-rad-400);
}

.section-titel {
    font-family: var(--ff-secondary);
    font-weight: var(--fw-regular);
    font-size: var(--fs-900);
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    line-height: 95%;
    white-space: nowrap;
}

.p-titel {
    font-family: var(--ff-primary);
    font-weight: var(--fw-regular);
    font-size: var(--fs-200);
}

.p-tekst {
    font-family: var(--ff-primary);
    font-weight: var(--fw-regular);
    font-size: var(--fs-400);
}

.footer-cta_titel {
    font-family: var(--ff-secondary);
    font-weight: var(--fw-regular);
    font-size: var(--fs-700);
    line-height: 1.25;
}

button,
.btn,
.nav_logo a,
.nav_item a,
.section-titel,
.proj-contact-feedback_titel,
.proj-sel-item_titel,
.proj-all_titel {
    text-transform: uppercase;
}

button,
.nav_logo,
.nav_item,
.prim-titel,
.header-titel,
.section-titel,
.p-titel,
.p-tekst,
.footer-cta_btn {
    color: var(--clr-neutral-800);
}

.header-titel_accent,
footer .p-titel,
footer .p-tekst,
.footer-cta_titel {
    color: var(--clr-primary-500);
}

@media (max-width: 950px) {
    .section-titel {
        writing-mode: initial;
        transform: none;
    }
}

@media (max-width: 750px) {
    .section-titel {
        font-size: var(--fs-700);
    }
}

/* Specifieke rulesets */
body {
    position: absolute;
    /* cursor: none; */
}

nav {
    align-items: center;
    position: fixed;
    padding-block: 2rem;
    top: -100%;
    right: 0;
    left: 0;
    /* overflow: hidden; */
    transition: all 300ms ease-in-out;
    z-index: 99;
}

.show-nav {
    top: 0;
}

.nav_logo {
    grid-column: 1 / 6;
}

.nav_items {
    grid-column-end: 13;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 4rem;
}

.nav li {
    list-style: none;
    white-space: nowrap;
}

.nav_menu-icon {
    --_menu-icon-size: 2rem;
    grid-column: 4 / 5;
    justify-self: flex-end;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: var(--_menu-icon-size);
    height: 100%;
    padding: 0.25rem;
    /* aspect-ratio: 2 / 1; */
    cursor: pointer;
}

.nav-menu-icon_bar-1,
.nav-menu-icon_bar-2,
.nav-menu-icon_bar-3 {
    height: 0.125rem;
    background-color: var(--clr-neutral-800);
    transition: all 300ms ease-in-out;
}

/* Rotate first nav-menu-icon_bar- */
.menu-icon_close .nav-menu-icon_bar-1 {
    transform: translate(0, calc(var(--_menu-icon-size)/4.25)) rotate(-45deg);
}

/* Fade out the second nav-menu-icon_bar- */
.menu-icon_close .nav-menu-icon_bar-2 {
    display: none;
    opacity: 0;
}

/* Rotate last nav-menu-icon_bar- */
.menu-icon_close .nav-menu-icon_bar-3 {
    transform: translate(0, calc(var(--_menu-icon-size)/-4.25)) rotate(45deg);
}

.nav-over-body {
    background-color: var(--clr-neutral-100);
    margin-top: 1rem;
    margin-inline: calc(var(--body-padding-inline)*2);
    padding-block: 0.5rem;
    border-radius: var(--border-rad-400);
    box-shadow: 0 0.125rem 0.25rem var(--clr-shadow-neutral-800);
}

@media (max-width: 950px) {
    .nav_logo {
        grid-column: 1 / 4;
        white-space: nowrap;
    }

    .nav_items {
        grid-column: 4 / 6;
    }
}

@media (min-width: 750px) {
    .nav_menu-icon {
        display: none;
    }
}

@media (max-width: 750px) {
    .nav_items {
        position: absolute;
        display: none;
    }

    .nav-items_show {
        display: flex;
        position: absolute;
        top: 100%;
        flex-direction: column;
        align-items: flex-end;
        order: 2;
        row-gap: 0;
        padding: 1rem 2.5rem;
        background-color: var(--clr-neutral-100);
        border-radius: var(--border-rad-400);
        box-shadow: 0 0.125rem 0.25rem var(--clr-shadow-neutral-800);
    }
}

header {
    width: 100vw;
    width: 100dvw;
    height: 90vh;
    height: 90dvh;
    background-color: var(--clr-primary-500);
}

.header_titel {
    grid-column: 1 / 7;
    align-self: center;
    text-wrap: balance;
}

.header_project-preview-container {
    grid-column: 7 / -1;
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    overflow: hidden;
    height: 90vh;
    height: 90dvh;
}

.header-project-preview_img {
    position: absolute;
    height: fit-content;
    /* aspect-ratio: 1; */
    scale: 60%;
    transition: all 300ms ease-in-out;
}

.header-project-preview_img[data-plaats="left"] {
    translate: -100%;
    opacity: 0;
}

.header-project-preview_img[data-plaats="center"] {
    opacity: 1;
}

.header-project-preview_img[data-plaats="right"] {
    translate: 100%;
    opacity: 0;
}

@media (max-width: 950px) {
    .header_titel {
        grid-column: 1 / 3;
    }

    .header_project-preview-container {
        grid-column: 3 / -1;
    }
}

@media (max-width: 750px) {
    header {
        grid-template-rows: repeat(4, minmax(0, 1fr));
    }

    .header_titel {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        /* z-index: 2; */
    }

    .header_project-preview-container {
        grid-column: 2 / -1;
        grid-row: 2 / 4;
        padding: 0;
        border: none;
    }

    /* .border-left {
        display: none;
    } */
}

.werk-container {
    --_row-extra-margin-bottom: 4rem;
    /* Het aantal benodigde rijen wordt door main.js geteld en als variabele in volgende regel code ingevuld. */
    grid-template-rows: repeat(var(--werk-container-n-rows), auto);
    row-gap: 10rem;
    position: relative;
    background-color: var(--clr-neutral-100);
}

.werk_titel-container {
    display: grid;
    grid-row: 1 / -1;
    position: sticky;
    top: 0;
    padding-block: var(--section-padding-top) var(--section-padding-bottom);
    height: fit-content;
}

.werk_tekst-container {
    grid-column: 4 / 9;
    grid-row: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
    padding-block: var(--section-padding-top) var(--section-padding-bottom);
}

@supports not (grid-template-columns: subgrid) {
    .werk_tekst-container {
        /* Rijen met een vaste vh hoogte is beetje lelijk, maar nodig bij ontbreken van subgrid */
        grid-template-rows: repeat(var(--werk-container-n-rows), 65vh);
        row-gap: 2rem;
    }
}

.werk_tekst {
    display: grid;
    height: fit-content;
    grid-row: calc(var(--n)+1) / calc(var(--n)+2);
    margin-bottom: var(--_row-extra-margin-bottom);
}

@supports not (grid-template-columns: subgrid) {
    .werk_tekst {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        column-gap: var(--base-grid-column-gap);
    }
}

.werk_imgs-container {
    display: grid;
    grid-column: 10 / 12;
    grid-row: 1 / -1;
    grid-template-rows: subgrid;
    padding-block: var(--section-padding-top) var(--section-padding-bottom);
}

@supports not (grid-template-columns: subgrid) {
    .werk_imgs-container {
        /* Rijen met een vaste vh hoogte is beetje lelijk, maar nodig bij ontbreken van subgrid */
        grid-template-rows: repeat(var(--werk-container-n-rows), 65vh);
        row-gap: 2rem;
    }
}

.werk_img-container {
    grid-row: calc(var(--n)+1) / calc(var(--n)+2);
    width: fit-content;
    position: relative;
    margin-bottom: var(--_row-extra-margin-bottom);
}

.werk_img-wrapper {
    background-color: var(--clr-primary-500);
    position: relative;
}

.werk_img {
    transform-origin: bottom center;
    padding-bottom: 0.5em;
    transform: scale(1.125);
}


.werk-img_ondertitel {
    display: flex;
    justify-content: space-between;
    padding-top: 0.25rem;
}

.werk_cta {
    background-color: var(--clr-neutral-800);
    color: var(--clr-primary-500);
}

@media (max-width: 950px) {
    .werk-container {
        row-gap: 4rem;
    }

    .werk_titel-container {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
        position: relative;
        padding-top: var(--section-padding-top);
    }

    .werk_tekst-container {
        grid-column: 1 / 4;
        padding-top: 17.5rem;
        padding-right: 2rem;
        border: none;
    }

    .werk_tekst {
        grid-row: calc(var(--n)+3) / calc(var(--n)+4);
    }

    @supports not (grid-template-columns: subgrid) {
        .werk_tekst {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            column-gap: var(--base-grid-column-gap);
        }
    }

    .werk-tekst_titel {
        padding-right: 2rem;
        justify-self: end;
    }

    .werk_imgs-container {
        grid-column: 4 / 5;
    }

    @supports not (grid-template-columns: subgrid) {
        .werk_imgs-container {
            padding-top: 17.5rem;
        }
    }

    .werk_img-container {
        grid-row: calc(var(--n)+3) / calc(var(--n)+4);
    }
}

@media (max-width: 750px) {
    .werk-container {
        /* Het aantal benodigde rijen wordt door main.js geteld en als variabele in volgende regel code ingevuld. */
        grid-template-rows: repeat(calc(var(--werk-container-n-rows) * 2 + 2), auto);
    }

    .werk_tekst-container {
        grid-column: 1 / -1;
        padding-top: 0;
        align-items: start;
    }

    @supports not (grid-template-columns: subgrid) {

        /* In dit geval wordt het grid wel horizontaal geplaatst. Niet mooi, maar is even niet anders. */
        .werk_tekst-container {
            grid-column: 1 / 4;
            /* grid-row: 1 / -1; */
            display: grid;
            padding-block: calc(var(--section-padding-top)*2.5) var(--section-padding-bottom);
            /* Rijen met een vaste vh hoogte is beetje lelijk, maar nodig bij ontbreken van subgrid */
            grid-template-rows: repeat(var(--werk-container-n-rows), 65vh);
            row-gap: 2rem;
        }
    }

    .werk_tekst {
        grid-row: calc(var(--n)*2 + 2) / calc(var(--n)*2 + 3);
        margin-bottom: 0;
    }

    @supports not (grid-template-columns: subgrid) {
        .werk_tekst {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            grid-row: calc(var(--n)+3) / calc(var(--n)+4);
            column-gap: var(--base-grid-column-gap);
        }
    }

    .werk_imgs-container {
        grid-column: 2 / -2;
    }

    @supports not (grid-template-columns: subgrid) {

        /* In dit geval wordt het grid wel horizontaal geplaatst. Niet mooi, maar is even niet anders. */
        .werk_imgs-container {
            display: grid;
            grid-column: 4 / 5;
            /* grid-row: 1 / -1; */
            padding-block: calc(var(--section-padding-top)*2.5) var(--section-padding-bottom);
            /* Rijen met een vaste vh hoogte is beetje lelijk, maar nodig bij ontbreken van subgrid */
            grid-template-rows: repeat(var(--werk-container-n-rows), 65vh);
            row-gap: 2rem;
        }
    }

    .werk_img-container {
        grid-row: calc(var(--n)*2 + 3) / calc(var(--n)*2 + 4);
    }

    @supports not (grid-template-columns: subgrid) {
        .werk_img-container {
            grid-row: calc(var(--n)+2) / calc(var(--n)+3);
        }
    }
}

/* Diverse media queries om de rijen zonder subgrid hoog genoeg te maken */
@media (max-width: 550px) {
    @supports not (grid-template-columns: subgrid) {
        .werk_tekst-container {
            /* Rijen met een vaste vh hoogte is beetje lelijk, maar nodig bij ontbreken van subgrid */
            grid-template-rows: repeat(var(--werk-container-n-rows), 85vh);
        }

        .werk_imgs-container {
            /* Rijen met een vaste vh hoogte is beetje lelijk, maar nodig bij ontbreken van subgrid */
            grid-template-rows: repeat(var(--werk-container-n-rows), 85vh);
        }
    }
}

@media (max-width: 450px) {
    @supports not (grid-template-columns: subgrid) {
        .werk_tekst-container {
            /* Rijen met een vaste vh hoogte is beetje lelijk, maar nodig bij ontbreken van subgrid */
            grid-template-rows: repeat(var(--werk-container-n-rows), 125vh);
        }

        .werk_imgs-container {
            /* Rijen met een vaste vh hoogte is beetje lelijk, maar nodig bij ontbreken van subgrid */
            grid-template-rows: repeat(var(--werk-container-n-rows), 125vh);
        }
    }
}

.about-container {
    background-color: var(--clr-primary-500);
}

.about_titel-container {
    grid-column-end: -2;
    padding-block: var(--section-padding-top) var(--section-padding-bottom);
}

.about_tekst-container {
    grid-column: 2 / 8;
    grid-row: 1/-1;
    display: grid;
    row-gap: 5rem;
    grid-template-columns: subgrid;
    padding-block: var(--section-padding-top) var(--section-padding-bottom);
}

@supports not (grid-template-columns: subgrid) {
    .about_tekst-container {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: var(--base-grid-column-gap);
    }

    .about_tekst {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: var(--base-grid-column-gap);
    }
}

.about_cta {
    grid-column: 2 / 7;
    background-color: var(--clr-neutral-800);
    color: var(--clr-primary-500);
    margin-top: 1rem;
}

@media (max-width: 950px) {
    .about_titel-container {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
        position: relative;
        padding-top: var(--section-padding-top);
        border: none;
    }

    .about_tekst-container {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        margin-bottom: 0;
        padding-right: 2rem;
    }

    @supports not (grid-template-columns: subgrid) {
        .about_tekst {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }

    .about-tekst_titel {
        padding-right: 2rem;
        justify-self: end;
    }
}

@media (max-width: 750px) {}

footer {
    --_footer-padding-top: 5rem;
    --_footer-padding-bottom: 3rem;
    background-color: var(--clr-neutral-800);
    color: var(--clr-neutral-100);
    padding-block: var(--_footer-padding-top) var(--_footer-padding-bottom);
}

.footer_cta {
    grid-column: 1 / 6;
}

.footer-cta_tekst {
    padding-block: 0.75rem 3.5rem;
}

.footer-cta_btn {
    background: linear-gradient(125.5deg, var(--clr-accent-yellow-500) 30%, var(--clr-accent-blue-500)70%);
}

.footer-cta_btn:hover,
.footer-cta_btn:focus {
    background: linear-gradient(125.5deg, var(--clr-accent-yellow-400) 30%, var(--clr-accent-blue-400)70%);
}

.footer_links {
    grid-column: 7 / -1;
    display: flex;
    gap: 0.5rem;
    justify-self: end;
}

.footer-links_titel {
    padding-left: 5rem;
}

.footer_links ul li {
    list-style: none;
    padding-bottom: 0.25rem;
}

@media (max-width: 950px) {
    footer {
        row-gap: 4rem;
    }

    .footer_cta {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
    }

    .footer_links {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        justify-self: start;
    }

    .footer-links_titel:nth-child(1) {
        padding-left: 0;
    }
}

@media (max-width: 750px) {
    .footer_links {
        flex-direction: column;
    }

    .footer-links_titel {
        padding-left: 0;
        margin: 0;
    }
}

.proj-contact-feedback-container {
    padding-block: var(--section-padding-top) 0;
}

.proj-contact-feedback_titel {
    grid-column: 1/5;
    line-height: 4rem;
}

.proj-contact-feedback_tekst {
    grid-column: 7/-1;
}

.proj-sel-container {
    padding-block: var(--section-padding-top) 0;
}

.proj-sel-item {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
}

@supports not (grid-template-columns: subgrid) {
    .proj-sel-item {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        column-gap: var(--base-grid-column-gap);
    }
}

.proj-sel-item_img {
    grid-column: 1 / -1;
    object-fit: cover;
    height: 80vh;
    height: 80dvh;
    width: 100%;
}

.proj-sel-item-img_contain {
    background-color: var(--proj-sel-item-img_bg-clr);
    object-fit: contain;
}

.proj-sel-item-cover {
    object-fit: cover;
}

/* Geef afbeeldingen na een vorige afbeelding margin-top */
.proj-sel-item_img+.proj-sel-item_img {
    margin-top: 0.5rem;
}

/* Voorkom dat bij meerdere afbeeldingen in één kolom de ene afbeelding wel margin top heeft en de andere niet. */
.proj-sel-item_img--1_3rd:first-child+.proj-sel-item_img--2_3rd,
.proj-sel-item_img--2_3rd:first-child+.proj-sel-item_img--1_3rd {
    margin-top: 0;
}

.proj-sel-item_img--1_3rd {
    grid-column: span 4;
}

.proj-sel-item_img--2_3rd {
    grid-column: span 8;
}

.proj-sel-item_img--full {
    grid-column: span 12;
}

.proj-sel-item_titel {
    grid-column: 1 / 5;
    padding-block: var(--section-padding-bottom) var(--section-padding-top);
    line-height: 4rem;
}

.proj-sel-item_tekst-container {
    grid-column: 7 / -1;
    display: grid;
    row-gap: 6rem;
    grid-template-columns: subgrid;
    padding-block: var(--section-padding-bottom) var(--section-padding-top);
}

.proj-sel-item_tekst {
    grid-column: 1 / -1;
}

@supports not (grid-template-columns: subgrid) {
    .proj-sel-item_tekst {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        column-gap: var(--base-grid-column-gap);
    }
}

.proj-all-container {
    background-color: var(--clr-primary-500);
}

.proj-all_titel {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    padding-block: var(--section-padding-bottom) 0;
}

.proj-all_inhoud {
    grid-column: 1 / -1;
    grid-row: 1 / -1;
    display: grid;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
}

@supports not (grid-template-columns: subgrid) {
    .proj-all-container {
        grid-template-rows: 1fr;
    }

    .proj-all_inhoud {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-template-rows: repeat(1, minmax(0, 1fr));
        column-gap: var(--base-grid-column-gap);
    }
}

.proj-all_img-container {
    grid-column: 1 / 4;
    grid-row: 1 / -1;
    transition: all 100ms ease-in-out;
    top: 0;
    /* align-self: end; */
    padding-block: var(--section-padding-top) var(--section-padding-bottom);
    z-index: 9;
}

.proj-all_opdrachtgever-container {
    grid-column: 3 / 6;
    grid-row: 1 / -1;
}

.proj-all_producten-container {
    grid-column: 6 / 10;
    grid-row: 1 / -1;
}

.proj-all_jaar-container {
    grid-column: 10 / 12;
    grid-row: 1 / -1;
}

.proj-all_opdrachtgever-container,
.proj-all_producten-container,
.proj-all_jaar-container {
    display: grid;
    grid-template-columns: subgrid;
    padding-block: 20rem;
    height: fit-content;
    align-items: baseline;
}

@supports not (grid-template-columns: subgrid) {
    .proj-all_opdrachtgever-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: var(--base-grid-column-gap);

    }

    .proj-all_producten-container {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: var(--base-grid-column-gap);

    }

    .proj-all_jaar-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--base-grid-column-gap);
    }
}

.proj-all_opdrachtgever-container .proj-all_tekst,
.proj-all_producten-container .proj-all_tekst,
.proj-all_jaar-container .proj-all_tekst {
    grid-column: 2 / -1;
    height: fit-content;
}

@media (max-width: 950px) {
    @supports not (grid-template-columns: subgrid) {
        .proj-sel-item {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            column-gap: var(--base-grid-column-gap);
        }

        .proj-sel-item_img {
            grid-column: 1 / -1;
        }

        .proj-all_opdrachtgever-container,
        .proj-all_producten-container {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            column-gap: var(--base-grid-column-gap);
        }
    }

    .proj-sel-item_img:nth-child(1) {
        margin-block: 2rem 0.5em;
    }

    .proj-sel-item_titel {
        grid-column: 1 / -1;
        padding-block: 1rem;
    }

    .proj-sel-item_tekst-container {
        grid-column: 1 / -1;
        border: none;
        padding-block: 2rem 10rem;
    }

    @supports not (grid-template-columns: subgrid) {
        .proj-all_inhoud {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            column-gap: var(--base-grid-column-gap);
        }

        .proj-all_opdrachtgever-container,
        .proj-all_producten-container {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            column-gap: var(--base-grid-column-gap);
        }
    }

    .proj-all_img-container {
        display: none;
    }

    .proj-all_opdrachtgever-container {
        grid-column: 1 / 3;
    }

    .proj-all_producten-container {
        grid-column: 3 / 6;
    }

    .proj-all_jaar-container {
        display: none;
    }
}

@media (max-width: 750px) {
    .proj-sel-item-tekst_titel {
        grid-column: 1 / -1 !important;
        width: 100%;
        margin-bottom: 1rem;
    }

    .proj-sel-item_tekst-container {
        padding-bottom: 6rem;
        row-gap: 3rem;
    }

    .proj-sel-item_tekst p {
        grid-column: 1 / -1;
    }

    .proj-all_opdrachtgever-container,
    .proj-all_producten-container {
        display: flex;
        flex-direction: column;
        padding-block: 12.5rem;
    }

    .proj-all-inhoud_titel {
        margin-bottom: 1rem;
    }
}

@media (max-width: 400px) {
    .proj-all_inhoud {
        display: flex;
        flex-direction: column;
    }

    .proj-all_opdrachtgever-container {
        padding-top: 17.5rem;
        padding-bottom: 0;
    }

    .proj-all_producten-container {
        padding-top: 5rem;
    }
}

.contact-container {
    background-color: var(--clr-primary-500);
}

.contact_titel-container {
    grid-column: -3 / -2;
    grid-row: 1 / -1;
    padding-block: var(--section-padding-top) var(--section-padding-bottom);
}

.contact_form-container {
    grid-column: 2 / 8;
    grid-row: 1 / -1;
    padding-block: var(--section-padding-top) var(--section-padding-bottom);
}

.contact_form {
    display: flex;
    flex-direction: column;
}

.contact_form textarea {
    resize: none;
    width: 100%;
    height: 10rem;
}

.contact_field {
    background-color: var(--clr-neutral-100);
    outline: none;
    border: none;
    padding: 1rem 2rem;
    margin-block: 0.25rem;
}

.contact_field:focus,
.contact_field:hover {
    outline: solid 1px rgba(var(--clr-rgb-neutral-800), 0.25);
}

.contact_field[data-value="invalid"] {
    outline: 0.025rem solid red;
}

.contact_invalid-value-CTA {
    font-family: var(--ff-primary);
    font-weight: var(--fw-regular);
    font-size: var(--fs-200);
    color: red;
    margin: 2rem;
    margin-block: 0.25rem 0.75rem;
    right: 0;
    display: none;
}

.contact_btn {
    border: none;
    margin-top: 0.5rem;
    background-color: var(--clr-neutral-800);
    color: var(--clr-primary-500);
}

.contact_btn:focus,
.contact_btn:hover {
    background-color: var(--clr-neutral-700);
}

@media (max-width: 950px) {
    .contact_titel-container {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
        padding-block: calc(var(--section-padding-top)*2) var(--section-padding-bottom);
    }

    .contact_form-container {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        padding-block: 0 var(--section-padding-bottom);
    }
}

@media (max-width: 750px) {
    .contact_form textarea {
        height: 15rem;
    }
}