.team-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
}

.team-card__image {
    position: relative;
}

.team-card__image::after {
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 0;
    left: 0;
    height: 48%;
    background: linear-gradient(to top, rgba(34, 31, 31, 0.66) 0%, rgba(34, 31, 31, 0.22) 58%, transparent 100%);
    content: "";
    pointer-events: none;
}

.team-card__header {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 76px;
    padding: 14px 16px;
}

.team-card__identity {
    min-width: 0;
}

.team-card__toggle {
    position: relative;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
    transition: 0.25s ease;
}

.team-card__toggle span,
.team-card__toggle span::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: "";
    transform: translate(-50%, -50%);
}

.team-card__toggle span::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.25s ease;
}

.team-card__toggle:hover,
.team-card__toggle:focus-visible,
.team-card__toggle[aria-expanded="true"] {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.team-card__toggle:focus-visible {
    outline: 3px solid rgba(21, 168, 79, 0.25);
    outline-offset: 3px;
}

.team-card__toggle[aria-expanded="true"] span::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.team-card__content {
    padding: 22px 26px 26px;
    border-top: 1px solid rgba(34, 31, 31, 0.12);
}

.team-card h3 a {
    color: inherit;
    text-decoration: none;
}

.team-card__header h3 {
    color: #fff;
    font-size: 18px;
}

.team-card h3 a:hover,
.team-card h3 a:focus-visible {
    color: #0f7f3b;
}

.team-card__role {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .team-card__header {
        right: 0;
        bottom: 0;
        left: 0;
        min-height: 72px;
        padding: 12px 14px;
    }

    .team-grid {
        grid-template-columns: none;
    }
}
