/* Shared by the academic shell and the independently styled publications page. */
.academic-site .researcher-identity .researcher-home { min-width: 0; color: var(--ink); text-decoration: none; }
.portrait-trigger { display: block; flex-shrink: 0; border-radius: 3px; cursor: zoom-in; }
.portrait-trigger img { display: block; transition: filter 150ms ease; }
.portrait-trigger:hover img { filter: brightness(1.06); }
.portrait-is-open, .portrait-is-open body { overflow: hidden; }
.portrait-dialog {
  box-sizing: border-box; padding: 0; border: 0; border-radius: 5px;
  width: min(560px, calc((100vh - 80px) * .8234));
  width: min(560px, calc((100dvh - 80px) * .8234));
  min-width: min(280px, calc(100vw - 32px));
  max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px);
  margin: auto; background: #fff; color: var(--ink);
  box-shadow: 0 8px 28px #11182726; overflow: auto;
  overscroll-behavior: contain;
  font: 12px/1.5 Verdana, sans-serif;
}
.portrait-dialog[open] { animation: portrait-reveal 160ms ease-out; }
.portrait-dialog::backdrop { background: #17232f80; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.portrait-dialog figure {
  margin: 0; display: grid; grid-template-rows: minmax(120px, 1fr) auto;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
}
.portrait-dialog .portrait-image {
  display: block; width: 100%; height: 100%; min-height: 0; border-radius: 0;
  max-height: max(120px, calc(100vh - 80px));
  max-height: max(120px, calc(100dvh - 80px));
  object-fit: contain; background: #f4f5f6;
}
.portrait-dialog figcaption { padding: 10px 8px; font-size: 11px; line-height: 1.5; text-align: center; }
.portrait-dialog .portrait-accessible-name {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.portrait-dialog figcaption p { margin: 0; }
.portrait-dialog abbr { text-decoration: none; border: 0; }
.portrait-dialog .portrait-close {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: #fffffff2; color: #253746;
  box-shadow: 0 1px 3px #17232f14;
}
.portrait-dialog .portrait-close:hover { background: #e9eef2; }
.portrait-close svg { width: 18px; height: 18px; }
@keyframes portrait-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .portrait-dialog[open] { animation: none; }
  .portrait-trigger img { transition: none; }
}
@media print { .portrait-dialog { display: none !important; } }
