/*
	Table of content
    1. HERO
    2. HERO - PAGINA
    3. HERO - BEELD
    RESIZE
*/

/* 1. HERO */
.hero .container {
    display: grid;
    grid-template-columns: 1fr 50rem;
    align-items: center;
    gap: 8rem;
}

.hero .content-wrapper {
    max-width: 63rem;
}

.hero .image-wrapper {
    margin: 0;
}

/* uitgesneden portret voor een lichtgroene cirkel; het hoofd steekt boven de cirkel uit */
.hero .image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero .image::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    aspect-ratio: 1;
    border-radius: 50%;
    background-color: var(--color-lightgreen);
}

.hero .image img {
    position: relative;
    display: block;
    width: 43rem;
    height: 56rem;
    object-fit: cover;
    object-position: top;
}

.hero figcaption {
    margin: 2rem 0 0;
    text-align: center;
}

/* 2. HERO - PAGINA */
.hero-page {
    padding-top: 9rem;
    padding-bottom: 9rem;
}

.hero-page.has-image {
    padding-bottom: 0;
}

.hero-page .content-wrapper {
    max-width: 90rem;
}

.hero-page .breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-page .breadcrumb span:not([aria-current]) {
    color: var(--color-green);
}

.hero-page .image-wrapper {
    margin-top: 6rem;
    aspect-ratio: 5 / 2;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.hero-page .image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 3. HERO - BEELD */
.hero-image {
    display: flex;
    overflow: hidden;
}

.hero-image > .row-lg {
    position: relative;
    display: flex;
}

/* met afbeelding: foto over de volle breedte, tekst linksonder op een groen verloop */
.hero-image.has-image {
    min-height: 72rem;
    padding-bottom: 8rem;
}

.hero-image .image-wrapper {
    position: absolute;
    inset: 0;
}

.hero-image .image-wrapper img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image .image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, rgba(63, 79, 51, 0) 40%, rgba(63, 79, 51, .9) 100%),
        linear-gradient(to right, rgba(63, 79, 51, .55) 0%, rgba(63, 79, 51, 0) 50%);
}

.hero-image.has-image .container {
    display: flex;
    align-items: flex-end;
    width: 100%;
}

.hero-image.has-image .content-wrapper {
    max-width: 64rem;
}

/* zonder afbeelding: gecentreerd op de achtergrondkleur, de header ligt erover */
.hero-image.is-centered {
    min-height: 76rem;
    padding-top: 16rem;
    padding-bottom: 14rem;
    text-align: center;
}

.hero-image.is-centered .container {
    display: flex;
    align-items: center;
    width: 100%;
}

.hero-image.is-centered .content-wrapper {
    max-width: 92rem;
    margin: 0 auto;
}

.hero-image .content-wrapper p {
    color: var(--color-offwhite);
}

.hero-image .scroll-down {
    position: absolute;
    left: 50%;
    bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border: 1px solid var(--color-lightgreen);
    border-radius: 50%;
    font-size: 1.6rem;
    color: var(--color-lightgreen);
    text-decoration: none;
    transform: translateX(-50%);
}

.hero-image .scroll-down:hover {
    background-color: var(--color-lightgreen);
    color: var(--color-verydarkgreen);
}

/* RESIZE */
@media (max-width: 1220px) {
    .hero .container {
        grid-template-columns: 1fr 42rem;
        gap: 6rem;
    }

    .hero .image img {
        width: 36rem;
        height: 47rem;
    }
}

@media (max-width: 1024px) {
    /* kleiner portret, zodat de tekstkolom breed genoeg blijft */
    .hero .container {
        grid-template-columns: 1fr 34rem;
        gap: 4rem;
    }

    .hero .image img {
        width: 30rem;
        height: 39rem;
    }

    .hero-page {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }

    .hero-page .content-wrapper {
        max-width: none;
    }

    .hero-page .image-wrapper {
        margin-top: 4rem;
    }

    .hero-image.has-image {
        min-height: 60rem;
        padding-bottom: 6rem;
    }

    .hero-image.is-centered {
        min-height: 0;
        padding-top: 14rem;
        padding-bottom: 12rem;
    }
}

@media (max-width: 767px) {
    /* hero: tekst en portret onder elkaar */
    .hero .container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero .content-wrapper {
        max-width: none;
    }

    .hero .image-wrapper {
        width: 100%;
        max-width: 32rem;
        margin: 0 auto;
    }

    .hero .image img {
        width: 30rem;
        height: 39rem;
    }

    /* Klein gedraagt zich hier als Middel */
    .hero.pt-sm {
        padding-top: 6rem;
    }

    .hero-page .image-wrapper {
        aspect-ratio: 5 / 3;
    }

    .hero-page .breadcrumb {
        margin-bottom: 2rem;
    }

    .hero-image.has-image {
        min-height: 45rem;
        padding-bottom: 4rem;
    }

    .hero-image .scroll-down {
        left: var(--grid-padding);
        transform: none;
    }

    .hero-image.is-centered {
        padding-top: 12rem;
        padding-bottom: 10rem;
        text-align: left;
    }
}

@media (max-width: 499px) {
}
