@media screen and (min-width: 768px) {
    /* Styling for the overlay */
    #lightbox-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.8);
        z-index: 999;
    }
    
    #close-button {
        position: absolute;
        top: 10px;
        right: 20px;
        font-size: 30px;
        color: white;
        cursor: pointer;
    }
    
    #lightbox-content {
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: 90%;
        max-height: 90%;
        overflow: hidden; /* Verhindert, dass das Bild den Container übersteigt */
    }
    
    #lightbox-image {
        max-width: 100%;
        max-height: 100%;
        height: auto;
        transition: transform 0.3s ease; /* Hinzugefügt für die Animation */
    }
    
    #lightbox-overlay.active #lightbox-image {
        transform: scale(0.9); /* Skaliert das Bild leicht für den gewünschten Effekt */
    }
    }
    
    @media screen and (max-width: 767px) {
        /* Overlay für Mobilgeräte ausblenden */
        #lightbox-overlay {
          display: none;
        }
    }