.team-members-wrap {
position: relative;
}
.team-cards-grid {
display: grid;
gap: 20px;
grid-template-columns: repeat(var(--team-columns), 1fr);
}
.team-cards-slider {
display: flex;
gap: 20px;
overflow-x: auto;
scroll-snap-type: x mandatory;
scroll-behavior: smooth;
-ms-overflow-style: none;
scrollbar-width: none;
}
.team-cards-slider::-webkit-scrollbar {
display: none;
} .team-cards-slider .team-card {
flex: 0 0 calc((100% - 65px) / 4);
scroll-snap-align: start;
}
.team-card {
position: relative;
overflow: hidden;
aspect-ratio: 3 / 4;
background: #e5e5e5;
border-radius: 10px;
width: 225px;
height: 250px;
}
.team-card-image {
width: 100%;
height: 100%;
line-height: 0;
}
.team-card-image img {
width: 100%;
height: 100%;
object-fit: cover;
filter: grayscale(100%);
display: block;
margin: 0;
padding: 0;
border-radius: 10px;
transition: transform 0.4s ease;
}
.team-card:hover .team-card-image img {
transform: scale(1.03);
}
.team-card-overlay {
position: absolute;
left: 0;
right: 0;
bottom: 0;
padding: 20px;
background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
color: #fff;  }
.team-card:hover .team-card-arrow  {
transform: translateY(-10px);
opacity: 1;
}
.team-card-name {
margin: 0 0 4px;
font-size: 22px;
font-weight: 600;
width: 80%;
}
.team-card-role {
margin: 0;
font-size: 14px;
font-style: italic;
opacity: 0.85;
width: 80%;
}
.team-card-arrow {
position: absolute;
right: 16px;
bottom: 16px;
width: 45px;
height: 45px;
border-radius: 50%;
background: #fff;
display: flex;
align-items: center;
justify-content: center;
transform: translateY(100%);
opacity: 0;
transition: transform 0.4s ease, opacity 0.4s ease;
}
.team-members-wrap.team-slider-wrap {
--team-brand-color: #A55445;
padding-top: 40px;
}
.team-slider-nav {
display: flex;
justify-content: flex-end;
align-items: center;
gap: 16px;
width: 100%;
position: absolute;
top: -80px;
right: 50px;
}
.team-nav-btn {
width: 46px;
height: 46px;
border-radius: 50%;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
background: var(--team-brand-color);
border: 1px solid var(--team-brand-color);
color: #fff;
transition: background-color .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.team-nav-btn svg {
width: 10px;
height: 18px;
display: block;
fill: currentColor;
}
.team-nav-prev svg {
transform: rotate(180deg);
}
.team-nav-btn:not(:disabled):hover {
background-color: #71352a !important;
border-color: #71352a;
color: #fff;
opacity: 1;
}
.team-nav-btn:disabled,
.team-nav-btn.is-disabled {
cursor: not-allowed;
background: transparent;
border: 1px solid var(--team-brand-color);
color: var(--team-brand-color);
opacity: 0.4;
} @media (max-width: 1024px) {
.team-members-wrap.team-slider-wrap {
padding-bottom: 80px;
padding-top: 0;
}
.team-slider-nav {
top: auto;
bottom: 0;
left: 50%;
right: auto;
transform: translateX(-50%);
width: auto;
justify-content: center;
}
.team-cards-slider .team-card {
flex: 0 0 calc((100% - 20px) / 2);
}
.team-cards-grid {
grid-template-columns: repeat(3, 1fr) !important;
}
}
@media (max-width: 768px) {
.team-cards-grid {
grid-template-columns: repeat(3, 1fr) !important;
}
}
@media (max-width: 650px) {
.team-cards-slider .team-card {
flex: 0 0 100%;
}
.team-cards-grid {
grid-template-columns: repeat(2, 1fr) !important;
}
}
@media (max-width: 480px) {
.team-cards-grid {
grid-template-columns: repeat(1, 1fr) !important;
}
.team-card{
width:unset;
height:unset;
}
}