.lightbox-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s;
}
.lightbox-overlay.active { opacity: 1; visibility: visible; }
.lightbox-overlay img {
    max-width: 90%; max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    opacity: 0; transition: opacity 0.4s ease;
}
.lightbox-overlay img.visible { opacity: 1; }

/* Navigation */
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    color: white; font-size: 3rem; cursor: pointer; user-select: none;
    padding: 15px; background: rgba(0,0,0,0.3); border-radius: 50%;
    touch-action: manipulation;
}
.lightbox-nav.prev { left: 15px; }
.lightbox-nav.next { right: 15px; }

/* Bildzähler */
.lightbox-counter {
    position: absolute; top: 20px; left: 50%;
    transform: translateX(-50%);
    color: white; font-size: 1.2rem;
    background: rgba(0,0,0,0.5); padding: 6px 12px;
    border-radius: 5px; z-index: 10000;
    pointer-events: none;
}
.lightbox-counter.flash {
    animation: flashCounter 0.4s ease;
}
@keyframes flashCounter {
    0%   { transform: translateX(-50%) scale(1); opacity: 0.6; }
    50%  { transform: translateX(-50%) scale(1.2); opacity: 1; }
    100% { transform: translateX(-50%) scale(1); opacity: 1; }
}

/* Mobile Optimierungen */
@media(max-width: 768px){
    .lightbox-nav {
        font-size: 2.5rem;
        padding: 12px;
    }
    .lightbox-counter { font-size: 1rem; padding: 4px 8px; top: 15px; }
}