.ecs-photo-stack {
    appearance: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.ecs-photo-stack img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ecs-photo-stack img[hidden] {
    display: none !important;
}

.ecs-photo-stack:focus-visible {
    outline: 3px solid #ffe4ba;
    outline-offset: -5px;
}

@media (max-width: 660px) {
    .ecs-team-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: clamp(105px, 30vw, 165px) !important;
        gap: 10px !important;
    }
}
