@font-face {
  font-family: "Jacquard 12";
  src: url("Jacquard12-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Jacquard 12 Charted";
  src: url("Jacquard12Charted-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: XCBlood;
  src: url("XCBlood.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Wire One";
  src: url("WireOne-Regular.ttf") format("truetype");
  font-display: swap;
}

@property --gallery-pull {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

.gallery {
  --gallery-ink: #1d201c;
  --gallery-rule: #292a2370;
  --gallery-title-width: 100%;
  --gallery-title-height: clamp(3.65rem, 6.35vw, 6.15rem);
  --gallery-title-inset: 0rem;
  --gallery-banner-width: min(92%, 76rem);
  --gallery-seam: 2px;
  --gallery-plum: #704c66;
  --gallery-teal: #385d58;
  --gallery-grid-bleed: clamp(9px, 2.5vw, 40px);
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 4rem);
  scroll-margin-top: 4rem;
  color: var(--gallery-ink);
  color-scheme: light;
  background: radial-gradient(ellipse at 30% 18%, #f7f0e6, #eee4d7 90%);
  font-style: normal;
}
.gallery-grid-edge {
  --grid-join: calc(100% - var(--gallery-grid-bleed));
  position: absolute;
  z-index: -1;
  inset-block-start: 0;
  width: calc((100% - var(--gallery-banner-width)) / 2 + var(--gallery-grid-bleed));
  height: var(--gallery-title-height);
  border-bottom: 1px solid #775d5366;
  background: linear-gradient(var(--grid-direction) in oklab,
    #faf7f0 0%, #f5f0e8 calc(var(--grid-join) * .24),
    color-mix(in oklab, #f5ece8 72%, var(--grid-tone)) calc(var(--grid-join) * .53),
    color-mix(in oklab, #ede5de 32%, var(--grid-tone)) calc(var(--grid-join) * .81),
    var(--grid-tone) var(--grid-join), transparent);
  pointer-events: none;
}
.gallery-grid-edge::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #463b482f 1px, transparent 1px) 0 0 / 4px 4px,
    linear-gradient(to bottom, #463b482f 1px, transparent 1px) 0 0 / 4px 4px;
  mask-image: linear-gradient(var(--grid-direction), #0009, #000 20%, #000a calc(var(--grid-join) * .62), #0004 var(--grid-join), transparent);
}
.gallery-grid-edge-left {
  inset-inline-start: 0;
  --grid-direction: to right;
  --grid-tone: var(--gallery-plum);
}
.gallery-grid-edge-right {
  inset-inline-end: 0;
  --grid-direction: to left;
  --grid-tone: var(--gallery-teal);
}
.gallery[data-title-layout="vertical"] {
  --gallery-title-width: clamp(11.5rem, 54vw, 21rem);
  --gallery-title-height: clamp(4.85rem, 9vw, 7rem);
  --gallery-title-inset: clamp(1rem, 3.2vh, 2rem);
  --gallery-title-end: calc(var(--gallery-title-inset) + var(--gallery-title-height));
}
.gallery-layout {
  width: min(100% - clamp(1.7rem, 4.5vw, 4rem), 62rem);
  margin-inline: auto;
  padding-block: var(--gallery-title-inset) 1.1rem;
}
.gallery-heading {
  display: grid;
  justify-items: center;
  padding-bottom: .25rem;
}
#gallery-title {
  width: var(--gallery-title-width);
  margin: 0;
  color: #fff7e8;
  font: 400 clamp(2.45rem, 4.5vw, 4.25rem)/1 "Wire One", "Arial Narrow", sans-serif;
  letter-spacing: normal;
}
#gallery-title:focus { outline: none; }
.gallery-title-letters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: calc(var(--gallery-seam) + .29em);
  align-items: stretch;
  height: var(--gallery-title-height);
  text-shadow: 0 1px .13em #190f16db;
  -webkit-text-stroke: .008em currentColor;
}
.gallery-title-letters > span {
  display: flex;
  align-items: stretch;
  gap: clamp(.22em, 1.5vw, .28em);
}
.gallery-title-letters > :first-child { justify-self: end; }
.gallery-title-letters > :last-child { justify-self: start; }
.gallery-letter {
  --letter-floor: .31em;
  --letter-anchor: 50%;
  --letter-tilt: -2.5deg;
  --gallery-pull: 0px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  min-width: .35em;
  padding: 0 0 var(--letter-floor);
  border: 0;
  color: inherit;
  background: none;
  font: inherit;
  text-shadow: inherit;
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: --gallery-pull .48s cubic-bezier(.22, .72, .3, 1.24);
}
.gallery-letter::before {
  content: "";
  grid-row: 1;
  justify-self: start;
  margin-inline-start: var(--letter-anchor);
  width: 1px;
  height: calc(100% + var(--gallery-pull));
  background: linear-gradient(#eddab48f, #fff6e5c9 min(100%, var(--gallery-title-height)),
    #735d4eb8 var(--gallery-title-height));
  box-shadow: 1px 0 #19111835;
  pointer-events: none;
}
.gallery-letter > span {
  grid-row: 2;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
  translate: 0 var(--gallery-pull);
  rotate: var(--letter-tilt);
  transform-origin: var(--letter-anchor) 0;
}
.gallery:not([data-title-layout="vertical"]) .gallery-letter > span {
  --letter-paper-edge: calc(100% + var(--letter-floor) - var(--gallery-pull));
  color: transparent;
  text-shadow: none;
  -webkit-text-stroke: 0;
  background: linear-gradient(#fff7e8 var(--letter-paper-edge), #4d3c36 calc(var(--letter-paper-edge) + 2px));
  background-clip: text;
  filter: drop-shadow(0 1px 1px #25172365);
  pointer-events: none;
}
@supports not (text-box-trim: trim-both) {
  .gallery-letter::before { height: calc(100% + .11em + var(--gallery-pull)); }
}
.gallery-letter:nth-child(even) { --letter-floor: .10em; --letter-tilt: 2.5deg; }
.gallery-title-letters > :first-child .gallery-letter:nth-child(3) { --letter-floor: .37em; }
.gallery-title-letters > :first-child .gallery-letter:nth-child(n+3) { --letter-anchor: 22%; }
.gallery-title-letters > :last-child .gallery-letter:nth-child(2) { --letter-floor: .16em; }
.gallery-title-letters > :last-child .gallery-letter:last-child { --letter-floor: .26em; --letter-anchor: 85%; }
.gallery-letter[data-pulling] {
  cursor: grabbing;
  transition: none;
}
.gallery-letter:focus-visible { outline: 1px solid #fff2da; outline-offset: -2px; }

.gallery-banner {
  position: absolute;
  z-index: -2;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gallery-seam);
  width: var(--gallery-banner-width);
  height: var(--gallery-title-height);
  margin-inline: auto;
  border-bottom: 1px solid #775d5366;
  background: #ecddc5;
  pointer-events: none;
}
.gallery-banner-half {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: var(--gallery-seam);
}
.gallery-banner-half:last-child { grid-template-columns: 1fr 1.12fr; }
.gallery-banner-half > span {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--banner-ink);
}
.gallery-banner-half > span::before, .gallery-banner-half > span::after {
  content: "";
  position: absolute;
  inset: 0;
}
.gallery-banner-half > span::before {
  background: url("a-summer-of-mystery-panorama.png") var(--banner-crop) / max(215%, 19rem) auto no-repeat;
  filter: grayscale(1) contrast(1.13);
  mix-blend-mode: luminosity;
  opacity: .76;
}
.gallery-banner-half > span::after {
  background:
    radial-gradient(circle, #221b216a .38px, transparent .69px) 0 0 / 3px 3px,
    linear-gradient(0deg, #17131a70, #17131a16 72%);
}
.banner-plum {
  --banner-ink: var(--gallery-plum);
  --banner-crop: 33% 42%;
}
.banner-orange {
  --banner-ink: #9a6037;
  --banner-crop: 62% 40%;
}
.banner-green {
  --banner-ink: #667446;
  --banner-crop: 71% 77%;
}
.banner-teal {
  --banner-ink: var(--gallery-teal);
  --banner-crop: 100% 49%;
}
.gallery-banner-half > :is(.banner-orange, .banner-green)::after {
  background:
    radial-gradient(circle, #221b216a .38px, transparent .69px) 0 0 / 3px 3px,
    linear-gradient(0deg, #211a1d91, #211a1d47);
}

.gallery[data-title-layout="vertical"] :is(.gallery-banner, .gallery-grid-edge) { display: none; }
.gallery[data-title-layout="vertical"] #gallery-title {
  font-size: clamp(2.85rem, 5.2vw, 4.25rem);
}
.gallery-collage { display: none; }
.gallery[data-title-layout="vertical"] :is(.gallery-title-letters, .gallery-collage) {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: clamp(1px, .2vw, 2px);
}
.gallery[data-title-layout="vertical"] .gallery-title-letters {
  align-items: center;
  justify-items: center;
  text-shadow: 0 1px .13em #201621a6;
}
.gallery[data-title-layout="vertical"] .gallery-title-letters > span { display: contents; }
.gallery[data-title-layout="vertical"] .gallery-letter {
  display: block;
  min-width: 0;
  padding: 0;
  cursor: inherit;
  touch-action: auto;
}
.gallery[data-title-layout="vertical"] .gallery-letter::before { content: none; }
.gallery[data-title-layout="vertical"] .gallery-letter > span {
  text-box-trim: none;
  rotate: -4deg;
  translate: 0 -.04em;
}
.gallery[data-title-layout="vertical"] .gallery-letter:nth-child(even) > span {
  rotate: 3deg;
  translate: 0 .035em;
}
.gallery-collage {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: var(--gallery-title-width);
  margin-inline: auto;
  mask-image: linear-gradient(
    #000 calc(var(--gallery-title-end) - 1.4rem),
    #0006 calc(var(--gallery-title-end) + .75rem),
    #0002 calc(var(--gallery-title-end) + 3.65rem),
    #0002
  );
  pointer-events: none;
}
.gallery-collage > span {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--strip-color);
}
.gallery-collage > span::before,
.gallery-collage > span::after {
  content: "";
  position: absolute;
  inset: 0;
}
.gallery-collage > span::before {
  inset-block-end: auto;
  height: calc(var(--gallery-title-end) + 1.5rem);
  background: url("green-moon-festival-panorama.png") var(--strip-x) var(--strip-y, 50%) / auto var(--strip-scale, 100%) no-repeat;
  filter: grayscale(1) contrast(1.16);
  mix-blend-mode: luminosity;
  mask-image: linear-gradient(#000 73%, transparent);
  opacity: .72;
}
.gallery-collage > span::after {
  background:
    linear-gradient(180deg, #1d142625, #170e1954 var(--gallery-title-height), transparent var(--gallery-title-end)),
    radial-gradient(circle, #24182031 .35px, transparent .65px) 0 0 / 3px 3px;
}
.gallery-collage > :nth-child(1) {
  --strip-color: #664267;
  --strip-x: 26.5%;
  --strip-scale: 118%;
}
.gallery-collage > :nth-child(2) {
  --strip-color: #794236;
  --strip-x: 31%;
  --strip-y: 100%;
  --strip-scale: 195%;
}
.gallery-collage > :nth-child(3) {
  --strip-color: #64713e;
  --strip-x: 43%;
  --strip-y: 10%;
  --strip-scale: 134%;
}
.gallery-collage > :nth-child(4) {
  --strip-color: #675071;
  --strip-x: 53%;
  --strip-y: 90%;
  --strip-scale: 132%;
}
.gallery-collage > :nth-child(5) {
  --strip-color: #845c39;
  --strip-x: 64%;
  --strip-y: 100%;
  --strip-scale: 125%;
}
.gallery-collage > :nth-child(6) {
  --strip-color: #3b636a;
  --strip-x: 81%;
  --strip-y: 18%;
  --strip-scale: 118%;
}
.gallery-collage > :nth-child(7) {
  --strip-color: #646c42;
  --strip-x: 100%;
  --strip-scale: 110%;
}
.gallery-viewport {
  position: relative;
  isolation: isolate;
}
.gallery-lighting {
  --lighting-row-height: 1.8rem;
  position: relative;
  justify-self: end;
  color: #46392b;
  font: .78rem/1.2 system-ui, sans-serif;
}
.gallery-lighting summary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: calc(2 * var(--lighting-row-height));
  padding: 0;
  font: inherit;
  list-style: none;
  cursor: pointer;
}
.gallery-lighting summary::-webkit-details-marker { display: none; }
.gallery-lighting-tag {
  display: flex;
  align-items: center;
  gap: .48rem;
  min-height: 1.85rem;
  padding: .1rem 0 .1rem .3rem;
  border-bottom: 1px solid transparent;
  color: inherit;
  font: 400 clamp(1.05rem, 1.55vw, 1.35rem)/1 "Jacquard 12", Georgia, serif;
  white-space: nowrap;
}
.gallery-lighting-tag::after {
  content: "";
  width: 2px;
  height: 2px;
  margin-inline: 4px;
  color: inherit;
  background: currentColor;
  box-shadow: -4px -4px, -2px -2px, 2px -2px, 4px -4px;
  transform: translateY(2px);
}
.gallery-lighting[open] .gallery-lighting-tag::after { transform: translateY(-2px) rotate(180deg); }
.gallery-lighting summary:hover .gallery-lighting-tag,
.gallery-lighting[open] .gallery-lighting-tag { border-bottom-color: #6b58427d; }
.gallery-lighting summary:focus-visible { outline: none; }
.gallery-lighting summary:focus-visible .gallery-lighting-tag {
  outline: 2px solid #775235;
  outline-offset: 2px;
}
.gallery-lighting-options {
  position: absolute;
  inset-inline-end: calc(100% + .55rem);
  inset-block-start: 0;
  display: grid;
  width: max-content;
}
@media (prefers-reduced-motion: no-preference) {
  .gallery-lighting[open] .gallery-lighting-options {
    animation: gallery-lighting-slide-in .38s cubic-bezier(.22, .72, .24, 1);
  }
}
@keyframes gallery-lighting-slide-in {
  from { clip-path: inset(0 0 0 100%); opacity: 0; transform: translateX(.85rem); }
  to { clip-path: inset(0); opacity: 1; transform: translateX(0); }
}
.gallery-lighting-row {
  display: flex;
  align-items: center;
  gap: .22rem;
}
.gallery-lighting-label {
  min-width: 3.2rem;
  color: #74624e;
  font-size: .68rem;
}
.gallery-lighting label { position: relative; cursor: pointer; }
.gallery-lighting input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.gallery-lighting label span {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: var(--lighting-row-height);
  padding-inline: .4rem;
  text-underline-offset: .34em;
  white-space: nowrap;
}
.gallery-lighting label span::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px 0;
  border-radius: 99rem;
  background: radial-gradient(ellipse 78% 95% at var(--shine-x, 50%) var(--shine-y, 50%), #fff, #fff9 40%, transparent 85%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.gallery-lighting input:checked + span {
  color: #773b1d;
  text-decoration: underline;
}
.gallery-lighting input:checked + span::before { opacity: .6; }
.gallery-lighting label:hover span::before,
.gallery-lighting input:focus-visible + span::before { opacity: 1; }
.gallery-lighting input:focus-visible + span { outline: 1px solid #775235; outline-offset: -3px; }

@media (max-width: 480px) {
  .gallery-lighting[open] .gallery-lighting-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .gallery-lighting-row { gap: .14rem; font-size: .7rem; }
  .gallery-lighting-label { min-width: 2.65rem; }
  .gallery-lighting label span { padding-inline: .22rem; }
}

.gallery-stage {
  --room-depth: clamp(6.75rem, 16vw, 12rem);
  --ceiling-right: 78%;
  --floor-left: 19%;
  --floor-right: 81%;
  --uplight: 0;
  --sidelight: 0;
  --light-core: #fbfbf8;
  --light-glow: 234 234 231;
  --light-bounce: 206 208 200;
  position: relative;
  height: clamp(20.5rem, min(46vw, calc(100svh - 22rem)), 31rem);
  overflow: hidden;
  perspective: clamp(27rem, 76vw, 58rem);
  perspective-origin: 50% 46%;
  background: #142624;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.gallery-stage:is([data-lighting="top-bottom"], [data-lighting="surround"]) { --uplight: 1; }
.gallery-stage[data-lighting="surround"] { --sidelight: 1; }
.gallery-stage[data-tone="warm"] {
  --light-core: #fff9e2;
  --light-glow: 255 220 158;
  --light-bounce: 234 182 108;
}
.gallery-stage[data-tone="cool"] {
  --light-core: #effaff;
  --light-glow: 164 218 255;
  --light-bounce: 120 178 237;
}
.gallery-stage[data-dragging],
.gallery-stage[data-dragging] .gallery-panel { cursor: grabbing; }
.gallery-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 3rem #08151183;
}
.gallery-room {
  position: absolute;
  inset: -2%;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--view-zoom, 0) * clamp(27px, 4.5vw, 62px)))
    rotateX(var(--view-pitch, 0deg)) rotateY(var(--view-yaw, 0deg));
  transition: transform .46s cubic-bezier(.2, .65, .32, 1);
}
.gallery-stage[data-dragging] .gallery-room { transition-duration: .12s; }
.gallery-stage[data-pinching] :is(.gallery-room, .gallery-plane) { transition: none; }
.gallery-plane, .gallery-wall { position: absolute; }
.gallery-plane {
  filter: blur(var(--near-blur, 0px));
  transition: filter .46s ease;
  pointer-events: none;
}
.gallery-wall {
  inset: 0;
  display: grid;
  place-items: center;
  padding-block: 2.4% 0;
  transform: translateZ(calc(-1 * var(--room-depth)));
  background:
    radial-gradient(ellipse at 19% 5%, #88c2b676, transparent 44%),
    radial-gradient(ellipse at 64% 110%, #668e806b, transparent 53%),
    linear-gradient(109deg, #315352 0%, #294544 52%, #172725 100%);
  box-shadow: inset 0 .52rem 1.4rem #091c1a91, inset 0 -1px #101e1d;
}
.gallery-left, .gallery-right { inset-block: 0; width: var(--room-depth); }
.gallery-left {
  left: 0;
  transform-origin: left center;
  transform: rotateY(90deg);
  background:
    radial-gradient(ellipse at 100% 4%, #c4f5e9bd, transparent 51%),
    linear-gradient(90deg, #1e3735, #527976);
}
.gallery-right {
  right: 0;
  transform-origin: right center;
  transform: rotateY(-90deg);
  background: linear-gradient(90deg, #182e2d, #2d4541);
}
.gallery-ceiling, .gallery-floor { inset-inline: 0; height: var(--room-depth); }
.gallery-ceiling {
  top: 0;
  transform-origin: center top;
  transform: rotateX(-90deg);
  background:
    linear-gradient(90deg, #ffffff00 24%, #101f1f 24.15%, #ffffff00 24.3% 82%, #101f1f 82.15%, #ffffff00 82.3%),
    radial-gradient(ellipse at left bottom, #4f817b, transparent 48%),
    linear-gradient(#1a302f, #294544);
}
.gallery-floor {
  bottom: 0;
  transform-origin: center bottom;
  transform: rotateX(90deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(17% - 1px), #142b2a9c calc(17% - 1px) 17%),
    repeating-linear-gradient(0deg, transparent 0 calc(38% - 1px), #142b2a80 calc(38% - 1px) 38%),
    radial-gradient(ellipse at 39% 0, #75aaa0, transparent 46%),
    radial-gradient(ellipse at 74% 0, #639d95, transparent 37%),
    linear-gradient(#385e5a, #203a38);
  border-top: 1px solid #0f201e;
}
.gallery-wall::before,
.gallery-wall::after,
.gallery-plane::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gallery-wall::before {
  background:
    radial-gradient(ellipse 28% 61% at 22% -8%, rgb(var(--light-glow) / .82), rgb(var(--light-bounce) / .24) 49%, transparent 100%),
    radial-gradient(ellipse 27% 65% at 50% -8%, rgb(var(--light-glow) / .79), rgb(var(--light-bounce) / .24) 48%, transparent 100%),
    radial-gradient(ellipse 28% 61% at var(--ceiling-right) -8%, rgb(var(--light-glow) / .82), rgb(var(--light-bounce) / .24) 49%, transparent 100%);
}
.gallery-wall::after {
  opacity: var(--uplight);
  background:
    radial-gradient(ellipse 32% 46% at var(--floor-left) 107%, rgb(var(--light-bounce) / .53), rgb(var(--light-bounce) / .19) 52%, transparent 100%),
    radial-gradient(ellipse 32% 46% at 50% 107%, rgb(var(--light-bounce) / .53), rgb(var(--light-bounce) / .19) 52%, transparent 100%),
    radial-gradient(ellipse 32% 46% at var(--floor-right) 107%, rgb(var(--light-bounce) / .53), rgb(var(--light-bounce) / .19) 52%, transparent 100%);
  transition: opacity .35s ease;
}
.gallery-ceiling::after {
  --fixture-line: 65%;
  --ceiling-halo: var(--light-core) 0 37%, rgb(var(--light-glow) / .7) 51%, rgb(var(--light-bounce) / .26) 75%, transparent 100%;
  background:
    radial-gradient(ellipse 3.4% 9% at 22% var(--fixture-line), var(--ceiling-halo)),
    radial-gradient(ellipse 3.4% 9% at 50% var(--fixture-line), var(--ceiling-halo)),
    radial-gradient(ellipse 3.4% 9% at var(--ceiling-right) var(--fixture-line), var(--ceiling-halo)),
    radial-gradient(ellipse 65% 75% at 50% var(--fixture-line), rgb(var(--light-bounce) / .2), transparent 92%);
}
.gallery-floor { --fixture-line: 37%; }
.gallery-floor::after {
  opacity: var(--uplight);
  background:
    radial-gradient(ellipse 16% 38% at var(--floor-left) var(--fixture-line), rgb(var(--light-bounce) / .28), transparent 95%),
    radial-gradient(ellipse 16% 38% at 50% var(--fixture-line), rgb(var(--light-bounce) / .28), transparent 95%),
    radial-gradient(ellipse 16% 38% at var(--floor-right) var(--fixture-line), rgb(var(--light-bounce) / .28), transparent 95%);
  transition: opacity .35s ease;
}
.gallery-floor-fixture {
  position: absolute;
  z-index: 1;
  top: var(--fixture-line);
  left: 50%;
  width: clamp(1.4rem, 3.6vw, 3.3rem);
  height: clamp(1rem, 2.7vw, 2.25rem);
  border: 1px solid #ddd3ac40;
  border-radius: 50%;
  background: #101e1829;
  box-shadow: inset 0 0 .3rem #101e1829;
  transform: translate(-50%, -50%);
}
.gallery-floor-fixture:first-child { left: var(--floor-left); }
.gallery-floor-fixture:last-child { left: var(--floor-right); }
.gallery-floor-fixture::after {
  content: "";
  position: absolute;
  inset: 23%;
  border-radius: inherit;
  opacity: var(--uplight);
  background: radial-gradient(ellipse, var(--light-core) 28%, rgb(var(--light-bounce)) 76%);
  box-shadow: 0 0 .65rem rgb(var(--light-glow) / .65), 0 0 1.2rem rgb(var(--light-bounce) / .42);
  transition: opacity .35s ease;
}
.gallery-left::after { --fixture-edge: 74%; }
.gallery-right::after { --fixture-edge: 26%; }
:is(.gallery-left, .gallery-right)::after {
  opacity: var(--sidelight);
  background:
    radial-gradient(ellipse 4% 33% at var(--fixture-edge) 52%, var(--light-core) 0 30%, rgb(var(--light-glow) / .68) 46%, rgb(var(--light-bounce) / .41) 65%, transparent 100%),
    radial-gradient(ellipse 85% 75% at var(--fixture-edge) 52%, rgb(var(--light-bounce) / .54), rgb(var(--light-bounce) / .12) 65%, transparent 100%);
  transition: opacity .35s ease;
}
.gallery-work {
  --panel-duration: .6s;
  --panel-ease: cubic-bezier(.215, .61, .355, 1);
  z-index: 1;
  display: flex;
  gap: clamp(.35rem, .8vw, .7rem);
  width: min(88%, 76rem);
  height: 66%;
  max-height: 23rem;
  perspective: 1050px;
}
.gallery-panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #32291e;
  border-radius: .55rem;
  color: #fff7eb;
  background: #101e1d;
  box-shadow: 0 .6rem .9rem #0a201de0, 0 .11rem .18rem #050c0b;
  transform: rotateY(var(--panel-tilt, 0deg));
  transition: flex-grow var(--panel-duration) var(--panel-ease),
    transform var(--panel-duration) var(--panel-ease),
    border-color var(--panel-duration) var(--panel-ease);
  cursor: pointer;
}
.gallery-panel[aria-pressed="true"] {
  flex-grow: var(--active-grow, 1);
  border-color: #897863;
}
.gallery-panel:focus-visible { outline-color: #fff3da; }
.gallery-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position, 50%) center;
  filter: grayscale(1);
  transform: translateX(var(--panel-drift, 0%)) scale(1.08);
  transition: filter var(--panel-duration) var(--panel-ease),
    transform var(--panel-duration) var(--panel-ease);
  pointer-events: none;
}
.gallery-panel[aria-pressed="true"] img { filter: grayscale(0); transform: none; }
:is(.gallery-portrait, .gallery-deer)[aria-pressed="true"] img { object-fit: contain; }
.gallery-panorama {
  background: radial-gradient(ellipse at center, #304c49, #172a29 82%);
}
.gallery-panorama img {
  padding-inline: .45rem;
  object-fit: contain;
}
.gallery-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(transparent 60%, #071214bf), #0b172238;
  opacity: .85;
  transition: opacity var(--panel-duration) var(--panel-ease);
  pointer-events: none;
}
.gallery-panel[aria-pressed="true"]::after { opacity: .55; }
.gallery-panorama[aria-pressed="true"]::after { opacity: .3; }
.gallery-panel-label {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: .8rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  color: #fff7eb;
  font: 400 clamp(1.1rem, 2.2vw, 1.85rem)/1 "Wire One", Arial, sans-serif;
  letter-spacing: .035em;
  white-space: nowrap;
  text-align: left;
  text-shadow: 0 1px 2px #071214;
  transform: translateX(-.65rem);
  transition: opacity .36s ease, transform .36s ease;
  pointer-events: none;
}
.gallery-panel-label::before {
  content: "";
  width: .95rem;
  height: 1px;
  flex: 0 0 auto;
  background: #fff7eb;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .32s var(--panel-ease);
}
.gallery-panel[aria-pressed="true"] .gallery-panel-label {
  opacity: 1;
  transform: none;
  transition-delay: .06s;
}
.gallery-panel[aria-pressed="true"] .gallery-panel-label::before { transform: none; }

.gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem 1.2rem;
  margin-top: clamp(.9rem, 2vw, 1.85rem);
  padding-top: .42rem;
  border-top: 1px solid var(--gallery-rule);
}
.gallery-credit, .gallery-tools, .gallery-browse, .gallery-zoom {
  display: flex;
  align-items: center;
}
.gallery-credit { gap: clamp(.5rem, 2vw, 1.6rem); }
.gallery-count {
  flex: 0 0 auto;
  padding-right: clamp(.5rem, 2vw, 1.6rem);
  border-right: 1px solid var(--gallery-rule);
  font: clamp(1.25rem, 2.5vw, 1.95rem)/1.1 "Jacquard 12 Charted", Georgia, serif;
  white-space: nowrap;
}
.gallery-work-title {
  margin: 0;
  font: 400 clamp(1.25rem, 2.65vw, 2.45rem)/1 XCBlood, Georgia, serif;
}
.gallery-tools {
  gap: clamp(.35rem, 1.6vw, 1.25rem);
  margin-inline-start: auto;
}
#gallery-look {
  font: 400 clamp(1.2rem, 2.4vw, 1.95rem)/1 "Wire One", Arial, sans-serif;
  white-space: nowrap;
}
.gallery-keyboard-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}
.gallery-touch-hint { display: none; }
@media (pointer: coarse) {
  .gallery-drag-hint { display: none; }
  .gallery-touch-hint { display: inline; }
}
.gallery-tools button {
  min-width: 2.65rem;
  min-height: 2.65rem;
  padding: 0 .7rem;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.gallery-tools button:is(:hover, :focus-visible) { background: #2828200e; }
.gallery-zoom {
  flex: 0 0 auto;
  margin-inline-start: auto;
  color: #514a3e;
}
.gallery-zoom button {
  display: inline-grid;
  place-items: center;
  min-width: 2.25rem;
  padding: 0;
  border-radius: 50%;
}
.gallery-zoom button:focus-visible { outline: 1px solid currentColor; outline-offset: -4px; }
.gallery-zoom button[aria-disabled="true"] { opacity: .4; cursor: default; }
.zoom-lens {
  position: relative;
  width: .8rem;
  height: .8rem;
}
.zoom-lens::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  box-sizing: border-box;
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(currentColor, currentColor) center / 5px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px var(--zoom-cross, 0px) no-repeat;
}
.zoom-lens::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 5px;
  height: 1px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: 1px center;
}
.gallery-zoom-in { --zoom-cross: 5px; }
.gallery-view { font-family: var(--reading-font); white-space: nowrap; }

@media (width > 560px) {
  .gallery-work:has(.gallery-panorama[aria-pressed="true"]) {
    gap: clamp(.18rem, .4vw, .38rem);
    width: min(92%, 76rem);
    height: auto;
    max-height: min(66%, 23rem);
    aspect-ratio: 4.2;
    perspective: none;
  }
  .gallery-panorama[aria-pressed="true"] { flex-grow: 4.3; }
  .gallery-portrait { transform-origin: right center; }
  .gallery-deer { transform-origin: left center; }
  .gallery-work:has(.gallery-panorama[aria-pressed="true"]) .gallery-portrait { --panel-fold: 48deg; }
  .gallery-work:has(.gallery-panorama[aria-pressed="true"]) .gallery-deer { --panel-fold: -48deg; }
  .gallery-work:has(.gallery-panorama[aria-pressed="true"]) :is(.gallery-portrait, .gallery-deer) {
    transform: perspective(clamp(22rem, 43vw, 30rem)) rotateY(var(--panel-fold));
  }
  .gallery-work:has(.gallery-panorama[aria-pressed="true"]) :is(.gallery-portrait, .gallery-deer)::after { opacity: .45; }
  .gallery-work:has(.gallery-panorama[aria-pressed="true"]) .gallery-panel img {
    object-fit: contain;
    transform: none;
  }
}

@media (max-width: 560px) {
  .gallery-stage {
    --ceiling-right: 71%;
    --floor-left: 28%;
    --floor-right: 72%;
    height: clamp(20rem, 86vw, 25rem);
  }
  .gallery-work { width: 90%; height: 84%; flex-direction: column; }
  .gallery-panel { transform: rotateX(calc(-1 * var(--panel-tilt, 0deg))); }
  .gallery-panel img { transform: translateY(var(--panel-drift, 0%)) scale(1.08); }
  :is(.gallery-portrait, .gallery-deer) img { object-position: center 42%; }
  .gallery-panel-label { right: .6rem; bottom: .4rem; left: .6rem; }
  .gallery-caption { gap: .25rem 1rem; }
  .gallery-tools { width: 100%; }
}
@media (max-width: 360px) {
  .gallery-stage {
    --ceiling-right: 66%;
    --floor-left: 32%;
    --floor-right: 68%;
  }
  .gallery-tools .gallery-view { padding-inline: .35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-letter { transition: none; }
  .gallery-lighting label span::before,
  .gallery-room, .gallery-plane, .gallery-stage[data-dragging] .gallery-room,
  .gallery-wall::after, .gallery-plane::after, .gallery-floor-fixture::after,
  .gallery-panel, .gallery-panel img, .gallery-panel::after,
  .gallery-panel-label, .gallery-panel-label::before { transition: none; }
}
