#about_us {
    width: 100vw;
    height: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    --max-width: 1400px;
}

#about_us h1 {
    width: 100%;
    max-width: var(--max-width);
    font-size: var(--font-size-xxxl);
    color: var(--secondary-hover);
    text-align: center;

}

#about_us h1 b {
    color: var(--primary-hover);
}

#about_us .subheadline {
    font-size: var(--font-size-l);
    color: var(--text-muted);
    margin-top: 0;
}

.about-content{
    box-sizing: border-box;
    padding: 2rem 1rem;
    width: 100%;
    max-width: var(--max-width);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap-reverse;
    gap: 50px;
}

.about-content img{
    width: 100%;
    max-width: calc(var(--max-width) / 2 - 50px);
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
}

.about-text{
    width: 100%;
    max-width: calc(var(--max-width) / 2 - 50px);
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: start;
}

.about-text p{
    margin: .5rem 0;
    line-height: 1.8;
    font-size: var(--font-size-m);
}

.about-text h2{
    color: var(--primary);
    margin: 0 0 .75rem 0;
}

/* ======================= Partners */

#partners{
    width: 100%;
    --max-width: 1500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
}

#partners h2{
    color: var(--primary-hover);
    font-size: var(--font-size-xxxl);
    margin-bottom: .5rem;
    text-wrap: balance;
}

#partners h3{
    color: var(--text);
    font-size: var(--font-size-l);
    margin-top: 0;
    max-width: 100vw;
    text-wrap: balance;
}

.partner-grid{
    margin-top: 4rem;
    box-sizing: border-box;
    padding: 1rem;
    width: 100%;
    max-width: var(--max-width);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 400px));
    gap: 2rem;
    align-items: center;
    justify-content: center;
    justify-items: center;
}

.partner-grid a{
    box-sizing: border-box;
    padding: 1rem;
    width: 100%;
    height: 250px;
    background-color: var(--surface);
    border-radius: 3px;
    border: 1px solid var(--border);
}

.partner-grid a:hover img{
    filter: grayscale(0);
    opacity: 1;
}

.partner-grid img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: 300ms;
}

@media (max-width: 600px) {
    #about_us {
        padding: 1rem;
        --max-width: 600px;
    }

    #about_us h1 {
        width: 100%;
        max-width: var(--max-width);
        font-size: var(--font-size-xl);
        color: var(--secondary-hover);
        text-align: center;

    }

    #about_us h1 b {
        color: var(--primary);
    }

    .about-content {
        box-sizing: border-box;
        padding: 1rem .5rem;
        width: 100%;
        max-width: var(--max-width);
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: center;
        flex-wrap: wrap-reverse;
        gap: 25px;
    }

    .about-content img {
        width: 100%;
        max-width: var(--max-width);
        height: auto;
        border-radius: 6px;
        border: 1px solid var(--border);
    }

    .about-text {
        width: 100%;
        max-width: var(--max-width);
        display: flex;
        flex-direction: column;
        align-items: start;
        justify-content: start;
    }

    .about-text p {
        margin: .5rem 0;
        line-height: 1.5;
    }

    .about-text h2 {
        color: var(--primary);
        margin: 0 0 .75rem 0;
    }


    #partners {
        --max-width: 600px;
        padding: 2rem .5rem;
    }

    #partners h2 {
        font-size: var(--font-size-xxl);
    }

    #partners h3 {
        font-size: var(--font-size-m);
    }

    .partner-grid {
        margin-top: 3rem;
        box-sizing: border-box;
        padding: .5rem;
    }

    .partner-grid a {
        height: 200px;
    }

    .partner-grid a:hover img {
    }

    .partner-grid img {
        filter: grayscale(0);
        opacity: 1;
    }

}