/* Modern Lightbox CSS */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    display: block;
    /* Größe wird durch JavaScript kontrolliert */
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s ease;
}

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

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    pointer-events: auto;
    transition: background-color 0.3s ease;
}

.lightbox-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 98%;
        max-height: 98%;
    }
    
    .lightbox-close {
        top: -30px;
        font-size: 24px;
    }
    
    .lightbox-btn {
        font-size: 24px;
        padding: 8px 12px;
    }
    
    .lightbox-prev {
        margin-left: 10px;
    }
    
    .lightbox-next {
        margin-right: 10px;
    }
}

/* Spezielle Behandlung für Hochformate - entfernt, da JavaScript die Größe kontrolliert */