/**
 * BW Gallery Lightbox Styles
 */

.bwg-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    cursor: pointer;
}

.bwg-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bwg-lightbox-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.bwg-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    margin: 0 auto;
}

.bwg-lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.875em; /* Relative sizing */
    font-family: inherit;
    line-height: 1.4;
}

/* Navigation */
.bwg-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    font-size: 30px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.bwg-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bwg-lightbox-prev {
    left: 20px;
}

.bwg-lightbox-next {
    right: 20px;
}

/* Close button */
.bwg-lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: opacity 0.3s ease;
}

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

/* Loading indicator */
.bwg-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.25em; /* Relative sizing */
    font-family: inherit;
}

/* Counter */
.bwg-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: 0.875em; /* Relative sizing */
    font-family: inherit;
}

/* Animations */
.bwg-lightbox.fade-in {
    animation: bwgFadeIn 0.3s ease;
}

.bwg-lightbox.fade-out {
    animation: bwgFadeOut 0.3s ease;
}

@keyframes bwgFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes bwgFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .bwg-lightbox-nav {
        font-size: 24px;
        padding: 8px 15px;
    }
    
    .bwg-lightbox-prev {
        left: 10px;
    }
    
    .bwg-lightbox-next {
        right: 10px;
    }
    
    .bwg-lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}