.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 278px));
    grid-auto-rows: auto auto auto;
    gap: 5.5rem;
    justify-content: center;
    max-width: 1046px;
    margin-inline: auto;
}

.team__member {
    grid-row: span 3;
    display: grid;
    row-gap: 0;
    grid-template-rows: subgrid;
}

.finance-text-image__contact-person {
    grid-template-rows: max-content;
    gap: 2rem;
}

.finance-text-image__contact-person .team__member {
    grid-row-start: auto;
}
.team__member-image {
    position: relative;
}

.team__member-image > img {
    border-radius: 50%;
}

.team__member-image > svg {
    position: absolute;
    top: 1.5rem;
    left: 0.25rem;
    z-index: -1;
}

.team__member-image:after {
    content: " ";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(0, 107, 179, 0);
    transition: background-color 0.3s;
}

.team__member-image:hover:after,
.team__member-image:focus-visible:after {
    background: rgba(0, 107, 179, 0.8);
}

.team__member-image:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 4px;
    border-radius: 50%;
}

.team__member-quote {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: #fbfbfb;
    text-align: center;
    padding: 2rem;
    transition: opacity 0.3s;
    z-index: 1;
}

.team__member-image:hover .team__member-quote,
.team__member-image:focus-visible .team__member-quote {
    opacity: 1;
}

.team__member-info {
    text-align: center;
    padding-top: 2.6rem;
    padding-bottom: 1.5rem;
}

.team__member-name {
    font-family: "Unit Bold", sans-serif;
    font-size: 24px;
}

.team__member-responsibility {
    font-family: "Unit Bold", sans-serif;
    text-transform: uppercase;
    color: #557f14;
    margin-bottom: 0;
}

.team__member-responsibility > span {
    color: #1b1c1e;
}

.team__member-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-direction: column;
    list-style: none;
    padding: 0;
}

.team__member-contact img {
    padding-right: 0.5rem;
}
