.custom-contacts .contacts-grid {
    --font-body: var(--saans-regular);
    --font-body-bold: var(--saans-bold);
    --font-display: var(--saans-heavy);
    --dark-primary: #8ac6ac;
    --light-primary: #c4e2d6;
    
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    max-width: 90vw;
    margin: var(--space-6) auto;
}

.custom-contacts .widget-title {
    margin-bottom: 40px;
    font-weight: 700;
    font-size: 30px;
    display: none;
}

.custom-contacts .staff-item {
    flex: 1 0 auto;
    max-width: 80vw;
    margin: 0 auto;
}

@media (min-width: 641px) {
    .custom-contacts .staff-item {
        max-width: 45%;
    }
}


@media (min-width: 1024px) {
    .custom-contacts .contacts-grid {
        flex-wrap: nowrap;
    }
    .custom-contacts .staff-item {
        max-width: 25%;
        margin: unset;
    }
}

.custom-contacts .staff-item .name {
    font-size: 18px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 1px;
    color: var(--text-color);
    font-family: var(--saans-bold);
    margin: 0 0 8px;
}

.custom-contacts .staff-item .about li {
    line-height: 1.5;
    font-size: 14px;
    letter-spacing: 1px;
    font-family: var(--saans-regular);
    color: var(--text-color);
}

.custom-contacts .staff-item .img-container,
.custom-contacts .staff-item .img-container img {
    position: relative;
}

.custom-contacts .staff-item .img-container img {
    padding-bottom: 1rem;
}

.custom-contacts .staff-item .email {
    --arrow-color: var(--color2-link);
    margin-top: -11px;
}

.custom-contacts .staff-item .email a {
    font-family: var(--saans-heavy);
    font-weight: bold;
    transform: translateX(42px);
}

.custom-contacts .staff-item .email .arrow {
    display: block;
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translate(-100%, -50%);
    width: 100%;
    height: 2px;
    background-color: var(--arrow-color);
    transition: transform cubic-bezier(0.83, 0, 0.17, 1) 0.9s 0.3s, left cubic-bezier(0.83, 0, 0.17, 1) 0.9s 0.3s;
}

.custom-contacts .staff-item .email:hover a {
    transition: transform cubic-bezier(0.83, 0, 0.17, 1) 0.6s 0.2s;
}

.custom-contacts .staff-item .email:hover .arrow {
    left: -30px;
    transform: translate(100%, -50%);
    transition: transform cubic-bezier(0.83, 0, 0.17, 1) 0.9s 0s, left cubic-bezier(0.83, 0, 0.17, 1) 0.9s 0s;
}

.custom-contacts .staff-item .email:before, 
.custom-contacts .staff-item .email:after {
    content: '';
    position: absolute;
    right: 0.2px;
    top: 50%;
    width: 15px;
    height: 2px;
    transform: translateY(-50%) rotate(0deg);
    transform-origin: right;
    opacity: 0;
    background-color: var(--arrow-color);
    transition: transform ease-out 0.2s 0s, opacity ease 0s 0.2s;
}

.custom-contacts .staff-item .email:hover:before {
    transform: translateY(-50%) rotate(45deg);
    opacity: 1;
    transition: transform ease-out 0.3s 0.7s, opacity ease 0s 0.3s;
}

.custom-contacts .staff-item .email:hover:after {
    transform: translateY(-50%) rotate(-45deg);
    opacity: 1;
    transition: transform ease-out 0.3s 0.7s, opacity ease 0s 0.3s;
}

.custom-contacts .staff-item .bio-link {
    display: inline-block;
    line-height: var(--leading-none);
    font-family: var(--saans-heavy);
    text-transform: uppercase;
	letter-spacing: .05em;
    color: var(--white);
    font-size: 14px;
    background-color: var(--color2);
    padding: 6px 14px;
    position: relative;
    bottom: 27px;
}

.custom-contacts .staff-item .bio-link:hover {
    background-color: var(--dark-primary);
    border-color: var(--dark-primary);
    color:var(--gray);
    cursor: pointer;
}

@media (min-width: 64em) {
    .custom-contacts .staff-item .staff-meta {
        margin-bottom: 20px;
    }
    .custom-contacts .staff-item .bio-link {
        letter-spacing: 0.5px;
        padding: 6px 14px;
        bottom: 37px;
    }
    .custom-contacts .widget-title {
        display: block;
        margin: 0 0 20px;
        font-size: 34px;
        text-transform: none;
        font-family: var(--saans-heavy);
    }
    
    .custom-contacts .staff-item .name {
        font-size: 18px;
        letter-spacing: 0;
        margin: 0 0 10px;
    }
}

/* MODAL */
.custom-contacts .modal {
    display: none;
}

.custom-contacts .staff-item.modal-open .modal-overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 11;
}

.custom-contacts .staff-item.modal-open .modal {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    background-color: #fff;
    max-width: calc(100% - 40px);
    min-width: 300px;
}

.custom-contacts .staff-item.modal-open .modal .close {
    display: flex;
    justify-content: flex-end;
    background-color: var(--color2-pale);
    height: 61px;
    align-items: center;
    padding: 5px;
}

.custom-contacts .staff-item.modal-open .modal .close span {
    cursor: pointer;
    font-family: var(--saans-heavy);
    font-size: 16.06px;
    padding: 3px 8px;
    color: var(--color2-pale);
    text-transform: uppercase;
	letter-spacing: .05em;
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    background-color: var(--gray);
    height: 61px;
    width: 72px;
}

.custom-contacts .staff-item.modal-open .modal .img-container {
    min-width: 125px;
    height: 145px;
    position: relative;
}

.custom-contacts .staff-item.modal-open .modal .meta {
    background: white;
    pointer-events: none;
}

.custom-contacts .staff-item.modal-open .modal .meta .inner {
    display: flex;
    padding: 0 0px 0 15px;
    position: relative;
    top: -15px;
    pointer-events: none;
    margin-bottom: 5px;
    pointer-events: all;
}

.custom-contacts .staff-item.modal-open .modal .about {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 44px 0 4px 35px;
}

.custom-contacts .staff-item.modal-open .modal .description {
    padding: 0 15px 15px;
    font-family: var(--saans-regular);
    color: var(--gray);
    font-size: 14px;
    line-height: 1.4;
    position: relative;
}

@media (min-width: 375px) {
    .custom-contacts .staff-item.modal-open .modal {
        min-width: 337px;
    }
}

@media (min-width: 64em) {
    .custom-contacts .staff-item.modal-open .modal {
        min-width: 800px;
        flex-direction: row;
        top: 56%;
    }
    
    .custom-contacts .staff-item.modal-open .modal .close {
        position: absolute;
        top: -61px;
        left: 0;
        width: 100%;
        padding-right: 15px;
    }
    
    .custom-contacts .staff-item.modal-open .modal .close span {
        font-size: 14px;
        padding: 5px 12.5px;
    }
    
    .custom-contacts .staff-item.modal-open .modal .img-container {
        height: unset;
        width: 185px;
        margin-bottom: 16px;
    }
    
    .custom-contacts .staff-item.modal-open .modal .meta .inner {
        flex-direction: column;
        top: -25px;
        padding-left: 40px;
    }
    
    .custom-contacts .staff-item.modal-open .modal .about {
        padding: 0;
        max-width: 245px;
    }
    
    .custom-contacts .staff-item.modal-open .modal .description {
        padding: 40px 60px 50px 65px;
        font-size: 16px;
        position: unset;
    }
}