/* Layout */

.showit-team-member {
    border-radius: 100%;
    border: none;
    padding: 0 7px;
    cursor: pointer;
}

.showit-team-img {
    border-radius: 100%;
    margin: 7px 0;
    opacity: .1;
    transition: all .4s;
}

.showit-team-name {
    color: rgba(39, 39, 39, 1);
    line-height: 1.2;
    letter-spacing: 0.05em;
    font-size: 18px;
    font-family: 'Atyp BL Display Medium';
    font-weight: 400;
    font-style: normal;
}

.card {
    background-color: transparent !important;
}

.showit-team-title {
    color: rgba(78, 95, 105, 0.5);
    letter-spacing: 0.1em;
    font-size: 10px;
    text-align: center;
    font-family: 'Ambit Light';
    font-weight: 400;
    font-style: normal;
}

.team-modal-wrapper p {
    font-family: 'Ambit Light', sans-serif;
}

.showit-team-member:hover .showit-team-img {
    opacity: 1;
}

.showit-team-member:hover .showit-team-name,
.showit-team-member:hover .showit-team-title {
    visibility: hidden;
}

/* Modal styles */

.modal-overlay-active {
    overflow: hidden;
    transition: all 1s;
}

.team-modal-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: fixed;
    top: 0;
    z-index: 2;
    width: 100%;
    transition: all .5s;
    overflow-y: auto;
    max-height: 100vh;
    transition: all 1s;
}

.team-modal-wrapper {
    background: #fff;
    top: 50%;
    left: 0;
    right: 0;
    transition: all .5s;
    position: fixed;
    transform: translateY(-50%);
}

.showit-team-bio {
    visibility: hidden;
    position: absolute;
}

.team-modal-img {
    width: 90%;
    border-radius: 100%;
}

.team-modal-name {
    color: rgba(35, 35, 35, 1);
    line-height: 1.2;
    letter-spacing: 0.05em;
    font-size: 20px;
    font-family: 'Atyp BL Display Medium';
    font-weight: 400;
    font-style: normal;
}

.team-modal-title {
    color: rgba(78, 95, 105, 0.5);
    font-family: 'Ambit Light', sans-serif;
    letter-spacing: 0.1em;
    font-size: 13px;
    text-align: left;
}

/* .team-modal-close-wrapper {
    position: relative;
} */

.team-modal-close {
    position: absolute;
    right: 40px;
    top: 0;
    height: 25px;
    width: 25px;
    cursor: pointer;
    z-index: 100;
}

.team-pagination {
    text-align: right;
    padding-right: 20px;
}

.team-pagination li {
    display: inline-block;
    font-size: 30px;
    color: #a4d4aa;
    font-weight: 100;
    cursor: pointer;
    transition: all .2s;
    margin: 0 20px;
    border: 2px solid rgba(0, 0, 0, 0);
    height: 40px;
    width: 40px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
}

.team-pagination li:hover {
    font-weight: 200;
    border: 2px solid #a4d4aa;
}

.prev-modal-team-member {
    padding-right: 3px;
}

.next-modal-team-member {
    padding-left: 3px;
}

.team-modal-close svg {
    transition: all .3s;
}

.team-modal-close:hover svg {
    transform: rotate(90deg);
}

.showit-team-member .small-layout-img {
    min-height: 160px;
    min-width: 160px;
}

.showit-team-member .medium-layout-img {
    min-height: 160px;
    min-width: 160px;
}

.showit-team-member .large-layout-img {
    min-height: 286px;
    min-width: 286px;
}

.fade {
    opacity: 0;
}

.fade-in {
    animation: fadeIn .2s linear forwards;
}

/* .fade-out {
    animation: fadeOut .2s linear forwards;
} */

.slide-right {
    animation: slideRight .2s linear forwards;
    top: 25%;
}

.slide-left {
    animation: slideLeft .2s linear forwards;
    top: 25%;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes slideRight {
    0% {
        opacity: 0;
        transform: translateX(-10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

@keyframes slideLeft {
    0% {
        opacity: 0;
        transform: translateX(10px);
    }

    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

@media only screen and (max-width: 1024px) {

    .showit-team-member .small-layout-img {
        min-height: 186px !important;
        min-width: 186px;
    }

    .team-modal-wrapper {
        top: 50px;
        position: relative;
        transform: translateY(0);
        padding: 30px;
    }

    .team-pagination {
        position: relative;
        margin-bottom: 0;
        display: flex;
        justify-content: space-between;
        padding-bottom: 100px;
    }

    .team-pagination li {
        font-weight: 400;
        font-size: 40px;
    }

    .prev-modal-team-member {
        left: 0;
    }

    .next-modal-team-member {
        right: 0;
    }


}

@media only screen and (max-width: 767px) {
    .showit-team-member .small-layout-img {
        min-height: 284px !important;
        min-width: 284px;
    }
}

/* End of modal styles */