/**
 * Builder — section team (layout ACF : team)
 */

.team .row.row--cut {
    max-width: calc(1450px + 4rem);
}

.team.team--bg-secondary {
    background-color: var(--color-secondary);
}

.team.team--bg-secondary .title,
.team.team--bg-secondary .subtitle,
.team.team--bg-secondary .edit,
.team.team--bg-secondary .team__name {
    color: var(--color-light);
}

.team.team--bg-secondary .team__func {
    color: var(--color-primary);
}

.team.team--bg-clair {
    background-color: var(--color-clair);
}

.team.team--bg-grey {
    background-color: var(--section-bg-grey);
}

.team__content {
    width: 100%;
}

.team .edit {
    margin-top: var(--margin-m);
    margin-bottom: var(--margin-m);
}

.team__grid {
    display: grid;
    gap: var(--gap-m);
    width: 100%;
    margin-top: calc(var(--margin-m) * 2);
}

.team__member {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.team__photo {
    overflow: hidden;
    border-radius: 50%;
    width: 200px;
    height: 200px;
    margin-bottom: .5rem;
}

.team__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team__name {
    font-size: var(--subtitle);
    font-weight: 300;
    color: var(--color-primary);
}

.team__func {
    font-size: var(--base);
    color: var(--color-secondary);
}

.team__grid--1,
.team__grid--2,
.team__grid--3,
.team__grid--4,
.team__grid--5 {
    grid-template-columns: 1fr;
}

@media screen and (min-width: 600px) {
    .team__grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .team__grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .team__grid--4,
    .team__grid--5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 992px) {
    .team__grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .team__grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .team__grid--5 {
        grid-template-columns: repeat(5, 1fr);
    }
}
