/* Original photographed wall; artwork and lettering share the image coordinates. */
body.is-hall-view {
  --hall-chrome: #f8f8f4;
  --hall-chrome-line: #e2ddd2;
  --hall-control: #fffcf5;
  --hall-control-line: #d9cdb7;
  --hall-tint: #f2e9d9;
  --hall-ink: #4d493f;
  --hall-muted: #716552;
  --hall-accent: #765e3d;
  --hall-focus: #87653d;
  --room-stage-color: #d7cbba;
}

.wall-plane {
  --wall-slot-first: 47.965%;
  --wall-slot-second: 67.675%;
  --wall-slot-third: 87.395%;
  position: absolute;
  inset: 50% 0 auto;
  container-type: inline-size;
  aspect-ratio: 2 / 1;
  transform: translateY(-50%);
  background: url('./assets/gallery-wall-recessed.png') center / 100% 100% no-repeat;
}

.wall-lettering {
  position: absolute;
  left: 5.7%;
  top: 30%;
  width: 27%;
  color: var(--hall-ink);
  text-shadow: 0 1px 1px #fffcf0a6;
}
.wall-classic-edition {
  display: flex;
  align-items: center;
  gap: 1.2cqw;
  font: clamp(9px, .67cqw, 18px)/1.5 Arial, sans-serif;
  letter-spacing: .16cqw;
}
.wall-classic-edition span {
  padding-inline-start: 1.2cqw;
  border-inline-start: 1px solid #a1947b;
}
.wall-classic-badge {
  position: absolute;
  top: 14%;
  right: 2%;
  display: flex;
  align-items: center;
}
.wall-classic-badge :is(span, b) {
  display: grid;
  place-content: center;
  width: 4.5cqw;
  height: 4.5cqw;
  border-radius: 50%;
  font-weight: 400;
}
.wall-classic-badge span {
  z-index: 1;
  background: #c7b38270;
  text-align: center;
  font-size: clamp(8px, .65cqw, 16px);
  line-height: 1.65;
}
.wall-classic-badge b {
  margin-inline-start: -.8cqw;
  background: #837c6a19;
  color: #726a59;
  font: 2.4cqw Georgia, serif;
}

.wall-lettering h2 {
  margin: 1.7cqw 0 1.15cqw;
  color: var(--hall-ink);
  font: 400 clamp(30px, 3.5cqw, 96px)/1.3 var(--serif);
  letter-spacing: .45cqw;
}
.wall-lettering h2 > span { display: block; }
.wall-english {
  color: #796749;
  font: clamp(9px, .64cqw, 16px)/1.6 Arial, sans-serif;
  letter-spacing: .2cqw;
}
.wall-lettering p {
  margin: 1.2cqw 0 1.6cqw;
  color: #675e50;
  font-size: clamp(12px, .85cqw, 24px);
  line-height: 2;
  letter-spacing: .09cqw;
}
.wall-classic-signature {
  display: flex;
  align-items: center;
  gap: .9cqw;
  font-size: clamp(10px, .72cqw, 18px);
  line-height: 1.8;
  letter-spacing: .12cqw;
}
.wall-classic-signature::before {
  content: '';
  width: 2.2cqw;
  height: 1px;
  background: #9e8a63;
}
.wall-classic-signature small {
  display: block;
  color: #796e5d;
  font: clamp(7px, .47cqw, 13px)/1.5 Arial, sans-serif;
  letter-spacing: .16cqw;
}

.wall-slot {
  position: absolute;
  top: 34.2%;
  left: calc(var(--slot-center) - 7.025%);
  display: block;
  width: 14.05%;
  height: 37.3%;
}
.slot-1 { --slot-center: var(--wall-slot-first); }
.slot-2 { --slot-center: var(--wall-slot-second); }
.slot-3 { --slot-center: var(--wall-slot-third); }

.wall-artwork {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  color: var(--hall-ink);
  text-align: left;
}
.wall-frame, .wall-frame-opening {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}
.wall-frame {
  background: #e9e0cf;
  box-shadow: inset 0 3px 8px #4c3e2860;
}
.wall-frame-opening::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, #fffaf009, transparent 45%, #41351908);
  box-shadow: inset 1px 5px 8px #42382254, inset -1px -1px 2px #fff9e77a;
}
.wall-frame-opening img {
  width: 100%;
  height: 100%;
  pointer-events: none;
  padding: 1.5% 5.5%;
  object-fit: contain;
}

.wall-art-label {
  position: absolute;
  top: 117%;
  left: 0;
  width: 100%;
  contain: inline-size;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: .55cqw;
  text-shadow: 0 1px 1px #fff7df;
}
.wall-art-index {
  color: #78684e;
  font: italic clamp(10px, .85cqw, 22px)/1.4 Georgia, serif;
}
.wall-art-meta { display: grid; gap: 3px; min-width: 0; }
.wall-art-label strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--hall-ink);
  line-height: 1.35;
  font-size: clamp(12px, .78cqw, 21px);
  font-weight: 500;
  letter-spacing: .035cqw;
}
.wall-art-category {
  display: block;
  color: #71624a;
  font-size: clamp(9px, .58cqw, 15px);
  line-height: 1.45;
  letter-spacing: .04cqw;
}

.wall-artwork:focus-visible { outline: 2px solid var(--hall-focus); outline-offset: 4px; }
.wall-artwork.is-guided .wall-frame { outline: 3px solid var(--hall-focus); outline-offset: 4px; }
.wall-artwork:is(:hover, :focus-visible) .wall-art-label strong { text-decoration: underline; text-underline-offset: .21em; }

.is-board-hall .scene-instruction {
  display: flex;
  bottom: 18px;
  border: 1px solid #fffcf5b3;
  border-radius: 20px;
  padding: 6px 12px;
  background: #fff9ebdf;
  color: #675a48;
}
.is-board-hall:has(.guide-tour-strip) .scene-instruction { display: none; }

@media (min-width: 1100px) {
  .is-board-hall .position-pill {
    display: flex;
    color: var(--hall-muted);
    background: #fffdf4de;
  }
}

@media (max-width: 540px) {
  .wall-plane { inset-block-start: calc(50% - 24px); }
  .is-board-hall .scene-instruction { display: none; }
}

@media (max-width: 540px) and (max-height: 700px) {
  .wall-art-label { gap: 4px; }
  .wall-art-label strong { -webkit-line-clamp: 1; }
}
