/*
  aboutMe — the homepage About me as two columns (component.json aboutMe, 3 tokens; approved by Vivek 2026-11-18).
  Sits in Featured work's wide column (.section__wide), with the same grid as a Featured work card:
  text (320px) on the left, the circle portrait on the right filling the rest (532px at 1440, 857px at 2560),
  48px apart, centered top to bottom. Why: at one column the 672px portrait filled a laptop screen, so the
  picture and the words were never seen together. Below 768px it stacks, portrait on top (as before),
  while the text stays first in reading order.
*/
.about-me {
  display: flex;
  flex-direction: column-reverse;
  gap: var(--about-me-stacked-gap-all);
}
.about-me__media {
  width: 100%;
}
@media (width >= 768px) {
  .about-me {
    flex-direction: row;
    align-items: center;
    gap: var(--about-me-gap-all);
  }
  .about-me__text {
    flex: 0 0 var(--about-me-text-max-width-all);
    max-width: var(--about-me-text-max-width-all);
  }
  .about-me__media {
    flex: 1 1 0;
  }
}

/* ON THE GRID (layout build step 6d, 2026-11-24; decided in the layout pass 2026-11-21: text beside one image, the
   Featured work card as the model). From 1200px the section uses the grid (section--above, so its padding is the
   grid's 96): text in columns 2-5 (416 at 1440) centered top to bottom against the circle portrait in columns 6-11
   (640). Below 1200, unchanged. */
@media (width >= 1200px) {
  .section--above .section__wide > .about-me {
    grid-column: 2 / 12;
    display: grid;
    grid-template-columns: subgrid;
    column-gap: var(--section-column-gap-grid);
    align-items: center;
  }
  .section--above .about-me > .about-me__text {
    grid-column: 1 / 5;
    grid-row: 1;
    max-width: none;
  }
  .section--above .about-me > .about-me__media {
    grid-column: 5 / -1;
    grid-row: 1;
  }
}
