/* Swiper Lightbox Styles */
.swiper-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.swiper-lightbox-modal.active {
    display: block;
    opacity: 1;
}

.swiper-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.swiper-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.swiper-lightbox {
    width: 90%;
    height: 80%;
    max-width: 1200px;
    pointer-events: auto;
}

.swiper-lightbox .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.swiper-lightbox .swiper-zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: move;
}

/* Close Button */
.swiper-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: none;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s;
    pointer-events: auto;
}

.swiper-lightbox-close:hover {
    opacity: 0.7;
}

/* Caption */
.swiper-lightbox-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 16px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    max-width: 80%;
    pointer-events: none;
}

/* Navigation anpassen */
.swiper-lightbox .swiper-button-prev,
.swiper-lightbox .swiper-button-next {
    color: white;
    width: 50px;
    height: 50px;
}

.swiper-lightbox .swiper-button-prev:after,
.swiper-lightbox .swiper-button-next:after {
    font-size: 30px;
}

/* Pagination */
.swiper-lightbox .swiper-pagination {
    color: white;
    bottom: 70px;
}

/* Zoom Cursor */
.swiper-lightbox .swiper-zoom-container.swiper-zoom-scaled img {
    cursor: grab;
}

.swiper-lightbox .swiper-zoom-container.swiper-zoom-scaled img:active {
    cursor: grabbing;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .swiper-lightbox {
        width: 100%;
        height: 70%;
    }
    
    .swiper-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .swiper-lightbox .swiper-button-prev,
    .swiper-lightbox .swiper-button-next {
        width: 40px;
        height: 40px;
    }
    
    .swiper-lightbox .swiper-button-prev:after,
    .swiper-lightbox .swiper-button-next:after {
        font-size: 20px;
    }
    
    .swiper-lightbox-caption {
        font-size: 14px;
        bottom: 20px;
    }
}