/* Team */
.team {
    padding-bottom: 80px;
}

.team-item__photo {
    max-width: 400px;
    flex-shrink: 0;
}

.team-item__photo img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
}

.team-item__name {
    margin-bottom: 5px;
    line-height: 1;
    font-size: 32px;
}

.team-item__role {
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.6;
}

.team-details {
    display: flex;
    flex-direction: column;
}

/* alternating full-width bands */
.team-detail {
    padding: 48px 0;
}

.team-detail:nth-child(even) {
    background-color: var(--soft);
}

.team-detail__inner {
    display: flex;
    gap: 50px;
    align-items: center;
}

.team-detail:nth-child(even) .team-detail__inner {
    flex-direction: row-reverse;
}

.team-detail__text {
    font-size: 18px;
}

.team-detail__text p {
    margin-bottom: 16px;
}

.team .team-detail__text p:last-of-type {
    margin-bottom: 0;
}


@media (max-width: 768px) {
    .team {
        padding-bottom: 40px;
    }

    .team-detail {
        padding: 32px 0;
    }

    .team-detail__inner {
        flex-direction: column;
        gap: 24px;
    }

    .team-detail:nth-child(even) .team-detail__inner {
        flex-direction: column;
    }

    .team-detail__text {
        font-size: 16px;
    }

    .team-item__name {
        font-size: 28px;
    }
}