.gallery {
  position: relative;
  background: #252525;
  color: #eee5d5;
  font-family: "Noto Serif CJK SC", "Songti SC", STSong, Editorial, SimSun, serif;
}
.gallery-stage { padding: 35px 6vw 56px; }
.gallery-wall { max-width: 1660px; margin: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
.gallery-heading { grid-column: 1 / -1; }
.gallery-eyebrow { margin: 0 0 9px; color: #c4ab86; font: 500 14px/1.4 var(--gallery-sans); letter-spacing: .22em; }
.gallery-heading h2 { font-size: clamp(30px, 8vw, 38px); font-weight: 500; line-height: 1.15; letter-spacing: -.055em; }
.gallery-lettering { display: inline-flex; align-items: baseline; max-width: 100%; color: #d9b784; font-size: 1.22em; line-height: 1.12; letter-spacing: 0; white-space: nowrap; }
.gallery-lettering img { display: block; align-self: center; height: 1.06em; width: auto; min-width: 0; max-width: calc(100% - .65em); object-fit: contain; }
.gallery-intro { margin: 10px 0 3px; color: #c5bcae; font: 400 clamp(14px, 1.25vw, 20px)/1.65 var(--gallery-sans); }
.gallery-note { margin: 7px 0 0; color: #b9ae9e; font: 400 14px/1.5 var(--gallery-sans); letter-spacing: .04em; }
.gallery-note span { color: #d9b784; margin-left: 6px; }
.gallery-work { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.gallery-art { display: block; min-height: 0; cursor: pointer; }
.gallery-art img { display: block; width: 100%; height: auto; object-fit: contain; object-position: left bottom; }
.gallery-art:hover img { filter: brightness(1.09); }
.gallery-label { margin-top: 5px; padding-top: 5px; border-top: 1px solid #746b5c; }
.gallery-label h3 { margin: 0; font: 500 19px/1.25 var(--gallery-sans); }
.gallery-industry { color: #c2b49c; font: 400 14px/1.4 var(--gallery-sans); }
.gallery-art img { transform-origin: left bottom; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .gallery-art img { transform: translateY(calc(-10px * var(--gallery-lift, 0))) scale(calc(1 + .03 * var(--gallery-lift, 0))); }
}
.gallery-work:nth-of-type(1), .gallery-work:nth-of-type(3) { grid-column: 1 / -1; width: 88%; }
.gallery-work:nth-of-type(3) { justify-self: end; }
.gallery-art:focus-visible, .case-orbit button:focus-visible { outline: 2px solid #d5b783; outline-offset: 3px; }

@media (min-width: 768px) and (min-height: 651px) and (prefers-reduced-motion: no-preference) {
  .scroll-stage .gallery { height: calc(100svh + 610px); }
  .scroll-stage .gallery-stage { position: sticky; top: 0; height: 100svh; padding: max(82px, 10svh) 5.1vw 24px; overflow: clip; }
  .scroll-stage .gallery-wall { display: block; position: relative; height: 100%; }
  .scroll-stage .gallery-heading { position: absolute; left: 0; top: 2%; width: 31%; z-index: 1; }
  .scroll-stage .gallery-heading h2 { font-size: clamp(28px, 3.5vw, 62px); }
  .scroll-stage .gallery-work {
    position: absolute;
    left: var(--left);
    top: var(--top);
    width: var(--width);
    height: var(--height);
    opacity: calc(.28 + .72 * var(--reveal, 1));
    transform: translateY(calc(17px * (1 - var(--reveal, 1))));
  }
  .scroll-stage .gallery-art { flex: 1; }
  .scroll-stage .gallery-art img { height: 100%; transition: filter .28s ease; }
  .scroll-stage .gallery-label { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex: none; }
  .scroll-stage .gallery-label h3 { font-size: clamp(15px, 1.38vw, 23px); min-width: 0; }
  .scroll-stage .gallery-industry { flex-shrink: 0; font-size: 14px; white-space: nowrap; }
  .scroll-stage .gallery-work:nth-of-type(1) { --left: 0%; --top: 34%; --width: 32%; --height: 34%; }
  .scroll-stage .gallery-work:nth-of-type(2) { --left: 36%; --top: 0%; --width: 26%; --height: 34%; }
  .scroll-stage .gallery-work:nth-of-type(3) { --left: 66%; --top: 5%; --width: 34%; --height: 34%; }
  .scroll-stage .gallery-work:nth-of-type(4) { --left: 5%; --top: 73%; --width: 26%; --height: 26%; }
  .scroll-stage .gallery-work:nth-of-type(5) { --left: 36%; --top: 39%; --width: 27%; --height: 31%; }
  .scroll-stage .gallery-work:nth-of-type(6) { --left: 38%; --top: 75%; --width: 23%; --height: 24%; }
  .scroll-stage .gallery-work:nth-of-type(7) { --left: 70%; --top: 44%; --width: 30%; --height: 28%; }
  .scroll-stage .gallery-work:nth-of-type(8) { --left: 66%; --top: 77%; --width: 27%; --height: 22%; }
  .scroll-stage .gallery-work:nth-of-type(2) .gallery-label { display: block; }
  .scroll-stage .gallery-work:nth-of-type(2) .gallery-industry { display: block; margin-top: 2px; }
}

@media (min-width: 768px) and (min-height: 651px) and (max-height: 760px) and (prefers-reduced-motion: no-preference) {
  .scroll-stage .gallery-stage { padding-block: 79px 15px; }
  .scroll-stage .gallery-heading h2 { font-size: clamp(27px, 3.1vw, 45px); }
  .scroll-stage .gallery-eyebrow { margin-bottom: 5px; }
  .scroll-stage .gallery-intro { margin-top: 5px; }
  .scroll-stage .gallery-note { margin-top: 3px; }
}
.gallery, .case-orbit { --gallery-sans: "Noto Sans CJK SC", var(--sans); }
