/* About us (pages/about.php): text and, on wide screens, the photo beside it;
   on narrow screens the photo is above the text. */
.about-layout {
    display: grid;
    gap: 32px;
    align-items: start;
}

/* The page text (a div with paragraphs) starts without the margin of its first paragraph. */
.about-text > :first-child,
.about-text > :first-child > :first-child {
    margin-top: 0;
}

.about-slogan {
    font-family: var(--font-heading);
    font-weight: var(--font-heading-weight);
    font-size: calc(1.5rem * var(--text-scale));
    color: var(--color-primary);
}

.about-photo-frame {
    order: -1;
}

.about-photo {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
}

@media (min-width: 900px) {
    .about-layout-with-photo {
        grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    }

    .about-photo-frame {
        order: 0;
    }

    .about-photo {
        max-height: none;
    }
}
