.team {
    position: relative;
}

.team-row {
    margin-bottom: -30px;
}

.team-item {
    margin-bottom: 30px;
    text-align: center;
}

.team-card__link {
    display: block;
    background: transparent;
    border: none;
    width: 100%;
    height: 300px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    z-index: 2;
}

.team-card__link img {
    max-height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.team-card__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 0;
    background: rgba(7,31,54,0.5);
    backdrop-filter: blur(19px) brightness(1.2);
    transition: all ease-in-out 0.3s
}

.team-card:hover .team-card__link::after {
    height: 100%;
    transition: all ease-in-out 0.3s
}

.view-bio {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: all ease-in-out 0.3s;
    opacity: 0;
    width: max-content;
}

.team-card:hover .view-bio {
    transition: all ease-in-out 0.3s;
    opacity: 1;
}

.team-card__link img {
    object-position: top;
}

.team-card__info {
    margin-top: 20px;
}

.team-card__info h4 {
    margin: 0;
    padding: 0 0 6px;
    font-size: 24px;
    font-weight: 500;
    color: #FFFFFF;
}

.team-card__info p {
    color: rgba(255, 255, 255, 0.59);
    font-weight: 500;
}

.row--center {
    justify-content: center;
}

@media (min-width: 768px) {
    .team-row {
        margin-bottom: -50px;
    }

    .team-item {
        margin-bottom: 50px;
    }
    
    .team-card__link {
        height: 380px;
    }
}


@media (min-width: 1200px) {
    .team-row {
        margin-bottom: -90px;
    }

    .team-item {
        margin-bottom: 90px;
    }
    
    .team-card__link {
        height: 360px;
        border-radius: 30px;
    }

    .team-card__info {
        margin-top: 26px;
    }

    .team-card__info h4 {
        padding: 0 0 8px;
        font-size: 32px;
    }

    .team-card__info p {
        font-size: 18px;
    }

}

@media (min-width: 1400px) {
    .team-card__link {
        height: 420px;
    }
}

@media (min-width: 1800px) {
    .team-card__link {
        height: 504px;
    }


}


.leadership-popup {
    display: none;
    width: calc(100% - 44px);
    max-width: 1400px;
    border-radius: 30px;
    padding: 0;
    background-color: transparent;
}

.leadership-popup__header {
    background: linear-gradient(#071f36 0%, #1565aa 100%);
    padding: 40px 60px;
    border-radius: 0 0 30px 30px;

    h3 {
        color: #fff;
        font-size: 32px;
        margin-bottom: 0;
    }

    h2 {
        color: #fff;
        font-size: 60px;
        margin-bottom: 5px;
    }
}

@media (min-width: 1200px) {
    .leadership-popup__header {
        padding: 84px 60px 40px;
    }
}

.leadership-popup__header__inner {
    margin-left: auto;
    max-width: calc(100% - 250px);
    padding-left: 32px;
}

@media (min-width: 1200px) {
    .leadership-popup__header__inner {
        max-width: calc(100% - 424px);
    }
}

.leadership-popup__content {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    padding-inline: 60px;
    position: relative;
}

.leadership-popup__content:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 30px;
    background-color: #fff;
    top: -30px;
    left: 0;
    z-index: -1;
}

.leadership-popup__left { 
    width: 250px;
    text-align: center;
    margin: 0 auto;
}

.leadership-popup__right {
    width: calc(100% - 250px);
    padding-left: 32px;
}

@media (min-width: 1200px) {
    .leadership-popup__left { 
        width: 424px;
        margin: 0;
    }

    .leadership-popup__right {
        width: calc(100% - 424px);
    }
}

.leadership-popup__right__content {
    margin: 40px 0;
    color: rgba(7, 31, 54, 0.85);
    max-height: 420px;
}

.leadership-popup__image {
    width: 250px;
    height: 300px;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 20px;
    margin-top: calc(300px * -0.375);

    img {
        width: 100%;
        height: 100%;
        overflow: hidden;
        object-fit: cover;
        object-position: center;
    }
}

@media (min-width: 990px) {
    .leadership-popup__image {
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    .leadership-popup__image {
        width: 424px;
        height: 504px;
        margin-top: calc(504px * -0.375);
    }
}

.leadership-popup__right__category {
    padding-bottom: 40px;
}

.leadership-popup__right__category > a {
    font-size: 16px;
    color: #071f36;
    background-color: transparent;
    border: 1px solid #071f36;
    margin-right: 8px;
    margin-bottom: 12px;
    display: inline-block;
    vertical-align: middle;
    padding: 3px 15px;
    border-radius: 50px;

    &:hover {
        -webkit-text-stroke: 0;
        background-color: #071f36;
        color: #fff;
    }
}

.fancybox-slide--html .leadership-popup .fancybox-close-small {
    width: 55px;
    height: 55px;
}

.leadership-popup__small-header {
    display: none;
}

@media (max-width: 990px) {
    .leadership-popup__header {
        min-height: 200px;
    }
    .leadership-popup__header__inner {
        display: none;
    }

    .leadership-popup__content {
        flex-direction: column;
    }
    
    .leadership-popup__small-header {
        display: block;

        h3 {
            font-size: 20px;
            color: rgba(7, 31, 54, 0.85);
            margin-bottom: 0;
        }

        h2 {
            color: rgba(7, 31, 54, 0.85);
            font-size: 28px;
            margin-bottom: 5px;
        }
    }

    .leadership-popup__right {
        padding: 0;
        width: 100%;
    }

    .leadership-popup__right__content {
        margin-block: 20px;
        max-height: 400px;
    }
}

@media (max-width: 767px) {
    .leadership-popup__header__inner {
        display: none;
    }

    .leadership-popup__header {
        min-height: 200px;
    }

    .leadership-popup__content {
        padding-inline: 22px;
    }

    .leadership-popup__right__content {
        max-height: 200px;
        overflow: hidden;
        margin-block: 20px;
    }
}

.leadership-popup .scrollbar-track-y {
    opacity: 1;
}

.leadership-popup .leadership-popup__right__content {
    padding-right: 20px;
}

.leadership-popup .scrollbar-thumb {
    background: linear-gradient(#071f36 0%, #1565aa 100%);
}







