.team-member-card__flip-wrap {
    perspective: 1000px;
    position: relative;

}

.team-member-card img{
    display: block;
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
    border-radius: 10px !important;
}

.team-member-card__front-image, .team-member-card__back {
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    transition: opacity 0.5s ease-in-out, z-index 0s step-end;
}

.team-member-card__front-image {
    position: relative;
    z-index: 2;
}

.team-member-card__back {
    z-index: 1;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.team-member-card__flip-wrap:hover .team-member-card__front-image {
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease-in-out, z-index 0s step-start;
}

.team-member-card__flip-wrap:hover .team-member-card__back {
    opacity: 1;
    z-index: 2;
}

.team-member-card__back-bio{
    color: #777;
    padding:20px
}

.gallery-item {
    transition: opacity 0.5s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: 100%;
    background:  #F4F4F4;
    border-radius: 10px;
    border: solid 1px transparent;
}

.team-member-card__body{
    margin-top: 15px;
}

.team-members{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.team-member-card{
    flex: 0 0 auto;
    width: 25%;
}


.team-member-card__back-gallery .front-image{
    display: none !important;
}
.team-member-card__body-name{
    font-size: 16px;
    color:#e02015 !important;
}

.team-member-card-for-you{
    min-height: 400px;
    max-height: 400px;
    background: #f4f4f4;
    border-radius: 10px;
    padding: 20px;
}

.team-member-card-for-you h2{
    color:#e02015 !important;
}
 

@media screen and (max-width:768px) {
    .team-member-card__back-gallery .front-image{
        display: block !important;
    }
    .team-member-card__front-image{
        display: none;
    }
    .team-member-card__back{
        position: relative;
        opacity: 1 !important;
       
    }
    .gallery-item{
        opacity: 1 !important;
        position: relative;
        height: 100%;
    }
    .team-members{
        display: block;
    }
    .team-member-card{
        width: 100%;
        margin-bottom: 30px;
    }
    .owl-stage{
        display: flex;
    }
    .team-member-card__back .owl-nav{
        position: absolute;
        width: calc(100% - 3px);
        top: 50%;
        display: flex;
        justify-content: space-between;
    }
    .team-member-card__back button{
        color: #fff !important;
        width: 25px;
        height: 25px;
        font-size: 35px !important;
        vertical-align: middle;
        display: flex;
        margin-top: 0;
        align-items: center;
        justify-content: center;
        background: #e02015 !important;
    }
    .team-member-card__back button.owl-next{
        float: right;
    }
    .team-member-card__back button span{
        transform: translateY(-3px);
    }
}
