.tm-team-grid{

display:grid;

grid-template-columns:repeat(4,1fr);

gap:40px;

}

.tm-card{

position:relative;

display:flex;

flex-direction:column;

height:100%;

}

.tm-image{

position:relative;

overflow:hidden;

height:420px;

}

.tm-image-tag{

width:100%;

height:100%;

display:block;

object-fit:cover;

transition:.6s ease;

}
.tm-hover{

    position:absolute;

    inset:0;

    display:flex;

    flex-direction:column;

    overflow:hidden;

    background:#fff;

    transform:translateX(-100%);

    transition:transform .45s cubic-bezier(.4,0,.2,1);

}
.tm-card:hover .tm-hover{
    transform:translateX(0);
}

.tm-hover-inner{
    display:flex;
    flex-direction:column;
    height:100%;
}

.tm-hover-title{

font-family: "Public Sans", Sans-serif;
    font-size: 20px;
    font-weight: 700;
    text-transform: capitalize;
    line-height: 1em;
    color: #2E3333;
    margin: 0px 0px 5px 0px;

}
.tm-team-grid
{
        row-gap: 50px !important;
}
.tm-hover-subtitle{

color: #E2B144;
    font-family: "Public Sans", Sans-serif;
font-size: 18px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.5em;
    margin-bottom: 0px;
}

.tm-description{

font-size:15px;

line-height:1.8;

}

.tm-description p{

margin-bottom:15px;

}

.tm-name{

font-size:30px;

font-weight:700;

text-align:center;

margin-top:20px;

}





.hover-right .tm-card:hover .tm-image-tag{

transform:translateX(-22%);

}



.hover-fade .tm-card:hover .tm-hover{

opacity:1;

}

.hover-fade .tm-card:hover .tm-image-tag{

transform:none;

opacity:.25;

}

@media(max-width:1024px){

.tm-team-grid{

grid-template-columns:repeat(2,1fr);

}

}

@media(max-width:767px){

.tm-team-grid{

grid-template-columns:1fr;

}

.tm-hover{

width:100%;

left:-100%;

}

.tm-card:hover .tm-image-tag{

transform:none;

}

}

.tm-image img
{
    width:100%;
    height:100%;
}

.tm-header{

    flex-shrink:0;

    position:sticky;

    top:0;

    background:#fff;

    z-index:20;

    padding:20px;

    border-bottom:1px solid #ececec;
        display: flex;
    gap: 20px;
    flex-flow: row;    align-items: center;

}

.tm-header-inner{


    display: flex;
    gap: 0px;
    flex-flow: column;

}
.tm-avatar{

width:70px;

height:70px;

flex:none;

border-radius:50%;

overflow:hidden;

}

.tm-avatar img{

width:100%;

height:100%;

object-fit:cover;

}


.hover-fade .tm-card:hover .tm-avatar .tm-image-tag
{
    opacity:1;
}


.tm-description{

    flex:1;

    min-height:0;

    overflow-y:auto;

    overflow-x:hidden;

    padding:20px;

    -webkit-overflow-scrolling:touch;

}
.tm-description::-webkit-scrollbar{

    width:4px;

}

.tm-description::-webkit-scrollbar-track{

    background:transparent;

}

.tm-description::-webkit-scrollbar-thumb{

    background:#1c4c7d;

    border-radius:100px;

}

.tm-description::-webkit-scrollbar-thumb:hover{

    background:#163f67;

}
.tm-description{

    scrollbar-width:thin;

    scrollbar-color:#1c4c7d transparent;

}
