/* Alma — Gallery page chrome + full-viewport black hole (alma-black-hole.css) */

:root {
  --bg: #000000;
  --ease-soft: cubic-bezier(0.45, 0, 0.55, 1);
  --glass-bg: rgba(255, 255, 255, 0.028);
  --glass-border: rgba(255, 255, 255, 0.078);
  --glass-inner: rgba(255, 255, 255, 0.022);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  min-height: 100%;
  min-height: 100dvh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: rgba(255, 255, 255, 0.9);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body:not(.alma-ready) {
  overflow: hidden;
}

body:not(.alma-ready) .gallery-main,
body:not(.alma-ready) .top-glass-dock,
body:not(.alma-ready) .bottom-glass {
  visibility: hidden;
  pointer-events: none;
}

.gallery-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gallery-skip:focus {
  left: max(0.5rem, env(safe-area-inset-left));
  top: max(0.5rem, env(safe-area-inset-top));
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #111;
  z-index: 10120;
  outline: 1px solid rgba(255, 255, 255, 0.3);
}

.top-glass {
  position: fixed;
  top: max(0.65rem, calc(env(safe-area-inset-top) + 0.35rem));
  left: 50%;
  transform: translate3d(-50%, 0, 0);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.15rem, 1.2vw, 0.45rem);
  padding: 0.42rem clamp(0.45rem, 1.5vw, 0.65rem);
  border-radius: 9999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 1px 0 var(--glass-inner) inset;
  backdrop-filter: blur(14px) saturate(1.04);
  -webkit-backdrop-filter: blur(14px) saturate(1.04);
  pointer-events: auto;
  max-width: calc(100vw - 1.25rem);
}

.top-glass nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.05rem, 0.8vw, 0.28rem);
}

.top-glass a {
  font-size: clamp(0.52rem, 1.05vw, 0.62rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.52);
  padding: 0.32rem 0.42rem;
  border-radius: 9999px;
  transition: color 0.35s var(--ease-soft), background 0.35s var(--ease-soft);
}

.top-glass a:hover,
.top-glass a:focus-visible {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.04);
}

.top-glass a:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.28);
  outline-offset: 2px;
}

.top-glass a.top-glass__here {
  color: rgba(230, 236, 255, 0.95);
  background: rgba(255, 255, 255, 0.06);
}

.top-glass__lab-home {
  color: rgba(200, 210, 255, 0.75) !important;
}

/* Scrollable UI over fixed black hole (particles stay full viewport) */
.gallery-main {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  background: transparent;
  pointer-events: auto;
}

.gallery-bh-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.gallery-bh-fixed .alma-bh--page {
  width: 100%;
  height: 100%;
  min-height: 100%;
  min-height: 100dvh;
  pointer-events: none;
}

.gallery-scroll {
  position: relative;
  z-index: 1;
  max-width: min(76rem, 100%);
  margin: 0 auto;
  padding: max(clamp(4.5rem, 12vh, 6rem), calc(env(safe-area-inset-top, 0px) + 3.25rem))
    max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right, 0px))
    max(clamp(5rem, 14vh, 7rem), env(safe-area-inset-bottom, 0px))
    max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left, 0px));
  pointer-events: none;
}

@media (max-width: 640px) {
  .gallery-scroll {
    padding-top: max(clamp(5.35rem, 16vw, 6.75rem), calc(env(safe-area-inset-top, 0px) + 4.35rem));
  }
}

.gallery-scroll > * {
  pointer-events: auto;
}

.gallery-glass {
  position: relative;
  background: var(--alma-liquid-shine), var(--alma-liquid-veil);
  border: 1px solid var(--alma-liquid-border);
  border-radius: 1.15rem;
  padding: clamp(1rem, 2.4vw, 1.35rem) clamp(1.05rem, 2.6vw, 1.45rem);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.32) inset,
    0 1px 0 var(--alma-liquid-inset) inset,
    var(--alma-liquid-shadow);
  backdrop-filter: blur(var(--alma-liquid-blur)) saturate(var(--alma-liquid-sat));
  -webkit-backdrop-filter: blur(var(--alma-liquid-blur)) saturate(var(--alma-liquid-sat));
}

.gallery-reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition:
    opacity 0.7s var(--ease-soft),
    transform 0.75s var(--ease-soft),
    filter 0.75s var(--ease-soft);
}

.gallery-reveal--in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.gallery-hero {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  padding-block: 0.15rem;
}

.gallery-hero__eyebrow {
  font-size: clamp(0.48rem, 0.95vw, 0.55rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.65rem;
}

.gallery-hero__title {
  font-size: clamp(1.35rem, 4vw, 2.1rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  color: rgba(255, 252, 255, 0.94);
}

.gallery-hero__lead {
  font-size: clamp(0.78rem, 1.45vw, 0.92rem);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
  max-width: 48rem;
}

.gallery-hero__lead strong {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}

.gallery-quality {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.85rem);
  padding: 0.55rem clamp(0.75rem, 2vw, 1rem);
  position: relative;
  border-radius: 1.1rem;
  background: var(--alma-liquid-shine), var(--alma-liquid-veil);
  border: 1px solid var(--alma-liquid-border);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.32) inset,
    0 1px 0 var(--alma-liquid-inset) inset,
    var(--alma-liquid-shadow-ui);
  backdrop-filter: blur(var(--alma-liquid-blur)) saturate(var(--alma-liquid-sat));
  -webkit-backdrop-filter: blur(var(--alma-liquid-blur)) saturate(var(--alma-liquid-sat));
}

.gallery-quality__label {
  font-size: clamp(0.55rem, 1vw, 0.62rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  width: 100%;
}

@media (min-width: 520px) {
  .gallery-quality__label {
    width: auto;
  }
}

.gallery-quality__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.gallery-quality__btn {
  font: inherit;
  font-size: clamp(0.58rem, 1.05vw, 0.68rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: color 0.35s var(--ease-soft), background 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}

.gallery-quality__btn[aria-pressed="true"] {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 190, 255, 0.35);
  box-shadow: 0 0 24px rgba(180, 160, 255, 0.12);
}

.gallery-quality__btn:hover,
.gallery-quality__btn:focus-visible {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
}

/*
 * Segmented rail sits *inside* the outer .gallery-quality liquid shell — inner track is a
 * dark inset well only (no second liquid stack) so it never reads as a solid white pill.
 */
html[data-alma-media="medium"] .gallery-quality__btns,
html[data-alma-media="super"] .gallery-quality__btns {
  flex-wrap: nowrap;
  gap: 0;
  padding: 3px;
  border-radius: 9px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-alma-media="medium"] .gallery-quality__btn,
html[data-alma-media="super"] .gallery-quality__btn {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 7px;
  border: none;
  margin: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  box-shadow: none;
}

html[data-alma-media="medium"] .gallery-quality__btn[aria-pressed="true"],
html[data-alma-media="super"] .gallery-quality__btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.94);
}

html[data-alma-media="super"] .gallery-quality__btn[aria-pressed="true"] {
  background: rgba(200, 195, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 18px rgba(160, 150, 255, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .gallery-quality {
    backdrop-filter: blur(12px) saturate(1.02);
    -webkit-backdrop-filter: blur(12px) saturate(1.02);
  }
}

/* Save data: fax texture on inner track only; outer shell stays liquid glass */
html[data-alma-media="save"] .gallery-quality__btns {
  flex-wrap: nowrap;
  gap: 0;
  padding: 3px;
  border-radius: 9px;
  background:
    repeating-linear-gradient(
      -12deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 3px
    ),
    rgba(18, 16, 14, 0.55);
  border: 1px dashed rgba(255, 185, 130, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-alma-media="save"] .gallery-quality__btn {
  flex: 1 1 0;
  min-width: 0;
  border-radius: 7px;
  border: none;
  margin: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  box-shadow: none;
}

html[data-alma-media="save"] .gallery-quality__btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.94);
}

html[data-alma-media="save"] .gallery-quality__btn[data-quality="save"][aria-pressed="true"] {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0.02em;
  color: rgba(255, 235, 210, 0.96) !important;
  background: rgba(52, 46, 40, 0.9) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 200, 140, 0.25),
    1px 1px 0 rgba(0, 0, 0, 0.35) !important;
}

.gallery-quality__hint {
  flex: 1 1 100%;
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* Copyright / context — full liquid glass (.gallery-glass), same language as hero / intro chrome */
.gallery-section--legal .gallery-section__title {
  margin-bottom: clamp(0.65rem, 2vw, 0.95rem);
}

.gallery-section--legal__panel.gallery-glass {
  margin-bottom: 0;
  padding: clamp(0.85rem, 2vw, 1.15rem) clamp(0.95rem, 2.2vw, 1.25rem);
}

.gallery-section--legal__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1rem, 3.5vw, 2.5rem);
  column-gap: clamp(1.5rem, 5vw, 3.25rem);
  align-items: start;
  max-width: min(58rem, 100%);
  margin-inline: auto;
}

@media (max-width: 780px) {
  .gallery-section--legal__cols {
    grid-template-columns: 1fr;
  }
}

.gallery-section--legal .gallery-section__deck,
.gallery-section--legal .gallery-spotlight__lead {
  margin-bottom: 0;
  max-width: none;
}

.gallery-section--legal .gallery-section__deck strong {
  font-weight: 500;
  color: rgba(255, 248, 240, 0.82);
}

.gallery-main img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

.gallery-main canvas {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* —— Anti-casual-capture (enlarged view only): keyframes shared by lightbox —— */
@keyframes gallery-cap-veil-twitch {
  0% {
    opacity: 0.22;
    filter: hue-rotate(0deg) contrast(2.6) saturate(2.2) invert(0.12) brightness(1.05);
    transform: translate(0, 0) scale(1);
  }
  12% {
    opacity: 1;
    filter: hue-rotate(160deg) contrast(0.28) saturate(0.12) invert(0.42) brightness(0.55);
    transform: translate(9px, -7px) scale(1.028) skewX(1.1deg);
  }
  25% {
    opacity: 0.35;
    filter: hue-rotate(-95deg) contrast(3.4) saturate(2.8) invert(0.08) brightness(1.35);
    transform: translate(-8px, 8px) scale(0.965) skewY(-0.9deg);
  }
  37% {
    opacity: 0.95;
    filter: hue-rotate(210deg) contrast(0.38) saturate(0.22) invert(0.55) brightness(0.42);
    transform: translate(6px, 5px) scale(1.018);
  }
  50% {
    opacity: 0.28;
    filter: hue-rotate(-55deg) contrast(3.1) saturate(1.4) invert(0.22) brightness(1.22);
    transform: translate(-11px, -4px) scale(0.978);
  }
  62% {
    opacity: 1;
    filter: hue-rotate(85deg) contrast(0.22) saturate(0.18) invert(0.38) brightness(0.62);
    transform: translate(4px, -9px) scale(1.012) skewX(-1.4deg);
  }
  75% {
    opacity: 0.4;
    filter: hue-rotate(-175deg) contrast(2.85) saturate(2.4) invert(0.15) brightness(0.88);
    transform: translate(-5px, 10px) scale(1.006);
  }
  87% {
    opacity: 0.88;
    filter: hue-rotate(120deg) contrast(0.55) saturate(0.35) invert(0.48) brightness(0.48);
    transform: translate(7px, 3px) scale(0.992) skewY(1deg);
  }
  100% {
    opacity: 0.55;
    filter: hue-rotate(40deg) contrast(1.9) saturate(1.5) invert(0.18) brightness(0.95);
    transform: translate(-2px, -2px) scale(1);
  }
}

@keyframes gallery-cap-lb-churn {
  0% {
    filter: saturate(1) contrast(1) brightness(1) hue-rotate(0deg) blur(0px) sepia(0);
  }
  12% {
    filter: saturate(0.08) contrast(3.2) brightness(0.32) hue-rotate(140deg) blur(1.8px) sepia(0.55);
  }
  25% {
    filter: saturate(3.5) contrast(0.35) brightness(1.65) hue-rotate(-95deg) blur(0.6px) sepia(0.15);
  }
  37% {
    filter: saturate(0.15) contrast(2.8) brightness(0.38) hue-rotate(95deg) blur(2.2px) sepia(0.4);
  }
  50% {
    filter: saturate(2.9) contrast(0.48) brightness(1.48) hue-rotate(-160deg) blur(0.35px) sepia(0.25);
  }
  62% {
    filter: saturate(0.12) contrast(3.6) brightness(0.42) hue-rotate(55deg) blur(1.4px) sepia(0.62);
  }
  75% {
    filter: saturate(2.2) contrast(0.55) brightness(1.25) hue-rotate(190deg) blur(0.85px) sepia(0.08);
  }
  87% {
    filter: saturate(0.22) contrast(2.2) brightness(0.55) hue-rotate(-75deg) blur(1.95px) sepia(0.35);
  }
  100% {
    filter: saturate(1) contrast(1) brightness(1) hue-rotate(0deg) blur(0px) sepia(0);
  }
}

@keyframes gallery-cap-lb-veil {
  0% {
    opacity: 0.35;
    background-position: 0 0, 0 0;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  20% {
    opacity: 1;
    background-position: 18px -12px, -14px 10px;
    transform: translate(-4px, 3px) rotate(-1.1deg) scale(1.02);
  }
  40% {
    opacity: 0.25;
    background-position: -16px 14px, 12px -16px;
    transform: translate(5px, -5px) rotate(0.9deg) scale(0.97);
  }
  60% {
    opacity: 0.92;
    background-position: 10px 16px, -20px -8px;
    transform: translate(3px, 6px) rotate(-0.55deg) scale(1.015);
  }
  80% {
    opacity: 0.3;
    background-position: -22px -10px, 16px 18px;
    transform: translate(-6px, -4px) rotate(1.05deg) scale(0.985);
  }
  100% {
    opacity: 0.5;
    background-position: 0 0, 0 0;
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

@keyframes gallery-cap-lb-flash {
  0% {
    background-color: rgba(255, 40, 120, 0.38);
    opacity: 1;
  }
  20% {
    background-color: rgba(0, 255, 220, 0.32);
    opacity: 0.35;
  }
  40% {
    background-color: rgba(120, 60, 255, 0.45);
    opacity: 0.95;
  }
  60% {
    background-color: rgba(255, 240, 80, 0.28);
    opacity: 0.22;
  }
  80% {
    background-color: rgba(255, 255, 255, 0.42);
    opacity: 0.88;
  }
  100% {
    background-color: rgba(40, 200, 255, 0.3);
    opacity: 0.5;
  }
}

@keyframes gallery-cap-microjitter {
  0% {
    transform: translate(0, 0) scale(1);
  }
  16% {
    transform: translate(6px, -5px) scale(1.014) skewX(0.7deg);
  }
  33% {
    transform: translate(-7px, 6px) scale(0.978) skewY(-0.55deg);
  }
  50% {
    transform: translate(5px, 4px) scale(1.009);
  }
  66% {
    transform: translate(-5px, -7px) scale(0.991) skewX(-0.85deg);
  }
  83% {
    transform: translate(4px, 2px) scale(1.006) skewY(0.65deg);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

body.gallery-page #gallery-main .gallery-sketch-tile__frame .gallery-img,
body.gallery-page #gallery-main .gallery-duo__imgwrap .gallery-img {
  position: relative;
  z-index: 0;
}

/* Anti-casual-capture churn: enlarged lightbox only (not while browsing the page). */
body.gallery-page .gallery-lightbox:not([hidden]) .gallery-lightbox__img {
  position: relative;
  z-index: 0;
  animation:
    gallery-cap-lb-churn 0.028s steps(1, end) infinite,
    gallery-cap-microjitter 0.034s steps(1, end) infinite;
}

body.gallery-page #gallery-main .gallery-sketch-tile__frame {
  position: relative;
}

@media print {
  body.gallery-page #gallery-main .gallery-img,
  body.gallery-page .gallery-lightbox__img {
    visibility: hidden !important;
  }
}

.gallery-printwork__notes,
.gallery-printwork__notes-label {
  user-select: text;
  -webkit-user-select: text;
}

.gallery-ip-toast {
  position: fixed;
  left: 50%;
  bottom: max(5.5rem, calc(env(safe-area-inset-bottom) + 4.5rem));
  z-index: 10050;
  transform: translateX(-50%) translateY(120%);
  max-width: min(calc(100vw - 2rem), 22rem);
  margin: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 0.5rem;
  font-size: clamp(0.55rem, 1vw, 0.65rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
  text-align: center;
  color: rgba(255, 250, 245, 0.95);
  background: rgba(12, 8, 10, 0.92);
  border: 1px solid rgba(255, 200, 170, 0.28);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  opacity: 0;
  transition:
    transform 0.45s var(--ease-soft),
    opacity 0.35s var(--ease-soft);
}

.gallery-ip-toast.gallery-ip-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.gallery-navdeck {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.gallery-walls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.65rem, 2vw, 1rem);
}

@media (max-width: 640px) {
  .gallery-walls {
    grid-template-columns: 1fr;
  }
}

.gallery-wall {
  position: relative;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.2rem;
  min-height: clamp(9rem, 26vh, 13rem);
  padding: clamp(1rem, 2.5vw, 1.35rem) clamp(1rem, 2.8vw, 1.5rem);
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(
      148deg,
      rgba(255, 252, 248, 0.14) 0%,
      rgba(255, 255, 255, 0.05) 38%,
      rgba(6, 8, 14, 0.55) 100%
    ),
    rgba(4, 4, 8, 0.35);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  transition: border-color 0.45s var(--ease-soft), transform 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft);
}

.gallery-wall:hover,
.gallery-wall:focus-visible {
  border-color: rgba(255, 248, 255, 0.32);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 0 48px rgba(200, 188, 255, 0.14);
}

.gallery-wall:focus-visible {
  outline: 1px solid rgba(220, 210, 255, 0.45);
  outline-offset: 3px;
}

.gallery-wall[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 0 56px rgba(180, 200, 255, 0.18);
}

.gallery-wall__sheen {
  position: absolute;
  inset: -40%;
  background: radial-gradient(ellipse 70% 55% at 30% 40%, rgba(255, 255, 255, 0.22) 0%, transparent 55%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: opacity 0.55s var(--ease-soft), transform 0.8s var(--ease-soft);
  transform: scale(0.92);
  pointer-events: none;
}

.gallery-wall:hover .gallery-wall__sheen,
.gallery-wall:focus-visible .gallery-wall__sheen,
.gallery-wall[aria-expanded="true"] .gallery-wall__sheen {
  opacity: 0.85;
  transform: scale(1);
}

.gallery-wall__label {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  opacity: 0.55;
  transition: opacity 0.45s var(--ease-soft), letter-spacing 0.45s var(--ease-soft);
}

.gallery-wall:hover .gallery-wall__label,
.gallery-wall:focus-visible .gallery-wall__label,
.gallery-wall[aria-expanded="true"] .gallery-wall__label {
  opacity: 1;
  letter-spacing: 0.24em;
}

.gallery-wall__sub {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(0.65rem, 1.15vw, 0.76rem);
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.52);
  max-width: 22rem;
}

.gallery-subdots {
  display: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2.5vw, 1.35rem);
  margin-top: clamp(0.85rem, 2vw, 1.25rem);
  padding-top: clamp(0.75rem, 2vw, 1.1rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gallery-navdeck[data-mode="acrylic"] .gallery-subdots--acrylic,
.gallery-navdeck[data-mode="digital"] .gallery-subdots--digital {
  display: flex;
}

.gallery-subdot {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}

.gallery-subdot__core {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, rgba(230, 230, 255, 0.85) 40%, rgba(140, 150, 200, 0.5) 100%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
  transition: transform 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}

.gallery-subdot__glow {
  position: absolute;
  top: 0.15rem;
  left: 50%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 210, 255, 0.25) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
  pointer-events: none;
}

.gallery-subdot:hover .gallery-subdot__glow,
.gallery-subdot:focus-visible .gallery-subdot__glow {
  opacity: 1;
}

.gallery-subdot:hover .gallery-subdot__core,
.gallery-subdot:focus-visible .gallery-subdot__core {
  transform: scale(1.12);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.5);
}

.gallery-subdot__name {
  font-size: clamp(0.52rem, 0.95vw, 0.6rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.35s var(--ease-soft);
}

.gallery-subdot:hover .gallery-subdot__name,
.gallery-subdot:focus-visible .gallery-subdot__name {
  color: rgba(255, 255, 255, 0.88);
}

.gallery-subdot:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.25);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

.gallery-section {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.gallery-section__title {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-section__deck {
  font-size: clamp(0.72rem, 1.25vw, 0.84rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.48);
  max-width: 44rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

/* —— Spotlight bento (featured acrylic / digital) —— */
.gallery-spotlight {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.gallery-spotlight__title {
  font-size: clamp(0.72rem, 1.35vw, 0.88rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 230, 210, 0.88);
  margin-bottom: 0.45rem;
}

.gallery-spotlight__lead {
  font-size: clamp(0.65rem, 1.12vw, 0.78rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: clamp(0.85rem, 2vw, 1.15rem);
  max-width: 40rem;
}

.gallery-spotlight__lead strong {
  font-weight: 500;
  color: rgba(255, 248, 240, 0.82);
}

.gallery-bento {
  display: grid;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.gallery-bento__tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  margin: 0;
  background: #06060c;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft),
    border-color 0.35s var(--ease-soft);
}

.gallery-bento__tile:hover,
.gallery-bento__tile:focus-visible {
  transform: scale(1.015);
  border-color: rgba(255, 220, 200, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 200, 170, 0.12);
  outline: none;
}

.gallery-bento__tile:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 3px;
}

.gallery-bento__shine {
  position: absolute;
  inset: -40%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    transparent 35%,
    rgba(255, 255, 255, 0.07) 48%,
    transparent 62%
  );
  animation: gallery-bento-shine 7s ease-in-out infinite;
  opacity: 0.9;
}

@keyframes gallery-bento-shine {
  0%,
  100% {
    transform: translate3d(-12%, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(12%, 4%, 0) rotate(2deg);
  }
}

.gallery-bento__badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  padding: 0.28rem 0.55rem;
  border-radius: 0.35rem;
  font-size: clamp(0.48rem, 0.9vw, 0.58rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(12, 8, 6, 0.92);
  background: linear-gradient(135deg, rgba(255, 236, 210, 0.95), rgba(255, 210, 170, 0.88));
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.gallery-bento__badge--code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.gallery-bento__tile--highlight-ring {
  box-shadow:
    0 0 0 1px rgba(255, 220, 180, 0.35) inset,
    0 10px 36px rgba(0, 0, 0, 0.4),
    0 0 48px rgba(255, 190, 140, 0.14);
}

.gallery-bento__imgwrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #030305;
}

.gallery-bento__imgwrap .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-soft), filter 0.45s var(--ease-soft);
}

.gallery-bento__tile:hover .gallery-bento__imgwrap .gallery-img,
.gallery-bento__tile:focus-visible .gallery-bento__imgwrap .gallery-img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.gallery-bento__cap {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 0.4rem 0.55rem;
  font-size: clamp(0.48rem, 0.85vw, 0.55rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.gallery-bento--acrylic-single {
  grid-template-columns: 1fr;
  max-width: min(28rem, 100%);
  margin-inline: auto;
  grid-auto-rows: minmax(clamp(13rem, 42vw, 24rem), auto);
}

.gallery-bento--acrylic-single .gallery-bento__tile--acrylic-hero {
  grid-column: 1;
  grid-row: 1;
  min-height: clamp(13rem, 42vw, 24rem);
}

.gallery-bento--digital {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(clamp(72px, 12vw, 130px), auto);
}

.gallery-bento--digital .gallery-bento__tile--digital-hero {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  min-height: clamp(11rem, 32vw, 20rem);
}

.gallery-bento--digital .gallery-bento__tile--digital-tall {
  grid-column: 4;
  grid-row: 1 / 3;
}

.gallery-bento--digital .gallery-bento__tile--digital-wide {
  grid-column: 1 / 5;
  grid-row: 3;
  min-height: clamp(5.5rem, 18vw, 10rem);
}

@media (max-width: 720px) {
  .gallery-bento--acrylic-single,
  .gallery-bento--digital {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .gallery-bento--acrylic-single .gallery-bento__tile--acrylic-hero,
  .gallery-bento--digital .gallery-bento__tile--digital-hero,
  .gallery-bento--digital .gallery-bento__tile--digital-tall,
  .gallery-bento--digital .gallery-bento__tile--digital-wide {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: clamp(10rem, 52vw, 18rem);
  }

  .gallery-bento--digital .gallery-bento__tile--digital-tall {
    min-height: clamp(9rem, 70vw, 16rem);
  }

  .gallery-bento--digital .gallery-bento__tile--digital-wide {
    min-height: clamp(7rem, 48vw, 12rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-bento__shine {
    animation: none;
  }

  body.gallery-page .gallery-lightbox:not([hidden]) .gallery-lightbox__img,
  body.gallery-page .gallery-lightbox:not([hidden]) .gallery-lightbox__frame::after,
  body.gallery-page .gallery-lightbox:not([hidden]) .gallery-lightbox__frame::before {
    animation: none !important;
  }
}

/* —— Lightbox (blur scrim, image only) —— */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  /* Above .top-glass-dock (1200); must stay a direct child of body — not inside .gallery-main (z-index 100) */
  z-index: 10200;
  display: grid;
  place-items: center;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox__scrim {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(3, 3, 8, 0.62);
  backdrop-filter: blur(22px) saturate(1.08);
  -webkit-backdrop-filter: blur(22px) saturate(1.08);
  cursor: zoom-out;
}

.gallery-lightbox__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  max-width: min(96vw, 1200px);
  max-height: min(92vh, 1200px);
  pointer-events: none;
  /* Clear fixed top pills (Core… Gallery) + safe area — close control was colliding on phones */
  padding-top: max(2.35rem, calc(env(safe-area-inset-top, 0px) + 4.85rem));
}

.gallery-lightbox__panel > * {
  pointer-events: auto;
}

.gallery-lightbox__toolbar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  max-width: calc(100vw - 2rem);
  pointer-events: auto;
}

.gallery-lightbox__send-frame {
  margin: 0;
  padding: 0.38rem 0.72rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 210, 150, 0.45);
  background: rgba(38, 28, 18, 0.92);
  color: rgba(255, 235, 210, 0.92);
  font: inherit;
  font-size: clamp(0.48rem, 1.1vw, 0.62rem);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s var(--ease-soft),
    border-color 0.25s var(--ease-soft),
    transform 0.25s var(--ease-soft);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.gallery-lightbox__send-frame:hover,
.gallery-lightbox__send-frame:focus-visible {
  background: rgba(52, 38, 24, 0.95);
  border-color: rgba(255, 220, 170, 0.6);
  outline: none;
}

.gallery-lightbox__close {
  position: static;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 14, 0.92);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox__close:hover,
.gallery-lightbox__close:focus-visible {
  background: rgba(30, 28, 40, 0.95);
  transform: scale(1.06);
  outline: none;
}

.gallery-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
}

.gallery-lightbox__frame {
  position: relative;
  display: inline-block;
  line-height: 0;
  vertical-align: top;
}

body.gallery-page .gallery-lightbox:not([hidden]) .gallery-lightbox__frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 0.4rem;
  mix-blend-mode: color-dodge;
  animation: gallery-cap-lb-flash 0.032s steps(1, end) infinite;
}

body.gallery-page .gallery-lightbox:not([hidden]) .gallery-lightbox__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 0.4rem;
  background:
    repeating-linear-gradient(
      -13deg,
      transparent 0 1px,
      rgba(255, 255, 255, 0.16) 1px 2px,
      transparent 2px 5px,
      rgba(255, 80, 160, 0.09) 5px 6px,
      transparent 6px 10px,
      rgba(80, 200, 255, 0.1) 10px 11px,
      transparent 11px 15px
    ),
    linear-gradient(
      112deg,
      rgba(255, 60, 40, 0.28) 0%,
      transparent 35%,
      rgba(40, 90, 255, 0.22) 50%,
      transparent 65%,
      rgba(255, 220, 100, 0.18) 100%
    );
  background-size: 240% 240%, 140% 140%;
  background-blend-mode: overlay, normal;
  mix-blend-mode: hard-light;
  animation: gallery-cap-lb-veil 0.03s steps(1, end) infinite;
}

.gallery-lightbox__img {
  display: block;
  max-width: min(92vw, 1100px);
  max-height: min(78vh, 920px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.4rem;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.gallery-lightbox__print-guides {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
  border-radius: 0.4rem;
  overflow: hidden;
  box-sizing: border-box;
}

.gallery-lightbox__print-dims {
  font-size: clamp(0.48rem, 0.85vw, 0.58rem);
  letter-spacing: 0.08em;
  color: rgba(255, 238, 225, 0.7);
  line-height: 1.5;
  max-width: min(100%, 40rem);
  margin: 0;
  padding: 0 0.35rem;
  text-align: center;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.88);
}

.gallery-lightbox__cap {
  font-size: clamp(0.58rem, 1.05vw, 0.72rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 245, 238, 0.82);
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
  max-width: 36rem;
}

.gallery-legend {
  font-weight: 400;
  padding: 0 0.2rem;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-legend--sepid,
.gallery-legend--collab {
  color: rgba(255, 255, 255, 0.78);
}

.gallery-acrylic-card {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.gallery-acrylic-card__head {
  margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.gallery-acrylic-card__title {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.gallery-acrylic-card__meta {
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-top: 0.35rem;
}

.gallery-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.65rem, 2vw, 1.1rem);
  align-items: stretch;
}

@media (max-width: 720px) {
  .gallery-duo {
    grid-template-columns: 1fr;
  }
}

.gallery-duo__cell {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.gallery-duo__imgwrap {
  position: relative;
  border-radius: 0.85rem;
  overflow: auto;
  background: #050508;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  max-height: min(88vh, 1200px);
  cursor: zoom-in;
}

.gallery-duo__imgwrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%, rgba(0, 0, 0, 0.25) 100%);
  mix-blend-mode: soft-light;
  opacity: 0.85;
}

.gallery-img {
  display: block;
  vertical-align: middle;
  transition: filter 0.45s var(--ease-soft);
}

.gallery-acrylic-card .gallery-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(85vh, 1100px);
  object-fit: contain;
}

.gallery-duo__cell:hover .gallery-acrylic-card .gallery-img {
  filter: brightness(1.04);
}

.gallery-duo__cap {
  font-size: clamp(0.55rem, 1vw, 0.62rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.gallery-poster {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
}

.gallery-poster__title {
  font-size: clamp(0.78rem, 1.35vw, 0.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.gallery-poster__lead {
  font-size: clamp(0.7rem, 1.2vw, 0.8rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
  margin-bottom: 1rem;
  max-width: 40rem;
}

.gallery-poster__sizes {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
}

.gallery-poster__legend {
  font-size: clamp(0.55rem, 1vw, 0.62rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 0.5rem;
}

.gallery-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0.45rem 0.45rem 0;
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
}

.gallery-pill input {
  accent-color: rgba(200, 190, 255, 0.9);
}

.gallery-poster__notes-label {
  display: block;
  font-size: clamp(0.55rem, 1vw, 0.62rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.35rem;
}

.gallery-poster__notes {
  width: 100%;
  max-width: 36rem;
  min-height: 4.5rem;
  resize: vertical;
  padding: 0.65rem 0.75rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  margin-bottom: 0.65rem;
}

.gallery-poster__queue {
  margin-bottom: 0.85rem;
}

.gallery-poster__linkish {
  font: inherit;
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 195, 255, 0.85);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(200, 195, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.gallery-poster__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.gallery-poster__ghost {
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-poster__cta {
  font: inherit;
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: box-shadow 0.4s var(--ease-soft), background 0.4s var(--ease-soft);
}

.gallery-poster__cta:hover,
.gallery-poster__cta:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 36px rgba(190, 180, 255, 0.15);
}

.gallery-alien__title {
  font-size: clamp(0.72rem, 1.3vw, 0.85rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-alien__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 42vw), 1fr));
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.gallery-sketch-tile {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
  transition: border-color 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft);
}

.gallery-sketch-tile--checked,
.gallery-sketch-tile:has(input:checked) {
  border-color: rgba(200, 190, 255, 0.55);
  box-shadow: 0 0 28px rgba(180, 170, 255, 0.2);
}

.gallery-sketch-tile--sepid {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.gallery-sketch-tile--collab {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.gallery-sketch-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.gallery-sketch-tile__frame {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.gallery-sketch-tile__frame .gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-sketch-tile__cap {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0.45rem 0.5rem;
}

.gallery-sketch-tile__name {
  font-size: clamp(0.52rem, 0.9vw, 0.58rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-sketch-tile__credit {
  font-size: clamp(0.48rem, 0.82vw, 0.54rem);
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-sketch-tile--collab .gallery-sketch-tile__credit {
  color: rgba(255, 255, 255, 0.72);
}

body[data-gallery-q="save"] .gallery-acrylic-card .gallery-img {
  max-height: min(48vh, 480px);
  filter: saturate(0.92) contrast(0.96);
}

body[data-gallery-q="save"] .gallery-chip__img {
  max-height: 120px;
}

body[data-gallery-q="medium"] .gallery-acrylic-card .gallery-img {
  max-height: min(72vh, 900px);
}

body[data-gallery-q="super"] .gallery-acrylic-card .gallery-img {
  max-height: min(88vh, 1400px);
  filter: saturate(1.04) contrast(1.02);
}

body[data-gallery-q="save"] .gallery-bento__imgwrap .gallery-img {
  filter: saturate(0.92) contrast(0.96);
}

body[data-gallery-q="super"] .gallery-bento__imgwrap .gallery-img {
  filter: saturate(1.04) contrast(1.02);
}

/* Closed <dialog> must stay hidden — author `display` overrides UA otherwise. */
.gallery-dialog:not([open]) {
  display: none !important;
  pointer-events: none;
}

.gallery-dialog {
  z-index: 10090;
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  max-height: 100dvh;
  margin: 0;
  border: none;
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right))
    max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  box-sizing: border-box;
  background: transparent;
  overflow: auto;
  overscroll-behavior: contain;
}

.gallery-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.gallery-dialog__panel {
  width: 100%;
  max-width: min(26rem, calc(100vw - 1.5rem));
  margin: auto;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  flex-shrink: 0;
}

.gallery-dialog__title {
  font-size: clamp(0.78rem, 1.35vw, 0.88rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.gallery-dialog__body {
  font-size: clamp(0.72rem, 1.2vw, 0.82rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.58);
  margin-bottom: 1rem;
}

.gallery-dialog__footer {
  margin: 0;
  padding: 0;
  border: none;
}

.gallery-dialog__close {
  font: inherit;
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

/* —— Minimal panels (less liquid-glass fade than .gallery-glass) —— */
.gallery-panel-min {
  position: relative;
  border-radius: 1rem;
  padding: clamp(0.85rem, 2vw, 1.15rem) clamp(0.95rem, 2.2vw, 1.25rem);
  background: rgba(8, 8, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  backdrop-filter: blur(10px) saturate(1.02);
  -webkit-backdrop-filter: blur(10px) saturate(1.02);
}

.gallery-visuals {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* —— Orbit — Acrylic & Digital hubs, each with its own satellite ring —— */
.gallery-orbit {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding-block: 0.35rem;
}

.gallery-orbit__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(2.25rem, 10vw, 5.5rem);
  max-width: min(48rem, 100%);
  margin-inline: auto;
}

.gallery-orbit-cluster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: min(42vw, 14rem);
  padding: 0.35rem 0.5rem clamp(6.5rem, 18vw, 10rem);
}

.gallery-orbit__row--acrylic .gallery-orbit-cluster--digital,
.gallery-orbit__row--acrylic .gallery-orbit-cluster--sketch {
  opacity: 0.52;
}

.gallery-orbit__row--digital .gallery-orbit-cluster--acrylic,
.gallery-orbit__row--digital .gallery-orbit-cluster--sketch {
  opacity: 0.52;
}

.gallery-orbit__row--sketch .gallery-orbit-cluster--acrylic,
.gallery-orbit__row--sketch .gallery-orbit-cluster--digital {
  opacity: 0.52;
}

.gallery-orbit-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.28rem, 1vw, 0.45rem);
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
  border-radius: 9999px;
  transition: transform 0.45s var(--ease-soft), filter 0.45s var(--ease-soft);
}

.gallery-orbit-core:hover,
.gallery-orbit-core:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.gallery-orbit-core:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.35);
  outline-offset: 6px;
}

.gallery-orbit .orbit-dot__glow {
  position: relative;
  width: clamp(88px, 22vw, 140px);
  height: clamp(88px, 22vw, 140px);
  display: grid;
  place-items: center;
}

.gallery-orbit .orbit-dot__halo {
  position: absolute;
  width: clamp(72px, 18vw, 118px);
  height: clamp(72px, 18vw, 118px);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.22) 0%, transparent 68%);
  animation: gallery-orbit-halo-breathe 3.6s ease-in-out infinite;
}

.gallery-orbit-core__glow--digital .orbit-dot__halo {
  animation-delay: 0.55s;
}

/* Sketch hub + Punch satellite — neutral white glow (no blue in the pulse) */
.gallery-orbit-core__glow--sketch .orbit-dot__halo {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.34) 0%, transparent 68%);
  animation-delay: 0.2s;
}

.gallery-orbit-core__glow--sketch .orbit-dot__point {
  animation: gallery-orbit-core-pulse-sketch 3.2s ease-in-out infinite;
  animation-delay: 0.12s;
}

.gallery-orbit-sat__glow--sketch .orbit-dot__halo {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.38) 0%, transparent 72%);
}

.gallery-orbit-sat__glow--sketch .orbit-dot__point {
  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.95),
    0 0 22px rgba(255, 255, 255, 0.42);
}

@keyframes gallery-orbit-core-pulse-sketch {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.94;
    box-shadow:
      0 0 14px rgba(255, 255, 255, 0.92),
      0 0 30px rgba(255, 255, 255, 0.4);
  }
  50% {
    transform: scale(1.09);
    opacity: 1;
    box-shadow:
      0 0 24px rgba(255, 255, 255, 1),
      0 0 52px rgba(255, 255, 255, 0.5);
  }
}

.gallery-orbit .orbit-dot__point {
  position: relative;
  z-index: 1;
  width: clamp(14px, 3.2vw, 20px);
  height: clamp(14px, 3.2vw, 20px);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 14px rgba(255, 255, 255, 0.98),
    0 0 36px rgba(255, 255, 255, 0.45);
}

.gallery-orbit-core .orbit-dot__point {
  animation: gallery-orbit-core-pulse 3.2s ease-in-out infinite;
}

.gallery-orbit-core__glow--digital .orbit-dot__point {
  animation-delay: 0.4s;
}

@keyframes gallery-orbit-halo-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.88;
    filter: brightness(1);
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
    filter: brightness(1.12);
  }
}

@keyframes gallery-orbit-core-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
    box-shadow:
      0 0 12px rgba(255, 255, 255, 0.85),
      0 0 28px rgba(255, 255, 255, 0.38);
  }
  50% {
    transform: scale(1.09);
    opacity: 1;
    box-shadow:
      0 0 22px rgba(255, 255, 255, 1),
      0 0 52px rgba(200, 210, 255, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-orbit-core .orbit-dot__point,
  .gallery-orbit .orbit-dot__halo {
    animation: none;
  }

  .gallery-orbit-core__glow--sketch .orbit-dot__point {
    animation: none;
  }
}

.gallery-orbit-core__name.orbit-dot__name {
  font-size: clamp(0.58rem, 1.15vw, 0.72rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
}

.gallery-orbit-cluster .gallery-orbit-ring {
  position: absolute;
  left: 50%;
  top: clamp(4.75rem, 15vw, 7.5rem);
  width: 0;
  height: 0;
  translate: -50% 0;
  pointer-events: none;
}

.gallery-orbit-sat {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  pointer-events: auto;
  border: none;
  background: none;
  padding: 0.35rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
  --orbit-r: clamp(6.25rem, 22vw, 10.5rem);
}

.gallery-orbit-ring--4 .gallery-orbit-sat {
  transform: rotate(calc(var(--gal-orbit-spin, 0deg) - 90deg + var(--sat) * 90deg)) translateY(calc(-1 * var(--orbit-r)))
    rotate(calc(-1 * (var(--gal-orbit-spin, 0deg) - 90deg + var(--sat) * 90deg)));
}

.gallery-orbit-ring--3 .gallery-orbit-sat {
  transform: rotate(
      calc(var(--gal-orbit-spin, 0deg) - 90deg + var(--sat) * 120deg)
    )
    translateY(calc(-1 * var(--orbit-r)))
    rotate(calc(-1 * (var(--gal-orbit-spin, 0deg) - 90deg + var(--sat) * 120deg)));
}

.gallery-orbit-ring--1 .gallery-orbit-sat {
  transform: rotate(calc(var(--gal-orbit-spin, 0deg) - 90deg)) translateY(calc(-1 * var(--orbit-r)))
    rotate(calc(-1 * (var(--gal-orbit-spin, 0deg) - 90deg)));
}

.gallery-orbit-sat__glow.orbit-dot__glow {
  width: 44px;
  height: 44px;
}

.gallery-orbit-sat__glow .orbit-dot__halo {
  width: 36px;
  height: 36px;
}

.gallery-orbit-sat__glow .orbit-dot__point {
  width: 7px;
  height: 7px;
}

.gallery-orbit-sat__name.orbit-dot__name {
  font-size: clamp(0.46rem, 0.88vw, 0.54rem);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
  max-width: min(5.5rem, 28vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-orbit-sat:hover .gallery-orbit-sat__name,
.gallery-orbit-sat:focus-visible .gallery-orbit-sat__name {
  color: rgba(255, 255, 255, 0.92);
}

/* —— Print workshop —— */
.gallery-printwork {
  margin-top: clamp(0.75rem, 2vw, 1.25rem);
}

.gallery-printwork__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
  min-width: 0;
}

.gallery-printwork__title {
  font-size: clamp(0.78rem, 1.35vw, 0.9rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-printwork__help-bleed {
  --printwork-pad-x: clamp(0.95rem, 2.2vw, 1.25rem);
  width: calc(100% + 2 * var(--printwork-pad-x));
  max-width: none;
  margin-left: calc(-1 * var(--printwork-pad-x));
  margin-right: calc(-1 * var(--printwork-pad-x));
  margin-top: 0.15rem;
  margin-bottom: 0.55rem;
  padding: 0.4rem var(--printwork-pad-x);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-printwork__help {
  font: inherit;
  font-size: clamp(0.48rem, 0.92vw, 0.56rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(200, 195, 255, 0.88);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 195, 255, 0.28);
  border-radius: 9999px;
  padding: 0.42rem 0.75rem;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(180, 170, 255, 0.08);
  transition: border-color 0.35s var(--ease-soft), box-shadow 0.35s var(--ease-soft), color 0.35s var(--ease-soft);
  max-width: min(100%, 100vw - 2rem);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-printwork__help:hover,
.gallery-printwork__help:focus-visible {
  color: rgba(255, 252, 255, 0.95);
  border-color: rgba(220, 215, 255, 0.45);
  box-shadow: 0 0 36px rgba(190, 185, 255, 0.18);
  outline: none;
}

.gallery-printwork__help:focus-visible {
  outline: 1px solid rgba(255, 255, 255, 0.28);
  outline-offset: 3px;
}

.gallery-poster-presets {
  margin-bottom: 1rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.gallery-poster-presets__label {
  display: block;
  font-size: clamp(0.48rem, 0.88vw, 0.55rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.45rem;
}

.gallery-poster-presets__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

.gallery-preset-btn {
  font: inherit;
  font-size: clamp(0.52rem, 0.98vw, 0.6rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.72rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  transition: color 0.3s var(--ease-soft), border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-preset-btn:hover,
.gallery-preset-btn:focus-visible {
  color: rgba(255, 252, 255, 0.92);
  border-color: rgba(200, 195, 255, 0.45);
  box-shadow: 0 0 24px rgba(190, 180, 255, 0.12);
  outline: none;
}

.gallery-printwork__lead {
  font-size: clamp(0.68rem, 1.15vw, 0.78rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
  max-width: 44rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-printwork__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .gallery-printwork__grid {
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.35rem);
  }
}

.gallery-printwork__sub {
  font-size: clamp(0.5rem, 0.9vw, 0.58rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-bottom: 0.45rem;
}

.gallery-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: min(50dvh, 46vh, 420px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0.25rem;
  touch-action: pan-y;
}

@media (max-width: 900px) {
  .gallery-palette {
    max-height: min(38dvh, 360px);
  }
}

.gallery-chip {
  width: clamp(4.2rem, 18vw, 5.5rem);
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  cursor: grab;
}

.gallery-chip:active {
  cursor: grabbing;
}

.gallery-chip--sepid {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.gallery-chip--collab {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.gallery-chip__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 5.5rem;
  object-fit: contain;
  background: #030305;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

.gallery-chip__view {
  font: inherit;
  font-size: clamp(0.42rem, 0.78vw, 0.5rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
  padding: 0.28rem 0.35rem;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  background: rgba(200, 195, 255, 0.12);
  color: rgba(230, 228, 255, 0.92);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s var(--ease-soft), color 0.25s var(--ease-soft);
}

.gallery-chip__view:hover,
.gallery-chip__view:focus-visible {
  background: rgba(220, 215, 255, 0.22);
  color: rgba(255, 255, 255, 0.98);
  outline: none;
}

.gallery-chip__view:focus-visible {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.gallery-chip__code {
  display: block;
  font-size: clamp(0.48rem, 0.85vw, 0.55rem);
  letter-spacing: 0.14em;
  text-align: center;
  padding: 0.25rem 0.2rem 0.15rem;
  color: rgba(255, 255, 255, 0.78);
}

.gallery-chip__sub {
  display: block;
  font-size: clamp(0.42rem, 0.75vw, 0.48rem);
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0 0.2rem 0.35rem;
  color: rgba(255, 255, 255, 0.72);
}

.gallery-chip--collab .gallery-chip__sub,
.gallery-chip--sepid .gallery-chip__sub {
  color: rgba(255, 255, 255, 0.72);
}

/* Workshop “canvas”: room for multiple poster versions + bulk print selection */
.gallery-poster-canvas {
  border-radius: 14px;
  padding: clamp(0.65rem, 1.5vw, 1rem);
  min-height: min(70vh, 36rem);
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 120% 80% at 50% 20%, rgba(120, 100, 200, 0.08) 0%, transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size:
    auto,
    24px 24px,
    24px 24px;
  background-color: rgba(3, 4, 12, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.gallery-poster-canvas__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-poster-canvas__status {
  margin: 0;
  flex: 1 1 12rem;
  font-size: clamp(0.52rem, 0.95vw, 0.62rem);
  letter-spacing: 0.06em;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
  max-width: 36rem;
}

.gallery-poster-canvas__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.gallery-poster-canvas__btn {
  padding: 0.38rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(200, 255, 210, 0.4);
  background: rgba(80, 160, 120, 0.2);
  color: rgba(230, 255, 240, 0.95);
  font: inherit;
  font-size: clamp(0.48rem, 0.82vw, 0.56rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gallery-poster-canvas__btn:hover,
.gallery-poster-canvas__btn:focus-visible {
  background: rgba(100, 200, 150, 0.28);
  border-color: rgba(200, 255, 220, 0.55);
}

.gallery-poster-canvas__btn--quiet {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(240, 240, 255, 0.85);
}

.gallery-poster-canvas__btn--quiet:hover,
.gallery-poster-canvas__btn--quiet:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
}

.gallery-poster-canvas__btn--accent {
  border-color: rgba(255, 210, 160, 0.45);
  background: rgba(255, 200, 140, 0.12);
  color: rgba(255, 245, 230, 0.95);
}

.gallery-poster-canvas__btn--accent:hover,
.gallery-poster-canvas__btn--accent:focus-visible {
  background: rgba(255, 210, 170, 0.2);
  border-color: rgba(255, 220, 180, 0.55);
}

.gallery-poster-canvas--drag-hover {
  outline: 2px dashed rgba(160, 255, 200, 0.5);
  outline-offset: 3px;
  transition: outline-color 0.15s ease;
}

.gallery-poster-rows {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-radius: 0.5rem;
  transition: outline 0.25s var(--ease-soft);
}

.gallery-poster-rows--in-canvas {
  min-height: 12rem;
}

.gallery-dropframe-col {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  max-width: min(100%, 960px);
  width: 100%;
}

/* Live width (below frame, x-axis) and height (beside frame, y-axis) — not overlaid on the crop */
.gallery-dropframe__left-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
}

.gallery-dropframe__frame-row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.35rem;
  max-width: 100%;
}

.gallery-dropframe__frame-wrap {
  flex: 0 0 auto;
  max-width: 100%;
}

.gallery-dropframe__sizers-x {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.15rem 0.35rem;
  width: 100%;
  padding: 0.15rem 0.1rem 0;
  margin: 0;
  pointer-events: none;
  user-select: none;
}

.gallery-dropframe__sizers-y {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  flex: 0 0 auto;
  padding: 0 0.05rem;
  margin: 0;
  pointer-events: none;
  user-select: none;
  align-self: center;
}

.gallery-dropframe__mega-unit {
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.32);
  text-shadow: 0 0 20px rgba(190, 180, 255, 0.2);
  font-size: clamp(0.62rem, 1.5vw, 0.78rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.55;
  line-height: 1;
}


.gallery-poster-rows[data-needs-art="1"] {
  outline: 1px solid rgba(255, 130, 150, 0.75);
  outline-offset: 4px;
}

.gallery-dropframe {
  position: relative;
  resize: both;
  overflow: auto;
  min-width: 11rem;
  min-height: 14rem;
  max-width: min(100%, 920px);
  max-height: 1320px;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem;
  container-type: size;
  container-name: gal-drop;
  touch-action: manipulation;
}

.gallery-dropframe__print-tick {
  position: absolute;
  top: 0.42rem;
  right: 0.42rem;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin: 0;
  padding: 0.22rem 0.45rem 0.22rem 0.32rem;
  border-radius: 9999px;
  background: rgba(8, 10, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

.gallery-dropframe__print-tick--idle {
  opacity: 0.45;
  cursor: not-allowed;
}

.gallery-dropframe__print-cb {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: rgba(130, 255, 190, 0.95);
  cursor: inherit;
  flex-shrink: 0;
}

.gallery-dropframe__print-tick-face {
  font-size: clamp(0.45rem, 1.1cqw, 0.55rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 255, 235, 0.88);
  line-height: 1;
}

.gallery-dropframe--print-selected .gallery-dropframe__print-tick {
  border-color: rgba(150, 255, 200, 0.55);
  background: rgba(16, 40, 28, 0.88);
}

.gallery-dropframe--print-selected {
  border-color: rgba(150, 255, 200, 0.5);
  box-shadow:
    0 0 0 2px rgba(130, 255, 190, 0.35),
    0 0 32px rgba(100, 220, 160, 0.22);
}

.gallery-dropframe--fallback-resize {
  resize: none;
}

.gallery-dropframe__sizers-x .gallery-dropframe__mega-w,
.gallery-dropframe__sizers-y .gallery-dropframe__mega-h {
  position: static;
  pointer-events: none;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.22);
  text-shadow:
    0 0 36px rgba(190, 180, 255, 0.4),
    0 0 2px rgba(0, 0, 0, 0.85);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
  font-size: clamp(1.85rem, 5.5vw, 3.6rem);
}

.gallery-dropframe__sizers-y .gallery-dropframe__mega-h {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.gallery-dropframe__size-handle {
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  z-index: 6;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  border-radius: 0.55rem 0.35rem 0.55rem 0.15rem;
  border: 1px solid rgba(210, 190, 255, 0.55);
  background: linear-gradient(135deg, rgba(120, 90, 200, 0.55), rgba(40, 20, 80, 0.75));
  color: rgba(255, 255, 255, 0.92);
  cursor: nwse-resize;
  touch-action: none;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  display: none;
  align-items: flex-end;
  justify-content: flex-end;
  font-size: 0.65rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.gallery-dropframe__size-handle::after {
  content: "⤡";
  display: block;
  padding: 0.35rem 0.32rem 0.28rem 0.28rem;
  font-size: 1rem;
  opacity: 0.95;
}

.gallery-dropframe--fallback-resize .gallery-dropframe__size-handle {
  display: flex;
}

.gallery-dropframe__size-handle:hover,
.gallery-dropframe__size-handle:focus-visible {
  border-color: rgba(255, 240, 255, 0.85);
  background: linear-gradient(135deg, rgba(150, 120, 230, 0.65), rgba(60, 35, 110, 0.82));
}

.gallery-dropframe__size-handle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-dropframe__sizers-x .gallery-dropframe__mega-w,
  .gallery-dropframe__sizers-y .gallery-dropframe__mega-h {
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
    filter: none;
  }

  .gallery-dropframe__wm-dash-row {
    animation: none;
    transform: none;
  }
}

/* Poster preview overlay — watermark + print banner (replaces animated dashed trace). */
.gallery-dropframe__preview-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  border-radius: inherit;
  box-sizing: border-box;
  border: 1px solid rgba(255, 220, 190, 0.14);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.gallery-dropframe__watermark {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.72;
  z-index: 0;
  background: repeating-linear-gradient(
    -28deg,
    transparent 0 16px,
    rgba(255, 255, 255, 0.045) 16px 17px,
    transparent 17px 40px,
    rgba(255, 180, 140, 0.055) 40px 41px,
    transparent 41px 58px
  );
}

/* Row-by-row marching dashes (even rows →, odd rows ←) */
.gallery-dropframe__wm-dash-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 6% 0;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
}

.gallery-dropframe__wm-dash-row {
  display: block;
  flex: 0 0 auto;
  height: 5px;
  width: 220%;
  margin-left: -60%;
  border-radius: 1px;
  opacity: 0.85;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 10px,
    rgba(255, 230, 210, 0.42) 10px 22px,
    transparent 22px 34px,
    rgba(255, 200, 160, 0.28) 34px 40px,
    transparent 40px 52px
  );
  background-size: 52px 100%;
  animation: galleryWmDashLtr 2.8s linear infinite;
  will-change: transform;
}

.gallery-dropframe__wm-dash-row--rtl {
  animation-name: galleryWmDashRtl;
  opacity: 0.78;
}

@keyframes galleryWmDashLtr {
  0% {
    transform: translateX(-26px);
  }
  100% {
    transform: translateX(26px);
  }
}

@keyframes galleryWmDashRtl {
  0% {
    transform: translateX(26px);
  }
  100% {
    transform: translateX(-26px);
  }
}

.gallery-dropframe__wm-phrase {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-18deg);
  margin: 0;
  max-width: 92%;
  padding: 0.45rem 0.65rem;
  text-align: center;
  font-size: clamp(0.52rem, 2.1cqw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.45;
  color: rgba(255, 248, 240, 0.34);
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.gallery-dropframe__print-banner {
  position: absolute;
  left: 50%;
  bottom: 0.42rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.32rem 0.75rem;
  border-radius: 9999px;
  font-size: clamp(0.46rem, 1.65cqw, 0.62rem);
  z-index: 2;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(220, 255, 235, 0.95);
  background: rgba(12, 32, 22, 0.88);
  border: 1px solid rgba(130, 255, 190, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.25s var(--ease-soft);
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 1rem);
  overflow: hidden;
  text-overflow: ellipsis;
}

.gallery-dropframe--print-selected .gallery-dropframe__print-banner {
  opacity: 1;
}

.gallery-dropframe__dims {
  font-size: clamp(0.48rem, 0.85vw, 0.55rem);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.45;
  max-width: min(100%, 520px);
  margin: 0;
}

.gallery-dropframe__inner {
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  min-height: 14rem;
}

.gallery-dropframe__plus {
  grid-area: 1 / 1;
  align-self: start;
  justify-self: start;
  z-index: 3;
  margin: 0.2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-dropframe__plus:hover {
  background: rgba(255, 255, 255, 0.16);
}

.gallery-dropframe__drop {
  grid-area: 1 / 1;
  align-self: stretch;
  justify-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 13rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 4, 8, 0.5);
}

.gallery-dropframe__drop--hover {
  border-color: rgba(200, 190, 255, 0.45);
  background: rgba(20, 18, 40, 0.45);
}

.gallery-dropframe[data-file] .gallery-dropframe__drop {
  cursor: zoom-in;
}

.gallery-dropframe__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery-dropframe__label {
  font-size: clamp(0.52rem, 0.9vw, 0.6rem);
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  max-width: 100%;
  padding: 0 0.35rem;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-printwork__notes-label {
  display: block;
  margin-top: 0.85rem;
  font-size: clamp(0.5rem, 0.9vw, 0.58rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.gallery-printwork__notes {
  width: 100%;
  max-width: 36rem;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: clamp(0.7rem, 1.15vw, 0.8rem);
}

.gallery-printwork__queue {
  margin-top: 0.65rem;
}

.gallery-printwork__linkish {
  font: inherit;
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(200, 195, 255, 0.85);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(200, 195, 255, 0.35);
  cursor: pointer;
  padding: 0;
}

.gallery-printwork__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
  align-items: center;
  padding-bottom: max(0.25rem, env(safe-area-inset-bottom, 0px));
}

.gallery-printwork__stage-wrap {
  min-width: 0;
}

@media (max-width: 900px) {
  .gallery-printwork__cta {
    min-height: 44px;
    padding-inline: 1.25rem;
  }

  .gallery-printwork__ghost {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

.gallery-printwork__ghost {
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-printwork__cta {
  font: inherit;
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.7rem 1.15rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

/* Footer: .bottom-glass shell + stacking — see alma-universal.css (same as Core / Creations / Philosophy). */
