@font-face {
  font-family: Barlow Condensed;
  src: url("works/barlow-condensed.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --paper: #f5f4ee;
  --charcoal: #191917;
  --rule: #c5c4ba;
  --gutter: clamp(20px, 4vw, 72px);
}
.street-heading, .street-caption, .inside header, .gallery-heading, .caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.street-heading, .street-caption {
  position: absolute;
  z-index: 7;
  inset-inline: var(--gutter);
  color: white;
  text-shadow: 0 1px 6px #000;
}
.street-heading { top: 3vh; border-bottom: 1px solid #ffffff70; padding-bottom: 10px; pointer-events: none; }
.street-heading h1, .inside header strong { font: 700 clamp(32px, 4vw, 56px)/1 var(--display); }
.street-heading span, .street-caption span { font: italic clamp(17px, 2vw, 28px) Georgia, serif; }
.street-caption { bottom: max(4vh,env(safe-area-inset-bottom)); align-items: center; }
.street-caption button {
  background: var(--paper); color: var(--charcoal); padding: 12px 24px;
  border-radius: 24px; font-weight: 500;
}
body.entering :is(.street-caption,.street-heading) { opacity: 0; pointer-events: none; }
.inside {
  position: fixed; inset: 0; z-index: 8; overflow: auto;
  background: var(--paper); color: var(--charcoal);
  opacity: 0; visibility: hidden; transition: opacity .45s, visibility 0s .45s;
}
body.entered .inside { visibility: visible; opacity: 1; transition-delay: 0s; }
.inside header { align-items: center; padding: 14px var(--gutter); border-bottom: 1px solid var(--rule); }
.inside header strong { font-size: 32px; }
.inside button:focus-visible, dialog button:focus-visible { outline: 2px solid #97632a; outline-offset: 2px; }
#back, #closeViewer { min-height: 44px; text-decoration: underline; text-underline-offset: 5px; }
.exhibition { margin: 0 auto; padding: clamp(28px,5vh,64px) var(--gutter); max-width: 1800px; }
.gallery-heading { align-items: center; border-bottom: 1px solid var(--charcoal); padding-bottom: 18px; }
.gallery-heading h2 { font: 700 clamp(46px,8vw,112px)/.95 var(--display); letter-spacing: -.035em; }
.switch { display: flex; border: 1px solid var(--rule); border-radius: 24px; }
.switch button { min-height: 44px; padding: 0 16px; border-radius: inherit; font-size: 14px; }
.switch button[aria-pressed="true"] { background: var(--charcoal); color: var(--paper); }
.inside:not(.list) .exhibition { max-width: none; padding: 0; }
.inside:not(.list) .gallery-heading { margin: 0 var(--gutter); padding: 16px 0; }
.inside:not(.list) .gallery-heading h2 { font-size: clamp(42px, 6vh, 76px); }
.inside:not(.list) .works, .list .room { display: none; }
.room {
  position: relative; overflow: hidden; isolation: isolate;
  height: max(330px, calc(100svh - 215px)); background: #27282a;
  touch-action: pan-y pinch-zoom; cursor: grab; user-select: none;
}
.room.dragging { cursor: grabbing; }
.room canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.room button { position: absolute; cursor: inherit; background: transparent; }
.room button:focus-visible { outline: 3px solid #a6692d; }
.walk { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--gutter); font-size: 14px; }
.walk button { border: 1px solid var(--rule); border-radius: 50%; width: 44px; height: 44px; margin-left: 8px; }
.walk button:disabled { opacity: .35; cursor: default; }
.list .walk { display: none; }
.piece { text-align: left; padding: 24px 0 12px; border-bottom: 1px solid var(--rule); }
.frame { display: grid; place-items: center; min-height: 280px; height: 47vh; background: #e9e8e0; }
.frame img { height: 80%; max-width: 84%; object-fit: contain; filter: drop-shadow(2px 4px 4px #0002); }
.caption { align-items: center; margin-top: 12px; font: italic 28px Georgia,serif; }
.caption small { font: 14px sans-serif; }
.list .works { display: block; }
.list .piece { display: flex; align-items: center; gap: 22px; width: 100%; padding: 12px 0; }
.list .frame { height: 90px; min-height: 0; width: 78px; }
.list .caption { flex: 1; margin: 0; }
#viewer { inset: 0; margin: auto; padding: 20px; width: min(94vw,1000px); max-height: 95dvh; background: var(--paper); color: var(--charcoal); border: 0; }
#viewer::backdrop { background: #10100ff0; }
#closeViewer { display: block; margin-left: auto; }
#enlarged { display: block; width: 100%; height: 68vh; object-fit: contain; }
#viewerTitle { text-align: center; margin-top: 12px; font: italic 22px Georgia,serif; }
@media (max-width: 600px) {
  .frame { height: 41svh; }
  .switch button { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .inside { transition: none; }
}
