.exhibit {
  --exhibit-paper: 1;
  --exhibit-title: 1;
  --exhibit-print: 1;
  --card-left: 14%;
  --card-width: 57%;
  --title-left: 72%;
  --title-width: 27%;
  --well-height: 79cqw;
  --art-left: -19cqw;
  --art-top: -11.5cqw;
  --art-width: 67cqw;
  position: relative;
  background: var(--paper) var(--poster-paper);
  color: #eeeaf8;
}
.exhibit[data-exhibit="objects"] {
  --card-left: 13%;
  --card-width: 54%;
  --title-left: 68%;
  --title-width: 29%;
  --well-height: 75cqw;
  --art-left: -15cqw;
  --art-top: -12cqw;
  --art-width: 68cqw;
}
.exhibit[data-exhibit="pictures"] {
  --card-left: 20%;
  --card-width: 52%;
  --title-left: 73%;
  --title-width: 26%;
  --well-height: 73cqw;
  --art-left: -27cqw;
  --art-top: -8cqw;
  --art-width: 82cqw;
}
.exhibit::after { content: ''; display: block; height: 119svh; pointer-events: none; }
.exhibit-pin {
  position: sticky;
  top: 0;
  min-height: 100svh;
  padding: max(calc(var(--nav-h) + 23px), 10svh) 4vw max(24px, 4svh);
  display: grid;
  align-items: center;
  overflow: clip;
}
.exhibit-spread {
  position: relative;
  container-type: inline-size;
  width: min(100%, 32rem, max(23.5rem, 54.5svh));
  margin-inline: auto;
}
.exhibit-card {
  position: relative;
  width: var(--card-width);
  margin-inline: var(--card-left) 0;
  padding: 3.2cqw;
}
.exhibit-card::before, .exhibit-well::before {
  content: '';
  position: absolute;
  pointer-events: none;
  inset: 0;
  border: 1px solid #f5f1faeb;
  border-radius: clamp(9px, 2.4cqw, 16px);
  opacity: var(--exhibit-paper);
}
.exhibit-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2cqw;
  min-height: 7.5cqw;
  opacity: var(--exhibit-paper);
}
.exhibit-cat { width: 58%; max-height: 8.6cqw; object-fit: contain; object-position: left center; }
.exhibit-seals {
  width: 35%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4cqw;
}
.exhibit-seals img { display: block; width: calc((100% - 1.4cqw) / 2); height: auto; }
.exhibit-well {
  position: relative;
  margin: 12.5cqw 0 0 6.1cqw;
  height: var(--well-height);
}
.exhibit-well::before { border-color: #eeebf7ab; border-radius: clamp(7px, 1.9cqw, 12px); }
.exhibit-caption {
  position: absolute;
  right: calc(100% + 1.8cqw);
  bottom: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: clamp(.76rem, 3.3cqw, 1.22rem);
  white-space: nowrap;
  opacity: var(--exhibit-print);
}
.exhibit-mascot {
  position: absolute;
  right: -.4cqw;
  top: -10cqw;
  width: 14cqw;
  height: 12cqw;
  object-fit: contain;
  object-position: right bottom;
  opacity: var(--exhibit-paper);
}
.exhibit-object {
  position: absolute;
  top: var(--art-top);
  left: var(--art-left);
  width: var(--art-width);
  pointer-events: none;
  z-index: 2;
}
.exhibit-float, .exhibit-item-art, .exhibit-item-art canvas, .exhibit-cutout { width: 100%; height: 100%; }
.exhibit-item-art { position: relative; filter: drop-shadow(3px 8px 6px #0008); }
.exhibit-settled .exhibit-item-art {
  transform: translate(var(--look-x, 0px), var(--look-y, 0px)) rotate(var(--look-turn, 0deg));
  transition: transform .3s ease-out;
}
.exhibit-item-art canvas, .exhibit-cutout { position: absolute; inset: 0; display: block; }
.exhibit-item-art canvas { opacity: 0; }
.exhibit-cutout { object-fit: contain; }
.exhibit-settled .exhibit-float { animation: exhibit-drift 4.8s ease-in-out infinite; }
.exhibit[data-exhibit="pictures"] .exhibit-float { animation-duration: 5.6s; }
@keyframes exhibit-drift {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(2cqw, -5.3cqw) rotate(2.8deg); }
}
.exhibit-donor {
  position: absolute;
  left: 2.25cqw;
  bottom: 2.2cqw;
  display: grid;
  justify-items: start;
  gap: .48cqw;
  opacity: var(--exhibit-print);
}
.exhibit-donor span { font: clamp(.85rem, 2.9cqw, 1.05rem)/1 "STILL Characters", Arial, sans-serif; }
.exhibit-donor img { display: block; height: clamp(20px, 6.6cqw, 39px); width: auto; }
.exhibit-card blockquote {
  margin: 2.6cqw 0 0;
  font-size: clamp(.875rem, 2.7cqw, 1rem);
  font-weight: 400;
  line-height: 1.31;
  text-wrap: pretty;
  opacity: var(--exhibit-print);
}
.exhibit-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2cqw;
  margin-top: 3.5cqw;
  min-height: 3cqw;
  opacity: var(--exhibit-paper);
}
.exhibit-signal i { width: .65cqw; height: .65cqw; background: #e9e2fa; opacity: .21; border-radius: 50%; }
.exhibit-signal i:nth-child(2), .exhibit-signal i:nth-child(8) { width: .95cqw; height: .95cqw; opacity: .29; }
.exhibit-signal i:nth-child(3), .exhibit-signal i:nth-child(7) { width: 1.35cqw; height: 1.35cqw; opacity: .42; }
.exhibit-signal i:nth-child(4), .exhibit-signal i:nth-child(6) { width: 1.85cqw; height: 1.85cqw; opacity: .57; }
.exhibit-signal i:nth-child(5) { width: 2.65cqw; height: 2.65cqw; opacity: .72; }
.exhibit-name {
  position: absolute;
  z-index: 1;
  inset-block: 2.1cqw 0;
  left: var(--title-left);
  width: var(--title-width);
  margin: 0;
  pointer-events: none;
  opacity: var(--exhibit-title);
}
.exhibit-name img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top left; }
@media (max-width: 700px) {
  .exhibit::after { height: 103svh; }
  .exhibit-pin { padding: 70px 3.5vw 25px; }
  .exhibit-spread { width: min(96%, 26rem); }
  .exhibit[data-exhibit] {
    --card-left: 8%;
    --card-width: 67%;
    --title-left: 77%;
    --title-width: 23%;
    --art-left: -14cqw;
  }
  .exhibit[data-exhibit="pictures"] { --art-left: -15cqw; }
}
@media (prefers-reduced-motion: reduce) {
  .exhibit::after { height: 0; }
  .exhibit .exhibit-float { animation: none; }
}
.motion-off .exhibit::after { height: 0; }
.motion-off .exhibit-float { animation: none; }
