.quote-portrait-hero {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  min-height: 19rem;
  margin: 0;
  position: relative;
}

.quote-portrait-hero.side-left { flex-direction: row-reverse; }
.quote-portrait-copy { flex: 1; min-width: 0; position: relative; }
.quote-portrait-media { flex: 0 0 min(42%, 19rem); position: relative; }
.quote-portrait-media > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.quote-portrait-lines { inset: 0; position: absolute; }
.quote-portrait-lines > span { position: absolute; white-space: pre; }
.quote-portrait-hero.is-shaped .quote-portrait-copy { inset: 0; position: absolute; }
.quote-portrait-hero.is-shaped [data-hero-flow] { color: transparent; }

.js-hero-pending [data-hero-copy] {
  animation: portrait-reveal 0s 2s forwards;
  opacity: 0;
}

@keyframes portrait-reveal { to { opacity: 1; } }

.portrait-credit { bottom: .25rem; position: absolute; right: .25rem; z-index: 2; }
.portrait-credit summary {
  align-items: center;
  background: rgb(255 255 255 / 90%);
  border: 1px solid rgb(0 0 0 / 20%);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  height: 44px;
  justify-content: center;
  list-style: none;
  width: 44px;
}
.portrait-credit summary::-webkit-details-marker { display: none; }
.portrait-credit-popover {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: .375rem;
  bottom: 3rem;
  box-shadow: 0 .25rem .75rem rgb(0 0 0 / 15%);
  font-size: .75rem;
  padding: .75rem;
  position: absolute;
  right: 0;
  width: min(18rem, 75vw);
}
.portrait-credit-popover p { margin: 0 0 .25rem; }

.originator-header-row { display: flex; gap: .75rem; }
.originator-header-content { flex: 1; min-width: 0; }
.originator-header-row.side-left { flex-direction: row-reverse; }
.originator-header-portrait {
  align-self: stretch;
  flex: 0 0 8rem;
  margin: 0;
  min-height: 0;
  position: relative;
}
.originator-header-portrait > img {
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
}

@media (max-width: 575.98px) {
  .quote-portrait-hero,
  .quote-portrait-hero.side-left { flex-direction: column; }
  .quote-portrait-media { align-self: center; flex-basis: auto; height: 11rem; width: 11rem; }
  .quote-portrait-hero.is-shaped [data-hero-flow] { color: inherit; }
  .quote-portrait-lines { display: none; }
  .originator-header-portrait { flex-basis: 4.5rem; }
}
