/* ============================
   LEIDING (leiding.html)
   The .group / .group--* / .group__title colored-section styles this
   page uses live in groups.css (shared with galerij.html) — only the
   leiding-specific layout and leader cards are here.
   ============================ */
body#leiding main {
    display: block;
    margin: 0;
}

.group__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.leader-card {
    flex: 0 0 380px;
    background-color: white;
    border-radius: 1rem;
    border-top: 5px solid var(--group-color, #ccc);
    box-shadow: 0px 4px 14px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.leader-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.leader-card__body {
    padding: 1.5rem 1.7rem 1.8rem;
}

.leader-card__name {
    font-family: var(--lettertype);
    font-size: 1.75em;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.leader-card__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.leader-card__facts li {
    font-family: var(--lettertype);
    font-size: 1.2em;
    line-height: 1.5;
    color: #333;
}

.leader-card__facts li span {
    display: block;
    font-weight: 700;
    color: #1a1a1a;
}

/* VB's: one shared photo of both, so the card is wider than a regular
   leader-card and its body splits into two columns instead of one — first
   person's facts aligned left, second person's aligned right, mirroring
   each other around the middle. Specificity (two classes) beats the plain
   .leader-card rules below regardless of source order, so this card keeps
   its own width instead of shrinking to 320px/400px like the others. */
.leader-card.leader-card--vb {
    flex: 1 1 500px;
    width: 100%;
    max-width: 780px;
}

.leader-card__body.leader-card__body--vb {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.leader-card__person--right {
    text-align: right;
}

/* At the VB card's wide desktop width (up to 780px), the regular
   220px-tall crop leaves very little vertical room — at that width/height
   ratio, cover scales the photo up to fill the width and then trims a lot
   off top and bottom, and with the default center anchor that trim landed
   right on the heads. Two fixes together: a taller box (320px, matching
   how much shorter a wide two-person shot needs to breathe) and anchoring
   the crop to the top, so what little does get trimmed comes off the
   bottom (torsos), not the heads. Higher specificity than the plain
   ".leader-card img" rule above, so it overrides both height and position
   regardless of source order. */
.leader-card--vb img {
    height: 320px;
    object-position: top center;
}

/* Tablet/large phone: max-width 768px */
@media (max-width: 768px) {
    .leader-card {
        flex-basis: 320px;
    }

    .group__cards {
        gap: 1.7rem;
    }
}

/* Below this width there's no comfortable room for two facts columns side
   by side, so the VB card's body stacks like a regular one (both people
   left-aligned, one after the other). */
@media (max-width: 700px) {
    .leader-card__body.leader-card__body--vb {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .leader-card__person--right {
        text-align: left;
    }
}

/* Smartphone: max-width 600px */
@media (max-width: 600px) {
    .leader-card {
        flex-basis: 100%;
        max-width: 400px;
    }

    /* The wide desktop crop math above doesn't apply once the card has
       shrunk down to a normal single-column width — a shorter box back
       in line with the other leader-cards looks better here than an
       oversized 320px one. */
    .leader-card--vb img {
        height: 220px;
    }
}