.team-item-img-wrapper {
    aspect-ratio: 558/750;
    background: grey;
}

.team-item-name.m-0 {
    font-size: max(1rem, 1.171875vw);
    margin-top: 2.1em;
}

.team-item-description {
    margin-top: 1.2857142857em;
}

.team-headline.m-0 {
    grid-column: 3 / span 10;
    margin-bottom: 0.8888888888em;
}

.team::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 79.868359375%;
    aspect-ratio: 1919.87 / 40.42;
    background-image: url('../../img/yellow-area-3.svg');
    background-repeat: no-repeat;
    background-size: cover;
}

.team::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 83.8796875%;
    transform: translateY(48%);
    aspect-ratio: 1919.94 / 46.15;
    background-image: url('../../img/yellow-area-4.svg');
    background-repeat: no-repeat;
    background-size: cover;
}

.team-group-img-wrapper {
    grid-column: 3 / span 6;
    aspect-ratio: 1405/1050;
}

.team-group-text {
    grid-column: 10 / span 3;
    align-self: center;
}

@media (max-width: 1199.98px) {
    .team-headline.m-0 {
        grid-column: 2 / span 12;
    }

    .team-group-img-wrapper {
        grid-column: 2 / span 6;
    }
    
    .team-group-text {
        grid-column: 9 / span 4;
    }

}

@media (max-width: 991.98px) {
    .team-list.grid {
        display: flex;
        flex-direction: column;
    }

    .team-group-text {
        grid-column: 8 / span 6;
        padding-left: var(--grid-gap);
    }
}

@media (max-width: 767.98px) {
    .team-group-img-wrapper {
        grid-column: 2 / span 12;
    }
    
    .team-group-text {
        grid-column: 2 / span 12;
        padding-left: 0;
        margin-top: 1em;
    }
}