.block {
    border-bottom: none;
}

.cta_block {
    border-top: none;
    border-bottom: 2px solid var(--border-grey);
}

.family_wrapper h2 {
    margin-bottom: 30px;
}

.family_wrapper {
    margin-top: 80px;
}

.family_wrapper p {
    margin: 30px auto 50px;
    width: 500px;
    text-align: center;
}

.family_photo {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    overflow: hidden;
    background-color: var(--white);
    border: 2px solid var(--border-grey);
    padding: 15px;
    box-sizing: border-box;
    margin-bottom: 80px;
    transition: 0.2s all ease-in-out;
}

.family_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

/************************ Team List ***************************/
.team_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    z-index: 1;
    margin-top: -30px;
}

/************ Team Members *************/
.team_member {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc((100% - 60px) / 3);
    margin-right: 30px;
    background-color: var(--white);
    border: 2px solid var(--border-grey);
    padding: 15px;
    box-sizing: border-box;
    margin-top: 30px;
    /* transition: 0.2s all ease-in-out; */
}

.team_member:nth-of-type(3n) {
    margin-right: 0;
}

.team_thumbnail {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.team_thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    transition: 0.2s all ease-in-out;
}

.team_details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.team_details h3,
.team_details p {
    margin: 0;
    transition: 0.2s all ease-in-out;
}

.team_details h3 {
    font-size: 24px;
    margin-top: 20px;
    margin-bottom: 5px;
    color: var(--black);
}

.team_details .team_role {
    font-weight: 500;
    margin: 0 0 10px 0;
}

.team_details .team_role i {
    width: 26px;
}

.team_details .team_role:first-of-type {
    color: var(--gold);
}

.team_details .team_bio {
    background-color: var(--light-grey);
    padding: 8px 15px;
    color: var(--form-grey);
}

@media (max-width: 1330px) {
    .team_member,
    .team_member:nth-of-type(3n) {
        width: calc((100% - 30px) / 2);
        margin-right: 30px;
    }
    
    .team_member:nth-of-type(2n) {
        margin-right: 0;
    }
}

@media (max-width: 800px) {
    .family_wrapper p {
        width: 100%;
    }
}

@media (max-width: 750px) {
    .team_wrapper {
        flex-direction: column;
    }

    .team_member,
    .team_member:nth-of-type(2n),
    .team_member:nth-of-type(3n) {
        width: 100%;
        margin-right: 0 !important;
    }
}