/* Team cards reuse the site's Bootstrap grid and existing team-wrapper styles. */
.clinic-team .team-wrapper {
    display: flex;
    flex-direction: column;
}

.clinic-team .image-area {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.clinic-team .image-area a {
    display: block;
    height: 100%;
}

.clinic-team .image-area img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-team .team-member-name {
    margin-bottom: 8px;
    font-size: var(--h6);
    line-height: 1.3;
}

.clinic-team .team-member-role {
    margin-bottom: 14px;
    color: var(--color-primary);
    font-weight: 500;
    line-height: 1.5;
}

.clinic-team .team-member-description {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.7;
}

.clinic-team a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .clinic-team .team-wrapper,
    .clinic-team .team-wrapper img {
        transition: none;
        animation: none;
    }

    .clinic-team .team-wrapper:hover img {
        transform: none;
    }
}
