/* team */

.team {
    /*padding: 132px 20px 203px;*/
    text-align: center;
    padding-bottom: 203px;
}
/*
.team-heading {
    margin-bottom: 10px;
}

.team-subheading {
    max-width: 520px;
    margin: 0 auto 60px;
    font-size: 16px;
    color: #726d6a;
}
*/
.team-header {
    max-width: 820px;
    margin: auto;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    row-gap: 37px;
    text-align: left;
    padding-bottom: 77px;
}

.team-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(14, 11, 11, .06);
    overflow: hidden;
}
.team-card-join,
.team-card:nth-of-type(2n) {
    transform: translateY(77px);
}

.team-card-photo {
    width: 100%;
    aspect-ratio: 240 / 270;
    object-fit: cover;
    display: block;
}

.team-card-photo-placeholder {
    background: linear-gradient(150deg, #e7e3de, #cfd2d8);
}

.team-card-body {
    padding: 27px;
    text-align: center;
}

.team-card-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
}

.team-card-role {
    line-height: 1;
    margin-bottom: 10px;
}

.team-card-contact {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.team-card-contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: #0e0b0b;
}

.team-card-contact svg {
    width: 100%;
    height: 100%;
}

.team-card-join {
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.team-card-join-photo img {
    width: 100%;
    aspect-ratio: 240 / 270;
    object-fit: cover;
    display: block;
}

.team-card-join .team-card-role {
    margin-bottom: 0;
    text-decoration: underline;
}

@media screen and (max-width: 991px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 767px) {
    .team {
        padding: 93px 20px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-bottom: 0;
        margin-inline: -8px;
    }

    .team .section-header.section-header-xl {
        margin-bottom: 35px;
    }

    .team-card,
    .team-card-join {
        display: flex;
        flex-direction: row;
        min-height: 134px;
        border-radius: 8px;
        box-shadow: none;
        transform: none !important;
    }

    .team-card-photo,
    .team-card-join-photo {
        flex: 0 0 120px;
        width: 120px;
        aspect-ratio: auto;
        background: #dfe7f0;
    }

    .team-card-join-photo img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    .team-card-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 20px 22px;
        text-align: left;
    }

    .team-card-name {
        font-size: 14px;
        line-height: 20px;
    }

    .team-card-role {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 14px;
    }

    .team-card-join .team-card-role {
        text-underline-offset: 4px;
    }

    .team-card-contact {
        justify-content: flex-start;
        gap: 12px;
    }

    .team-card-contact a {
        width: 22px;
        height: 22px;
    }
}
