/* FilmstripCL v1.3.0 */

.filmstripcl-wrapper {
    position: relative;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
    background: transparent;
}

.filmstripcl-canvas {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* ── Pin / Sticky ─────────────────────────────────────────────────────────── */

.filmstripcl-pinned {
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
    border-radius: 4px;
    /* sticky: keine Änderung an overflow nötig */
}

.filmstripcl-unpin-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 200;
    background: rgba(0,0,0,0.65);
    border: 1px solid rgba(255,255,255,0.25);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

.filmstripcl-unpin-btn:hover {
    background: rgba(0,0,0,0.85);
    transform: scale(1.04);
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */

.filmstripcl-lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.filmstripcl-lightbox.is-open { display: flex; }

.filmstripcl-lightbox-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.93);
    cursor: pointer;
    animation: fscl-fadein 0.2s ease;
}

.filmstripcl-lightbox-image {
    position: relative;
    z-index: 100000;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.9);
    animation: fscl-slideup 0.25s ease;
}

.filmstripcl-lightbox-close {
    position: absolute;
    top: 16px; right: 20px;
    z-index: 100001;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1;
}
.filmstripcl-lightbox-close:hover {
    background: rgba(255,255,255,0.28);
    transform: rotate(90deg);
}

@keyframes fscl-fadein  { from{opacity:0} to{opacity:1} }
@keyframes fscl-slideup { from{opacity:0;transform:translateY(14px) scale(.97)} to{opacity:1;transform:none} }

@media (max-width:767px) {
    .filmstripcl-lightbox-image { max-width:95vw; max-height:80vh; }
    .filmstripcl-lightbox-close { top:10px; right:10px; width:38px; height:38px; font-size:20px; }
}

@media (prefers-reduced-motion: reduce) {
    .filmstripcl-lightbox-image,
    .filmstripcl-lightbox-overlay { animation: none; }
}


