/**
 * cw/team – zoals .employees op www.paraatscholen.nl:
 *   raster 5 kolommen, 80 px tussenruimte (≤1366: 3 / 40, ≤820: 2, ≤576: 1)
 *   foto vierkant, Paraat-vorm (linksboven scherp), zachte schaduw
 *   druppel 40 % van de foto, 16 % buiten de foto (feedback 17-11)
 *   naam 22 px bold magenta, functie eronder
 */

.cw-team {
    margin-top: var(--cw-sectie, 80px);
    margin-bottom: var(--cw-sectie, 80px);
}

.cw-team .cw-team__kop {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    color: var(--cw-magenta, #DA1C54);
}

.cw-team__raster {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 80px;
    margin-top: 68px;
}

.cw-team .cw-team__foto {
    position: relative;
    /* ruimte voor een druppel onderaan (16 % buiten de foto) */
    margin: 0 0 max(24px, 20%);
    padding-top: 100%;
    border-radius: 0 999px 999px 999px;
    box-shadow: 0 0 80px 0 rgba(0, 0, 0, .1);
}

.cw-team__foto img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.cw-team__foto--leeg {
    background: var(--cw-vlak, #F1F1F1);
}

/* Druppel in verhouding tot de foto: 40 % van de breedte, voor ruim een
   derde buiten de foto (feedback 17-11: viel te vaak over een gezicht).
   Schaalt mee op elk scherm; % bij top/bottom = % van de hoogte, en de
   foto is vierkant. */
.cw-team .cw-team__foto::before {
    width: 40%;
    height: 40%;
}

.cw-team .cw-team__foto.cw-media--rechtsboven::before { top: -16%; right: -16%; }
.cw-team .cw-team__foto.cw-media--rechtsonder::before { bottom: -16%; right: -16%; }
.cw-team .cw-team__foto.cw-media--linksonder::before { bottom: -16%; left: -16%; }
.cw-team .cw-team__foto.cw-media--linksboven::before { top: -16%; left: -16%; }

.cw-team .cw-team__naam {
    margin: 0;
    padding-top: 4px;
    font-family: var(--cw-font, inherit);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--cw-magenta, #DA1C54);
    overflow-wrap: break-word;
}

.cw-team .cw-team__functie {
    margin: 8px 0 0;
    font-size: var(--cw-tekst-size, 14px);
    line-height: 1.6;
    color: var(--cw-grijs, #4A4947);
}

@media (max-width: 1366px) {
    .cw-team__raster {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 40px;
    }
}

@media (max-width: 820px) {
    .cw-team__raster {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .cw-team__raster {
        grid-template-columns: minmax(0, 1fr);
    }

    .cw-team .cw-team__foto {
        max-width: 280px;
    }
}
