section .body {
    flex-direction: column;
    gap: 1rem;
}

.team {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;

    width: 100%;
}

.member {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 1rem;

    width: calc(100% - 2rem);

    padding: 1rem;

    border-radius: 0.5rem;
    border: 1px solid var(--border);
    border: none;
    background-color: var(--yellow-background);
    background-color: unset;
}

.member:last-child {
    margin-bottom: 0;
}

.member img {
    position: relative;
    width: 100%;
    background-position: center;
    border-radius: 0.5rem;
    border-radius: 50%;
}

.member h2 {
    width: 100%;
    text-align: center;
    color: var(--accent-dark);
}

.member .body {
    display: flex;
    flex-direction: column;
    justify-content: start;

    gap: 0;
}

.member .body p {
    color: var(--text-hover);
}

.team-leader {
    display: flex;
    justify-content: center;

    width: 100%;
}

.team-leader .member .body {
    cursor: pointer;
}

.team-leader .member .body p {
    text-align: justify;
}

.team-leader .member img {
    width: 33%;
}

.member ul {
    margin-top: 1rem;
    color: var(--text-hover);
    list-style: none;

    padding: 1rem;

    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.member ul li{
    margin-bottom: 0.15rem;
}

.member ul li:last-child{
    margin-bottom: 0;
}

@media (max-width: 768px) {
    #landing-small .text {
        text-align: center;
    }

    #landing-small h1 {
        font-size: 1.5rem;
    }

    .team {
        display: grid;
        grid-template-columns: repeat(1, minmax(0, 1fr));

    }

    .team-leader .member img, .member img {
        width: 300px;
    }
}

@media (max-width: 576px) {
    .team-leader .member img, .member img {
        width: 60%;
    }
}