/* SVG Lightbox Styles */

/* Overlay (abgedunkelter Hintergrund) */
.svg-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: zoom-out;
}

.svg-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Lightbox Container */
.svg-lightbox-container {
    position: fixed;
    z-index: 9999;
    cursor: zoom-out;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lightbox Bild */
.svg-lightbox-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
}

/* Content SVG Cursor */
.content-svg {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* no box-shadow: it would frame the rectangular img around the drawn window */
.content-svg:hover {
    transform: scale(1.02);
}

/* Close Button */
.svg-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.svg-lightbox-close.active {
    opacity: 1;
    visibility: visible;
}

.svg-lightbox-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Animation Klassen */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Prevent body scroll when lightbox is open */
body.svg-lightbox-open {
    overflow: hidden;
}
