:root {
  color-scheme: dark;
  --bg: #0d0d0d;
  --panel: #151515;
  --ink: #f3f3f3;
  --muted: #969696;
  --line: #ffffff1c;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", "IBM Plex Sans Thai", sans-serif;
  --thai: "IBM Plex Sans Thai", sans-serif;
  --rail: 360px;
  --head: 100px;
  --foot: 150px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body {
  overflow: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}
.hidden {
  display: none !important;
}
#experience-container {
  position: absolute;
  left: var(--rail);
  right: 0;
  top: var(--head);
  bottom: var(--foot);
  overflow: hidden;
  background: radial-gradient(
    ellipse at 50% 40%,
    #2a2a2a 0%,
    #191919 45%,
    #111 85%
  );
  border-left: 1px solid var(--line);
}
#ar-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}
#ar-canvas:active {
  cursor: grabbing;
}
#camera-feed {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.camera-active #camera-feed {
  display: block;
}
.camera-active #experience-container {
  background: #111;
}
#hud-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
#hud-overlay button,
#hud-overlay a,
.artwork-active-pill,
.hud-bottom-bar {
  pointer-events: auto;
}
.hud-top-bar {
  position: absolute;
  inset: 0 0 auto;
  height: var(--head);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  gap: 30px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-symbol {
  font: italic 28px var(--serif);
  width: 40px;
  height: 40px;
  border: 1px solid #666;
  display: grid;
  place-items: center;
}
.exhibition-title {
  font: 400 36px var(--serif);
  letter-spacing: 0.025em;
}
.edition {
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  border-left: 1px solid #555;
  padding-left: 15px;
  color: #b7b7b7;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font: 14px var(--thai);
  align-self: stretch;
}
.main-nav > * {
  display: flex;
  align-items: center;
  white-space: nowrap;
  color: #a2a2a2;
  position: relative;
  padding: 0;
}
.main-nav .nav-current {
  color: #f3f3f3;
}
.nav-current:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 2px;
  background: #e9e9e9;
  width: 100%;
}
.main-nav button:hover,
.main-nav a:hover {
  color: #fff;
}
.nav-count {
  margin-left: 8px;
  border: 1px solid #494949;
  border-radius: 3px;
  padding: 2px 5px;
  font: 11px var(--sans);
}
.hud-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hud-pill-btn,
.primary-button {
  min-height: 44px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 14px var(--thai);
  border: 1px solid #494949;
  border-radius: 3px;
}
.hud-pill-btn:hover {
  background: #232323;
  border-color: #777;
}
.primary-button {
  background: #f0f0f0;
  color: #111;
  min-width: 110px;
  border-color: #f0f0f0;
}
.primary-button:hover {
  background: #d4d4d4;
}
.quick-look-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.quick-look-button::after {
  content: "ชมใน AR";
}
.quick-look-button img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 3px;
  background: #1a1a1a;
}
.hud-pill-btn.active {
  background: #e7e7e7;
  color: #111;
}
.artwork-active-pill {
  position: absolute;
  top: var(--head);
  bottom: var(--foot);
  left: 0;
  width: var(--rail);
  padding: 36px 34px 24px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--bg);
}
.collection-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #aaa;
  margin-bottom: 44px;
}
.collection-heading span:last-child {
  color: #737373;
}
.pill-number {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #b4b4b4;
  margin-bottom: 15px;
}
.pill-title {
  font: 400 clamp(40px, 4.2vw, 64px) / 0.98 var(--serif);
  letter-spacing: -0.02em;
  max-width: 285px;
  text-wrap: balance;
}
.artwork-thai-title {
  font: 500 16px/1.7 var(--thai);
  margin-top: 20px;
}
.artwork-artist {
  font-size: 13px;
  line-height: 1.7;
  color: #a4a4a4;
  margin-top: 3px;
}
.artwork-description {
  font: 400 14px/1.9 var(--thai);
  color: #adadad;
  margin-top: 22px;
}
.artwork-meta {
  display: flex;
  gap: 40px;
  padding: 20px 0 0;
  margin: 22px 0 0;
  border-top: 1px solid var(--line);
}
.artwork-meta dt {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #929292;
  margin-bottom: 6px;
}
.artwork-meta dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}
.artwork-info-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.detail-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #575757;
  padding: 0 0 14px;
  min-height: 44px;
  font: 14px var(--thai);
}
.detail-button svg {
  width: 17px;
}
.detail-button:hover {
  border-color: #fff;
}
.audio-button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  font: 14px var(--thai);
  color: #b8b8b8;
}
.audio-button.active,
.audio-button:hover {
  color: #fff;
}
.audio-language {
  font: 10px var(--sans);
  margin-left: auto;
  border: 1px solid #444;
  padding: 3px 5px;
  border-radius: 2px;
}
.rail-footer {
  margin-top: auto;
  padding-top: 30px;
}
.rail-footer p {
  font: italic 22px var(--serif);
  color: #c4c4c4;
}
.rail-footer span {
  display: block;
  font: 12px var(--thai);
  margin-top: 7px;
  color: #777;
}
.viewer-top {
  position: absolute;
  top: calc(var(--head) + 27px);
  left: calc(var(--rail) + 28px);
  right: 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.viewer-label {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: #b6b6b6;
}
.mode-indicator {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
  font: 12px var(--thai);
  color: #c5c5c5;
  max-width: 70%;
}
.mode-divider {
  color: #6c6c6c;
}
.mode-indicator small {
  flex-basis: 100%;
  text-align: right;
  font-size: 12px;
  line-height: 1.7;
}
.viewer-index {
  position: absolute;
  right: 30px;
  top: calc(var(--head) + 62px);
  display: flex;
  gap: 9px;
  align-items: baseline;
  color: #858585;
  font-size: 11px;
}
.viewer-index span:first-child {
  font: 32px var(--serif);
  color: #c6c6c6;
}
.gesture-hint {
  position: absolute;
  bottom: calc(var(--foot) + 96px);
  left: calc(var(--rail) + (100% - var(--rail)) / 2);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b5b5b5;
  font: 12px var(--thai);
  white-space: nowrap;
  transition: opacity 1s;
}
.gesture-hint svg {
  width: 14px;
  height: 14px;
}
.gesture-hint.hint-faded {
  opacity: 0;
}
.viewer-bottom {
  position: absolute;
  bottom: calc(var(--foot) + 25px);
  left: calc(var(--rail) + 28px);
  right: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.scale-control {
  display: flex;
  align-items: center;
  background: #121212e8;
  border: 1px solid #ffffff26;
  border-radius: 4px;
  height: 46px;
  flex-shrink: 0;
}
.scale-control button {
  width: 40px;
  height: 44px;
  font-size: 22px;
  color: #cfcfcf;
}
.scale-control button:hover {
  background: #333;
}
.scale-control span {
  font-size: 12px;
  width: 40px;
  text-align: center;
  color: #bbb;
}
.hud-tools-sidebar {
  display: flex;
  align-items: center;
  background: #121212e8;
  border: 1px solid #ffffff26;
  border-radius: 4px;
  padding: 0 4px;
}
.tool-btn {
  height: 46px;
  min-width: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 3px;
}
.tool-btn svg {
  width: 17px;
  height: 17px;
}
.tool-label {
  font: 12px var(--thai);
  color: #b5b5b5;
}
.tool-btn:hover {
  background: #303030;
}
.tool-btn.active {
  background: #e3e3e3;
  color: #111;
}
.tool-btn.active .tool-label {
  color: #111;
}
.capture-button,
.placement-button {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  justify-content: center;
  border: 1px solid #ffffff26;
  border-radius: 4px;
  background: #121212e8;
  padding: 0 16px;
  font: 13px var(--thai);
  white-space: nowrap;
}
.capture-button:hover {
  background: #303030;
}
.capture-button svg {
  width: 17px;
}
.placement-button {
  background: #eee;
  color: #111;
}
.reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}
.reticle-ring {
  width: 84px;
  height: 84px;
  border: 1px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 14px #ffffff20;
}
.reticle span {
  font: 12px var(--thai);
  background: #111b;
  padding: 8px 12px;
  border-radius: 3px;
}
.hud-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--foot);
  display: flex;
  align-items: center;
  padding: 0 34px;
  gap: 26px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.collection-label {
  min-width: calc(var(--rail) - 60px);
  padding-right: 24px;
}
.collection-label > span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #888;
}
.collection-label p {
  font: 25px/1.1 var(--serif);
  margin-top: 12px;
  color: #d7d7d7;
}
.collection-label em {
  font-weight: 400;
  color: #a9a9a9;
}
.artwork-carousel-container {
  min-width: 0;
  flex: 1;
}
.carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.artwork-card {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 14px;
  padding: 12px 10px;
  min-width: 0;
  min-height: 78px;
  border-bottom: 1px solid #484848;
  position: relative;
  color: #9c9c9c;
}
.artwork-card:hover {
  background: #ffffff06;
  color: #eee;
}
.artwork-card.active {
  border-bottom: 2px solid #f0f0f0;
  color: #f4f4f4;
  background: #ffffff06;
}
.artwork-card-thumb {
  width: 52px;
  height: 60px;
  background: #1b1b1b;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 2px;
}
.artwork-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.artwork-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.artwork-card-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: #8f8f8f;
  margin-bottom: 7px;
}
.artwork-card-name {
  font: 22px/1.1 var(--serif);
}
.collection-end {
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.13em;
  color: #858585;
  padding-left: 10px;
  flex-shrink: 0;
}
.curator-drawer,
.snapshot-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: #000a;
  backdrop-filter: blur(10px);
}
.drawer-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: 90dvh;
  overflow: auto;
  background: #181818;
  border: 1px solid #ffffff30;
  border-radius: 6px;
  box-shadow: 0 30px 120px #0008;
}
.drawer-handle-bar {
  display: none;
}
.drawer-header {
  position: relative;
  padding: 34px 72px 24px 34px;
  border-bottom: 1px solid var(--line);
}
.drawer-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #aaa;
}
.tag-edition {
  display: none;
}
.drawer-artwork-title {
  font: 400 34px/1.3 var(--serif);
  margin-top: 18px;
}
.drawer-artist-name {
  font: 14px/1.8 var(--thai);
  color: #b2b2b2;
  margin-top: 12px;
}
.drawer-close-btn,
.modal-x {
  position: absolute;
  top: 22px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid #444;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.drawer-close-btn:hover,
.modal-x:hover {
  background: #333;
}
.drawer-body {
  padding: 28px 34px;
}
.audio-guide-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid #444;
  background: #202020;
  border-radius: 4px;
  gap: 16px;
}
.audio-guide-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.audio-label {
  font-size: 11px;
  letter-spacing: 0.08em;
}
.audio-narrator {
  font: 13px/1.6 var(--thai);
  color: #aaa;
  margin-top: 5px;
}
.audio-play-btn {
  height: 44px;
  width: 44px;
  border: 1px solid #6d6d6d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.audio-play-btn svg {
  width: 16px;
  height: 16px;
}
.audio-visualizer {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 25px;
}
.audio-visualizer span {
  width: 2px;
  height: 9px;
  background: #bbb;
}
.audio-visualizer span:nth-child(2) {
  height: 20px;
}
.audio-visualizer span:nth-child(4) {
  height: 25px;
}
.playing .audio-visualizer span {
  animation: audio 1s ease infinite alternate;
}
.playing .audio-visualizer span:nth-child(even) {
  animation-delay: 0.35s;
}
@keyframes audio {
  to {
    height: 4px;
  }
}
.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 28px 0;
}
.spec-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.spec-label {
  display: block;
  font: 11px var(--thai);
  color: #aaa;
  margin-bottom: 8px;
}
.spec-value {
  display: block;
  font: 15px/1.8 var(--thai);
}
.statement-section {
  margin: 26px 0;
}
.statement-section h3 {
  font: 500 16px var(--thai);
  margin-bottom: 14px;
}
.statement-section p {
  font: 16px/1.9 var(--thai);
  color: #c3c3c3;
}
.exhibition-links {
  display: flex;
  gap: 16px;
}
.exhibition-links a {
  font: 14px var(--thai);
  text-decoration: underline;
  text-underline-offset: 5px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.content-note {
  font: 13px/1.8 var(--thai);
  color: #929292;
  margin-top: 12px;
}
.interactive-tips {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 22px;
}
.interactive-tips h4 {
  font: 12px/1.7 var(--thai);
  color: #aaa;
}
.interactive-tips ul {
  padding-left: 20px;
  font: 14px/1.9 var(--thai);
  color: #c3c3c3;
}
.drawer-footer {
  padding: 18px 34px 26px;
  border-top: 1px solid var(--line);
}
.btn-full-gold {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  background: #eee;
  color: #111;
  border-radius: 3px;
  padding: 12px 20px;
  min-height: 48px;
  font: 14px var(--thai);
}
.btn-full-gold:hover {
  background: #d6d6d6;
}
.catalog-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.catalog-item-card {
  border: 1px solid #444;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 3px;
  text-align: left;
}
.catalog-item-card:hover {
  background: #242424;
}
.catalog-item-card.active {
  border-color: #ccc;
  background: #282828;
}
.catalog-item-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.catalog-item-idx {
  font: 28px var(--serif);
  color: #999;
}
.catalog-item-title {
  display: block;
  font: 18px/1.5 var(--thai);
}
.catalog-item-medium {
  display: block;
  font: 13px/1.7 var(--thai);
  color: #aaa;
  margin-top: 5px;
}
.catalog-item-status {
  font: 12px var(--thai);
  white-space: nowrap;
  color: #aaa;
}
.snapshot-modal {
  background: #000b;
  backdrop-filter: blur(10px);
}
.snapshot-dialog {
  width: min(520px, 100%);
  max-height: 92dvh;
  overflow: auto;
  background: #181818;
  border: 1px solid #555;
  border-radius: 5px;
  padding: 24px;
}
.snapshot-header {
  position: relative;
  min-height: 40px;
  padding-right: 45px;
  margin-bottom: 20px;
}
.snapshot-header h3 {
  font: 28px var(--serif);
}
.snapshot-header .modal-x {
  right: 0;
  top: -7px;
}
.snapshot-canvas-preview {
  background: #0c0c0c;
}
.snapshot-canvas-preview img {
  display: block;
  width: 100%;
  max-height: 57dvh;
  object-fit: contain;
}
.snapshot-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.status-toast {
  position: fixed;
  top: 115px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(90%, 540px);
  padding: 16px 22px;
  z-index: 200;
  font: 14px/1.8 var(--thai);
  background: #242424f5;
  border: 1px solid #666;
  box-shadow: 0 12px 48px #0008;
  border-radius: 4px;
  pointer-events: none;
}
.startup-error {
  position: fixed;
  inset: 30% 10% auto;
  z-index: 300;
  background: #1b1b1b;
  border: 1px solid #777;
  padding: 32px;
  font: 18px/1.8 var(--thai);
}
body.shutter-flash:after {
  content: "";
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 500;
  pointer-events: none;
  animation: flash 0.22s forwards;
}
@keyframes flash {
  from {
    opacity: 0.9;
  }
  to {
    opacity: 0;
  }
}
.xr-active {
  background: transparent;
}
.xr-active #experience-container {
  display: none;
}
.xr-active .artwork-active-pill,
.xr-active .viewer-top,
.xr-active .viewer-index,
.xr-active .hud-bottom-bar {
  display: none;
}
.xr-active .hud-top-bar {
  background: #111a;
}
.xr-active .viewer-bottom {
  left: 20px;
  bottom: 30px;
}
.xr-active .gesture-hint {
  left: 50%;
  bottom: 100px;
}
.xr-active .hud-tools-sidebar {
  margin-left: auto;
}
@media (min-width: 1500px) {
  :root {
    --rail: 420px;
  }
  .artwork-active-pill {
    padding: 42px;
  }
  .collection-heading {
    margin-bottom: 50px;
  }
  .artwork-description {
    font-size: 16px;
  }
  .pill-title {
    font-size: 74px;
  }
  .collection-label {
    min-width: 344px;
  }
}
@media (max-width: 1200px) {
  :root {
    --rail: 310px;
  }
  .hud-top-bar {
    padding: 0 25px;
    gap: 20px;
  }
  .main-nav {
    gap: 20px;
  }
  .exhibition-title {
    font-size: 32px;
  }
  .brand-symbol {
    display: none;
  }
  .artwork-active-pill {
    padding: 28px;
  }
  .collection-heading {
    margin-bottom: 30px;
  }
  .pill-title {
    font-size: 51px;
  }
  .viewer-bottom {
    gap: 10px;
    left: calc(var(--rail) + 20px);
    right: 20px;
  }
  .tool-btn {
    padding: 0 10px;
  }
  .tool-btn .tool-label {
    display: none;
  }
  .hud-bottom-bar {
    padding: 0 28px;
    gap: 16px;
  }
  .collection-label {
    min-width: 255px;
  }
  .collection-end {
    display: none;
  }
  .artwork-card {
    gap: 10px;
    padding: 10px 7px;
  }
  .artwork-card-thumb {
    width: 40px;
    height: 52px;
  }
  .artwork-card-name {
    font-size: 21px;
  }
}
@media (max-height: 850px) and (min-width: 901px) {
  .collection-heading {
    margin-bottom: 25px;
  }
  .artwork-active-pill {
    padding-top: 26px;
  }
  .artwork-description {
    margin-top: 16px;
  }
  .artwork-meta {
    margin-top: 15px;
    padding-top: 15px;
  }
  .artwork-info-actions {
    margin-top: 15px;
    gap: 6px;
  }
  .rail-footer {
    padding-top: 20px;
  }
  .rail-footer p {
    font-size: 20px;
  }
}
@media (max-width: 900px) {
  :root {
    --rail: 275px;
    --head: 85px;
    --foot: 130px;
  }
  .hud-top-bar {
    gap: 12px;
    padding: 0 22px;
  }
  .main-nav {
    gap: 16px;
  }
  .nav-current,
  .main-nav a {
    display: none !important;
  }
  .edition {
    display: none;
  }
  .hud-top-actions {
    gap: 8px;
  }
  .hud-pill-btn,
  .primary-button {
    padding: 0 12px;
    min-width: 0;
  }
  .artwork-active-pill {
    padding: 25px 22px;
  }
  .pill-title {
    font-size: 45px;
  }
  .artwork-thai-title {
    font-size: 15px;
    margin-top: 15px;
  }
  .artwork-description {
    font-size: 14px;
    line-height: 1.8;
  }
  .artwork-meta {
    gap: 26px;
  }
  .collection-heading {
    font-size: 9px;
    letter-spacing: 0.1em;
  }
  .rail-footer {
    display: none;
  }
  .viewer-label {
    font-size: 9px;
  }
  .viewer-top {
    left: calc(var(--rail) + 20px);
    right: 20px;
  }
  .viewer-bottom {
    flex-wrap: wrap;
    gap: 10px;
  }
  .hud-tools-sidebar {
    order: 2;
  }
  .capture-button {
    margin-left: auto;
    padding: 0 12px;
  }
  .gesture-hint {
    bottom: calc(var(--foot) + 132px);
  }
  .collection-label {
    min-width: 227px;
  }
  .collection-label p {
    font-size: 22px;
  }
  .artwork-card-thumb {
    display: none;
  }
  .artwork-card {
    padding: 14px 8px;
  }
  .artwork-card-name {
    font-size: 23px;
  }
}
@media (max-width: 680px) {
  :root {
    --head: 76px;
    --foot: 108px;
    --rail: 0px;
  }
  body {
    height: 100dvh;
  }
  .hud-top-bar {
    height: var(--head);
    padding: 0 18px;
    gap: 10px;
  }
  .exhibition-title {
    font-size: 30px;
  }
  .main-nav {
    margin-left: auto;
  }
  .main-nav button {
    font-size: 13px;
  }
  .main-nav .nav-count {
    display: none;
  }
  .hud-top-actions {
    gap: 7px;
  }
  .hud-pill-btn {
    width: 40px;
    min-height: 40px;
    padding: 0;
  }
  .hud-pill-btn > span {
    display: none;
  }
  .hud-pill-btn svg {
    width: 18px;
  }
  .primary-button {
    min-height: 40px;
    font-size: 13px;
    padding: 0 12px;
  }
  .artwork-active-pill {
    top: calc(var(--head) + 17px);
    height: 108px;
    bottom: auto;
    left: 20px;
    right: 20px;
    width: auto;
    padding: 0;
    overflow: visible;
    display: block;
    background: transparent;
    pointer-events: none;
  }
  .collection-heading,
  .artwork-description,
  .artwork-meta,
  .rail-footer {
    display: none;
  }
  .pill-number {
    font-size: 10px;
    margin-bottom: 7px;
    letter-spacing: 0.1em;
  }
  .pill-title {
    font-size: 36px;
    line-height: 1.02;
    max-width: calc(100% - 65px);
    text-wrap: initial;
  }
  .artwork-thai-title {
    font-size: 13px;
    margin-top: 7px;
    line-height: 1.5;
  }
  .artwork-artist {
    font-size: 11px;
    margin-top: 2px;
  }
  .artwork-info-actions {
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
    gap: 8px;
    pointer-events: auto;
  }
  .detail-button {
    font-size: 0;
    min-height: 38px;
    width: 38px;
    justify-content: center;
    border: 1px solid #555;
    border-radius: 50%;
    padding: 0;
  }
  .detail-button svg {
    width: 18px;
    height: 18px;
  }
  .audio-button {
    border: 1px solid #555;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    min-height: 38px;
    justify-content: center;
    color: #ddd;
  }
  .audio-button > span {
    display: none;
  }
  .audio-button svg {
    width: 16px;
  }
  .audio-button.active {
    background: #eee;
    color: #111;
  }
  #experience-container {
    left: 0;
    top: calc(var(--head) + 132px);
    bottom: calc(var(--foot) + 88px);
    border: 0;
    background: radial-gradient(ellipse at 50% 42%, #272727, #121212 76%);
  }
  .viewer-top {
    top: auto;
    bottom: calc(var(--foot) + 76px);
    left: 20px;
    right: 20px;
    align-items: center;
  }
  .viewer-label {
    display: none;
  }
  .mode-indicator {
    max-width: 100%;
    font-size: 11px;
    justify-content: flex-start;
  }
  .mode-indicator small {
    text-align: left;
  }
  .viewer-index {
    right: 20px;
    top: auto;
    bottom: calc(var(--foot) + 125px);
  }
  .viewer-index span:first-child {
    font-size: 26px;
  }
  .gesture-hint {
    bottom: calc(var(--foot) + 116px);
    left: 50%;
    font-size: 11px;
  }
  .viewer-bottom {
    left: 18px;
    right: 18px;
    bottom: calc(var(--foot) + 18px);
    gap: 8px;
    flex-wrap: nowrap;
  }
  .scale-control {
    height: 42px;
  }
  .scale-control button {
    width: 32px;
    height: 40px;
    font-size: 20px;
  }
  .scale-control span {
    width: 32px;
    font-size: 11px;
  }
  .hud-tools-sidebar {
    order: initial;
    margin-left: auto;
    height: 42px;
    padding: 0 2px;
  }
  .tool-btn {
    height: 40px;
    min-width: 32px;
    padding: 0 7px;
  }
  .tool-btn svg {
    width: 16px;
    height: 16px;
  }
  .capture-button {
    height: 42px;
    width: 42px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
  }
  .capture-button > span {
    display: none;
  }
  .placement-button {
    position: absolute;
    left: 50%;
    bottom: 85px;
    transform: translateX(-50%);
    height: 40px;
    font-size: 12px;
    padding: 0 12px;
  }
  .hud-bottom-bar {
    height: var(--foot);
    padding: 0 18px max(8px, env(safe-area-inset-bottom));
    gap: 0;
  }
  .collection-label {
    display: none;
  }
  .carousel-track {
    gap: 8px;
  }
  .artwork-card {
    min-height: 75px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 13px 9px;
  }
  .artwork-card-info {
    gap: 0;
  }
  .artwork-card-tag {
    font-size: 9px;
    margin-bottom: 9px;
    letter-spacing: 0.04em;
  }
  .artwork-card-name {
    font-size: 22px;
  }
  .collection-end {
    display: none;
  }
  .curator-drawer,
  .snapshot-modal {
    padding: 16px;
  }
  .drawer-panel {
    max-height: 92dvh;
  }
  .drawer-header {
    padding: 25px 64px 20px 22px;
  }
  .drawer-artwork-title {
    font-size: 28px;
    line-height: 1.4;
  }
  .drawer-artist-name {
    font-size: 14px;
  }
  .drawer-body {
    padding: 22px;
  }
  .drawer-footer {
    padding: 18px 22px;
  }
  .drawer-meta-tags {
    font-size: 10px;
  }
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .audio-guide-card {
    padding: 14px;
    gap: 12px;
  }
  .audio-guide-info {
    gap: 10px;
  }
  .audio-visualizer {
    display: none;
  }
  .audio-label {
    font-size: 10px;
    line-height: 1.6;
  }
  .catalog-item-card {
    padding: 16px 13px;
    gap: 10px;
  }
  .catalog-item-left {
    gap: 12px;
  }
  .catalog-item-title {
    font-size: 16px;
  }
  .catalog-item-status {
    display: none;
  }
  .status-toast {
    top: calc(var(--head) + 135px);
    width: calc(100% - 36px);
    padding: 13px 17px;
  }
  .snapshot-header h3 {
    font-size: 25px;
  }
  .xr-active .viewer-bottom {
    left: 18px;
    right: 18px;
    bottom: 24px;
  }
  .xr-active .gesture-hint {
    bottom: 115px;
  }
  .xr-active .placement-button {
    bottom: 58px;
  }
}
@media (max-width: 380px) {
  .hud-top-bar {
    padding: 0 14px;
    gap: 9px;
  }
  .exhibition-title {
    font-size: 27px;
  }
  .main-nav button {
    font-size: 12px;
  }
  .primary-button {
    padding: 0 10px;
    font-size: 12px;
  }
  .hud-top-actions {
    gap: 6px;
  }
  .artwork-card-name {
    font-size: 20px;
  }
  .viewer-bottom {
    left: 14px;
    right: 14px;
    gap: 6px;
  }
  .tool-btn {
    min-width: 29px;
    padding: 0 6px;
  }
  .scale-control button {
    width: 29px;
  }
  .scale-control span {
    width: 30px;
  }
  .hud-bottom-bar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .artwork-thai-title {
    font-size: 12px;
  }
}
@media (max-height: 650px) and (max-width: 680px) {
  :root {
    --head: 65px;
    --foot: 90px;
  }
  .artwork-active-pill {
    top: calc(var(--head) + 13px);
  }
  .pill-title {
    font-size: 30px;
  }
  .artwork-thai-title,
  .artwork-artist {
    display: none;
  }
  #experience-container {
    top: calc(var(--head) + 88px);
  }
  .artwork-card {
    min-height: 62px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .gesture-hint {
    display: none;
  }
}
@media (max-height: 650px) and (min-width: 681px) {
  :root {
    --foot: 112px;
  }
  .artwork-description,
  .rail-footer {
    display: none;
  }
  .artwork-meta {
    margin-top: 12px;
  }
  .collection-heading {
    margin-bottom: 20px;
  }
  .artwork-active-pill {
    padding-top: 22px;
  }
  .viewer-bottom {
    bottom: calc(var(--foot) + 18px);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Readable labels and generous mobile controls. */
.edition {
  font-size: 12px;
  letter-spacing: 0.08em;
}
.collection-heading {
  font-size: 12px;
  letter-spacing: 0.08em;
}
.pill-number {
  font-size: 12px;
}
.artwork-description {
  font-size: 16px;
  line-height: 1.8;
}
.artwork-artist,
.artwork-meta dd {
  font-size: 14px;
}
.artwork-meta dt,
.viewer-label,
.viewer-index,
.collection-label > span,
.artwork-card-tag,
.collection-end {
  font-size: 12px;
}
.artwork-card-tag {
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.tool-label,
.scale-control span {
  font-size: 13px;
}
@media (max-width: 1200px) {
  .artwork-description {
    font-size: 16px;
  }
  .artwork-card-tag {
    font-size: 12px;
  }
}
@media (max-width: 900px) {
  .collection-heading {
    font-size: 12px;
    letter-spacing: 0.025em;
  }
  .collection-heading span:last-child {
    display: none;
  }
  .viewer-label {
    font-size: 12px;
  }
  .artwork-description {
    font-size: 16px;
  }
}
@media (max-width: 680px) {
  .pill-number {
    font-size: 12px;
  }
  .pill-title {
    font-size: clamp(28px, 8.2vw, 36px);
  }
  .artwork-thai-title {
    font-size: 14px;
  }
  .artwork-artist {
    font-size: 12px;
  }
  .mode-indicator,
  .gesture-hint {
    font-size: 12px;
  }
  .scale-control,
  .hud-tools-sidebar,
  .capture-button {
    height: 44px;
  }
  .scale-control button,
  .tool-btn {
    height: 42px;
  }
  .tool-btn {
    min-width: 40px;
    padding: 0 9px;
  }
  .capture-button {
    width: 44px;
  }
  .artwork-card-tag {
    font-size: 12px;
    letter-spacing: 0;
    margin-bottom: 9px;
  }
  .audio-language {
    font-size: 12px;
  }
}
@media (max-width: 380px) {
  .tool-btn {
    min-width: 36px;
    padding: 0 8px;
  }
  .artwork-card-tag {
    font-size: 12px;
  }
  .artwork-thai-title {
    font-size: 13px;
  }
  .artwork-artist {
    font-size: 12px;
  }
}
@media (max-width: 680px) {
  .viewer-top {
    bottom: calc(var(--foot) + 64px);
  }
  .gesture-hint {
    top: calc(var(--head) + 145px);
    bottom: auto;
    left: 20px;
    transform: none;
    max-width: calc(100% - 40px);
    white-space: normal;
  }
  .xr-active .gesture-hint {
    top: auto;
    bottom: 115px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }
}
