/* Hintergrund-Overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.88);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Overlay sichtbar */
.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Großes Bild */
.lightbox-image {
    display: block;
    max-width: 95%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;

    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
}

/* Schließen-Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;

    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    background: none;
    border: none;
}

.lightbox-close:hover {
    color: #ccc;
}/* Navigationspfeile */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 50px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;

    font-size: 42px;
    cursor: pointer;

    transition: background 0.2s ease;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.7);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Auf kleineren Bildschirmen */
@media (max-width: 600px) {
    .lightbox-overlay {
        padding: 15px;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 80vh;
    }

    .lightbox-nav {
        width: 38px;
        height: 48px;
        font-size: 32px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
    }
}