/* Effektgruppe: images/story-gallery; Reihenfolge in inc/assets.php. */

.hidden-story-gallery {
    position: relative;
    width: 100%;
    overflow: visible;
  }
  
  /* Fallback: Standardmäßig sichtbar */
  .hidden-story-gallery .kb-gallery-ul {
    transition: opacity 0.3s ease;
  }
  
  /* Erst wenn JS für DIESE Galerie bereit ist, blenden wir die originale Liste aus */
  .hidden-story-gallery.js-initialized .kb-gallery-ul {
    display: none !important;
  }
  
  /* Der schlaue Sticky-Rahmen */
  .story-fullscreen-view {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .hidden-story-gallery.js-initialized .story-fullscreen-view {
    opacity: 1;
  }
  
  /* Fester, stabiler Rahmen innerhalb des Sticky-Views */
  .story-image-slider-container {
    position: relative;
    height: 100%;
    width: 100%;
    max-width: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }
  
  /* Die beiden permanenten Bilder */
  .story-slider-img {
    position: absolute;
    /* object-fit fängt das Verhältnis sauber ab */
    object-fit: contain; 
    /* Minimal Platz lassen (z.B. 95%), damit der Schatten/Radius nicht am Rand clippt */
    max-height: 80%; 
    max-width: 100%; 
    border-radius: 25px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    will-change: transform, opacity;
  }
