/* =====================================================================
   People Skills Development: About page additions.

   Hand-written, like native-adapters.css, and loaded on the About page
   after it. Neither photo on About is in the demo.

   The figures band opens with Peter's portrait: photo then figures on
   one row, the photo above them on phones. The file is 240 px wide, so
   it is held at 112 px at most, which stays sharp on a 2x screen; the
   crop keeps his face in frame.
   ===================================================================== */

.figures-with-photo {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.figures-photo { margin: 0; }
.figures-photo img {
  display: block;
  width: clamp(88px, 9vw, 112px);
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 10px;
}
@media (max-width: 640px) {
  .figures-with-photo { grid-template-columns: minmax(0, 1fr); }
}

/* About's career copy ends with a classroom photo the demo does not have.
   In the demo's grid it lengthened the right column alone and left a
   photo-high gap under the left, so the two columns become one flow that
   the browser balances: each column group steps aside (display: contents),
   and the bullets and photo run left column then right, none split across
   the break. pathway.css's spacing between a column's children is redone
   here as the photo's own top margin, since a column break swallows it. */
.page-about .page-cols {
  display: block;
  columns: 2;
  column-gap: clamp(2rem, 5vw, 4.5rem);
}
.page-about .page-col { display: contents; }
.page-about .page-list { margin-block: 0; }
.page-about .page-list > li,
.page-about .about-class-photo { break-inside: avoid; }
/* The second list's first bullet needs the gap the first list's bullets keep */
.page-about .page-col + .page-col .page-list > li:first-child { margin-top: .75rem; }
/* #site-root zeroes every image block's margin in native-adapters.css, so this needs the id too */
#site-root .page-about .about-class-photo { margin: 3.125rem 0 0; }
.page-about .about-class-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
@media (max-width: 860px) {
  .page-about .page-cols { columns: 1; }
}
