/* === Overlay Hintergrund === */
#lightbox-overlay {
	    filter: none !important;
    backdrop-filter: none !important;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

/* Wird angezeigt, wenn aktiv */
#lightbox-overlay.active {
    display: flex;
}

/* === Bild in der Lightbox === */
/* === Bild in der Lightbox === */
#lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 2s ease;
    position: relative;
    z-index: 1;
}

/* Wird gesetzt via JS, wenn Bild geladen */
#lightbox-img.loaded {
    opacity: 1;
}

/* === Spinner zentriert über dem Bild === */
#lightbox-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border: 6px solid rgba(255,255,255,0.2);
    border-top: 6px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* === Navigationspfeile === */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    z-index: 6;
    user-select: none;
    padding: 0 15px;
    text-shadow: 0 0 10px #000;
}
#lightbox-prev { left: 10px; }
#lightbox-next { right: 10px; }

/* === Schließen-Button === */
#lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 6;
    text-shadow: 0 0 10px #000;
    user-select: none;
}

/* === Blur auf dem body (nicht html!) === */
body.lightbox-blur > *:not(#lightbox-overlay) {
    filter: blur(8px);
    transition: filter 0.3s ease;
}
#lightbox-play {
    position: absolute;
    bottom: 25px;
    right: 25px;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    z-index: 6;
    text-shadow: 0 0 10px #000;
    user-select: none;
    opacity: 0.7;
    transition: opacity 0.3s;
}
#lightbox-play:hover {
    opacity: 1;
}
#lightbox-video {
    max-width: 90vw;
    max-height: 90vh;
    display: none;
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(0,0,0,0.9);
}