/* A compact portrait beside the résumé introduction. */
.identity-with-portrait {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  column-gap: 26px;
  row-gap: 0;
  align-items: center;
  margin-bottom: 24px;
}

.profile-portrait {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: block;
  width: 116px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  text-align: center;
  cursor: pointer;
}

.portrait-stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 428 / 580;
  isolation: isolate;
}

.portrait-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.portrait-image.is-active { opacity: 1; }

.identity-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding-bottom: 14px;
}

.identity-with-portrait h1 {
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: -.3px;
}

.identity-with-portrait .identity-alias {
  display: block;
  margin: 2px 0 0;
  font-size: 10px;
  letter-spacing: 0;
}

.identity-role { margin-top: 12px; font-size: 11px; line-height: 1.6; }
.identity-location { margin-top: 3px; color: var(--muted); font-size: 10px; }

.identity-with-portrait .controls {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  gap: 12px;
  margin-left: -4px;
}

@media (max-width: 560px) {
  .identity-with-portrait { grid-template-columns: 104px minmax(0, 1fr); column-gap: 22px; }
  .profile-portrait { width: 104px; }
  .identity-with-portrait h1 { font-size: 17px; }
}

@media (max-width: 370px) {
  .identity-with-portrait { grid-template-columns: 94px minmax(0, 1fr); column-gap: 18px; }
  .profile-portrait { width: 94px; }
  .identity-role { font-size: 10px; }
  .identity-copy { padding-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .portrait-image { transition: none; }
}
