.work-image{
  --poster-color:#d5fd57;
  position:relative;isolation:isolate;display:flex;align-items:end;overflow:hidden;
  padding:clamp(1.1rem,3.4vw,2.45rem);background:var(--poster-color);
  color:#181b1a;text-decoration:none;aspect-ratio:1.62;
}

.poster-link {
  display: block;
  text-decoration: none;
}
.poster-link:focus-visible {
  outline-color: #fff3cb;
  outline-offset: 5px;
}
.map-image{
  background:
    repeating-linear-gradient(90deg,transparent 0 34px,#27361125 35px 36px),
    repeating-linear-gradient(0deg,transparent 0 34px,#27361125 35px 36px),var(--poster-color);
}
.camera-image{--poster-color:#bdb2ff}
.board-image{--poster-color:#ffad81}
.poster-art{position:absolute;z-index:-1;transition:transform .48s cubic-bezier(.25,.75,.25,1);pointer-events:none}
.map-contours{
  inset:-34% -5% -65% 33%;transform:rotate(-24deg);
  border:1px solid #293614;border-radius:47% 53% 33% 57%;
  background:repeating-radial-gradient(ellipse at 44% 43%,transparent 0 14px,#263810 15px 16px,transparent 17px 25px);
}
.map-contours span{
  position:absolute;width:.75rem;aspect-ratio:1;border-radius:50%;background:#263810;
  box-shadow:0 0 0 6px var(--poster-color),0 0 0 7px #263810;
}
.map-contours span:nth-child(1){top:22%;left:57%}
.map-contours span:nth-child(2){top:41%;left:22%}
.map-contours span:nth-child(3){top:61%;left:72%}
.map-contours span:nth-child(4){top:52%;left:47%}
.poster-link:is(:hover,:focus-visible) .map-image .map-contours{transform:rotate(-17deg) scale(1.055)}
.lens-art{
  top:-34%;right:-13%;width:81%;aspect-ratio:1;border-radius:50%;
  border:1px solid #2b2057;
  background:
    radial-gradient(circle,#1e183c 0 16%,#dcd5ff 16.3% 17%,transparent 17.2%),
    repeating-radial-gradient(circle,transparent 0 10px,#2a205780 11px 12px,transparent 13px 17px),
    repeating-conic-gradient(from 7deg,#51418d 0 31deg,#8c7dd7 32deg 59deg,#302650 59deg 60deg);
  box-shadow:0 0 0 12px #30255525;
}
.poster-link:is(:hover,:focus-visible) .camera-image .lens-art{transform:rotate(28deg)}
.board-art{
  top:-24%;right:-11%;width:73%;aspect-ratio:1.1;
  transform:rotate(-28deg) skewX(19deg);border:2px solid #783f32;
  background:
    repeating-linear-gradient(90deg,transparent 0 19%,#753d3466 19.3% 20%),
    repeating-linear-gradient(0deg,#ffbe9d 0 19%,#753d3466 19.3% 20%);
  box-shadow:0 13px #b96851,0 15px #783f32;
}
.board-art span{
  position:absolute;width:15%;aspect-ratio:1;background:#9b5748;border:2px solid #6d3b34;
  box-shadow:6px 8px #8f4b42;
}
.board-art span:nth-child(1){top:15%;left:16%}
.board-art span:nth-child(2){top:37%;left:61%;background:#734639}
.board-art span:nth-child(3){top:64%;left:35%;background:#f1d5a6}
.board-art span:nth-child(4){top:63%;left:74%;background:#a75148}
.poster-link:is(:hover,:focus-visible) .board-image .board-art{transform:rotate(-22deg) skewX(19deg) translateY(-5px)}
.poster-title{position:relative;z-index:1}
.poster-title p{font:750 .83rem/1.2 ui-monospace,monospace;letter-spacing:.11em;margin-bottom:.45rem}
.poster-title h3{font-size:clamp(1.45rem,4.35vw,4rem);line-height:1.13;letter-spacing:-.06em}
.featured .poster-title h3{font-size:clamp(2rem,5.7vw,5.1rem)}
.poster-title::before{
  content:"";position:absolute;z-index:-1;inset:-1.3rem -1.6rem -1.1rem -1.3rem;
  background:var(--poster-color);mask-image:linear-gradient(100deg,#000 74%,transparent);
}

.gallery {
  --serif: "Songti TC", "Noto Serif TC", "PMingLiU", "Noto Serif CJK TC", serif;
  background: #29271f;
}
.gallery-room {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 25% 1fr;
  min-height: 100svh;
  align-items: start;
  overflow: hidden;
}
.architecture, .architecture > div {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.architecture { z-index: -1; }
.wall {
  background: linear-gradient(180deg, #35352e, #646157 46%, #454239 76%);
}
.side-wall {
  clip-path: polygon(0 0, 25% 19%, 25% 74%, 0 100%);
  background: radial-gradient(ellipse 22% 50% at 9% 40%, #796e5e, #685f51 53%, #47423a 94%);
}
.ceiling {
  clip-path: polygon(16% 0, 100% 0, 100% 19%, 25% 19%);
  background:
    linear-gradient(175deg, #08080766, #1716126b 75%, #171612b8),
    repeating-linear-gradient(97deg, #181816 0 4px, #81796b 5px, #342e27 7px, #11110e 8px 14px);
}
.floor {
  clip-path: polygon(25% 74%, 100% 74%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #342a20 74%, #54402d 85%, #70563c);
}
.floor::after {
  content: "";
  position: absolute;
  inset: 74% -40% -35%;
  transform: perspective(270px) rotateX(54deg);
  transform-origin: top;
  background:
    repeating-linear-gradient(90deg, #281b145e 0 1px, transparent 2px 90px),
    repeating-linear-gradient(0deg, #3b271a40 0 1px, #a57c4c42 2px 13px, #85613b52 14px 26px, transparent 27px 49px);
}
.wall-title {
  grid-column: 1;
  grid-row: 1;
  justify-self: center;
  margin-top: clamp(5rem, 27svh, 19rem);
  writing-mode: vertical-rl;
  color: #fff8eb;
  font: 500 clamp(1.18rem, 3.2vw, 2.75rem)/1.25 var(--serif);
  letter-spacing: .16em;
  text-shadow: 0 1px 3px #31291e80;
}
.wall-title span { text-orientation: upright; }
.exhibits {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.65rem, 2.6vw, 3rem);
  align-self: center;
  margin: 0 clamp(.8rem, 4vw, 4.5rem) 13svh clamp(.65rem, 3vw, 3.5rem);
}
.exhibit { position: relative; isolation: isolate; }
.exhibit:has(.poster-link:focus-visible) {
  --spotlight-brightness: 1.22;
  --poster-rise: -4px;
}
@media (hover: hover) {
  .exhibit:has(.poster-link:hover) {
    --spotlight-brightness: 1.22;
    --poster-rise: -4px;
  }
}
.spotlight {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inset: -35% -14% -20%;
  filter: blur(clamp(4px, .65vw, 10px)) brightness(var(--spotlight-brightness, 1));
  transition: filter .24s ease-out;
  background: radial-gradient(ellipse at 50% 50%, #fff1cb88, #fff0c53a 35%, transparent 70%);
}
.spotlight::before {
  position: absolute;
  content: "";
  inset: 0 6% 18%;
  clip-path: polygon(48% 0,52% 0,100% 100%,0 100%);
  background: linear-gradient(180deg, transparent, #fff2cf40 15%, #fff2cf26 52%, transparent 90%);
}
.gallery .work-image {
  aspect-ratio: 1.42;
  border: clamp(4px,.65vw,10px) solid #ebe2cf;
  padding: clamp(.5rem,1.4vw,1.35rem);
  transform: translateY(var(--poster-rise, 0px));
  transition: transform .24s ease-out;
  box-shadow: 0 0 0 1px #28241d, 3px 6px 13px #140f0a9c, 0 0 26px #ffe9bb38;
}
.gallery .poster-title p { font-size: clamp(.51rem,.75vw,.78rem); margin-bottom: .22rem; }
.gallery .poster-title h3 { font-size: clamp(.89rem,1.68vw,1.7rem); letter-spacing: -.04em; }
.exhibit-label {
  min-block-size: 3.45rem;
  margin-top: .8rem;
  color: #f7f2e8;
}
.exhibit-kind {
  font: 600 .73rem/1.4 var(--serif);
  letter-spacing: .09em;
}
.exhibit-caption {
  margin-top: .28rem;
  font: 400 .84rem/1.55 var(--sans);
  color: #e9e2d4;
}
.exhibit-skills {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .95em;
  margin: .55rem 0 0;
  padding: 0;
  list-style: none;
  font: 400 .75rem/1.5 var(--sans);
  color: #dfd7c8;
}
.exhibit-skills li {
  position: relative;
  white-space: nowrap;
}
.exhibit-skills li + li::before {
  content: "";
  position: absolute;
  inset: 30% auto 30% -.475em;
  border-inline-start: 1px solid #dfd7c872;
}
@media (min-width: 681px) and (max-width: 980px) {
  .exhibit-caption { min-block-size: 3.1em; }
}
.gallery-swipe-hint { display: none; }
@media (max-width: 680px) {
  .gallery-room { grid-template-columns: 22% 1fr; }
  .side-wall { clip-path: polygon(0 0,22% 12%,22% 79%,0 100%); }
  .ceiling { clip-path: polygon(14% 0,100% 0,100% 12%,22% 12%); }
  .floor { clip-path: polygon(22% 79%,100% 79%,100% 100%,0 100%); }
  .floor::after { top: 79%; }
  .wall-title { margin-top: 20svh; }
  .exhibits {
    min-inline-size: 0;
    grid-template-columns: none;
    grid-auto-columns: 100%;
    grid-auto-flow: column;
    gap: 0;
    margin: 0 0 10svh;
    padding-block: 3.5rem 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .exhibit {
    min-inline-size: 0;
    padding-inline: 8%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .gallery .work-image { aspect-ratio: 1.35; }
  .gallery-swipe-hint {
    display: block;
    grid-area: 1 / 2;
    align-self: end;
    justify-self: center;
    margin-bottom: 22svh;
    color: #e9e2d4;
    font-size: .75rem;
    letter-spacing: .1em;
  }
  .gallery .poster-title h3 { font-size: clamp(.83rem,3.7vw,1.3rem); }
  .exhibit-label { margin-top: .55rem; }
  .exhibit-caption { font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .poster-art, .spotlight, .gallery .work-image { transition: none; }
  .gallery .work-image { transform: none; }
}
