/* DanceKut Gallery — look «Cartel» (config.look = 'poster' · ?look=poster), 2026-09-30.
   A second page on the same data: not a skin but another architecture —
     · the bar is transparent over a FULL-BLEED hero made of the session's own photos (Ken
       Burns, crossfade), the event's logo set bottom-left like a festival poster, the day in
       big type, the buttons as CTAs;
     · the sessions are CHAPTERS: a snap-scroll row of day cards under the hero (sticky);
     · the wall is JUSTIFIED ROWS (every row the same height, every photo its true aspect,
       no gaps), with giant day headers when several days show at once;
     · the viewer is a THEATRE: black, a filmstrip of neighbours, a vertical rail of actions.
   Scoped by PART (gallery.js PARTS): bar-clear · hl-photo · days-chapters · wall-rows · rv-wipe ·
   hv-zoom · vw-theatre. «Poster» is the preset that turns them all on; any of them can be used alone. */

body.bar-clear { --barh: 64px; }
body.wall-rows { --po-radius: 6px; }
body.hl-photo .gal-header { padding: 0; text-align: left; }

/* ── the bar: transparent over the hero, glass once the page is scrolled ── */
body.bar-clear .gal-bar { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.bar-clear.po-scrolled .gal-bar { background: var(--glass); border-bottom-color: var(--gline); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
body.bar-clear .gal-bar-brand .gal-brand-k { width: 30px; height: 30px; }
/* «DanceKut Galleries●» the Stage way: one word family, one weight, the ® up */
body.bar-clear .gal-brand-word { font-size: 24px; gap: .25em; letter-spacing: -0.0625em; }
body.bar-clear .gal-brand-word .gname { font-weight: 800; color: var(--tx); letter-spacing: -0.0625em; text-transform: none; font-size: inherit; }
body.bar-clear .gal-brand-word .gname sup { font-size: 10px; letter-spacing: 0; margin-left: 2px; vertical-align: top; position: relative; top: -3px; font-weight: 700; }
body.bar-clear .gal-bar-ident { display: none; }   /* the hero IS the identity; the bar never repeats it */
body.bar-clear.has-bar { padding-top: 0; }          /* the hero runs under the bar */
@media (max-width: 480px) { body.bar-clear .gal-brand-word { font-size: 19px; } }

/* ── the hero ── */
.po-hero { position: relative; min-height: 100svh; min-height: 100vh; display: flex; align-items: flex-end; overflow: hidden; background: #07070c; }
.po-hero-bg { position: absolute; inset: 0; }
.po-hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; opacity: 0; transition: opacity 1.6s ease; transform-origin: 50% 50%; }
.po-hero-bg img.on { opacity: 1; animation: poKen 14s ease-in-out both; }
.po-hero-bg img.kb2.on { animation-name: poKen2; }
@keyframes poKen { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
@keyframes poKen2 { from { transform: scale(1.16) translate(1.5%, 1%); } to { transform: scale(1.04) translate(0, 0); } }
.po-veil { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(7,7,12,.55) 0%, rgba(7,7,12,0) 30%, rgba(7,7,12,.15) 55%, rgba(7,7,12,.92) 100%),
  linear-gradient(90deg, rgba(7,7,12,.55) 0%, rgba(7,7,12,0) 60%); }
body.theme-light .po-veil { background:
  linear-gradient(180deg, rgba(20,18,32,.35) 0%, rgba(20,18,32,0) 30%, rgba(20,18,32,.2) 55%, rgba(244,243,248,1) 100%),
  linear-gradient(90deg, rgba(20,18,32,.45) 0%, rgba(20,18,32,0) 60%); }
.po-hero.empty .po-veil { background: radial-gradient(60% 60% at 50% 40%, rgba(168,85,247,.18), transparent 70%); }
.po-hero-in { position: relative; z-index: 2; width: 100%; max-width: 1700px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 64px) clamp(36px, 6vh, 72px); display: flex; flex-direction: column; align-items: flex-start; gap: 18px; color: #f4f4f6; }
body.theme-light .po-hero-in { color: var(--tx); }
.po-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.po-logo img { height: clamp(72px, 14vh, 150px); width: auto; max-width: min(80vw, 640px); object-fit: contain; filter: drop-shadow(0 20px 60px rgba(0,0,0,.55)); }
.po-name { font-weight: 900; font-size: clamp(40px, 8vw, 96px); letter-spacing: -0.04em; line-height: .95; text-shadow: 0 12px 50px rgba(0,0,0,.5); }
.po-name .l2 { display: block; font-weight: 700; font-size: .32em; letter-spacing: .28em; text-indent: .04em; text-transform: uppercase; opacity: .85; margin-top: 10px; }
.po-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-weight: 800; font-size: clamp(13px, 1.6vw, 17px); letter-spacing: .22em; text-transform: uppercase; opacity: .92; text-shadow: 0 4px 20px rgba(0,0,0,.6); }
.po-sub .sep { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--pur), var(--or)); }
.po-sub .cnt { font-weight: 600; letter-spacing: .08em; opacity: .8; }
.po-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.po-cta { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 800; font-size: 14.5px; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); box-shadow: 0 14px 40px rgba(var(--acc-w), .35); transition: transform .18s var(--ease), filter .18s; }
.po-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.po-cta svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.po-ctas .gal-link-btn { height: 48px; padding: 0 22px; font-size: 14px; background: rgba(10,10,16,.45); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(12px); }
body.theme-light .po-ctas .gal-link-btn { color: var(--tx); background: rgba(255,255,255,.55); border-color: rgba(23,23,29,.18); }
.po-ctas .gal-link-btn:hover { border-color: #fff; box-shadow: none; }
.po-ctas .gal-contact-btn { height: 48px; }
.po-hero-in .gal-socials-row { margin-top: 2px; justify-content: flex-start; }
.po-hero-in .gal-social { background: rgba(10,10,16,.45); border-color: rgba(255,255,255,.28); color: #fff; }
/* scroll hint, bottom right */
.po-scroll { position: absolute; right: clamp(18px, 4vw, 64px); bottom: 34px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(244,244,246,.7); font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.po-scroll i { display: block; width: 1px; height: 54px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff); animation: poScroll 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes poScroll { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) { .po-scroll { display: none; } .po-hero { min-height: 92svh; } }
/* the hero builds itself (body.gal-in) */
.po-hero .el { opacity: 0; }
body.gal-in .po-hero .el { animation: elIn .9s var(--ease) both; animation-delay: var(--d, 0s); }
body.gal-in .po-hero .el.pop { animation-name: popIn; animation-duration: .6s; }

/* ── the chapters strip (sticky under the bar) ── */
body.days-chapters .gal-nav { max-width: none; margin: 0; padding: 0; }
body.days-chapters .gal-nav-sticky { margin: 0; padding: 10px clamp(12px, 3vw, 48px) 8px; gap: 8px; background: var(--bg); border-bottom: 1px solid var(--gline); }
body.days-chapters .gal-nav-sticky.stuck { background: var(--glass); }
.po-eds { display: flex; gap: 14px; align-items: center; margin-bottom: 2px; }
.po-ed { font-weight: 800; font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--tx2); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.po-ed:hover { color: var(--tx); }
.po-ed.on { color: var(--tx); border-bottom-color: var(--acc); }
.po-chap-row { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.po-chap-row::-webkit-scrollbar { display: none; }
.po-chap { scroll-snap-align: start; flex: 0 0 auto; display: flex; align-items: center; gap: 12px; min-width: 150px; padding: 8px 16px 8px 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--gline2); color: var(--tx2); text-align: left; transition: border-color .16s, transform .16s, background .16s, color .16s; }
.po-chap:hover { color: var(--tx); border-color: var(--acc); transform: translateY(-1px); }
.po-chap.on { color: var(--tx); border-color: transparent; background: linear-gradient(135deg, rgba(var(--acc-w), .34), rgba(var(--acc2-w), .22)), var(--glass2); box-shadow: 0 8px 26px rgba(var(--acc-w), .22); }
.po-chap .d { font-weight: 900; font-size: 30px; letter-spacing: -0.04em; line-height: 1; color: var(--tx); }
.po-chap.on .d { background: linear-gradient(135deg, #fff, #ffd9b0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body.theme-light .po-chap.on .d { background: none; -webkit-text-fill-color: var(--tx); }
.po-chap .t { display: flex; flex-direction: column; gap: 1px; }
.po-chap .w { font-weight: 800; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.po-chap .c { font-weight: 700; font-size: 12.5px; color: var(--tx); }
.po-chap .n { font-size: 11px; opacity: .75; }
.po-chap.mix .d { font-size: 20px; letter-spacing: .06em; }
.po-chap.glob { border-style: dashed; }
.po-chap .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--new); box-shadow: 0 0 8px var(--new); margin-left: auto; animation: newPulse 2.2s ease-out infinite; }
.po-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.po-filters .gal-pill.sm { height: 28px; }
.po-filters .spacer { flex: 1; }

/* ── the wall: justified rows ── */
body.wall-rows .gal-grid-wrap { max-width: none; margin: 0; padding: 8px clamp(12px, 3vw, 48px) 60px; }
body.no-status .gal-status { display: none; }   /* the hero's line and the chapters already say it */
body.wall-rows .gal-grid { display: block; }
.po-row { display: flex; gap: 6px; margin-bottom: 6px; }
.po-row.last { justify-content: flex-start; }
.po-card { flex: 0 0 auto; }
body.wall-rows .gal-card { border-radius: var(--po-radius); border: 0; background: var(--imgbg); }
body.wall-rows .gal-card img.th { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
body.hv-zoom .gal-card:hover { transform: none; border: 0; box-shadow: inset 0 0 0 3px var(--hov-yellow); }
body.hv-zoom .gal-card:hover img.th { transform: scale(1.05); }
body.hv-zoom .gal-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.55)); opacity: 0; transition: opacity .25s; pointer-events: none; }
body.hv-zoom .gal-card:hover::after { opacity: 1; }
body.hv-zoom .gal-card .nm { position: absolute; left: 10px; right: 44px; bottom: 8px; z-index: 2; font-size: 11.5px; font-weight: 600; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
body.hv-zoom .gal-card:hover .nm { opacity: 1; transform: none; }
body.wall-rows .gal-card .play { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
body.wall-rows .gal-card .play svg { width: 14px; height: 14px; }
body.wall-rows .gal-card .len { right: 6px; bottom: 6px; font-size: 10.5px; padding: 2px 7px; }
/* the reveal: a wipe from the left, row by row (no blur — a wall of 40 blurs is a fan) */
body.rv-wipe .gal-card.rv { opacity: 0; transform: none; filter: none; clip-path: inset(0 100% 0 0); }
body.rv-wipe .gal-card.rv.in { opacity: 1; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease), opacity .4s ease; transition-delay: var(--d, 0s); filter: none; }
/* day headers between blocks */
.po-head { display: flex; align-items: baseline; gap: 18px; padding: 34px 4px 12px; }
.po-head .d { font-weight: 900; font-size: clamp(38px, 7vw, 84px); letter-spacing: -0.05em; line-height: .9; color: var(--tx); opacity: .92; }
.po-head .s { display: flex; flex-direction: column; gap: 3px; font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--tx2); }
.po-head .s b { color: var(--tx); }
.po-head.rv { opacity: 0; transform: translateX(-20px); }
.po-head.rv.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .8s var(--ease); }
/* ads inside the rows: same height, a square-ish glass card */
body.wall-rows .gal-ad { border-radius: var(--po-radius); padding: 14px 12px; display: flex; flex-direction: column; justify-content: center; }
body.wall-rows .gal-ad .hand { font-size: 22px; }
body.wall-rows .gal-ad img { max-height: 42%; width: auto; object-fit: contain; }
body.wall-rows .gal-ad b { font-size: 13px; line-height: 1.2; margin-top: 4px; }
body.wall-rows .gal-ad span:not(.tag) { font-size: 11.5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (max-width: 700px) { body.wall-rows .gal-ad span:not(.tag), body.wall-rows .gal-ad .hand { display: none; } body.wall-rows .gal-ad b { font-size: 12px; } }
body.wall-rows .gal-foot { max-width: none; margin-top: 30px; }

/* ── the viewer: a theatre ── */
body.vw-theatre .gal-viewer { background: rgba(0,0,0,.94); }
body.vw-theatre .gal-viewer-top { position: absolute; left: 0; right: 0; top: 0; z-index: 20; padding: 16px 20px; pointer-events: none; }
body.vw-theatre .gal-viewer-top > * { pointer-events: auto; }
body.vw-theatre .gal-viewer-name { font-weight: 700; color: #f4f4f6; }
body.vw-theatre .gal-viewer-stage { padding: 64px 74px 0; }
body.vw-theatre .gal-viewer-wrap img.media { border-radius: 4px; box-shadow: 0 40px 100px rgba(0,0,0,.8); }
body.vw-theatre .gal-arrow.next { right: 74px; }
.gal-strip { display: flex; justify-content: center; gap: 6px; padding: 10px 16px 6px; overflow: hidden; }
.gal-strip-it { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 4px; overflow: hidden; opacity: .45; transform: scale(.92); transition: opacity .25s, transform .25s var(--ease); cursor: pointer; background: var(--imgbg); border: 2px solid transparent; }
.gal-strip-it img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-strip-it:hover { opacity: .85; }
.gal-strip-it.on { opacity: 1; transform: scale(1.06); border-color: var(--hov-yellow); }
body.vw-theatre .gal-viewer-bottom { padding-top: 6px; min-height: 18px; }
@media (max-width: 640px) {
  body.vw-theatre .gal-viewer-stage { padding: 56px 8px 0; }
  .gal-strip-it { width: 42px; height: 42px; }
}

/* ── the opening, «poster» variant: the mosaic ── */
.gi-mosaic { position: absolute; inset: 0; pointer-events: none; }
.gi-mosaic img { position: absolute; width: 22vmin; height: 22vmin; object-fit: cover; border-radius: 6px; opacity: 0; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: translate(var(--fx, 0), var(--fy, 0)) rotate(var(--r, 0deg)) scale(.7); transition: transform .9s cubic-bezier(.2,.8,.2,1), opacity .5s ease; transition-delay: var(--d, 0s); }
.gi.s-mosaic .gi-mosaic img { opacity: 1; transform: translate(0, 0) rotate(var(--r, 0deg)) scale(1); }
.gi.s-heroify .gi-mosaic img { transition: transform 1.1s cubic-bezier(.6,0,.2,1), opacity .5s ease .2s, border-radius 1.1s; transition-delay: 0s; opacity: 0; }
.gi.s-heroify .gi-mosaic img.hero { opacity: 1; z-index: 2; border-radius: 0;
  transition: left 1.1s cubic-bezier(.6,0,.2,1), top 1.1s cubic-bezier(.6,0,.2,1), width 1.1s cubic-bezier(.6,0,.2,1), height 1.1s cubic-bezier(.6,0,.2,1), margin 1.1s cubic-bezier(.6,0,.2,1), border-radius 1.1s, transform 1.1s cubic-bezier(.6,0,.2,1); }
.gi.s-heroify .gi-mosaic::after { content: ''; position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(7,7,12,.55), rgba(7,7,12,0) 30%, rgba(7,7,12,.15) 55%, rgba(7,7,12,.92)); opacity: 0; animation: fadeIn .9s ease .5s both; }
.gi.gi-poster .gi-ev, .gi.gi-poster .gi-tag, .gi.gi-poster .gi-news { z-index: 5; }
.gi.gi-poster.s-mosaic .gi-news { z-index: 5; }
.gi.gi-poster.s-mosaic .gi-mosaic::before { content: ''; position: absolute; inset: 0; background: rgba(7,7,12,.35); }
.gi.gi-poster.s-out { clip-path: none; transition: opacity .9s ease; opacity: 0; }   /* the hero underneath IS this photo: dissolve, do not wipe */
.gi.gi-poster.s-out .gi-stage { transform: none; filter: none; }
