﻿/* Grid layout for each row */
.about-grid {
    /* responsive text column width (same for both rows) */
    --copy: clamp(46ch, 55vw, 70ch);
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, var(--copy)); /* media | text */
    column-gap: 32px;
    row-gap: 16px;
    align-items: center;
    margin-block: 40px;
    justify-content: center;
}

    /* Flip columns: text | media (use the same copy width) */
    .about-grid.swap {
        grid-template-columns: minmax(0, var(--copy)) minmax(260px, 340px);
    }

/* Media column stays compact */
.about-media {
    width: clamp(260px, 28vw, 340px);
    justify-self: start;
}

/* Image */
.about-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--mud-elevation-6);
}

/* Text column – let the grid track control width */
.about-copy {
    width: 100%;
    max-width: none; /* important: don’t re-cap it here */
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.about-p {
    margin: 0;
}

/* Mobile: stack */
@media (max-width: 960px) {
    .about-grid,
    .about-grid.swap {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: 16px;
        margin-block: 28px;
    }

    .about-media {
        width: 100%;
        max-width: 340px;
    }
}
