/* Full-width, uninterrupted photo grid, matching medewerkers_overzicht. */
.fotoblokken_met_tekst{
    padding: 0 !important;
}

.fotoblokken_met_tekst .fotoblokken_grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fotoblokken_met_tekst .fotoblok{
    position: relative;
    display: grid;
    aspect-ratio: 480 / 585;
    background-color: var(--espresso);
    color: #fff;
    overflow: hidden;
}

.fotoblokken_met_tekst .fotoblok_media{
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.fotoblokken_met_tekst .fotoblok_media picture,
.fotoblokken_met_tekst .fotoblok_img{
    width: 100%;
    height: 100%;
}

.fotoblokken_met_tekst .fotoblok_media picture{
    display: flex;
}

.fotoblokken_met_tekst .fotoblok_img{
    object-fit: cover;
    /* Match medewerkers_overzicht's image zoom and reveal timing. */
    transition: transform 0.45s ease;
}

.fotoblokken_met_tekst .fotoblok_gradient{
    position: absolute;
    inset: 0;
    /* Same full-card gradient stops as medewerkers_overzicht. */
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 27.35%, rgba(0, 0, 0, 0) 49.915%);
    pointer-events: none;
}

.fotoblokken_met_tekst .fotoblok_content{
    position: relative;
    align-self: end;
    /* Figma: 35px inset on a 480px card; grows with the card width. */
    padding: calc(100% * 35 / 480);
    /* Same 30px text rhythm as the reference; also used by the button gap. */
    --default-margin-bottom: var(--bs-gutter-x);
}

.fotoblokken_met_tekst .fotoblok_inner{
    position: relative;
}

.fotoblokken_met_tekst .fotoblok_tekst{
    transition: transform 0.45s ease;
}

.fotoblokken_met_tekst .fotoblok_reveal{
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    opacity: 0;
    transform: translateY(var(--fotoblok_reveal_space, var(--default-margin-bottom)));
    pointer-events: none;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.fotoblokken_met_tekst .fotoblok:is(:hover, :focus-within) .fotoblok_tekst{
    transform: translateY(calc(var(--fotoblok_reveal_space, 0rem) * -1));
}

.fotoblokken_met_tekst .fotoblok:is(:hover, :focus-within) .fotoblok_img{
    transform: scale(1.04);
}

.fotoblokken_met_tekst .fotoblok:is(:hover, :focus-within) .fotoblok_reveal{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.fotoblokken_met_tekst .fotoblok_content :is(h2, h3, h4){
    color: inherit;
}

#content .fotoblokken_met_tekst .fotoblok_content h3{
    /* Figma H3: 115% line height and 5% tracking; size uses the theme token. */
    line-height: 1.15;
    letter-spacing: 0.05em;
}

.fotoblokken_met_tekst a:focus-visible{
    /* Override the global outline reset with a scalable keyboard indicator. */
    outline: 0.15em solid currentColor !important;
    outline-offset: 0.15em;
}

@media (max-width:767px)
{
    .fotoblokken_met_tekst .fotoblokken_grid{
        grid-template-columns: minmax(0, 1fr);
    }

    /* Match medewerkers_overzicht: touch-sized layouts show the button. */
    .fotoblokken_met_tekst .fotoblok_reveal{
        position: static;
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .fotoblokken_met_tekst .fotoblok_tekst + .fotoblok_reveal{
        margin-top: var(--default-margin-bottom);
    }

    .fotoblokken_met_tekst .fotoblok_tekst,
    .fotoblokken_met_tekst .fotoblok:is(:hover, :focus-within) .fotoblok_tekst{
        transform: none;
        transition: none;
    }
}

@media (min-width:768px) and (max-width:991px)
{
    .fotoblokken_met_tekst .fotoblokken_grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width:992px) and (max-width:1199px)
{
    .fotoblokken_met_tekst .fotoblokken_grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
