/**
 * MaxMobiel Lightbox Styles
 * 
 * CSS styles for the MaxMobiel gallery lightbox.
 * Add this to your theme's CSS or include it separately.
 */

/* Lightbox container */
.maxmobiel-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    z-index: 9999;
    overflow: hidden;
}

/* Prevent scrolling when lightbox is open */
body.maxmobiel-lightbox-open {
    overflow: hidden;
}

/* Lightbox content container */
.maxmobiel-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

/* Lightbox image */
.maxmobiel-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

/* Close button */
.maxmobiel-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.maxmobiel-lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Navigation buttons */
.maxmobiel-lightbox-prev,
.maxmobiel-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.maxmobiel-lightbox-prev {
    left: 20px;
}

.maxmobiel-lightbox-next {
    right: 20px;
}

.maxmobiel-lightbox-prev:hover,
.maxmobiel-lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Image counter */
.maxmobiel-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .maxmobiel-lightbox-prev,
    .maxmobiel-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .maxmobiel-lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
    
    .maxmobiel-lightbox-prev {
        left: 10px;
    }
    
    .maxmobiel-lightbox-next {
        right: 10px;
    }
}

/* Animation for lightbox opening */
@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.maxmobiel-lightbox.active {
    animation: lightboxFadeIn 0.3s ease forwards;
}