/* ==========================================================================
   Team Grid block
   ========================================================================== */

.team-grid {
    position: relative;
    width: 100vw;
    padding: 80px 14% 100px 14%;
    background: linear-gradient(180deg, #ffffff 0%, #ffffff 75%, #f9f9f9 100%) !important;
    box-shadow: inset 0 -15px 18px -14px rgba(0, 0, 0, 0.06) !important;
}

.team-grid__intro {
    margin-bottom: 60px;
}

.team-grid__heading {
    margin: 0 0 0.3em 0;
    font-family: 'Gotham Rounded' !important;
    font-size: 25pt !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 300 !important;
    color: #4f473e !important;
}

.team-grid__subtitle {
    margin: 0;
    font-family: 'Cormorant Garamond' !important;
    font-style: italic;
    font-size: 17pt !important;
    font-weight: 100 !important;
    color: #4f473e !important;
}

.team-grid__member {
    text-align: center;
    width: 90%;
}

.team-grid__photo {
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 24px;
}

.team-grid__name {
    margin: 0 0 0.4em 0;
    font-family: 'Cormorant Garamond' !important;
    font-size: 17pt !important;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 400 !important;
    color: #4f473e !important;
}

.team-grid__department {
    margin: 0 0 1em 0;
    font-family: 'Cormorant Garamond' !important;
    font-size: 12pt !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 400 !important;
    color: #8a8175 !important;
}

.team-grid__contact {
    margin: 0;
    font-family: 'Cormorant Garamond' !important;
    font-size: 12pt !important;
    font-weight: 400 !important;
    line-height: 1.7;
    color: #8a8175 !important;
}

.team-grid__contact a {
    color: inherit !important;
    text-decoration: none;
}

.team-grid__contact a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .team-grid__members {
        grid-template-columns: repeat(2, 1fr) !important;
        row-gap: 40px !important;
    }
}

@media (max-width: 700px) {
    .team-grid {
        padding: 50px 6% 60px;
    }

    .team-grid__intro {
        margin-bottom: 40px;
    }

    .team-grid__heading {
        font-size: 1.6rem !important;
    }

    .team-grid__subtitle {
        font-size: 0.95rem !important;
    }

    .team-grid__members {
        grid-template-columns: repeat(1, 1fr) !important;
        row-gap: 32px !important;
    }

    .team-grid__name {
        font-size: 1.1rem !important;
    }
}