/**
 * Double Image Gallery - Lightbox Styles
 */

/* Lightbox container */
.dg-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

/* Overlay */
.dg-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

/* Container */
.dg-lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content */
.dg-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

/* Image container */
.dg-lightbox-image-container {
    position: relative;
    text-align: center;
}

/* Image */
.dg-lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

/* Caption */
.dg-lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 14px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    pointer-events: none;
}

/* Close button */
.dg-lightbox-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dg-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Navigation buttons */
.dg-lightbox-prev,
.dg-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.dg-lightbox-prev {
    left: 20px;
}

.dg-lightbox-next {
    right: 20px;
}

.dg-lightbox-prev:hover,
.dg-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Disable body scroll when lightbox open */
body.dg-lightbox-open {
    overflow: hidden;
}

/* Loading indicator */
.dg-lightbox-image.loading {
    opacity: 0.5;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dg-lightbox-prev,
    .dg-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .dg-lightbox-prev {
        left: 10px;
    }
    
    .dg-lightbox-next {
        right: 10px;
    }
    
    .dg-lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 10px;
        right: 10px;
    }
    
    .dg-lightbox-caption {
        font-size: 12px;
        bottom: -35px;
    }
}

@media (max-width: 480px) {
    .dg-lightbox-prev,
    .dg-lightbox-next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .dg-lightbox-caption {
        font-size: 11px;
        bottom: -30px;
    }
}

/* Animation */
@keyframes dg-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.dg-lightbox-image {
    animation: dg-fade-in 0.3s ease;
}