/* About. Shell and type scale come from base.css. */

h1 {
  margin: 0 0 24px;
}

main {
  line-height: 1.6;
}

main p {
  margin: 0 0 1.1em;
}

/* Text left, portrait right, in their own columns so no line ever runs under
 * the photograph. */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 0 1.8em;
  align-items: start;
}

.about-text {
  grid-column: 1;
  grid-row: 1;
}

/* The source photograph is landscape; aspect-ratio plus object-fit crops the
 * sides rather than the head. */
.portrait {
  grid-column: 2;
  grid-row: 1;
  margin: 5px 0 0;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 15px;
}

.portrait figcaption {
  margin-top: 8px;
  color: #777;
  font-size: 0.76rem;
}

@media (max-width: 620px) {
  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-text,
  .portrait {
    grid-column: 1;
    grid-row: auto;
  }

  .portrait {
    max-width: 260px;
    margin: 0 0 1.4em;
  }
}
