/* --- shaperslist.php --- */
/* Team list SFH2026 â€” grayscale portrait cards, vertical brand strip, mark bottom-right */

/* Gutter on the parent, inner un-padded, so the grid lands on the same left edge
   as every other sfh section. Deliberately not .container: that lives in
   productslider/sfh2026.css, which a shapers page does not load. */
.team {
    padding: clamp(48px, 5vw, 80px) 20px;
    background: #fff;
}

.team-in {
    max-width: var(--cms2-max-width, 1280px);
    margin: 0 auto;
}

.team-heading {
    margin: 0 0 40px;
    text-align: center;
    font-size: clamp(28px, 3.6vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    color: #000;
}

.team-group {
    margin-top: clamp(48px, 5vw, 80px);
}

/* A group with fewer people than columns is centred instead of hugging the
      left edge â€” one shaper under a 3-column setting sits in the middle.
      auto-fit collapses the empty tracks, which only works with an explicit track
      width: with `1fr` the lone card would stretch to the full row instead. The
      width is the same fraction it would have had in a full row, so a complete
      row renders exactly as before. */
.team-grid {
    display: grid;
    --gap: clamp(16px, 2vw, 30px);
    --track: calc((100% - var(--gap) * (var(--cols, 3) - 1)) / var(--cols, 3));
    grid-template-columns: repeat(auto-fit, minmax(0, var(--track)));
    justify-content: center;
    gap: var(--gap);
}

.team-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.team-photo {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e8e8e8;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1);
    transition: transform .4s ease, filter .3s ease;
}

a.team-card:hover .team-photo img {
    transform: scale(1.04);
    filter: grayscale(.7);
}

/* brand set vertically down the left edge. vertical-rl reads top-to-bottom,
      which is the direction in the design; the dark inset keeps it legible over
      a light photo without dimming the whole image. */
.team-brand {
    position: absolute;
    top: 0;
    left: 0;
    writing-mode: vertical-rl;
    padding: 14px 10px;
    max-height: 100%;
    overflow: hidden;
    font-size: 34px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    /* background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,0)); */
}

.team-logo {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.team-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    /* logos are not square; never stretch them */
    object-fit: contain;
    /* Rendered as uploaded. An earlier `brightness(0) invert(1)` matched the
          design's white marks but turned every logo with an opaque background into
          a solid white box â€” the feed mixes transparent PNGs with flat ones. The
          design's look needs transparent white marks in the ERP, not a filter. */
}

.team-name {
    display: block;
    margin-top: 14px;
    font-size: 26px;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
}

.team-country {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #898989;
}

@media (max-width: 820px) {

    /* only the track width changes â€” auto-fit and the centring carry over */
    .team-grid {
        --track: calc((100% - var(--gap) * (var(--cols-m, 1) - 1)) / var(--cols-m, 1));
    }

    .team-brand {
        font-size: 34px;
        padding: 14px 0px;
    }

    .team-logo {
        width: 34px;
        height: 34px;
        right: 10px;
        bottom: 10px;
    }

    .team-name {
        font-size: 26px;
        display: none;
    }
}