/* DasBlatt Lightbox Styles v1.2.3 */

.simple-lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.simple-lightbox-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.simple-lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: inline-block;
}

.simple-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.simple-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1000000;
    line-height: 1;
    user-select: none;
}

.simple-lightbox-close:hover {
    color: #ccc;
}

.simple-lightbox-prev,
.simple-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    padding: 20px;
    transition: color 0.3s ease;
    user-select: none;
    z-index: 1000000;
}

.simple-lightbox-prev:hover,
.simple-lightbox-next:hover {
    color: #ccc;
}

.simple-lightbox-prev {
    left: 20px;
}

.simple-lightbox-next {
    right: 20px;
}

.simple-lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    font-size: 16px;
    font-family: Arial, sans-serif;
    text-align: center;
    line-height: 1.5;
    padding: 12px 20px;
    background-color: rgba(50, 50, 50, 0.9);
    backdrop-filter: blur(5px);
}

.simple-lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .simple-lightbox-prev,
    .simple-lightbox-next {
        font-size: 35px;
        padding: 10px;
    }
    
    .simple-lightbox-prev {
        left: 10px;
    }
    
    .simple-lightbox-next {
        right: 10px;
    }
    
    .simple-lightbox-close {
        font-size: 30px;
        top: -35px;
    }
}

/* Verhindere Scrollen wenn Lightbox aktiv ist */
body.simple-lightbox-active {
    overflow: hidden;
}

