/* Shortcode [fortissimo_teams]: overzicht van alle teams (pagina Teams-2025) */

/*
 * Never wider than its container. Inside an Elementor container a photo that
 * isn't loaded (yet) could otherwise stretch the page: WordPress gives lazy
 * images an intrinsic size of 3000 x 1500 px until they load.
 */
.fb-teams-overzicht {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/*
 * Tile and the link around the photo take the full column width. The class
 * elementor-widget-image (for the caption styling) makes Elementor turn the
 * link into an inline-block that shrinks to its content; the photo's
 * width: 100% then can't work (a photo that doesn't load became 3000 px wide).
 */
.fb-teams-overzicht .fb-teams-overzicht__team,
.fb-teams-overzicht .fb-teams-overzicht__team > a {
    display: block;
    width: 100%;
    min-width: 0;
}

.fb-teams-overzicht__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 10px;
    text-align: center;
}

.fb-teams-overzicht__team {
    margin: 0;
}

/*
 * All photos the same size, like the old page (its photos were cropped to
 * about 10:7). Photos with another ratio are cropped from the centre.
 */
.fb-teams-overzicht .fb-teams-overzicht__team img,
.fb-teams-overzicht__geenfoto {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 7;
    object-fit: cover;
    object-position: center;
}

/* Team name in the team colour (set inline), bold so light colours stay readable */
.fb-teams-overzicht .fb-teams-overzicht__naam {
    font-weight: 700;
}

.fb-teams-overzicht__geenfoto {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6e6e6;
    color: #777;
}

.fb-teams-overzicht__scheiding {
    border: 0;
    border-top: 1px solid #000;
    margin: 15px 0 25px;
}

@media (max-width: 767px) {
    .fb-teams-overzicht__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Shortcode [fortissimo_team] op de teampagina's */

/* Trainingstijden: small, subtle block */
.fb-team__trainingen {
    display: inline-block;
    max-width: 100%;
    padding: 8px 14px;
    border-left: 3px solid #ccc;
    background: #f7f7f7;
    font-size: 0.9em;
    line-height: 1.45;
    color: #444;
}

.fb-team__trainingen-titel {
    display: block;
    margin-bottom: 2px;
    font-size: 0.8em;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #777;
}

.fb-team__trainingen ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.fb-team__trainingen li + li {
    margin-top: 4px;
}

.fb-team__trainingen-tijd {
    font-weight: 600;
    white-space: nowrap;
}

/* "geel gezamenlijk": small label in the team colour */
.fb-team__gezamenlijk {
    display: inline-block;
    margin-left: 4px;
    padding: 0 7px;
    border: 1px solid var(--fb-kleur, #777);
    border-radius: 999px;
    color: var(--fb-kleur, #777);
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.fb-team__adres {
    font-size: 0.9em;
    color: #777;
}

.fb-team > * + * {
    margin-top: 28px;
}

.fb-team__foto img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border-radius: 6px;
}

.fb-team__functie {
    margin-top: -6px;
    font-size: 0.9em;
    color: #666;
    line-height: 1.3;
}

/* E-mail of a trainer/begeleider without an account (logged-in members only) */
.fb-team__email {
    display: block;
    font-size: 0.8em;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.fb-team__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px 16px;
}

.fb-team__speler {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

/* Photo + name as one link to the profile page: same look, name underlined on hover */
.fb-team .fb-team__profiel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.fb-team .fb-team__profiel:hover .fb-team__naam,
.fb-team .fb-team__profiel:focus .fb-team__naam {
    color: var(--e-global-color-accent, #e30613);
    text-decoration: underline;
}

.fb-team .fb-team__profiel:hover img,
.fb-team .fb-team__profiel:focus img {
    filter: brightness(0.92);
}

.fb-team__speler img,
.fb-team__initialen {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    object-fit: cover;
    object-position: center top; /* a tall photo loses its bottom, not the head */
}

.fb-team__initialen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6e6e6;
    color: #777;
    font-size: 2rem;
    font-weight: 600;
}

.fb-team__naam {
    font-weight: 600;
    line-height: 1.3;
}

/* Vacature below the trainers/begeleiding */
.fb-team__vacature {
    margin: 12px 0 0;
}

.fb-team__vacature-label {
    display: inline-block;
    margin-right: 6px;
    padding: 0 8px;
    border: 1px solid var(--e-global-color-accent, #e30613);
    border-radius: 999px;
    color: var(--e-global-color-accent, #e30613);
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1.6;
}
