.work-intro {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(280px, 26vw, 385px);
  color: #fff;
  background: #101010 url("exhibition/haamonga.webp") center 49% / cover no-repeat;
}
.work-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .84);
}
.work-intro .wrap { margin-block: 0; padding-block: clamp(2.5rem, 5.5vw, 5.5rem); }
.work-intro h1.eyebrow { color: var(--paper); font-size: clamp(1rem, 1.65vw, 1.45rem); line-height: 1.4; letter-spacing: .13em; }
.work-intro h1 span { color: var(--moa-orange); }
.work-intro .work-summary { max-width: 43rem; margin-top: 1.2rem; font-size: clamp(1rem, 1.42vw, 1.25rem); line-height: 1.55; }
.work-capabilities { margin-top: 1.4rem; max-width: 58rem; color: #e0e0dc; font: .88rem/1.6 var(--label); }
.exhibition { background: #080808; columns: 3; column-gap: 4px; border-block: 6px solid #080808; }
.exhibit { position: relative; display: block; break-inside: avoid; margin-bottom: 4px; background: var(--mat, #1d1d1b); }
.exhibit img { width: 100%; height: auto; }
.exhibit:focus-visible { outline-offset: -4px; outline-color: var(--moa-orange); z-index: 1; }
.exhibit-label { position: absolute; bottom: .7rem; left: .7rem; right: .7rem; width: fit-content; padding: .35rem .62rem; color: #fff; background: rgba(0,0,0,.83); font: 600 .87rem/1.35 var(--label); opacity: 0; transition: opacity .2s; }
.exhibit:hover .exhibit-label, .exhibit:focus-visible .exhibit-label { opacity: 1; }
.exhibition-viewer { position: fixed; color: white; background: #111; border: 1px solid #555; width: min(95vw, 1370px); max-height: 96dvh; padding: .5rem clamp(.5rem,2vw,1.5rem) 1rem; }
.exhibition-viewer::backdrop { background: rgba(0,0,0,.89); }
.exhibition-viewer img { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(96dvh - 116px); margin-inline: auto; object-fit: contain; background: var(--mat, #242424); }
.viewer-top,.viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.viewer-top { justify-content: flex-end; margin-bottom: .35rem; }
.viewer-bottom { margin-top: .45rem; text-align: center; }
.exhibition-viewer button { min-height: 44px; padding: .35rem .75rem; background: transparent; color: white; border: 1px solid #777; cursor: pointer; font: .9rem var(--label); }
.exhibition-viewer button:hover { border-color: var(--moa-orange); }
.exhibition-viewer :focus-visible { outline-color: var(--moa-orange); }

@media (max-width: 599px) {
  .exhibition { columns: 2; }
  .exhibit-label { opacity: 1; }
  .work-intro { background-position: 57% center; }
}
@media (hover: none) { .exhibit-label { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .exhibit-label { transition: none; } }
/* Account for the extra tile gutters in the second and third masonry columns. */
@media (min-width: 600px) {
  .exhibit[href$="/voyager-characters.webp"], .exhibit[href$="/figure-study.webp"] { container-type: inline-size; }
  .exhibit[href$="/voyager-characters.webp"] img { height: calc(143.067265cqw - 8px); object-fit: cover; }
  .exhibit[href$="/figure-study.webp"] img { height: calc(95.516cqw - 12px); object-fit: cover; object-position: bottom; }
}
