/* A SINGLE SHOW'S OPENING (2026-11-29; his pick of four trials, tidied 2026-11-30 so only his pick is left; see
   js/views.js "showHero"). Why: a show's picture is usually an ad mat, square or tall, and a wide full-screen opening
   cut parts of it off. Here the picture is shown WHOLE, at its own shape (--ar = width / height, set on the piece), as
   big as two limits allow: --pw (widest) and --ph (tallest). One breakpoint, 900px. No new color; the one night sky. */
.sx{position:relative;padding:calc(var(--top) + 48px) 0 34px}
.sx__keep{white-space:nowrap}
.sx__back{position:absolute;z-index:3;left:var(--g);top:calc(var(--top) + 4px)}
.sx__grid{position:relative;z-index:2}
.sx__pic{display:flex;justify-content:center}
.sx__lift{position:relative;display:block;border-radius:22px;box-shadow:0 30px 60px rgb(0 0 0 / .45)}
.sx__poster{display:block;padding:0;margin:0;border:0;background:rgb(var(--sky-ink));border-radius:22px;overflow:hidden;cursor:zoom-in;line-height:0;
  height:min(var(--ph), calc(var(--pw) / var(--ar)));aspect-ratio:var(--ar);-webkit-tap-highlight-color:transparent;transition:transform .35s cubic-bezier(.2,.7,.2,1)}
.sx__poster img{display:block;width:100%;height:100%;object-fit:contain}
@media (hover:hover){ .sx__poster:hover{transform:scale(1.018)} }

.sx .show-hero__date{margin-bottom:4px;gap:10px;align-items:baseline}
.sx .show-hero__day{font-size:var(--day)}
.sx .show-hero__date .script{font-size:var(--mon)}
.sx .show-hero__city{font-size:var(--cty);line-height:.92;margin:0 0 10px}
.sx__event{font-size:17px;line-height:1.3;color:var(--text);margin:0 0 6px;max-width:34ch;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sx .show-hero__meta{margin:0 0 2px}
.sx .until{margin:0 0 14px}
.sx + .show-body{padding-top:30px}

/* THE BACKDROP: a soft, dark, out-of-focus copy of the same picture fills the screen behind. The soft copy is made
   small and enlarged (a cheap blur, drawn once, never animated except one fade). */
.sx__glow{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 70%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 70%,transparent 100%)}
.sx__glow img{position:absolute;left:37.5%;top:37.5%;width:25%;height:25%;object-fit:cover;transform:scale(4.5);filter:blur(10px) brightness(.55) saturate(1.15)}
.sx__shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to top,rgb(var(--sky-ink) / .92) 0%,rgb(var(--sky-ink) / .78) 34%,rgb(var(--sky-ink) / .3) 66%,rgb(var(--sky-ink) / .55) 100%)}

/* THE DATE LEADS: type first. The day and the city are the picture; the artwork is a small leaning card to press */
.sx--c{--ph:190px;--pw:38vw;--day:clamp(124px,36vw,150px);--mon:46px;--cty:clamp(46px,13vw,66px);min-height:var(--vh)}
/* his pick: this layout over the soft out-of-focus backdrop. The words sit high here, so the shade is even all the way down */
.sx--c .sx__glow img{filter:blur(10px) brightness(.5) saturate(1.15)}
.sx--c .sx__shade{background:linear-gradient(to bottom,rgb(var(--sky-ink) / .5) 0%,rgb(var(--sky-ink) / .58) 55%,rgb(var(--sky-ink) / .86) 100%)}
.sx--c .sx__row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:8px}
.sx--c .show-hero__date{flex-direction:column;align-items:flex-start;gap:0;flex-wrap:nowrap}
.sx--c .sx__lift{transform:rotate(3deg);margin-top:6px}

/* the picture opened large (press it): whole, on the night */
.sx-open{position:fixed;inset:0;z-index:97;cursor:zoom-out;-webkit-tap-highlight-color:transparent}
.sx-open__night{position:absolute;inset:0;background:rgb(var(--sky-ink) / .94)}
.sx-open img{position:fixed;left:0;top:0;display:block;border-radius:18px;box-shadow:0 30px 60px rgb(0 0 0 / .45);transform-origin:0 0;will-change:transform}
.sx-open__x{position:fixed;right:var(--g);top:calc(var(--top) + 4px);width:48px;height:48px;border-radius:50%;display:grid;place-items:center;padding:0;cursor:pointer;
  color:var(--text);background:rgb(var(--sky-ink) / .55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1.5px solid rgba(255,253,252,.5);transition:background .3s,color .3s,border-color .3s}
.sx-open__x:hover{background:var(--cream);color:var(--ink);border-color:var(--cream)}
.sx-open__x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

@media (min-width:900px){
  .sx{padding-top:calc(var(--top) + 46px)}
  .sx__event{font-size:22px;max-width:32ch;margin-bottom:10px}
  .sx .until{margin-bottom:22px}

  .sx--c{--ph:calc(var(--vh) * .34);--pw:24vw;--day:clamp(200px,21vw,290px);--mon:92px;--cty:clamp(60px,7.8vw,124px)}
  .sx--c .sx__grid{min-height:calc(var(--vh) - var(--top) - 80px);display:flex;flex-direction:column;justify-content:center}
  .sx--c .sx__row{margin-bottom:14px;align-items:center}
  .sx--c .show-hero__date{flex-direction:row;align-items:baseline;gap:18px}
  .sx--c .sx__lift{margin:0 3vw 0 0}
}
