/* Hero portrait refinements. Loaded after home.css so the portrait can evolve independently. */
@media (min-width: 981px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 218px;
    gap: 72px;
  }
  .portrait {
    width: 218px;
    justify-self: end;
    align-self: start;
    margin: 34px 0 0;
  }
}
.portrait picture {
  display: block;
  padding: 6px;
  background: color-mix(in srgb, var(--surface) 93%, var(--accent-wash));
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 20px 48px -26px rgba(16,26,24,.42);
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 35%;
  border-radius: 11px;
  box-shadow: none;
}
.portrait figcaption {
  margin: 10px 2px 0;
  max-width: 205px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}
@media (max-width: 980px) {
  .hero-grid > div:first-child { order: 1; }
  .hero .portrait {
    order: 2;
    width: 170px;
    max-width: 170px;
    justify-self: start;
    margin: 4px 0 0;
  }
}
@media (max-width: 620px) {
  .hero .portrait { width: 148px; max-width: 148px; }
  .portrait picture { padding: 5px; border-radius: 14px; }
  .portrait img { border-radius: 9px; }
  .portrait figcaption { font-size: .7rem; }
}
