/* BLOK tekst_foto */ 
.contentblok.tekst_foto {
    --tekst-foto-radius: 8px;
    --tekst-foto-bleed: 0px; /* hoeveel de foto buiten de container loopt (desktop) */
}

/* geen gutter: foto en vlak sluiten op elkaar aan (style.css zet gutter op elke .row) */
.contentblok.tekst_foto .row_foto_tekst {
    --bs-gutter-x: 0;
}

/* FOTO */
.contentblok.tekst_foto .afbeelding_container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--tekst-foto-radius);
}
.contentblok.tekst_foto .afbeelding_container img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* FOTO LABEL */
.contentblok.tekst_foto .foto_label {
    position: absolute;
    left: 3rem;
    right: 3rem;
    bottom: 3rem;
    z-index: 1;
    max-width: 30rem;
    font-family: var(--font-serif, Georgia, serif); /* pas aan naar jullie serif-font */
    font-style: italic;
    font-size: clamp(2.6rem, 3vw, 4rem);
    font-weight: 400;
    line-height: 120%;
    color: var(--tekst-foto-label-kleur, var(--color-groen, #bccab0));
}
/* Foto rechts: label rechtsonder, rechts uitgelijnd */
.contentblok.tekst_foto.foto-rechts .foto_label {
    left: auto;
    margin-left: auto;
    text-align: right;
}

/* Optioneel: donkere gradient voor leesbaarheid op drukke foto's */
/*
.contentblok.tekst_foto .afbeelding_container:has(.foto_label):after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 40%);
    pointer-events: none;
}
*/

/* TEKSTVLAK */
.contentblok.tekst_foto .tekst_vlak {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 4rem 4rem;
    background-color: var(--tekst-foto-kleur, var(--color-grijsgroen, #eceee7));
}

/* MEDIA QUERIES - MOBILE FIRST */ 

@media (min-width: 576px) {
}

@media (min-width: 768px) {
}

@media (min-width: 992px) {
    /* gelijk aan de Bootstrap container-breedtes */
    .contentblok.tekst_foto {
        --tekst-foto-bleed: calc((100vw - 960px) / 2 + 1.5rem);
    }
    .contentblok.tekst_foto .wrapper_vlak {
        display: flex;
        align-items: center;
    }
    .contentblok.tekst_foto .tekst_vlak {
        min-height: 67%;
        padding: 6rem 6rem;
        border-radius: var(--tekst-foto-radius);
    }
    /* Foto links: loopt door tot de linkerrand van het scherm */
    .contentblok.tekst_foto.foto-links .afbeelding_container {
        margin-left: calc(var(--tekst-foto-bleed) * -1);
    }
    /* Foto rechts: loopt door tot de rechterrand van het scherm */
    .contentblok.tekst_foto.foto-rechts .afbeelding_container {
        margin-right: calc(var(--tekst-foto-bleed) * -1);
    }
    .contentblok.tekst_foto .foto_label {
        left: 7rem;
        right: 7rem;
        bottom: 4rem;
    }
}

@media (min-width: 1200px) {
    .contentblok.tekst_foto {
        --tekst-foto-bleed: calc((100vw - 1140px) / 2 + 1.5rem);
    }
}

@media (min-width: 1400px) {
    .contentblok.tekst_foto {
        --tekst-foto-bleed: calc((100vw - 1320px) / 2 + 1.5rem);
    }
}

@media (min-width: 1920px) {
}

@media (min-width: 2560px) {
}