.ycw-team {
    --ycw-team-accent: #70b53d;
    --ycw-team-accent-dark: #5d9c33;
    --ycw-team-heading: #272727;
    --ycw-team-text: #272727;
    --ycw-team-muted: #6f6f6f;
    --ycw-team-surface: #ffffff;
    --ycw-team-card-radius: 8px;
    --ycw-team-card-shadow: 0 7px 22px rgba(32, 42, 27, .10);
    --ycw-team-heading-font: "Playfair Display", Georgia, serif;
    --ycw-team-body-font: "Poppins", Arial, sans-serif;
    --ycw-team-content-width: 1080px;

    /* Variant A: alle teamkaarten hebben exact dezelfde vaste opbouw. */
    --ycw-team-media-height: 240px;
    --ycw-team-content-height: 98px;
    --ycw-team-card-height: 338px;

    width: 100%;
    box-sizing: border-box;
    padding-top: var(--ycw-team-padding-top, 72px);
    padding-bottom: var(--ycw-team-padding-bottom, 72px);
}

.ycw-team *,
.ycw-team *::before,
.ycw-team *::after {
    box-sizing: border-box;
}

.ycw-team__inner {
    width: 100%;
    max-width: var(--ycw-team-content-width, 1080px);
    margin: 0 auto;
    padding: 0 20px;
}

.ycw-team__heading {
    max-width: 680px;
    margin: 0 auto 50px;
    text-align: center;
}

.ycw-team__title {
    margin: 0 0 12px;
    color: var(--ycw-team-heading, #272727);
    font-family: var(--ycw-team-heading-font, "Playfair Display", Georgia, serif);
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.12;
}

.ycw-team__intro {
    margin: 0;
    color: var(--ycw-team-text, #272727);
    font-family: var(--ycw-team-body-font, "Poppins", Arial, sans-serif);
    font-size: 17px;
    line-height: 1.65;
}

.ycw-team__grid {
    display: grid;
    grid-template-columns: repeat(var(--ycw-team-columns, 4), minmax(0, 1fr));
    gap: var(--ycw-team-gap, 24px);
    align-items: start;
}

.ycw-team__item {
    min-width: 0;
    height: var(--ycw-team-card-height, 338px);
}

.ycw-team__card {
    min-width: 0;
    width: 100%;
    height: var(--ycw-team-card-height, 338px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--ycw-team-surface, #fff);
    border-radius: var(--ycw-team-card-radius, 8px);
    box-shadow: var(--ycw-team-card-shadow, 0 7px 22px rgba(32, 42, 27, .10));
    transition: transform .25s ease, box-shadow .25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .ycw-team__card:hover {
        transform: translateY(-3px);
        box-shadow: 0 11px 28px rgba(32, 42, 27, .14);
    }
}

.ycw-team__media {
    width: 100%;
    height: var(--ycw-team-media-height, 240px);
    min-height: var(--ycw-team-media-height, 240px);
    flex: 0 0 var(--ycw-team-media-height, 240px);
    overflow: hidden;
    background: linear-gradient(145deg, #7cbc46 0%, var(--ycw-team-accent-dark, #5d9c33) 100%);
}

.ycw-team__photo,
.ycw-team__initials {
    width: 100%;
    height: 100%;
    display: block;
}

.ycw-team__photo {
    object-fit: cover;
}

.ycw-team__initials {
    display: grid;
    place-items: center;
    padding: 20px;
    color: #fff;

    /* Bewust vast en onafhankelijk van theme/centrale heading-font styling. */
    font-family: "Playfair Display", Georgia, "Times New Roman", serif !important;
    font-size: 48px !important;
    font-weight: 700 !important;
    font-style: normal !important;
    line-height: 1 !important;
    letter-spacing: -0.02em !important;
    text-transform: none !important;
    text-align: center;
}

.ycw-team__content {
    width: 100%;
    height: var(--ycw-team-content-height, 98px);
    min-height: var(--ycw-team-content-height, 98px);
    flex: 0 0 var(--ycw-team-content-height, 98px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 20px 18px 22px;
    text-align: center;
    background: var(--ycw-team-surface, #fff);
}

.ycw-team__name {
    max-width: 100%;
    margin: 0;
    color: var(--ycw-team-heading, #272727);
    font-family: var(--ycw-team-heading-font, "Playfair Display", Georgia, serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.25;
}

.ycw-team__role {
    max-width: 100%;
    margin: 7px 0 0;
    color: var(--ycw-team-accent, #70b53d);
    font-family: var(--ycw-team-body-font, "Poppins", Arial, sans-serif);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
}

.ycw-team-empty {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 16px 20px;
    border: 1px dashed #c3c4c7;
    border-radius: 8px;
    background: #fff;
    color: #646970;
}

@media (max-width: 980px) {
    .ycw-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ycw-team__heading {
        margin-bottom: 36px;
    }
}

@media (max-width: 600px) {
    .ycw-team {
        padding-top: min(var(--ycw-team-padding-top, 72px), 52px);
        padding-bottom: min(var(--ycw-team-padding-bottom, 72px), 52px);
    }

    .ycw-team__inner {
        padding: 0 16px;
    }

    .ycw-team__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ycw-team__title {
        font-size: 34px;
    }

    .ycw-team__intro {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ycw-team__card {
        transition: none;
    }
}
