.cgief-wrapper.team {
    padding-top: calc(
        var(--size-navbar-height) + var(--size-section-padding-topbottom)
    );
    gap: var(--size-navbar-height);
}

.cgief-team-menu-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: var(--size-section-padding-topbottom);
}

.cgief-team-menu {
    color: var(--color-green);
    font-size: 1.5rem;
    font-weight: bold;
}

.cgief-team-category {
    width: 100%;
    max-width: var(--size-max-width);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cgief-team-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    width: 100%;
}

.cgief-team-name {
    font-size: 3rem;
    text-align: center;
    word-break: break-all;
}

.cgief-team-caption {
    font-size: 1.5rem;
}

.cgief-team-member-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;

    justify-content: center;
    justify-items: center;
    align-items: start;

    width: 100%;
    overflow: visible;
}

.cgief-team-member {
    flex: 0 0 calc((100% - 3 * 40px) / 4); /* 4 per row */
    max-width: 220px;
    gap: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
}

.cgief-team-member-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: thin solid #ccc;
    border-radius: 20px;
    padding: 0;
}

.cgief-team-member-name {
    font-size: 1.8rem;
    color: var(--color-green);
    font-weight: bold;
    line-height: 1.3;
}

.cgief-team-member-role {
    font-size: 1.4rem;
    line-height: 1.4;
}
