img,
svg {
    max-width: 100%;
    vertical-align: middle;
}

.flex-ctr-spb {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.container {
    width: clamp(320px, 96%, 1420px);
    margin: 0 auto;
    padding: 0 15px;
}

.team-members > .grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 28px;
}

.team-member__thumb,
.popup__thumb {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    margin: 0;
    cursor: pointer;
}

.team-member__thumb::after,
.popup__thumb::after {
    content: "";
    position: absolute;
    height: calc(100% - 20px);
    width: calc(100% - 20px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 15px;
    border: 2px solid var(--brand-color);
    transition: 0.3s;
    box-sizing: content-box;
}

.team-member:hover .team-member__thumb::after {
    border-width: 12px;
    opacity: 0.7;
}

.team-member:nth-child(2) .team-member__thumb:after {
    border-color: #ffc24b;
}

.team-member:nth-child(3) .team-member__thumb:after {
    border-color: #37abec;
}

.team-member:nth-child(4) .team-member__thumb:after {
    border-color: #3bbc4c;
}

.team-member:nth-child(5) .team-member__thumb:after {
    border-color: #4e57ef;
}

.team-member:nth-child(6) .team-member__thumb:after {
    border-color: #de3c7d;
}

.team-member__thumb img,
.popup__thumb img {
    width: 100%;
    aspect-ratio: 1/1;
}

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

.team-member__name {
    font-size: 24px;
    line-height: 1.3;
    font-family: var(--global-font);
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 8px;
}

.team-member__info {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    color: var(--dark);
    margin: 0 0 10px;
}

.team-member__para,
.team-member__more-link {
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    color: var(--grey);
    margin: 0;
}

.team-member__more-link {
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    white-space: nowrap;
    text-decoration: none !important;
}

.team-member__more-link:hover {
    color: var(--brand-color);
}

@media (max-width: 1023px) {
    .team-member__name {
        font-size: 22px;
    }
}

@media (max-width: 991px) {
    .team-members > .grid-layout {
        gap: 24px;
    }

    .team-member__name {
        font-size: 20px;
    }

    .team-member__info {
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .team-members > .grid-layout {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .team-member__name {
        font-size: 18px;
    }

    .team-member__info {
        font-size: 15px;
    }

    .team-member__para,
    .team-member__more-link {
        font-size: 14px;
    }
}

@media (max-width: 575px) {
    .team-members > .grid-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-member {
        max-width: 350px;
        justify-self: center;
    }
}

/* ********* Member Popup ********** */
.member-popup {
    position: fixed;
    height: 100vh;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 99999;
    background-color: rgba(3, 3, 3, 0.7);
    padding: 60px 0;
    display: none;
}

.member-popup > .container {
    max-width: 1200px;
}

.member-popup .popup__inner {
    background-color: var(--white);
    border-radius: 20px;
}

.member-popup .popup__header {
    text-align: end;
    margin-bottom: 10px;
}

.member-popup .img_popup__close {
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px 10px 0;
	outline: none;
}

.popup__body {
    padding: 10px 60px 60px;
    gap: 100px;
    max-height: 70vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popup__body::-webkit-scrollbar {
    display: none;
}

.member-popup .img_popup__close svg {
    pointer-events: none;
}

.member-popup .img_popup__close rect,
.member-popup .img_popup__close path {
    transition: 0.3s;
}

.member-popup .img_popup__close:hover rect,
.member-popup .img_popup__close:hover path {
    stroke: var(--brand-color);
}

.member-popup .popup__left {
    width: 300px;
    position: relative;
}

.member-popup .popup__left::after {
    content: "";
    position: absolute;
    top: 0;
    right: -50px;
    height: 100%;
    width: 1px;
    background-color: #e6e7e8;
}

.member-popup .popup__thumb {
    cursor: initial;
}

.member-popup .popup__right {
    flex: 1;
    height: 100%;
}

.member-popup .popup__left__context {
    padding: 20px 15px 0;
}

.member-popup .popup__member-name {
    font-size: 30px;
    font-weight: 700;
    font-family: var(--global-font);
    line-height: 1.3;
    margin: 0 0 5px;
    color: var(--dark);
}

.member-popup .popup__member-info {
    font-size: 16px;
    line-height: 1.3;
    font-weight: 500;
    color: var(--grey);
    margin: 0;
}

.member-popup p {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 400;
    margin: 0 0 28px;
    color: var(--dark);
}

.member-popup p:last-child {
    margin: 0;
}

@media (max-width: 1080px) {
    .member-popup {
        padding: 40px 0;
    }

    .member-popup .popup__body {
        padding: 10px 40px 40px;
        gap: 60px;
    }

    .member-popup .popup__left {
        width: 250px;
    }

    .member-popup .popup__left::after {
        right: -30px;
    }

    .member-popup .popup__member-name {
        font-size: 28px;
    }

    /* .team-member__thumb::after, */
    .member-popup .popup__thumb::after {
        width: calc(100% - 15px);
        height: calc(100% - 15px);
    }
}

@media (max-width: 1023px) {
    .member-popup .popup__left__context {
        padding: 20px 0 0;
    }
}

@media (max-width: 991px) {
    .member-popup .popup__left {
        width: 200px;
    }

    .member-popup .team-member__thumb::after,
    .member-popup .popup__thumb::after {
        width: calc(100% - 14px);
        height: calc(100% - 14px);
        border-width: 1px;
    }

    .member-popup p {
        font-size: 17px;
    }

    .member-popup .popup__member-name {
        font-size: 26px;
    }
}

@media (max-width: 767px) {
    .member-popup .popup__body {
        flex-direction: column;
        padding: 10px 30px 30px;
        gap: 50px;
    }

    .member-popup .popup__left {
        width: 100%;
    }

    .member-popup .popup__left::after {
        right: auto;
        bottom: -25px;
        left: 0;
        top: auto;
        height: 1px;
        width: 100%;
    }

    .member-popup .popup__thumb {
        max-width: 200px;
    }

    .member-popup .popup__member-name {
        font-size: 24px;
    }

    .member-popup .popup__member-info {
        font-size: 15px;
    }

    .member-popup p {
        font-size: 16px;
    }

    .member-popup p:not(:last-child) {
        margin-bottom: 15px;
    }
}

@media (max-width: 575px) {
    .member-popup .popup__body {
        padding: 10px 20px 20px;
    }
}
