.employees-grid {
display: flex;
flex-direction: column;
gap: 18px;
}
.employees-grid__block {
display: flex;
flex-direction: column;
gap: 14px;
}
.employees-grid__faces {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
gap: 16px;
row-gap: 28px;
}
.employees-grid__face {
width: 100%;
aspect-ratio: 1 / 1;
overflow: hidden;
border-radius: 999px;
border: 1px solid rgba(0, 0, 0, 0.08);
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
display: block;
background: #f8fafc;
position: relative;
transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
}
.employees-grid__face::after {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.08) 100%);
opacity: 0;
transition: opacity 0.25s ease;
}
.employees-grid__face.is-updating {
opacity: 0.4;
}
.employees-grid__face:hover {
transform: translateY(-3px);
box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
}
.employees-grid__face:hover::after {
opacity: 1;
}
.employees-grid__face-img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.employees-grid__more {
display: flex;
justify-content: flex-start;
}
.employees-grid__more-button {
max-width: 240px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
position: relative;
padding-left: 18px;
padding-right: 18px;
}
.employees-grid__more-button.is-loading {
pointer-events: none;
}
.employees-grid__spinner {
display: none;
width: 18px;
height: 18px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.8);
border-top-color: rgba(255, 255, 255, 0.2);
animation: employees-grid-spin 0.8s linear infinite;
}
.employees-grid__ages {
min-height: 80px;
}
@keyframes employees-grid-spin {
to {
transform: rotate(360deg);
}
}
@media (max-width: 900px) {
.employees-grid__faces {
grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
row-gap: 18px;
}
}
@media (max-width: 600px) {
.employees-grid__faces {
grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
row-gap: 16px;
}
}