/* Gallery page: "See us at the shows" (template-parts/gallery-shows.php, js/gallery-shows.js).
   It sits straight under the page's heading (css/gallery.css) and shares its ink, so the two read as one top.
   Every class starts with gs- and nothing here touches another part of the page.
   Three layouts: one column under 700 px, two columns with the words under each cover up to 1279 px,
   and from 1280 px the words sit on the cover. */

.gs,.gs *,.gs-box,.gs-box *{box-sizing:border-box}
.gs{overflow:hidden;background:#101419;color:#fff;padding:30px 0 64px;font-family:"DM Sans",sans-serif;-webkit-font-smoothing:antialiased;scroll-margin-top:96px}
:where(.gs) h2,:where(.gs) h3,:where(.gs) p{margin:0}
.gs-wrap{position:relative;width:calc(100% - 32px);max-width:1360px;margin:0 auto}

/* the heading and the expo card */
.gs-top{display:grid;gap:22px;margin-bottom:28px}
.gs-kicker{display:flex;align-items:center;gap:13px;font:800 11px/1.4 Manrope,sans-serif;letter-spacing:2.8px;text-transform:uppercase;color:#ff3d35}   /* a lighter red: small words on the dark band */
.gs-kicker:before{content:"";width:50px;height:3px;background:#f31b14}
.gs h2{margin-top:14px;font:800 28px/1 Manrope,sans-serif;letter-spacing:-.035em;color:#fff}
.gs h2 em{font-style:normal;color:#f31b14}
.gs-expo{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03)}
.gs-expo img{display:block;flex:none;width:68px;height:68px;object-fit:contain;background:#fff;padding:6px}
.gs-expo b{display:block;font:800 15px/1.3 Manrope,sans-serif;letter-spacing:-.01em}
.gs-expo span{display:block;margin-top:5px;color:#a9b1b8;font-size:14px;line-height:1.5}
.gs-expo-plain{border-left:3px solid #f31b14}

/* the cards */
.gs-cards{display:grid;gap:30px}
.gs-link{position:relative;display:block;color:#fff;text-decoration:none}
.gs-cover{position:relative;overflow:hidden;aspect-ratio:16 / 9;background:#0b0e12}
.gs-cover img,.gs-loop{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.gs-cover img{transition:transform 1.2s cubic-bezier(.16,1,.3,1)}
.gs-loop{opacity:0;transition:opacity .5s ease}
.gs-loop.is-on{opacity:1}
.gs-shade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,11,15,.3) 0,rgba(8,11,15,0) 30%)}
.gs-tag,.gs-len{position:absolute;top:12px;padding:8px 11px;color:#fff}
.gs-tag{left:12px;background:#e01610;font:800 11px/1 Manrope,sans-serif;letter-spacing:1.8px;text-transform:uppercase}
.gs-len{right:12px;background:rgba(10,13,17,.72);font:700 12px/1 "DM Sans",sans-serif;letter-spacing:.4px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.gs-play{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:66px;height:66px;margin:-33px 0 0 -33px;border-radius:50%;background:#fff;color:#f31b14;box-shadow:0 0 0 7px rgba(255,255,255,.2),0 12px 30px rgba(0,0,0,.38);transition:transform .35s cubic-bezier(.16,1,.3,1),background .25s,color .25s}
.gs-play svg{width:26px;height:26px;margin-left:3px}
.gs-info{padding:16px 2px 0}
.gs-date{font:800 13px/1.3 Manrope,sans-serif;letter-spacing:2px;text-transform:uppercase;color:#fff}
.gs-date:before{content:"";display:inline-block;width:20px;height:3px;margin:-2px 11px 0 0;background:#f31b14;vertical-align:middle}
.gs h3{margin-top:9px;font:800 23px/1.1 Manrope,sans-serif;letter-spacing:-.02em;color:#fff}
.gs-where{margin-top:8px;color:#a9b1b8;font-size:15px}
.gs-watch{display:inline-flex;align-items:center;gap:10px;margin-top:14px;padding:13px 16px;border:1px solid rgba(255,255,255,.5);font:700 13px/1 Manrope,sans-serif;letter-spacing:.3px;transition:background .25s,color .25s,border-color .25s}
.gs-watch svg{transition:transform .35s cubic-bezier(.16,1,.3,1)}
a.gs-link:focus-visible{outline:3px solid #fff;outline-offset:5px}
@media(hover:hover){
  a.gs-link:hover .gs-cover img{transform:scale(1.04)}
  a.gs-link:hover .gs-play{transform:scale(1.08);background:#f31b14;color:#fff}
  a.gs-link:hover .gs-watch{background:#fff;border-color:#fff;color:#111820}
  a.gs-link:hover .gs-watch svg{transform:translateX(4px)}
}

@media(max-width:359px){
  .gs-date{font-size:12px;letter-spacing:1.2px}
}

/* two columns */
@media(min-width:700px){
  .gs{padding:38px 0 90px}
  .gs-wrap{width:calc(100% - 56px)}
  .gs-cards{grid-template-columns:1fr 1fr;gap:26px}
  .gs h2{font-size:34px}
  .gs h3{font-size:21px}
}
@media(min-width:900px){
  .gs-top{grid-template-columns:minmax(0,1fr) minmax(0,430px);gap:60px;align-items:center;margin-bottom:34px}
  .gs-expo{padding:20px 22px;gap:18px}
  .gs-expo img{width:86px;height:86px}
  .gs h3{font-size:23px}
  .gs-play{width:76px;height:76px;margin:-38px 0 0 -38px}
  .gs-play svg{width:30px;height:30px}
}

/* the words on the cover */
@media(min-width:1280px){
  .gs{padding:32px 0 110px}
  .gs-wrap{width:calc(100% - 80px)}
  .gs h2{font-size:38px}
  .gs-cards{gap:28px}
  .gs-shade{background:linear-gradient(180deg,rgba(8,11,15,.3) 0,rgba(8,11,15,0) 26%,rgba(8,11,15,0) 38%,rgba(8,11,15,.6) 68%,rgba(8,11,15,.95) 100%)}
  .gs-tag,.gs-len{top:18px}.gs-tag{left:18px}.gs-len{right:18px}
  .gs-play{width:88px;height:88px;margin:-44px 0 0 -44px;box-shadow:0 0 0 10px rgba(255,255,255,.2),0 18px 44px rgba(0,0,0,.38)}
  .gs-play svg{width:34px;height:34px;margin-left:4px}
  .gs-info{position:absolute;left:0;right:0;bottom:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"date watch" "name watch" "where watch";column-gap:20px;align-items:end;padding:30px 32px}
  .gs-date{grid-area:date}
  .gs h3{grid-area:name;font-size:clamp(24px,calc(3.75vw - 24px),30px)}   /* the longest name stays on one line beside the button */
  .gs-where{grid-area:where;color:#d3d8dc}
  .gs-watch{grid-area:watch;margin:0;padding:14px 18px}
}

/* arriving: only once the script is running, and never for a visitor who asked for less motion */
@media(prefers-reduced-motion:no-preference){
  .gs.is-live .gs-card{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .9s cubic-bezier(.16,1,.3,1)}
  .gs.is-live .gs-card:nth-child(2){transition-delay:.12s}
  .gs.is-live.is-in .gs-card{opacity:1;transform:none}
  .gs-play:after{content:"";position:absolute;inset:0;border-radius:50%;box-shadow:0 0 0 0 rgba(255,255,255,.5);animation:gsPulse 2.6s ease-out infinite}
}
@keyframes gsPulse{0%{box-shadow:0 0 0 0 rgba(255,255,255,.5)}70%,100%{box-shadow:0 0 0 22px rgba(255,255,255,0)}}

/* the film, opened over the page */
.gs-box{position:fixed;inset:0;z-index:10000000;display:grid;place-items:center;background:rgba(8,11,15,.94);color:#fff;font-family:"DM Sans",sans-serif;opacity:0;transition:opacity .3s ease;-webkit-font-smoothing:antialiased}
.gs-box.is-open{opacity:1}
.gs-box-in{width:100%;max-width:1180px}
.gs-box-top{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:0 0 14px;padding:0 16px}
.gs-box-top p{margin:0;min-width:0}
.gs-box-top small{display:block;font:800 11px/1.3 Manrope,sans-serif;letter-spacing:2.4px;text-transform:uppercase;color:#ff6b66}
.gs-box-top strong{display:block;margin-top:8px;font:800 19px/1.15 Manrope,sans-serif;letter-spacing:-.02em}
.gs-box-x{flex:none;display:inline-flex;align-items:center;gap:10px;min-height:44px;margin:0;padding:0 16px;border:1px solid rgba(255,255,255,.45);border-radius:0;background:none;color:#fff;font:700 13px/1 Manrope,sans-serif;cursor:pointer;-webkit-appearance:none;appearance:none}
.gs-box-x:hover{background:#fff;color:#111820}
.gs-box-x:focus-visible{outline:3px solid #fff;outline-offset:3px}
.gs-box-film{position:relative;aspect-ratio:16 / 9;background:#000;box-shadow:0 40px 100px rgba(0,0,0,.6);transform:scale(.96);transition:transform .5s cubic-bezier(.16,1,.3,1)}
.gs-box.is-open .gs-box-film{transform:none}
.gs-box-film iframe{position:absolute;inset:0;display:block;width:100%;height:100%;border:0}
@media(min-width:700px){
  .gs-box-in{width:min(calc(100% - 120px),calc((100vh - 190px) * 16 / 9))}
  .gs-box-in{width:min(calc(100% - 120px),calc((100dvh - 190px) * 16 / 9))}
  .gs-box-top{padding:0;margin-bottom:18px}
  .gs-box-top strong{font-size:26px}
}
@media(orientation:landscape) and (max-height:520px){
  .gs-box-in{width:min(calc(100% - 32px),calc((100vh - 84px) * 16 / 9))}
  .gs-box-in{width:min(calc(100% - 32px),calc((100dvh - 84px) * 16 / 9))}
  .gs-box-top{padding:0;margin-bottom:8px}
  .gs-box-top small{display:none}
  .gs-box-top strong{margin:0;font-size:16px}
}
@media(prefers-reduced-motion:reduce){
  .gs-box,.gs-box-film,.gs-cover img,.gs-play,.gs-watch,.gs-watch svg,.gs-loop{transition:none}
  .gs-box-film{transform:none}
}
html.gs-locked{overflow:hidden}

/* older iPhones (before iOS 15) do not know aspect-ratio: the cover and the film keep their shape this way */
@supports not (aspect-ratio:1 / 1){
  .gs-cover,.gs-box-film{height:0;padding-top:56.25%}
}
