/* GSAP Starter Kit v0.3.1
 * Celowo NIE ukrywamy nagłówków przez CSS przed uruchomieniem JavaScript.
 * Dzięki temu błąd JS, cache albo reduced-motion nie powodują znikania treści.
 */
.gsk-split-line {
  backface-visibility: hidden;
}

/* Włączane wyłącznie dla Image Reveal z atrybutem data-gsap-zoom. */
.gsk-image-reveal-zoom-mask {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  line-height: 0;
  vertical-align: middle;
}
.gsk-image-reveal-zoom-mask > img,
.gsk-image-reveal-zoom-mask > picture > img {
  display: block;
}

/* v0.4.3 Cinematic Fullscreen: tylko warstwowanie, bez ukrywania zawartości.
 * Animację i preflight kontroluje ten sam moduł JS co wcześniejsze Hero Sequence.
 * Kontenery i ich zawartość pozostają w pełni edytowalne w Elementorze.
 */
.gsk-hero-cinematic-fullscreen {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.gsk-hero-cinematic-fullscreen .gsk-hero-image.gsk-hero-cinematic-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
.gsk-hero-cinematic-fullscreen .gsk-hero-cinematic-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  /* v0.4.4: Elementor 'opacity' w JSON nie sterował nakładką gradientową.
   * Jej pełne, jednolite kolory całkowicie zasłaniały fotografię.
   * Wartość bazowa 0.60 zachowuje czytelność nagłówka, ale odsłania zdjęcie.
   * Opcjonalne dostrojenie: --gsk-cinematic-shade-opacity: .45 na hero.
   */
  opacity: var(--gsk-cinematic-shade-opacity, 0.60);
  pointer-events: none;
}
.gsk-hero-cinematic-fullscreen .gsk-hero-cinematic-content {
  position: relative;
  z-index: 2;
}

/* v0.4.5 Product Spotlight: dekoracyjna scena produktu.
 * Brak wstępnego CSS opacity:0; zabezpieczenie anty-FOUC v0.4.1 pozostaje
 * wspólne dla wszystkich Hero Sequence, również na mobile.
 * Te reguły służą prezentacji, nie dublują natywnych animacji Elementora.
 */
.gsk-hero-product-spotlight .gsk-hero-product-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.gsk-hero-product-spotlight .gsk-hero-product-stage::before {
  content: '';
  position: absolute;
  width: min(78%, 460px);
  aspect-ratio: 1;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,.58) 0%, rgba(255,255,255,.12) 53%, rgba(255,255,255,0) 71%);
  pointer-events: none;
  z-index: 0;
}
.gsk-hero-product-spotlight .gsk-hero-product-stage > * {
  position: relative;
  z-index: 1;
}
.gsk-hero-product-spotlight .gsk-hero-product > img,
.gsk-hero-product-spotlight .gsk-hero-product .elementor-widget-container > img {
  max-width: 100%;
}

/* v0.4.6 Curtain Opening: dwa natywne kontenery Elementora.
 * Domyślnie niewidoczne bez JS; preflight je odsłania przed startem animacji.
 * Zakończony efekt nie może przykryć hero po resize ani błędzie ładowania.
 */
.gsk-hero-curtain-opening {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.gsk-hero-curtain-opening .gsk-hero-curtain-content {
  position: relative;
  z-index: 2;
}
.gsk-hero-curtain-opening .gsk-hero-curtain-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.2%;
  height: 100%;
  z-index: 9;
  visibility: hidden;
  pointer-events: none;
  background-color: var(--gsk-curtain-fallback-color, #D5BE9A);
  will-change: transform;
}
/* Elementor może nadawać obu pozycjonowanym absolutnie kontenerom left: 0.
 * Bez jawnego wyzerowania left: auto prawy panel również zaczyna po lewej,
 * a następnie przelatuje przez scenę zamiast otwierać ją od środka.
 * !important wyłącznie dla geometrii kurtyny; kolory pozostają edytowalne.
 */
.gsk-hero-curtain-opening .gsk-hero-curtain-left {
  left: 0 !important;
  right: auto !important;
}
.gsk-hero-curtain-opening .gsk-hero-curtain-right {
  left: auto !important;
  right: 0 !important;
}
.gsk-hero-curtain-opening.gsk-hero-curtain-finished .gsk-hero-curtain-panel {
  visibility: hidden !important;
}
@media (prefers-reduced-motion: reduce) {
  .gsk-hero-curtain-opening .gsk-hero-curtain-panel { visibility: hidden !important; }
}

/* v0.4.8 Editorial Collage: natywne widgety Obraz Elementora.
 * Kolaż może być ułożony w Elementorze z dwóch kolumn o różnej wysokości.
 * Te style nie narzucają rozkładu widgetów, jedynie detale wizualne.
 */
.gsk-hero-editorial-collage .gsk-hero-collage-stage {
  position: relative;
  isolation: isolate;
}
.gsk-hero-editorial-collage .gsk-hero-collage-item {
  backface-visibility: hidden;
}
.gsk-hero-editorial-collage .gsk-hero-collage-item .elementor-widget-container {
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 14px 42px rgba(33, 23, 18, .17);
}
.gsk-hero-editorial-collage .gsk-hero-collage-item .elementor-widget-container img {
  display: block;
  border-radius: 7px;
  width: 100%;
  object-fit: cover;
}
@media (max-width: 767px) {
  .gsk-hero-editorial-collage .gsk-hero-collage-item .elementor-widget-container {
    box-shadow: 0 7px 21px rgba(33, 23, 18, .14);
  }
}

/* v0.4.9 Layered Depth Intro: geometria i edytowalne 3 warstwy.
 * Brak stałego ukrywania przez CSS; jedynie transformacje GSAP.
 * Nie animujemy layoutu (top/left), lecz transform/opacity.
 */
.gsk-hero-layered-depth .gsk-hero-depth-stage {
  position: relative;
  isolation: isolate;
  overflow: visible;
  min-width: 0;
  perspective: 1100px;
}
.gsk-hero-layered-depth .gsk-hero-depth-back {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%; min-height: 100%;
  z-index: 0;
  border-radius: 24px;
  overflow: hidden;
  background-color: #28414B;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}
.gsk-hero-layered-depth .gsk-hero-depth-back::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(132deg, rgba(5,14,19,.21), rgba(5,14,19,.05) 60%, rgba(5,14,19,.32));
  pointer-events: none;
}
.gsk-hero-layered-depth .gsk-hero-depth-figure {
  position: absolute;
  left: 8%; right: 6%; top: 3%;
  width: 86%; height: 93%;
  z-index: 2;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
  backface-visibility: hidden;
}
.gsk-hero-layered-depth .gsk-hero-depth-figure .elementor-widget-container {
  display: flex; align-items: flex-end; justify-content: center;
  width: 100%; height: 100%;
}
.gsk-hero-layered-depth .gsk-hero-depth-figure img {
  display: block;
  width: 100%; height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 21px 28px rgba(0,0,0,.23));
}
.gsk-hero-layered-depth .gsk-hero-depth-front {
  position: absolute;
  left: -5%; bottom: 7%;
  width: 48%;
  z-index: 4;
  padding: 22px 25px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 14px;
  background: rgba(17,28,35,.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 55px rgba(5,14,19,.24);
  pointer-events: none;
  backface-visibility: hidden;
}
@media (max-width: 1024px) {
  .gsk-hero-layered-depth .gsk-hero-depth-stage { max-width: 100%; }
  .gsk-hero-layered-depth .gsk-hero-depth-figure { left: 5%; right: 5%; width: 90%; }
  .gsk-hero-layered-depth .gsk-hero-depth-front { left: 4%; width: 58%; bottom: 5%; padding: 14px 16px; }
}
@media (max-width: 767px) {
  .gsk-hero-layered-depth .gsk-hero-depth-back { border-radius: 14px; }
  .gsk-hero-layered-depth .gsk-hero-depth-front { width: 68%; border-radius: 11px; }
  .gsk-hero-layered-depth .gsk-hero-depth-figure img { filter: drop-shadow(0 12px 16px rgba(0,0,0,.2)); }
}



/* v0.5.5 — tylko strony z aktywnym Classic Stack, tylko przy body overflow:auto.
 * Ustawienia sa wlaczane/wylaczane przez JS, bez zmian site-wide.
 * overflow-x:clip zachowuje ochrone przed poziomym overflow, ale nie tworzy
 * scroll containera blokujacego sticky (inaczej niz overflow-x:hidden). */
body.gsk-stack-body-compatible:not(.elementor-editor-active) {
  overflow: visible !important; /* fallback dla przegladarek bez overflow:clip */
}
@supports (overflow: clip) {
  body.gsk-stack-body-compatible:not(.elementor-editor-active) {
    overflow-x: clip !important;
    overflow-y: visible !important;
  }
}

/* v0.5.5 — Classic Stack: jeden wysoki shell zawiera sticky scene.
 * Brak pin-spacera; karta pozostaje wewnatrz scroll-runway przez caly czas.
 * Bez JS i przy reduced-motion karty pozostaja naturalnie widoczne. */
.gsap-stacked-cards .gsk-stack-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  min-width: 0;
}
.gsap-stacked-cards .gsk-stack-card {
  box-sizing: border-box;
  position: relative;
  min-width: 0;
  min-height: 330px;
  margin-block: 0 18px;
  border-radius: 24px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 16px 55px rgba(9, 14, 33, .19);
}
.gsap-stacked-cards .gsk-stack-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 18px;
  min-width: 0;
}
.gsap-stacked-cards .gsk-stack-visual::before {
  content: '';
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 24px rgba(255,255,255,.06), 0 0 0 56px rgba(255,255,255,.035);
  pointer-events: none;
}
.gsap-stacked-cards .gsk-stack-number {
  position: relative;
  z-index: 1;
}
/* Staly dystans scrolla wewnatrz shella; nie jest to osobny pusty flex-item. */
.gsap-stacked-cards.gsk-stack-enabled { overflow-anchor: none; }
.gsap-stacked-cards.gsk-stack-enabled .gsk-stack-shell {
  position: relative;
  display: block;
  box-sizing: border-box;
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 1200px;
  margin-inline: auto;
  overflow: visible;
}
.gsap-stacked-cards.gsk-stack-enabled .gsk-stack-stage {
  position: sticky;
  top: var(--gsk-stack-sticky-top, 20px);
  height: clamp(470px, 76svh, 750px);
  overflow: hidden;
  border-radius: 25px;
}
.gsap-stacked-cards.gsk-stack-enabled .gsk-stack-card {
  position: absolute;
  left: 12px; right: 12px;
  top: 44px; bottom: 22px;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  will-change: transform;
}
@media (max-width: 767px) {
  .gsap-stacked-cards .gsk-stack-card { border-radius: 17px; min-height: 360px; }
  .gsap-stacked-cards .gsk-stack-visual { border-radius: 12px; }
  .gsap-stacked-cards.gsk-stack-enabled .gsk-stack-stage {
    height: clamp(410px, 77svh, 650px);
    border-radius: 17px;
  }
  .gsap-stacked-cards.gsk-stack-enabled .gsk-stack-card {
    left: 5px; right: 5px;
    top: 25px; bottom: 12px;
    border-radius: 15px;
  }
  .gsap-stacked-cards .gsk-stack-visual::before {
    width: 45%;
    box-shadow: 0 0 0 12px rgba(255,255,255,.06), 0 0 0 30px rgba(255,255,255,.035);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gsap-stacked-cards .gsk-stack-card { will-change: auto; }
}

/* v0.5.8 Depth Gallery: wyrazna kompozycja przestrzenna zamiast
 * niewidocznego skalowania pod kolejnymi kartami. Bez zmian Classic. */
.gsap-stacked-cards.gsk-stack-depth.gsk-stack-enabled .gsk-stack-stage {
  perspective: 1600px;
  perspective-origin: 50% 40%;
  background: radial-gradient(ellipse at 58% 55%, rgba(90,109,139,.12), transparent 72%);
}
.gsap-stacked-cards.gsk-stack-depth.gsk-stack-enabled .gsk-stack-card {
  transform-origin: 50% 50%;
  box-shadow: 0 27px 75px rgba(2,5,15,.32), 0 0 0 1px rgba(255,255,255,.10);
  will-change: transform, filter;
}
@media (max-width: 767px) {
  .gsap-stacked-cards.gsk-stack-depth.gsk-stack-enabled .gsk-stack-stage {
    perspective: 1350px;
    perspective-origin: 50% 35%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gsap-stacked-cards.gsk-stack-depth .gsk-stack-card { will-change: auto; }
}

/* v0.5.10 Tilted Deck: dyskretna oprawa fotografii polozonych na stole.
 * Nie zmieniamy pozycji sticky ani podstawowego rozmiaru kart. */
.gsap-stacked-cards.gsk-stack-tilted.gsk-stack-enabled .gsk-stack-stage {
  perspective: 1550px;
  background: radial-gradient(ellipse at center, rgba(107,82,54,.07), transparent 78%);
}
.gsap-stacked-cards.gsk-stack-tilted.gsk-stack-enabled .gsk-stack-card {
  transform-origin: center center;
  box-shadow: 0 25px 68px rgba(24, 24, 28, .24), 0 1px 0 rgba(255,255,255,.18) inset;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .gsap-stacked-cards.gsk-stack-tilted .gsk-stack-card { will-change: auto; }
}

/* v0.5.11 — Directional Stack: wyrazny wjazd kart z bokow lub od dolu.
 * Nie ingeruje w pozycjonowanie sticky ani w warianty Classic/Depth/Tilted. */
.gsap-stacked-cards.gsk-stack-directional.gsk-stack-enabled .gsk-stack-stage {
  background: radial-gradient(ellipse at 50% 58%, rgba(68,111,133,.12), transparent 76%);
}
.gsap-stacked-cards.gsk-stack-directional.gsk-stack-enabled .gsk-stack-card {
  transform-origin: center center;
  will-change: transform;
  box-shadow: 0 24px 65px rgba(12,24,36,.28);
}
@media (prefers-reduced-motion: reduce) {
  .gsap-stacked-cards.gsk-stack-directional .gsk-stack-card { will-change: auto; }
}

/* v0.5.12 Reverse Stack: talia kart, kolejne karty zdejmowane na boki. */
.gsap-stacked-cards.gsk-stack-reverse.gsk-stack-enabled .gsk-stack-stage {
  perspective: 1450px;
  background: radial-gradient(ellipse at 50% 55%, rgba(77,64,98,.12), transparent 72%);
}
.gsap-stacked-cards.gsk-stack-reverse.gsk-stack-enabled .gsk-stack-card {
  transform-origin: 50% 50%;
  box-shadow: 0 20px 56px rgba(20,15,35,.26), 0 0 0 1px rgba(255,255,255,.15);
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .gsap-stacked-cards.gsk-stack-reverse .gsk-stack-card { will-change: auto; }
}

/* ========== Scroll Story v0.6.0 / Sticky Chapters ========== */
body.gsk-story-body-compatible:not(.elementor-editor-active) { overflow: visible !important; }
@supports (overflow: clip) {
 body.gsk-story-body-compatible:not(.elementor-editor-active) { overflow-x: clip !important; overflow-y: visible !important; }
}
.gsap-scroll-story { overflow-anchor: none; }
.gsap-scroll-story .gsk-story-stage { width:100%; max-width: 1280px; margin-inline:auto; min-width:0; display:flex; gap:clamp(16px,3vw,48px); align-items:stretch; isolation:isolate; }
.gsap-scroll-story .gsk-story-visual { min-width:0; flex: 1 1 48%; position:relative; border-radius:24px; overflow:hidden; background:#293F4F; }
.gsap-scroll-story .gsk-story-copy { min-width:0; flex:1 1 52%; display:flex; flex-direction:column; justify-content:center; gap:24px; }
.gsap-scroll-story .gsk-story-frame { width:100%; min-width:0; min-height:300px; overflow:hidden; border-radius:22px; }
.gsap-scroll-story .gsk-story-frame .elementor-widget-image, .gsap-scroll-story .gsk-story-frame .elementor-widget-container { width:100%;height:100%; }
.gsap-scroll-story .gsk-story-frame img { display:block; width:100%; height:100%; object-fit:cover; }
.gsap-scroll-story .gsk-story-chapter { min-width:0; }
.gsap-scroll-story.gsk-story-enabled .gsk-story-shell { position:relative;display:block;box-sizing:border-box;flex:0 0 auto;align-self:stretch;width:100%;min-width:0;max-width:1280px;margin-inline:auto;overflow:visible; }
.gsap-scroll-story.gsk-story-enabled .gsk-story-stage { position:sticky; top:var(--gsk-story-top,12px); height:clamp(470px,78svh,760px); gap:clamp(16px,3vw,48px); }
.gsap-scroll-story.gsk-story-enabled .gsk-story-visual, .gsap-scroll-story.gsk-story-enabled .gsk-story-copy { min-height:0; height:100%; align-self:stretch; }
.gsap-scroll-story.gsk-story-enabled .gsk-story-copy { position:relative; gap:0; overflow:hidden; }
.gsap-scroll-story.gsk-story-enabled .gsk-story-frame { position:absolute; inset:0; width:100%;height:100%;min-height:0; border-radius:24px; overflow:hidden; will-change:opacity,transform; }
.gsap-scroll-story.gsk-story-enabled .gsk-story-chapter { position:absolute; inset:0;display:flex;flex-direction:column;justify-content:center;gap:18px;padding:clamp(12px,2vw,38px);box-sizing:border-box;will-change:transform,opacity; }
@media (max-width:767px) {
 .gsap-scroll-story .gsk-story-stage { flex-direction:column;gap:12px; }
 .gsap-scroll-story .gsk-story-visual { flex:none; height:300px; min-height:0; border-radius:16px; }
 .gsap-scroll-story .gsk-story-copy { flex:none; }
 .gsap-scroll-story.gsk-story-enabled .gsk-story-stage { height:clamp(540px,82svh,770px); gap:12px; }
 .gsap-scroll-story.gsk-story-enabled .gsk-story-visual { flex:0 0 44%;height:44%; }
 .gsap-scroll-story.gsk-story-enabled .gsk-story-copy { flex:1 1 auto; height:auto; }
 .gsap-scroll-story.gsk-story-enabled .gsk-story-frame { border-radius:16px; }
 .gsap-scroll-story.gsk-story-enabled .gsk-story-chapter { padding:12px 8px; gap:10px; }
}
@media (prefers-reduced-motion:reduce) {
 .gsap-scroll-story .gsk-story-stage { height:auto!important;position:static!important; }
 .gsap-scroll-story .gsk-story-frame { position:relative!important;opacity:1!important;visibility:visible!important;transform:none!important; }
 .gsap-scroll-story .gsk-story-chapter { position:relative!important;opacity:1!important;visibility:visible!important;transform:none!important;pointer-events:auto!important; }
}


/* v0.6.1 / Scene Wipe — edytowalny layout jak Sticky Chapters,
 * ale przejście fotografii używa maski clip-path sterowanej scrollem.
 * Klasy wariantu są zapasowym rozpoznaniem, jeśli Elementor pominie atrybut.
 */
.gsap-scroll-story.gsk-story-scene-wipe-mode .gsk-story-visual {
  flex: 1 1 57%;
  background: #101E31;
}
.gsap-scroll-story.gsk-story-scene-wipe-mode .gsk-story-copy {
  flex: 1 1 43%;
}
.gsap-scroll-story.gsk-story-wipe-active .gsk-story-frame {
  will-change: clip-path, transform;
  backface-visibility: hidden;
}
.gsap-scroll-story.gsk-story-scene-wipe-mode .gsk-story-visual::after {
  content: '';
  position:absolute;
  z-index:10;
  inset:0;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09);
  border-radius:inherit;
  pointer-events:none;
}
@media(max-width:767px) {
  .gsap-scroll-story.gsk-story-scene-wipe-mode .gsk-story-visual { flex:0 0 44%; }
  .gsap-scroll-story.gsk-story-scene-wipe-mode .gsk-story-copy { flex:1 1 auto; }
}
@media(prefers-reduced-motion: reduce) {
  .gsap-scroll-story.gsk-story-scene-wipe-mode .gsk-story-frame {
    clip-path: none !important;
    will-change:auto;
  }
}


/* v0.6.2 — Scroll Story / Zoom Portal: an expanding circular aperture.
 * Previous chapters retain the shared sticky-shell and responsive geometry.
 */
.gsap-scroll-story.gsk-story-zoom-portal-mode .gsk-story-visual {
  flex:1 1 54%;
  background:#17112D;
  border-radius:28px;
  isolation:isolate;
}
.gsap-scroll-story.gsk-story-zoom-portal-mode .gsk-story-copy { flex:1 1 46%; }
.gsap-scroll-story.gsk-story-portal-active .gsk-story-frame {
  will-change:transform,clip-path;
  backface-visibility:hidden;
  transform-style:flat;
}
.gsap-scroll-story.gsk-story-zoom-portal-mode .gsk-story-visual::after {
  content:'';
  position:absolute;
  z-index:12;
  inset:0;
  border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);
  pointer-events:none;
}
@media (max-width:767px) {
 .gsap-scroll-story.gsk-story-zoom-portal-mode .gsk-story-visual { flex:0 0 44%; border-radius:17px; }
 .gsap-scroll-story.gsk-story-zoom-portal-mode .gsk-story-copy { flex:1 1 auto; }
}
@media (prefers-reduced-motion:reduce) {
 .gsap-scroll-story.gsk-story-zoom-portal-mode .gsk-story-frame {
   clip-path:none!important;
   will-change:auto;
 }
}


/* v0.6.3 — Scroll Story / Filmstrip Journey.
 * Entire photo frames physically advance through one clipped viewport.
 * The dark seam and subtle sprocket rail deliberately evoke a film reel.
 * No crossfade, clip-path wipe or zoom portal.
 */
.gsap-scroll-story.gsk-story-filmstrip-mode .gsk-story-visual {
  flex:1 1 58%;
  background:#10151c;
  border-radius:20px;
  isolation:isolate;
}
.gsap-scroll-story.gsk-story-filmstrip-mode .gsk-story-copy { flex:1 1 42%; }
.gsap-scroll-story.gsk-story-filmstrip-active .gsk-story-frame {
  will-change:transform;
  border-radius:14px;
  backface-visibility:hidden;
}
.gsap-scroll-story.gsk-story-filmstrip-active .gsk-story-visual::before {
  content:attr(data-gsk-reel-progress);
  position:absolute;
  top:18px;
  right:20px;
  z-index:20;
  font:600 12px/1.1 system-ui,sans-serif;
  letter-spacing:.2em;
  color:#fff;
  text-shadow:0 1px 8px rgba(0,0,0,.75);
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.34);
  background:rgba(12,18,26,.48);
  border-radius:2px;
  pointer-events:none;
}
.gsap-scroll-story.gsk-story-filmstrip-active .gsk-story-visual::after {
  content:'';
  position:absolute;
  z-index:19;
  inset:0;
  background:
    radial-gradient(circle at center,rgba(255,255,255,.72) 2px,transparent 3px) left top/16px 32px repeat-y,
    radial-gradient(circle at center,rgba(255,255,255,.72) 2px,transparent 3px) right top/16px 32px repeat-y,
    linear-gradient(90deg,rgba(8,13,18,.82) 0 17px,transparent 17px calc(100% - 17px),rgba(8,13,18,.82) calc(100% - 17px) 100%);
  pointer-events:none;
}
@media (max-width:767px) {
  .gsap-scroll-story.gsk-story-filmstrip-mode .gsk-story-visual { flex:0 0 44%;border-radius:15px; }
  .gsap-scroll-story.gsk-story-filmstrip-mode .gsk-story-copy { flex:1 1 auto; }
  .gsap-scroll-story.gsk-story-filmstrip-active .gsk-story-visual::before {
    top:9px;right:14px;font-size:10px;padding:6px 8px;
  }
  .gsap-scroll-story.gsk-story-filmstrip-active .gsk-story-visual::after {
    background:
      radial-gradient(circle at center,rgba(255,255,255,.72) 1px,transparent 2px) left top/10px 24px repeat-y,
      radial-gradient(circle at center,rgba(255,255,255,.72) 1px,transparent 2px) right top/10px 24px repeat-y,
      linear-gradient(90deg,rgba(8,13,18,.82) 0 10px,transparent 10px calc(100% - 10px),rgba(8,13,18,.82) calc(100% - 10px) 100%);
  }
}
@media (prefers-reduced-motion:reduce) {
  .gsap-scroll-story.gsk-story-filmstrip-mode .gsk-story-visual {
    height:auto!important;overflow:visible;display:flex;flex-direction:column;gap:14px;
  }
  .gsap-scroll-story.gsk-story-filmstrip-mode .gsk-story-frame {
    height:auto!important;min-height:220px;will-change:auto;
  }
  .gsap-scroll-story.gsk-story-filmstrip-mode .gsk-story-copy {
    height:auto!important;overflow:visible;display:flex;flex-direction:column;gap:16px;
  }
  .gsap-scroll-story.gsk-story-filmstrip-mode .gsk-story-visual::before,
  .gsap-scroll-story.gsk-story-filmstrip-mode .gsk-story-visual::after { display:none; }
}


/* v0.6.4 — Scroll Story / Page Turn.
 * A stack of 3D hinged, editable image containers; their photos fold away
 * to uncover the next page. No crossfade, wipe, circle mask or reel motion.
 */
.gsap-scroll-story.gsk-story-page-turn-mode .gsk-story-visual {
  flex:1 1 55%;
  perspective:1500px;
  perspective-origin:50% 50%;
  background:#171D29;
  border-radius:22px;
  isolation:isolate;
}
.gsap-scroll-story.gsk-story-page-turn-mode .gsk-story-copy { flex:1 1 45%; }
.gsap-scroll-story.gsk-story-page-active .gsk-story-frame {
  backface-visibility:hidden;
  transform-style:preserve-3d;
  will-change:transform,filter;
  overflow:hidden;
  border-radius:13px;
  box-shadow:0 14px 48px rgba(0,0,0,.25);
}
.gsap-scroll-story.gsk-story-page-active .gsk-story-visual::before {
  content:'';
  position:absolute;
  top:0;
  left:0;
  height:100%;
  width:15px;
  z-index:20;
  background:linear-gradient(90deg,rgba(0,0,0,.47),rgba(255,255,255,.15),transparent);
  pointer-events:none;
}
.gsap-scroll-story.gsk-story-page-right.gsk-story-page-active .gsk-story-visual::before {
  left:auto;
  right:0;
  transform:scaleX(-1);
}
.gsap-scroll-story.gsk-story-page-active .gsk-story-visual::after {
  content:attr(data-gsk-page-progress);
  position:absolute;
  bottom:16px;
  right:18px;
  z-index:21;
  font:600 12px/1.1 system-ui,sans-serif;
  letter-spacing:.17em;
  color:#fff;
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.42);
  border-radius:4px;
  background:rgba(10,16,26,.65);
  pointer-events:none;
}
@media(max-width:767px) {
  .gsap-scroll-story.gsk-story-page-turn-mode .gsk-story-visual {
    flex:0 0 44%;
    perspective:1000px;
    border-radius:16px;
  }
  .gsap-scroll-story.gsk-story-page-turn-mode .gsk-story-copy { flex:1 1 auto; }
  .gsap-scroll-story.gsk-story-page-active .gsk-story-frame { border-radius:12px; }
  .gsap-scroll-story.gsk-story-page-active .gsk-story-visual::before { width:10px; }
  .gsap-scroll-story.gsk-story-page-active .gsk-story-visual::after {
    right:10px;bottom:10px;font-size:10px;padding:6px 8px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .gsap-scroll-story.gsk-story-page-turn-mode .gsk-story-visual { perspective:none; }
  .gsap-scroll-story.gsk-story-page-turn-mode .gsk-story-frame {
    will-change:auto;
    filter:none!important;
    backface-visibility:visible!important;
  }
}
