/* Effektgruppe: media/flipbook; Reihenfolge in inc/assets.php. */

/* Äußerer Container für den Scroll-Weg */
.flipbook-wrapper {
    position: relative;
    width: 100%;
    height: 450vh; /* Scroll-Dauer */
    margin: 0;
}

/* Fixiert den Content beim Scrollen */
.flipbook-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Der sichtbare Rahmen */
.flipbook-container {
    position: relative;
    width: 100%;
    margin-top: 20vh !important;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    background: #000;
    /* Wir setzen die aspect-ratio via JS, damit sie exakt zum Bild passt */
}

#flipbook-canvas, .fb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#flipbook-canvas {
    z-index: 1;
    display: block;
}

/* Erweitere die bestehende .fb-overlay Klasse */
.fb-overlay {
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
    pointer-events: none;
    
    /* Das hier verhindert das Strecken der Overlays */
    object-fit: cover;
    object-position: center;
}
/* Mobile Optimierung */
@media (max-width: 1024px) {
    .flipbook-wrapper { height: 450vh; }
    .flipbook-container { 
        margin-top: 0vh !important;
        width: 95%;
         height: 50vh; }
}
