/* Sea By Land: the gallery wall on /shop/. Self-hosted, no external requests.
   A white-cube room in the site's own palette. Light, shadow and perspective do the work; nothing is outlined. */
.sblg {
  --ink: #2c3131;
  --ink-soft: #5b6062;
  --wall: #f7f8f9;
  --shade: 32 36 38;
  --in: 1.95vw;            /* one inch of artwork on screen */
  --eye: 56;               /* the hanging centre line, in inches above the floor */
  --vh: 1vh;
  --full: 100vh;           /* the tallest the view gets: on phones, with the browser's bars tucked away */
  --face: max(2.5px, calc(var(--in) * .55));   /* frame face */
  --gap: max(1px, calc(var(--in) * .2));       /* float gap between frame and canvas */
  --grain: url("/sbl-gallery/grain.svg");
  position: relative;
  overflow-x: clip;
  color: var(--ink);
  font-family: var(--font-family--font-primary, "Overused-Grotesk", Arial, sans-serif);
  background: var(--grain) 0 0 / 240px, linear-gradient(180deg, rgb(var(--shade) / .03), rgb(var(--shade) / 0) 16rem), var(--wall);
  isolation: isolate;
}
@supports (height: 1svh) { .sblg { --vh: 1svh; --full: 100lvh; } }
.sblg ::selection { background: var(--ink); color: #fff; }
.sblg a { color: inherit; text-decoration: none; }
.sblg img { display: block; width: 100%; height: 100%; object-fit: cover; background: #dcdedf; }

/* The shop's previous title block gives way to the wall. */
.page-wrapper:has(.sblg) .section-top .page-title-wrapper,
.page-wrapper:has(.sblg) .section-top .catalogue-notice,
.page-wrapper:has(.sblg) .section-top .margin-bottom-medium,
.page-wrapper:has(.sblg) .section-top > .w-container > .divider { display: none; }
.page-wrapper:has(.sblg) .section-top { padding-top: clamp(3rem, 8vw, 6rem); }
/* The header's logo loads late and carries no height, so the header used to grow once it arrived.
   Holding its shape keeps the header, and the wall tucked behind it, still from the first paint. */
#navbar .logo img { aspect-ratio: 408 / 401; height: auto; }

/* ---------- Static hang: phones, tall windows, reduced motion, no script ---------- */
.sblg-stage { position: relative; }
.sblg-track { position: relative; }
.sblg-wall { position: relative; isolation: isolate; padding: clamp(4.5rem, 13vw, 7.5rem) 6vw 0; }

.sblg-intro { max-width: 46rem; margin-bottom: 4vh; }
/* Wall lettering, set like the site's page titles. */
.sblg-vinyl {
  margin: 0;
  font-size: clamp(3.4rem, 15vw, 8.75rem);
  line-height: .8;
  font-weight: 600;
  letter-spacing: -.022em;
  text-transform: uppercase;
  color: var(--ink);
}
.sblg-intro-text { margin: 2rem 0 0; max-width: 28rem; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
.sblg-intro-text a { color: var(--ink); text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.sblg-intro-text a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.sblg-hang { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }

.sblg-room { padding: 7vh 0 1vh; max-width: 20rem; }
.sblg-room h2 {
  margin: 0;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: .9;
  font-weight: 600;
  letter-spacing: -.022em;
  text-transform: uppercase;
}
.sblg-room p { margin: .85rem 0 0; font-size: .9rem; line-height: 1.45; color: var(--ink-soft); }

/* Work and its label share one left edge, like the site's own type. */
.sblg-piece {
  --lit: 0;
  --aw: min(calc(var(--hi) * var(--in) * var(--ar)), 86vw);
  position: relative;
  display: grid;
  justify-items: start;
  gap: 1.75rem;
  padding: 8vh 0 7vh;
}
.sblg-art {
  position: relative;
  display: block;
  width: var(--aw);
  aspect-ratio: var(--ar);
}
/* A spotlight's pool on the wall: brightest above the middle of the work, with a long fall below it. */
.sblg-art::before {
  content: "";
  position: absolute;
  inset: -70% -45% -78%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(55% 50% at 50% 36%, #fff 0%, rgb(255 255 255 / .62) 55%, rgb(255 255 255 / 0) 100%);
  opacity: calc(.8 + var(--lit) * .2);
  transition: opacity .7s ease-out;
}
/* The same light on the work: a little brighter at the top, falling off toward the bottom edge. */
.sblg-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .08) 0%, rgb(255 255 255 / 0) 28%, rgb(var(--shade) / 0) 62%, rgb(var(--shade) / .08) 100%);
}
.sblg-piece:hover .sblg-art::before, .sblg-piece:focus-within .sblg-art::before { opacity: 1; }
a.sblg-art:focus-visible { outline: 2px solid var(--ink); outline-offset: calc(var(--in) * 1.6); }

/* Frames are sized in inches like the work. The face is built from four borders so the corners mitre
   and each rail takes the light differently; the shadow is the band a deep frame throws under a spotlight. */
.sblg-frame { position: relative; display: block; height: 100%; }
.sblg-frame--oak, .sblg-frame--white, .sblg-frame--photo {
  border: var(--face) solid;
  box-shadow:
    0 1px 0 rgb(var(--shade) / .4),
    0 calc(var(--in) * 2) calc(var(--in) * .8) calc(var(--in) * -.3) rgb(var(--shade) / .32),
    0 calc(var(--in) * 3) calc(var(--in) * 5) calc(var(--in) * -1.2) rgb(var(--shade) / .12);
}
.sblg-frame--oak { border-color: #dfcdac #cfba95 #b9a37f #cfba95; }
.sblg-frame--white { border-color: #fdfdfc #f1f1ef #dedfdd #f1f1ef; }
.sblg-frame--photo { border-color: #2c3131 #232727 #1a1d1d #232727; }
.sblg-frame--oak img, .sblg-frame--white img { border: var(--gap) solid #14171a; }
.sblg-frame--photo img { border: calc(var(--in) * 2) solid #fafaf8; }
/* The canvas sits back from the frame face, so the top rail shades its upper edge. */
.sblg-frame--oak::after, .sblg-frame--white::after {
  content: "";
  position: absolute;
  inset: var(--gap) var(--gap) auto;
  height: calc(var(--in) * .7);
  background: linear-gradient(180deg, rgb(var(--shade) / .36), rgb(var(--shade) / 0));
  pointer-events: none;
}
/* Paper hangs unframed from two pins. The top edge sits tight to the wall; the free bottom edge bows out a little. */
.sblg-frame--paper { box-shadow: 0 0 1px rgb(var(--shade) / .35); }
.sblg-frame--paper::before {
  content: "";
  position: absolute;
  inset: calc(var(--in) * .55) calc(var(--in) * .8) auto;
  height: 4px;
  z-index: 1;
  background:
    radial-gradient(circle at 2px 2px, var(--ink) 0 1.5px, rgb(44 49 49 / 0) 2px) 0 0 / 4px 4px no-repeat,
    radial-gradient(circle at 2px 2px, var(--ink) 0 1.5px, rgb(44 49 49 / 0) 2px) 100% 0 / 4px 4px no-repeat;
}
.sblg-frame--paper::after {
  content: "";
  position: absolute;
  inset: auto 4% calc(var(--in) * .5);
  height: 22%;
  z-index: -1;
  box-shadow: 0 calc(var(--in) * 1) calc(var(--in) * .9) rgb(var(--shade) / .32);
}

.sblg-label { font-size: .8125rem; line-height: 1.45; color: var(--ink-soft); }
.sblg-label-title { margin: 0 0 .35em; font-size: 1.17em; font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
.sblg-label p { margin: 0; }
.sblg-price { margin-top: .6rem !important; color: var(--ink); font-variant-numeric: tabular-nums; }
.sblg-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .85rem;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid rgb(44 49 49 / .35);
  padding-bottom: .1rem;
  transition: border-color .3s ease-out, gap .3s ease-out;
}
.sblg-status svg { width: .7rem; height: .7rem; flex: none; }
.sblg-piece:hover .sblg-status, .sblg-piece:focus-within .sblg-status { border-color: var(--ink); gap: .65rem; }
.sblg-status[data-available] { border-color: var(--ink); }
.sblg-status[data-available]::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: var(--ink); }

/* Doorways out of the gallery: an opening in the wall, its title on the wall beside it, and the next room
   seen through it. That room is drawn to scale from one camera: a visitor ten feet from this wall with eyes
   56 inches up, looking at a room 14 feet wide whose far wall is 140 inches beyond this one.
   One number moves all of it: --k, how many inches to the right of the doorway's centre the visitor stands.
   Seen through a doorway, sidestepping does simple things to each surface. The far wall slides. The underside
   of the head shears. Each side wall and each reveal stretches from its near edge. So every
   surface is a fixed shape under a plain 2D transform: nothing repaints as the visitor walks, and nothing
   relies on a browser's 3D drawing (WebKit mis-clips surfaces that are edge-on to the view).
   On the walk the script writes those transforms itself, from the same sums as below. Changing --k there
   instead would make the browser work every surface's whole style out again on each frame, so --k is only
   the starting value and the static wall's fixed viewpoint. The surfaces keep their colours as plain values,
   not variables, for the same reason.
   On the static wall the two doorways stand side by side on a strip of floor, each seen a little from within. */
.sblg-exits { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 0 1.25rem; padding: 12vh 0 0; }
.sblg-door {
  --u: calc(min(13rem, 38vw) / 38);    /* one inch at the doorway */
  --dh: 84;                             /* doorway height in inches */
  --s: .4615;                           /* how small the far wall looks: this wall is 120 inches from the eye, that one 260 */
  --k: 20;
  position: relative;
  display: grid;
  gap: 1.5rem;
  color: var(--ink) !important;
}
.sblg-door:nth-child(2) { --k: -20; }
.sblg-door--print:nth-child(2) { --k: -40; }   /* far enough round to bring that room's photograph into the opening */
.sblg-door-lines { display: block; }
.sblg-door-text h2 { margin: 0; font-size: clamp(1.1rem, 5.2vw, 2.5rem); line-height: .9; font-weight: 600; letter-spacing: -.022em; text-transform: uppercase; }
.sblg-door-text p { margin: .8rem 0 0; max-width: 18rem; font-size: .9rem; line-height: 1.45; color: var(--ink-soft); }
.sblg-door-action { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: .85rem; font-weight: 500; border-bottom: 1px solid rgb(44 49 49 / .35); padding-bottom: .1rem; transition: gap .3s ease-out, border-color .3s ease-out; }
.sblg-door-action svg { width: .7rem; height: .7rem; }
.sblg-door:hover .sblg-door-action, .sblg-door:focus-visible .sblg-door-action { gap: .75rem; border-color: var(--ink); }
/* Keyboard focus marks the doorway's own words. A ring round the opening read as a drawn frame. */
.sblg-door:focus-visible { outline: none; }
.sblg-door:focus-visible .sblg-door-action { outline: 2px solid var(--ink); outline-offset: 5px; }
.sblg-opening, .sblg-reveal { display: block; width: calc(38 * var(--u)); height: calc(var(--dh) * var(--u)); overflow: hidden; }
.sblg-opening { position: relative; z-index: 0; background: #d9dcde; }
.sblg-reveal { position: absolute; left: 0; bottom: 0; z-index: 3; pointer-events: none; }
.sblg-opening > span, .sblg-reveal > i { position: absolute; display: block; will-change: transform; }

/* The next room's floor: the same concrete carrying on past the threshold to the foot of its far wall. It
   stays still. Close to the threshold that is right. Further back a polished floor shows the far wall and
   its light more than its own concrete, so the texture fades out there, where it would otherwise have to
   slide along with that wall (and be redrawn on every frame to do it). */
.sblg-opening > .sblg-far-floor {
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(56 * (1 - var(--s)) * var(--u));
  will-change: auto;
  background:
    linear-gradient(180deg, rgb(32 36 38 / .4) 0, rgb(32 36 38 / .16) 2px, rgb(32 36 38 / .05) 7%, rgb(32 36 38 / 0) 16%),   /* the far wall's foot */
    linear-gradient(180deg, rgb(32 36 38 / 0) calc(42% - 1px), rgb(32 36 38 / .16) calc(42% - 1px), rgb(32 36 38 / .16) 42%, rgb(32 36 38 / 0) 42%),   /* a slab joint */
    linear-gradient(180deg, #c8cbcd 0%, rgb(200 203 205 / .84) 20%, rgb(200 203 205 / 0) 76%),                                  /* polish taking over from concrete */
    linear-gradient(180deg, rgb(32 36 38 / 0) 62%, rgb(32 36 38 / .08) 100%),
    url("/sbl-gallery/rooms/far-floor.jpg") 0 0 / 640px 96px,
    #b3b6b8;
}
/* Its side walls. Each is drawn as it looks from straight ahead, where it stays out of sight behind this
   wall, and is stretched from its near edge as the visitor moves to the far side of the doorway. */
.sblg-far-side { top: 0; bottom: 0; width: calc(84 * (1 - var(--s)) * var(--u)); }
.sblg-far-side--l {
  left: calc(50% - 84 * var(--u));
  transform-origin: 0 50%;
  transform: scaleX(calc(1 + var(--k) / 84));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56 * (1 - var(--s)) * var(--u)), 0 100%);
  background: linear-gradient(180deg, rgb(32 36 38 / 0) 62%, rgb(32 36 38 / .1) 100%), linear-gradient(90deg, #e6e8ea 0%, #dfe2e4 55%, #d2d6d9 100%);
}
.sblg-far-side--r {
  right: calc(50% - 84 * var(--u));
  transform-origin: 100% 50%;
  transform: scaleX(calc(1 - var(--k) / 84));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 56 * (1 - var(--s)) * var(--u)));
  background: linear-gradient(180deg, rgb(32 36 38 / 0) 62%, rgb(32 36 38 / .1) 100%), linear-gradient(270deg, #e6e8ea 0%, #dfe2e4 55%, #d2d6d9 100%);
}
/* Its far wall, 11 feet high, under its own wash of light, darkening into its corners and toward its foot. */
.sblg-far-wall {
  left: calc(50% - 84 * var(--s) * var(--u));
  bottom: calc(56 * (1 - var(--s)) * var(--u));
  width: calc(168 * var(--s) * var(--u));
  height: calc(132 * var(--s) * var(--u));
  transform: translate3d(calc(var(--k) * (1 - var(--s)) * var(--u)), 0, 0);
  background:
    url("/sbl-gallery/grain.svg") 0 0 / 110px,
    linear-gradient(180deg, rgb(32 36 38 / 0) 80%, rgb(32 36 38 / .1) 100%),
    linear-gradient(90deg, rgb(32 36 38 / .13) 0%, rgb(32 36 38 / 0) 12%, rgb(32 36 38 / 0) 88%, rgb(32 36 38 / .13) 100%),
    radial-gradient(ellipse 60% 56% at 50% 50%, #f4f5f6 0%, #eaeced 55%, #e0e3e5 100%);
  transition: filter .5s ease-out;
}
.sblg-door:hover .sblg-far-wall, .sblg-door:focus-visible .sblg-far-wall { filter: brightness(1.035); }
/* What a room can hold, when works.json gives its exit a "room". By default it gives none and the rooms are
   empty: Mike decided that no mural or studio photographs go in the gallery, so these are his to switch on.
   "mural": the far wall is one of his murals, painted edge to edge, and it shows in the polished floor at
   its foot. "print": one large photograph from the capsule, in a thin dark frame on the same centre line as
   the work out here. */
.sblg-far-work { display: none; position: absolute; }
.sblg-door--mural .sblg-far-wall {
  background:
    linear-gradient(180deg, rgb(6 18 26 / 0) 72%, rgb(6 18 26 / .3) 100%),
    linear-gradient(90deg, rgb(6 18 26 / .34) 0%, rgb(6 18 26 / 0) 12%, rgb(6 18 26 / 0) 88%, rgb(6 18 26 / .34) 100%),
    url("/sbl-gallery/rooms/evexia-mural.jpg") 50% 50% / 100% 100%;
}
.sblg-door--mural .sblg-far-wall::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: calc(56 * (1 - var(--s)) * var(--u));
  background: url("/sbl-gallery/rooms/evexia-mural.jpg") 50% 100% / 100% calc(132 * var(--s) * var(--u));
  transform: scaleY(-1);
  opacity: .3;
  filter: blur(1.5px);
  -webkit-mask-image: linear-gradient(0deg, #000 0%, rgb(0 0 0 / .35) 45%, transparent 92%);
  mask-image: linear-gradient(0deg, #000 0%, rgb(0 0 0 / .35) 45%, transparent 92%);
}
.sblg-door--print .sblg-far-work {
  display: block;
  left: calc(50% + 30 * var(--s) * var(--u));   /* right of centre: this doorway is only ever seen from its left */
  top: calc(46 * var(--s) * var(--u));
  width: calc(40 * var(--s) * var(--u));
  height: calc(60 * var(--s) * var(--u));
  background: #cfc6b8 url("/sbl-gallery/rooms/tide-leggings.jpg") 50% 50% / cover;
  box-shadow:
    0 0 0 calc(.8 * var(--s) * var(--u)) #1f2223,
    0 calc(1.6 * var(--s) * var(--u)) calc(3.5 * var(--s) * var(--u)) calc(.8 * var(--s) * var(--u)) rgb(32 36 38 / .26);
}
/* This wall's thickness, nine inches of it: two reveals and the underside of the head. A reveal is drawn at
   its widest and narrows as the visitor comes round to face it; past that it turns away and is gone. */
.sblg-reveal > i:nth-child(1) {
  left: 0; top: 0; bottom: 0; width: calc(9 * var(--u));
  transform-origin: 0 50%;
  transform: scaleX(calc((19 + var(--k)) / 129));
  clip-path: polygon(0 0, 100% calc((var(--dh) - 56) * .06977 * var(--u)), 100% calc(100% - 3.907 * var(--u)), 0 100%);
  background: linear-gradient(0deg, rgb(32 36 38 / .2) 0%, rgb(32 36 38 / .05) 5%, rgb(32 36 38 / 0) 12%), linear-gradient(90deg, #edeff0, #e1e4e6);
}
.sblg-reveal > i:nth-child(2) {
  right: 0; top: 0; bottom: 0; width: calc(9 * var(--u));
  transform-origin: 100% 50%;
  transform: scaleX(calc((19 - var(--k)) / 129));
  clip-path: polygon(100% 0, 0 calc((var(--dh) - 56) * .06977 * var(--u)), 0 calc(100% - 3.907 * var(--u)), 100% 100%);
  background: linear-gradient(0deg, rgb(32 36 38 / .2) 0%, rgb(32 36 38 / .05) 5%, rgb(32 36 38 / 0) 12%), linear-gradient(270deg, #edeff0, #e1e4e6);
}
.sblg-reveal > i:nth-child(3) {
  left: 0; right: 0; top: 0; height: calc((var(--dh) - 56) * .06977 * var(--u));
  transform-origin: 50% 0;
  transform: matrix(1, 0, calc(var(--k) / (var(--dh) - 56)), 1, 0, 0);
  clip-path: polygon(0 0, 100% 0, calc(100% - 1.3256 * var(--u)) 100%, calc(1.3256 * var(--u)) 100%);
  background: linear-gradient(180deg, #d6d9dc, #c8ccd0);
}
.sblg-exits::after {
  content: "";
  grid-column: 1 / -1;
  height: 11vh;
  margin: 0 -100vw;   /* full bleed; the section clips it */
  background:
    linear-gradient(180deg, rgb(var(--shade) / .5) 0, rgb(var(--shade) / .18) 2px, rgb(var(--shade) / .06) 10px, rgb(var(--shade) / 0) 34px),
    linear-gradient(180deg, rgb(255 255 255 / .1) 0%, rgb(255 255 255 / 0) 40%, rgb(var(--shade) / .14) 100%),
    url("/sbl-gallery/floor.svg") 0 0 / 1200px 330px,
    #b3b6b8;
}

.sblg-floor, .sblg-return, .sblg-hud { display: none; }

/* ---------- The walk: any view with room for it and motion allowed ---------- */
/* The room is drawn to scale and in perspective. The floor line sits 86% down the view, work hangs on one
   centre line 56 inches above it, the doorways are seven feet tall, and the vanishing point is at eye level.
   Everything is placed from the smallest view height (browser bars showing); the stage itself runs to the
   tallest, so when a phone tucks its bars away the visitor simply sees more floor. */
.sblg--travel {
  --in: min(calc(var(--vh) * .92), .8vw);
  --line: calc(var(--vh) * 86);
  --lift: calc(var(--line) / 2 - var(--eye) * var(--in));
  --door: 84;              /* doorway height in inches */
  --end: 7vw;              /* width of view given to the side wall at each end of the room */
  --hdr: 0px;              /* site header height; the wall runs up behind it */
  margin-top: calc(-1 * var(--hdr));
  background: none;
}
.sblg--travel .sblg-stage {
  position: sticky;
  top: 0;
  height: var(--full);
  overflow: hidden;
  overflow: clip;
  background: var(--wall);
  touch-action: pan-y pinch-zoom;   /* the browser keeps up-and-down scrolling; sideways swipes go to the script */
}
/* Polished concrete, laid flat and seen in perspective: slab joints run to the vanishing point
   and the nearer floor passes faster than the wall as the visitor walks. The script gives the floor its
   own perspective() (browsers disagree about perspective set on the parent); until it runs, the floor
   is a flat band. */
.sblg--travel .sblg-floor {
  display: block;
  position: absolute;
  top: var(--line);
  left: -5%;
  width: calc(110% + 1200px);
  height: calc(var(--full) - var(--line) + var(--vh) * 10);   /* laid flat, this reaches past the bottom of the view */
  z-index: 0;
  transform-origin: 0 0;
  background:
    linear-gradient(180deg, rgb(var(--shade) / .55) 0, rgb(var(--shade) / .22) 8px, rgb(var(--shade) / .08) 44px, rgb(var(--shade) / 0) 120px),
    linear-gradient(180deg, rgb(var(--shade) / 0) calc(52% - 1px), rgb(var(--shade) / .2) calc(52% - 1px), rgb(var(--shade) / .2) calc(52% + 2px), rgb(var(--shade) / 0) calc(52% + 2px)),
    repeating-linear-gradient(90deg, rgb(var(--shade) / .2) 0, rgb(var(--shade) / .2) 2px, rgb(var(--shade) / 0) 2px, rgb(var(--shade) / 0) 600px),
    linear-gradient(180deg, rgb(255 255 255 / .12) 0%, rgb(255 255 255 / 0) 34%, rgb(var(--shade) / .16) 100%),
    url("/sbl-gallery/floor.svg") 0 0 / 1200px 600px,
    #b3b6b8;
}
/* The side walls at each end of the room turn toward the visitor. Each is a flat strip that the script
   cuts to the shape the same camera would see, so the wall's foot runs down to the visitor along the floor. */
.sblg--travel .sblg-return {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--end);
  height: 100%;
  z-index: 1;
  visibility: hidden;      /* shown by the script once it has shaped them */
}
.sblg--travel .sblg-return--start { background: var(--grain) 0 0 / 240px, linear-gradient(90deg, #eef0f1 0%, #e6e8ea 50%, #d7dadc 100%); }
.sblg--travel .sblg-return--end { background: var(--grain) 0 0 / 240px, linear-gradient(270deg, #eef0f1 0%, #e6e8ea 50%, #d7dadc 100%); }
.sblg--travel .sblg-track {
  z-index: 2;
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}
/* The wall itself: fine grain, a little less light at the top, the corners and the strip above the floor. */
.sblg--travel .sblg-wall {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: var(--line);
  margin: 0 var(--end);
  padding: 0 9vw 0 5vw;
  gap: 0;
  background:
    var(--grain) 0 0 / 240px,
    linear-gradient(90deg, rgb(var(--shade) / .12) 0%, rgb(var(--shade) / .04) 38%, rgb(var(--shade) / 0) 100%) 0 0 / 5vw 100% no-repeat,
    linear-gradient(270deg, rgb(var(--shade) / .12) 0%, rgb(var(--shade) / .04) 38%, rgb(var(--shade) / 0) 100%) 100% 0 / 5vw 100% no-repeat,
    linear-gradient(180deg, rgb(var(--shade) / .028) 0%, rgb(var(--shade) / 0) 26%),
    linear-gradient(0deg, rgb(var(--shade) / .1) 0%, rgb(var(--shade) / .045) 9%, rgb(var(--shade) / .015) 20%, rgb(var(--shade) / 0) 32%),
    var(--wall);
}
/* The title starts under the site header rather than on the centre line. */
.sblg--travel .sblg-intro { flex: none; align-self: flex-start; width: max-content; min-width: min(44vw, 46rem); margin: calc(var(--hdr) + var(--vh) * 5) 4vw 0 0; }
.sblg--travel .sblg-vinyl { font-size: min(clamp(4.5rem, 10.5vw, 10rem), calc(var(--vh) * 20)); }
.sblg--travel .sblg-hang { position: relative; top: var(--lift); display: flex; flex-direction: row; align-items: center; height: 100%; }
.sblg--travel .sblg-room { flex: none; width: 17rem; padding: 0; margin: 0 7vw 0 4vw; }
.sblg--travel .sblg-art { width: auto; height: calc(var(--hi) * var(--in)); }
/* On the walk every pool stays fully lit: fading them as the visitor passes meant restyling each work on every frame. */
.sblg--travel .sblg-art::before { opacity: 1; transition: none; }
.sblg--travel .sblg-piece {
  width: max-content;
  flex: none;
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding: 0;
  margin-right: 11vw;
}
/* Labels share one line along the wall, 20 inches below the centre line. */
.sblg--travel .sblg-label { width: 14.5rem; font-size: clamp(.72rem, calc(var(--in) * 1.55), .8125rem); transform: translateY(calc(20 * var(--in) - 50%)); }
.sblg--travel .sblg-exits { display: flex; flex-direction: row; gap: 6vw; padding: 0; height: 100%; align-items: flex-end; flex: none; }
.sblg--travel .sblg-exits::after { display: none; }
.sblg--travel .sblg-door { --u: var(--in); --dh: var(--door); --k: 0; display: flex; align-items: flex-end; gap: 2.25rem; height: 100%; }
.sblg--travel .sblg-door-text { position: relative; top: var(--lift); width: 17rem; align-self: center; }
.sblg--travel .sblg-reveal { left: auto; right: 0; }
/* The next room's light spills a little way onto this floor, and takes the mural's colour where there is one. */
.sblg--travel .sblg-door::after {
  content: "";
  position: absolute;
  right: 0;
  top: 100%;
  width: calc(38 * var(--in));
  height: calc(var(--vh) * 14);
  pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .2) 0%, rgb(255 255 255 / .07) 40%, rgb(255 255 255 / 0) 85%);
}
.sblg--travel .sblg-door--mural::after { background: linear-gradient(180deg, rgb(28 78 92 / .3) 0%, rgb(28 78 92 / .1) 45%, rgb(28 78 92 / 0) 88%); }
/* ---------- On trial (?probe=D): the phone scrolls the wall sideways itself ---------- */
/* The script wraps the wall in .sblg-scroll only while D is on; the floor, the side walls and the progress
   line stay outside it, so they do not scroll away. */
.sblg--native .sblg-stage { touch-action: pan-x pan-y pinch-zoom; }
.sblg--native .sblg-scroll {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: none;   /* no rubber band past either end of the wall */
  scrollbar-width: none;
}
.sblg--native .sblg-scroll::-webkit-scrollbar { display: none; }
/* ---------- On trial (?probe=E): the browser moves the wall with the page scroll ---------- */
/* The wall's place is tied to how far the page has scrolled, between the two depths the script measures,
   so the browser can move it without waiting for the script. Only its transform is animated. */
@keyframes sblg-walk {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--far), 0, 0); }
}
.sblg--scrolled .sblg-track {
  animation: sblg-walk 1ms linear both;
  animation-timeline: scroll(root block);
  animation-range: var(--from) var(--to);
}
/* ---------- On trial (?probe=F): the script takes up-and-down touches on the wall as well ---------- */
/* The class is on while the wall is anywhere but its far end. Pinching still zooms. */
.sblg--mine .sblg-stage { touch-action: pinch-zoom; }
/* ---------- The walk on tall views: phones held upright, tablets, tall windows ---------- */
/* The visitor stands closer: one work fills most of the width, its label hangs under it on a shared line
   33 inches above the floor, and the floor line drops to 90% of the view. The scale is the largest that
   keeps a work inside the width and the first work (its height is --first) clear of the site header.
   Doorways are the standard six foot eight here, which leaves the progress line clear above them. */
.sblg--tall {
  --line: calc(var(--vh) * 90);
  --in: min(calc(var(--vh) * 1.03), 1.75vw, calc((var(--line) - var(--hdr) - .75rem) / (var(--eye) + var(--first, 40) / 2)));
  --door: 80;
  --end: 5vw;
}
.sblg--tall .sblg-wall { padding: 0 10vw 0 5vw; }
/* The lettering keeps to the left of the first view so the first work shows beside it. */
.sblg--tall .sblg-intro { width: 60vw; min-width: 0; margin: calc(var(--hdr) + var(--vh) * 4) 5vw 0 0; }
.sblg--tall .sblg-vinyl { font-size: min(13.4vw, calc(var(--vh) * 9.5)); }
.sblg--tall .sblg-intro-text { margin-top: 1.5rem; }
.sblg--tall .sblg-piece { margin-right: 24vw; }
.sblg--tall .sblg-label {
  position: absolute;
  left: 0;
  top: calc(50% + 23 * var(--in));
  width: max(100%, 11.5rem);
  font-size: clamp(.72rem, calc(var(--in) * 2.3), .8125rem);
  transform: none;
}
.sblg--tall .sblg-room { width: min(17rem, 62vw); margin: 0 14vw 0 0; }
/* The first room's name sits low on the wall under the lettering, its foot level with the foot of the
   labels (which start 33 inches above the floor) and never closer than three inches to the floor. */
.sblg--tall .sblg-room:first-child {
  position: absolute;
  right: 100%;
  bottom: max(calc(var(--line) / 2 - 23 * var(--in) - 9rem), calc(var(--line) / 2 - 53 * var(--in)));
  width: 60vw;
  max-width: none;
  margin: 0 5vw 0 0;
}
.sblg--tall .sblg-room:first-child p { max-width: 20rem; }
/* On a view too short to hold both, the script moves the room's name back onto the wall after the lettering. */
.sblg--tall.sblg--snug .sblg-room:first-child { position: static; width: min(17rem, 62vw); margin: 0 14vw 0 0; }
/* A doorway fills a tall view, so there is no wall left beside it for its title. The title is
   lettered on the far wall of the next room instead, seen through the opening, and slides with that wall. */
.sblg--tall .sblg-exits { gap: 22vw; }
.sblg--tall .sblg-door { display: block; width: calc(38 * var(--in)); }
.sblg--tall .sblg-opening { position: absolute; left: 0; bottom: 0; }
.sblg--tall .sblg-reveal { left: 0; right: auto; }
.sblg--tall .sblg-door-text {
  position: absolute;
  z-index: 2;
  top: auto;
  left: 0;
  bottom: 0;
  width: 100%;
  height: calc(var(--door) * var(--in));
  box-sizing: border-box;
  padding: calc((var(--door) - 66) * var(--in)) 13% 0;
  overflow: hidden;
}
.sblg--tall .sblg-door-text > * { transform: translate3d(calc(var(--k) * (1 - var(--s)) * var(--u)), 0, 0); will-change: transform; }
.sblg--tall .sblg-door-text h2 { font-size: clamp(1.05rem, calc(var(--in) * 3.3), 2.25rem); }
.sblg--tall .sblg-door-text p { max-width: none; color: var(--ink); }
.sblg--tall .sblg-door-action { border-color: rgb(44 49 49 / .55); }
/* Lettered on the mural, the words go white and the mural is dimmed behind them. */
.sblg--tall .sblg-door--mural .sblg-far-wall::before { content: ""; position: absolute; inset: 0; background: rgb(5 16 23 / .56); }
.sblg--tall .sblg-door--mural .sblg-door-lines, .sblg--tall .sblg-door--mural .sblg-door-text p { color: #fff; }
.sblg--tall .sblg-door--mural .sblg-door-action { border-color: rgb(255 255 255 / .7); }
.sblg--tall .sblg-door--mural:focus-visible .sblg-door-action { outline-color: #fff; }

/* Progress sits where the site header's rule was, and appears once the header has scrolled away. */
.sblg--travel .sblg-hud {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .7rem 2rem;
  padding: 0 1.875rem;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease-out, visibility 0s linear .35s;
}
.sblg--walking .sblg-hud { opacity: 1; visibility: visible; transition: opacity .35s ease-out, visibility 0s; }
.sblg-count { margin: 0; font-variant-numeric: tabular-nums; }
.sblg-count b { font-weight: 600; }
.sblg-meter { flex: 0 0 100%; height: 1px; background: rgb(44 49 49 / .22); position: relative; }
.sblg-meter i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--ink); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.sblg-list-link { text-decoration: underline !important; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.sblg-list-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
/* Tall views: one line, with the title cut short if it must be, and a taller tap area on the list link. */
.sblg--tall .sblg-hud { padding: 0 1.25rem; flex-wrap: nowrap; gap: 0 1.25rem; }
.sblg--tall .sblg-meter { position: absolute; inset: 0 0 auto; }
.sblg--tall .sblg-count { flex: 1 1 auto; min-width: 0; padding: .7rem 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sblg--tall .sblg-list-link { flex: none; padding: .7rem 0; position: relative; }
.sblg--tall .sblg-list-link::after { content: ""; position: absolute; inset: -.25rem -.75rem -.6rem; }

/* Wider static hang: tablets, tall or narrow desktop windows, and reduced motion. Work beside its label. */
@media (min-width: 640px) {
  .sblg:not(.sblg--travel) { --in: 1.55vw; }
  .sblg:not(.sblg--travel) .sblg-piece { --aw: min(calc(var(--hi) * var(--in) * var(--ar)), 46vw, calc(var(--vh) * 78 * var(--ar))); grid-template-columns: auto minmax(11rem, 15rem); align-items: end; justify-content: start; }
  .sblg:not(.sblg--travel) .sblg-exits { gap: 0 2rem; }
}
@media (min-width: 900px) {
  .sblg:not(.sblg--travel) { --in: min(1.1vw, calc(var(--vh) * 1.2)); }
  .sblg:not(.sblg--travel) .sblg-wall { max-width: 78rem; margin: 0 auto; }
  .sblg:not(.sblg--travel) .sblg-exits { max-width: 40rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sblg *, .sblg *::before, .sblg *::after { transition: none !important; }
}

/* Print pages (/prints/<slug>/): one paper print, its offered sizes and prices. Preview; no checkout. */
.sblp { padding-top: 7rem; }
.sblp-back { margin: 0 0 1.5rem; font-size: .9rem; }
.sblp-back a { color: inherit; }
.sblp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.sblp-art img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 12px 28px rgba(0,0,0,.10); }
.sblp-title { margin: 0 0 .5rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1; text-transform: uppercase; letter-spacing: -.02em; }
.sblp-medium, .sblp-edition { margin: 0 0 .35rem; color: #5b6161; }
.sblp-sizes { width: 100%; margin: 1.75rem 0 1rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sblp-sizes caption { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #5b6161; padding-bottom: .5rem; }
.sblp-sizes th { text-align: left; padding: 1rem 0 .35rem; font-weight: 600; border-top: 1px solid #2c3131; }
.sblp-sizes td { padding: .35rem 0; border-top: 1px solid rgba(44,49,49,.15); }
.sblp-sizes td:last-child { text-align: right; white-space: nowrap; }
.sblp-ship, .sblp-note { color: #5b6161; font-size: .9rem; }
.sblp-button { display: inline-block; margin: .75rem 0; padding: .9rem 1.4rem; background: #2c3131; color: #fff; text-decoration: none; }
.sblp-button:hover, .sblp-button:focus-visible { background: #000; }
@media (max-width: 767px) { .sblp { padding-top: 5.5rem; } .sblp-grid { grid-template-columns: 1fr; } }
