/*
 * About collage - Figma 1:2888 (desktop) / 1:1546 (mobile).
 *
 * Desktop is two 442/444 columns, gap 24, with 64 between a column's text and
 * its photo. The columns are offset: the left runs text then photo, the right
 * photo then text.
 *
 * The markup is in the mobile reading order - text, photo, text, photo - so the
 * desktop flips the second column rather than the mobile un-flipping it. That
 * way the DOM order is the order a screen reader should hear, at every width.
 */

.about-collage {
    padding: var(--spacing-large) var(--spacing-small);
}

.about-collage-container {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    /* 442 + 24 + 444 in the frame. */
    max-width: 910px;
    margin-inline: auto;
}

.about-collage-column {
    display: flex;
    flex-direction: column;
    gap: 64px;
    flex: 1 1 0;
    min-width: 0;
}

/* The frame's offset: photo above text on the right. */
.about-collage-column-second {
    flex-direction: column-reverse;
}

.about-collage-text {
    font-family: var(--font-primary);
    /* 38 in the frame, 28 at 375. */
    font-size: clamp(28px, 2.64vw, 38px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--color-shark);
    margin: 0;
}

.about-collage-photo {
    /* 559 x 626 at desktop and 343 x 384 at mobile - the same ratio. */
    aspect-ratio: 559 / 626;
    width: 100%;
    overflow: hidden;
}

.about-collage-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* X-Small devices (portrait phones, less than 576px) */
@media (max-width: 576px) {
    .about-collage {
        /* 72 / 16 in the mobile frame. */
        padding: 72px 16px;
    }

    .about-collage-container {
        flex-direction: column;
        /* 72 between the two column groups. */
        gap: 72px;
        max-width: none;
    }

    .about-collage-column {
        /* 24 between a statement and its photo. */
        gap: 24px;
    }

    /*
     * Mobile reads text, photo, text, photo - so the second column returns to
     * the DOM order and the offset disappears with the two-column layout.
     */
    .about-collage-column-second {
        flex-direction: column;
    }
}
