/* Team Member Image */
.team-member__img-wrapper {
    position: relative;
    width: 228px;
    height: 280px;
    margin-left: auto;
    margin-right: auto;
    border-top-left-radius: 50px;

    &:before {
        left: 0;
        bottom: 0;
        background-color: rgba(40, 131, 172, 0.18);
        z-index: 1;
    }

    &:before,
    &:after {
        content: '';
        position: absolute;
        width: 228px;
        height: 228px;
        border-top-left-radius: 50px;
    }

    &:after {
        right: 17px;
        bottom: 17px;
        border: 1px solid var(--color-primary);
        z-index: 2;
    }

    .team-member__img-inner {
        position: relative;
        width: 100%;
        height: 100%;
        z-index: 3;
        
        img {
            position: absolute;
            bottom: 0;
            display: block;
            width: 100%;
            height: 100%;
            object-position: center top;
            transition: filter 0.35s ease;
        }
    }
}

.masthead--team-member {
    margin-top: 120px;
}

.masthead--team-member__container {
    display: flex;
    flex-direction: column-reverse;
    padding-top: 32px;
    padding-bottom: 64px;
}

.masthead--team-member__text {
    padding-top: 40px;
}

.team-member__contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;

    .team-member__icon {
        color: var(--color-primary);
        font-size: 21px;
    }

    .team-member__info-label,
    a {
        font-weight: 700;
    }

}

.team-member__cta {
    margin-top: 30px;
}

@media (min-width: 768px) {
    .masthead--team-member {
        margin-top: 140px;
    }

    .masthead--team-member__container {
        flex-direction: row;
        gap: 70px;
        align-items: center;
        justify-content: center;
    }

    .masthead--team-member__text {
        padding-top: 0;
    }
}

@media (min-width: 1200px) {
    .masthead--team-member {
        margin-top: 164px;
    }

    .masthead--team-member__container {
        gap: 70px;
    }

    .team-member__img-wrapper {
        width: 373px;
        height: 465px;

        &:before,
        &:after {
            width: 373px;
            height: 373px;
        }

        &:after {
            right: 32px;
            bottom: 32px;
        }
    }

    .masthead--team-member__text {
        margin-top: -30px;
    }

    .masthead--team-member__contact {
        display: flex;
        flex-wrap: wrap;
        column-gap: 30px;
        width: 80%;
    }

    .team-member__contact-item {
        width: calc(50% - 15px);
    }

    .team-member__contact-item.team-member-location {
        width: 100%;
    }
}