/* Katrin Kampmann V0.4.26 — Vita portrait matches the width of the
   biography/disclosure divider lines below it, without cropping. */

/* Use exactly the same desktop grid as .intro-grid from styles.css.
   The first track is therefore as wide as the left biography column. */
.page--vita .vita-images {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(40px, 8vw, 135px);
  max-width: 1300px;
  width: 100%;
  align-items: start;
}

.page--vita .vita-photo--portrait {
  width: 100%;
  min-width: 0;
}
.page--vita .vita-photo--portrait .vita-photo-zoom {
  width: 100%;
  max-width: 100%;
}
/* Overrule the old 420px height limit and narrow-screen 370px width cap.
   Intrinsic aspect ratio is preserved; neither crop nor upscaling. */
.page--vita .vita-photo--portrait .vita-photo-zoom img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left top;
}

/* The biography itself becomes single column at exactly this breakpoint. */
@media (max-width: 760px) {
  .page--vita .vita-images {
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0;
  }
  .page--vita .vita-photo--portrait .vita-photo-zoom {
    width: 100%;
  }
}
