body.makarov-site > .main-header + p:empty { display: none !important; }

/* Preserve the headroom of the current portrait in every cover-sized slot. */
body.makarov-site img[src$="/igor-portrait-20261018.webp"] {
  object-position: 50% 0%;
}

/* The archive portrait is a full photograph, not a fixed-height thumbnail. */
body.makarov-site .practice-gallery img[src$="/igor-portrait-20261018.webp"] {
  display: block;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

/* Keep author avatars round when the adjacent text wraps on narrow screens. */
body.makarov-site .author-box img[src$="/igor-portrait-20261018.webp"] {
  flex: 0 0 70px;
  width: 70px;
  height: 70px;
}

/* Keep the hero portrait caption readable over the light wall. */
body.makarov-site .hero-portrait figcaption {
  color: #fff;
  background: rgba(7, 28, 41, 0.94);
  border-left: 3px solid #2f8cff;
  border-radius: 3px;
  padding: 14px 20px;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

body.makarov-site .hero-portrait figcaption small {
  color: #e2eaf1;
}

/* Readable caption on the live homepage hero photo. */
body.makarov-site .hero-photo figcaption {
  color: #fff;
  background: rgba(7, 28, 41, 0.94);
  border-left: 3px solid #2f8cff;
  border-radius: 3px;
  padding: 14px 18px;
  text-shadow: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
body.makarov-site .hero-photo figcaption strong { color: #fff; }
body.makarov-site .hero-photo figcaption span { color: #e2eaf1; }
