
.team-section {
    background: #ffffff;
    position: relative;
}

.team-list-section {
    position: relative;
}

.team-top-content {
    padding: 0 22px 30px;
}

.team-section-slider .team-top-content {
    padding: 0 22px 0;
}

.js-team-list {
    margin-bottom: 0;
}

.team-feed-box {
    box-sizing: border-box;
    flex: 0 0 auto;
    flex-basis: auto;
    padding-right: 0;
    padding-left: 0;
    margin: 20px 16px;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
    border-radius: 0;
    margin: 16px;
    position: relative;
    background-color: #fff;
    text-align: left;
    height: 340px; 
}

.team-list-item--hasbio .team-feed-box {
    cursor: pointer;
}

.team-feed-info-box {
    padding: 12px 25px;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(2, 54, 69, .84);
    text-align: center;
    color: #fff;
}

.team-feed-info-box p {
    font-size: 16px;
    font-weight: 500;
    padding: 0;
}

.team-feed-image-box {
    position: relative;
    width: 100%;
    height: 100%;
}

.team-overlay {
    position: absolute;
    background-color: rgba(2,54,69,0.7);
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    transition: all .3s;
    opacity: 0;
}

.team-overlay-icon {
    margin: 0 auto;
    position: relative;
    color: #ffffff;
    font-size: 22px;
    padding-bottom: 10px;
}

.team-overlay span {
    margin: 0 0;
    position: relative;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
}

.team-feed-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content-image img {
    max-width: 309px;
}

.team-section-slider .slick-initialized .slick-slide {
    margin: 0 10px;
}

.team-section-slider .slick-arrow {
    height: 38px;
    width: 38px;
    background: #D69A36;
    border-radius: 100px;
}

.team-section-slider .slick-arrow::before {
    transition: all .3s ease-in-out;
    font-size: 40px;
}

@media( min-width: 768px ) {
    .team-feed-info-box {
        padding: 12px 10px;
    }

    .team-feed-box {
        margin: 0 0;
        height: 340px;
    }

    .js-team-list {
        box-sizing: border-box;
        display: flex;
        flex: 0 1 auto;
        flex-direction: row;
        flex-wrap: wrap;
        margin-right: -16px;
        margin-left: -16px;
        justify-content: center;
    }
      
    .team-list-item {
        box-sizing: border-box;
        flex: 0 0 auto;
        flex-basis: auto;
        padding-right: 0;
        padding-left: 0;
        margin: 20px 16px;
        width: calc(33.33% - 32px);
    }

    .team-section-slider .team-list-item {
        margin: 0;
    }

    .team-feed-info-box p {
        font-size: 14px;
    }

}

@media( min-width: 1200px ) {
    .team-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .js-team-list {
        padding-bottom: 0;
    }

    .team-list-item:hover .team-overlay {
        transition: all .3s ease-in-out;
        opacity: 1;
    }

    .team-list-item:hover .team-feed-info-box::before {
        transition: all .3s ease-in-out;
        width: 100%;
    }

    .team-list-item {
        width: calc(25% - 32px);
    }

    .team-feed-box {
        margin: 0;
    }

    .team-feed-info-box {
        padding: 11px 10px;
    }

    .team-feed-info-box h4 {
        font-size: 22px;
    }

    .team-section-slider .slick-next {
        right: -50px;
    }

    .team-section-slider .slick-prev {
        left: -50px;
    }

    .team-section-slider .slick-arrow:hover {
        background: #023645;
    }

}

@media( min-width: 1200px ) {
    .team-feed-info-box p {
        font-size: 16px;
    }
}


/* Team Modal */

.team-modal {
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    padding: 25px;
    overflow: auto;
}

.team-modal-dialog {
    width: 100%;
    max-width: 1098px;
    margin: 0 auto;
    position: relative;
    background: #FFFFFF;
    overflow: hidden;
    box-shadow: 0 0 20px rgb(0,0,0,0.2);
}

.team-info {
    background-color: #023645;
    padding: 30px 20px;
    border-bottom: 5px solid #0991AA;
}

.modal-content-image {
    height: 300px;
}

.modal-content-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.modal-content-information h2 {
    color: #FFFFFF;
    padding-top: 15px;
    padding-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.modal-content-information h5 {
    color: #FFFFFF;
    font-size: 16px;
    padding-bottom: 20px;
    text-transform: none;
    letter-spacing: 0.01em;
    font-weight: 400;
}

.team-contact i {
    margin: 0 15px 0 0;
    padding: 0 0 0 0;
    color: rgba( 255, 255, 255, .56);
    font-size: 21px;
    transition: all .5s ease;
}

.team-contact a:hover i {
    color: #D69A36;
}

.team-contact i::before {
    margin-left: -2px;
}

.team-contact ul {
    margin: 0;
    padding: 0;
}

.team-info .mfp-modal-close {
    border: none;
    padding: 10px;
    background: none;
    line-height: 0;
    position: absolute;
    top: 0;
    right: 0;
    opacity: .8;
}

.team-info .mfp-modal-close:hover {
    opacity: 1
}

.team-info .mfp-modal-close i {
    color: #BDDDFC !important;
    font-size: 24px;
}

.modal-quote-content {
    padding: 25px;
    position: relative;
}

.modal-content-scrollable-information {
    padding: 40px 22px
}

.modal-quote-content h4::before {
    position: absolute;
    left: 0;
    top: 0;
    font-family: "icomoon";
    content: '\e91a';
    color: rgba(141,198,63,0.2);
    font-size: 45px;
}

.swipe-info {
    background: #0991aa;
    color: #FFFFFF;
    padding: 5px 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    text-align: center;
    font-size: 15px;
    margin: 0 22px;
}

.swipe-info i {
    padding-right: 7px;
}

@media (min-width: 1200px) {
    .modal-content-image {
        height: 350px;
    }
}

@media (min-width: 1200px) {
    .team-modal {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .team-info {
        padding: 50px 80px;
        position: relative;
    }

    .modal-content-image {
        height: 344px;
        width: 311px;
        position: absolute;
    }

    .modal-content-information {
        padding-left: 366px;
    }

    .modal-content-information h2 {
        font-size: 38px;
        padding-bottom: 10px;
        padding-top: 0;
    }
    
    
    .modal-content-information h5 {
        font-size: 17px;
        padding-bottom: 35px;
    }

    .modal-quote-content {
        margin-left: 336px;
        padding-top: 40px;
    }

    .modal-quote-content h4 {
        font-size: 18px;
    }
    
    .modal-quote-content h4::before {
        font-size: 63px;
    }

    .modal-content-scrollable-information {
        padding: 0px 40px 0 440px;
        margin: 40px 50px 50px 0;
        max-height: 380px;
        overflow: auto;
    }



}

.team-modal.fancybox-content .fancybox-close-small {
    display: none !important;
}

.team-modal.fancybox-content .team-modal-content .fancybox-close-small {
    display: block !important;
}
