.team .contain {
    max-width: 73rem;
}

.team__block {
    border-radius: .75rem;
    background: #ffffff;
    filter: drop-shadow(0px 0px 48px rgba(0, 0, 0, 0.11));
    padding: 1.5rem;
    position: relative;
}

@media screen and (min-width: 48em) {
    .team__block {
        border-radius: 1.375rem;
    }
}

.team__block::before {
    border-radius: .75rem;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, #006A71 0, #00393d 100%);
    content: '';
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: .25s opacity;
}

@media screen and (min-width: 48em) {
    .team__block::before {
        border-radius: 1.375rem;
    }
}

.team__block--image {
    border-radius: 50%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    padding-bottom: 100%;
    position: relative;
}

.team__block--image img {
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

@supports (object-fit: contain) {
    .team__block--image img {
        height: 100%;
        object-fit: cover;
        object-position: center 10%;
    }
}

.team__block--image-wrapper {
    width: 70%;
}

.team__block--title {
    -ms-flex-item-align: center;
    -ms-grid-row-align: center;
    align-self: center;
    background: #F2F5F7;
    border-radius: .5rem;
    color: #0C2647;
    line-height: 1.2;
    margin-bottom: .5rem;
    padding: .5rem 1rem;
}

.team__block--name {
    margin-bottom: .5rem;
}

.team__block--bio-trim {
    margin-bottom: .5rem;
}

.team__block .arrow-link {
    appearance: none;
    background: none;
    border: none;
    font-weight: bold;
}

.team__block .arrow-link:after {
    transform: translate(0, -50%) rotate(90deg);
}

.team__block .arrow-link:before {
    background-image: url("/wp-content/themes/alliance/assets/images/right-blue.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: '';
    display: inline-block;
    height: 1.5rem;
    opacity: 0;
    position: absolute;
    top: 50%;
    right: -0;
    transform: translate(0, -50%) rotate(90deg);
    transition: .25s ease-in-out;
    width: 1.5rem;
}

.team__block .arrow-link:hover:after,
.team__block .arrow-link:hover:before,
.team__block .arrow-link:focus:after,
.team__block .arrow-link:focus:before,
.team__block .arrow-link:active:after,
.team__block .arrow-link:active:before {
    transform: translate(0, -40%) rotate(90deg);
}

.team__modals {
    height: 100%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    visibility: hidden;
}

.team__modals:after {
    height: 100%;
    width: 100%;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    background-color: rgba(0, 0, 0, 0.7);
    content: '';
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity .25s 0s, visibility 0s .25s;
    z-index: 1;
    visibility: hidden;
}

.team__modals.active {
    visibility: visible;
}

.team__modals.active:after {
    opacity: 1;
    transition: opacity .25s 0s, visibility 0s 0s;
    visibility: visible;
}

.team__modal {
    border-radius: .75rem;
    background: #ffffff;
    filter: drop-shadow(0px 0px 48px rgba(0, 0, 0, 0.11));
    max-width: 45rem;
    padding: 1.5rem;
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-50%, -50%, 0);
    transition: opacity .25s 0s, visibility 0s .25s;
    width: calc(100% - 3rem);
    z-index: 200;
}

@media screen and (min-width: 48em) {
    .team__modal {
        border-radius: 1.375rem;
    }
}

.team__modal.active {
    opacity: 1;
    transition: opacity .25s 0s, visibility 0s 0s;
    visibility: visible;
}

.team__modal--top {
    -ms-flex-align: end;
    align-items: flex-end;
    margin-top: -6rem;
}

.team__modal--image-wrapper {
    margin-right: 1.5rem;
    width: 10rem;
}

.team__modal--title {
    display: inline-block;
}

.team__modal--bio {
    border-top: 1px solid #11B9DD;
    margin-top: 1.5rem;
    max-height: clamp(15rem, 45vh, 32rem);
    overflow: auto;
    padding-top: 1.5rem;
}

.team__modal--title {
    max-width: 90%;
}

.team__modal--close {
    height: 3rem;
    width: 3rem;
    appearance: none;
    background: none;
    border: none;
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.team__modal--nav {
    position: absolute;
    left: 50%;
    bottom: -1.5rem;
    transform: translateX(-50%);
}

.team__modal--nav-button {
    appearance: none;
    background: none;
    border: none;
    height: 3rem;
    width: 3.75rem;
}

.team__modal--nav-button.prev {
    background-color: #d1ecef;
    background-image: url("/wp-content/themes/alliance/assets/images/left-blue.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: .65rem;
    border-radius: 3rem 0 0 3rem;
}

.team__modal--nav-button.next {
    background: #006A71;
    background-image: url("/wp-content/themes/alliance/assets/images/right-white-2.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: .65rem;
    border-radius: 0 3rem 3rem 0;
}

.team__modal--nav-button:disabled {
    cursor: not-allowed;
    opacity: .9;
    filter: grayscale(0.5);
}

@media screen and (min-width: 48em) {
    .team__blocks {
        margin: 0 -1.5rem;
    }

    .team__block {
        cursor: pointer;
        margin: 0 .75rem 1.5rem;
        width: calc(50% - 1.5rem);
    }

    .team__block .team__block--image-wrapper,
    .team__block .team__block--title,
    .team__block .team__block--name,
    .team__block .team__block--bio-trim,
    .team__block .team__block--button-wrapper {
        position: relative;
        z-index: 2;
    }

    .team__block:hover .team__block--name,
    .team__block:hover .team__block--bio-trim,
    .team__block:hover .arrow-link,
    .team__block:hover .link-read {
        color: #ffffff;
    }
    
    .team__block:hover .link-read:after {
        background: url('../images/right-white-2.svg') no-repeat left 9px center/6px 10px;
        border-color: #fff;
    }

    .team__block:hover .arrow-link::after {
        opacity: 0;
    }

    .team__block:hover .arrow-link:before {
        opacity: 1;
    }

    .team__block:hover::before {
        opacity: 1;
    }

    .team__modal {
        padding: 3rem;
    }

    .team__modal--image {
        margin-bottom: 0 !important;
    }

    .team__modal--title-wrapper {
        max-width: 90%;
    }

    .team__modal--bio {
        max-height: clamp(16rem, 50vh, 33rem);
    }
}

@media screen and (min-width: 62em) {
    .team__block {
        width: calc(25% - 1.5rem);
    }
}