:root {
    --bg-top: #D4DDFC;
    --bg-bottom: #E0EAFF;
    --black: #000000;
    --white: #FFFFFF;
    --maroon: #760D17;

    --menu: 24px;
    --def: 16px;
    --h1: 64px;
    --space: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: linear-gradient(var(--bg-top), var(--bg-bottom));
    color: var(--black);
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

main {
    flex: 1;
    min-width: 0;
}

#about {
    width: min(100% - 64px, 1440px);
    margin: 0 auto;
    padding: 50px 0 160px;
}

.about-heading {
    margin-bottom: var(--space);
    text-align: center;
}

h1 {
    color: var(--maroon);
    font-size: var(--h1);
    font-weight: 800;
    line-height: 1;
}

.subtitle {
    margin-top: 30px;
    font-size: 24px;
    font-style: italic;
    font-weight: 700;
    line-height: 1.4;
}

.about-text {
    width: min(100%, 1300px);
    margin: 0 auto;
}

.about-text p {
    font-family: "Platypi", Georgia, "Times New Roman", serif;
    font-size: var(--def);
    line-height: 2.25;
    text-align: justify;
    overflow-wrap: break-word;
}

.about-text p + p {
    margin-top: 50px;
}

strong {
    font-weight: 700;
}

.about-photos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    width: min(100%, 1300px);
    margin: var(--space) auto;
}

.about-photos img {
    width: auto;
    min-width: 0;
    height: 350px;
    object-fit: contain;
}

.about-logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    gap: 50px;
    margin-top: var(--space);
}

.about-logos img {
    width: 420px;
    height: 420px;
    object-fit: contain;
}

.gallery-action {
    margin-top: 125px;
    text-align: center;
}

.gallery-button {
    max-width: 100%;
    padding: 3px 10px;
    border: 2px solid #9098AA;
    border-radius: 999px;
    background: transparent;
    color: var(--black);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    opacity: 1;
    cursor: default;
    -webkit-text-fill-color: var(--black);
}

@media (max-width: 1560px) {
    .about-text p {
        line-height: 2;
    }

    .about-photos {
        gap: var(--space);
    }

    .about-photos img {
        width: calc((100% - var(--space)) / 2);
        height: auto;
    }

    .about-logos img {
        height: 320px;
    }
}

@media (max-width: 1000px) {
    .about-logos {
        gap: var(--space);
    }

    .about-logos img {
        height: 240px;
    }

    .gallery-action {
        margin-top: 80px;
    }

    .gallery-button {
        font-size: 18px;
    }
}

@media (max-width: 800px) {
    :root {
        --menu: 18px;
        --def: 16px;
        --h1: 48px;
    }

    #about {
        width: 90%;
        padding-top: 35px;
        padding-bottom: 80px;
    }

    .subtitle {
        font-size: 18px;
    }

    .about-text p {
        line-height: 1.9;
        text-align: left;
        hyphens: auto;
    }

    .about-text p + p {
        margin-top: 32px;
    }

    .about-logos img {
        height: 200px;
    }
}

@media (max-width: 640px) {
    .about-photos {
        flex-direction: column;
    }

    .about-photos img {
        width: min(100%, 520px);
        height: auto;
    }

    .gallery-action {
        margin-top: 60px;
    }
}

@media (max-width: 480px) {
    :root {
        --h1: 40px;
        --menu: 16px;
    }

    .subtitle {
        font-size: 16px;
    }

    .about-logos {
        grid-template-columns: 1fr;
    }

    .about-logos img {
        width: 220px;
        height: 220px;
    }
}

@media (max-height: 500px) {
    nav.mobile-open {
        justify-content: flex-start;
        gap: 16px;
        padding-top: 100px;
    }
}

@keyframes percFadeIn {
    from {
        opacity: 0;
        transform: translateY(-45px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes percFadeInSoft {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes percMenuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-45px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

body > header,
body > main,
body > footer {
    animation: percFadeIn 700ms ease-out backwards;
}

body > header { animation-delay: 80ms; }
body > main { animation-delay: 220ms; }
body > footer { animation-delay: 360ms; }

body > main > * {
    animation: percFadeInSoft 600ms ease-out 320ms both;
}

header #logos {
    animation: percFadeIn 550ms ease-out 180ms backwards;
}

header nav {
    animation: percMenuSlideDown 650ms cubic-bezier(0.22, 1, 0.36, 1) 180ms backwards;
}

header nav.mobile-open {
    animation: none;
}

body.nav-locked > header {
    opacity: 1 !important;
    transform: none !important;
}