/* ====================================================================== */
/* FULLWIDTH LIGHTBOX STYLES - Consolidated */
/* ====================================================================== */

.fullwidth-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.fullwidth-lightbox-image {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fullwidth-lightbox-overlay.active .fullwidth-lightbox-image {
    opacity: 1;
    transform: scale(1);
}

.fullwidth-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.fullwidth-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
    transform: rotate(90deg);
}

/* Lightbox Navigation Arrows */
.lightbox-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 30px;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-arrow-left {
    left: 20px;
}

.lightbox-arrow-right {
    right: 20px;
}

.lightbox-arrows:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Image Loading Indicator */
.fullwidth-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
    display: none;
}

.fullwidth-lightbox-overlay.loading .fullwidth-lightbox-loading {
    display: block;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
    .fullwidth-lightbox-overlay {
        padding: 20px;
    }
    
    .fullwidth-lightbox-image {
        max-width: 90vw;
        max-height: 70vh;
        object-fit: contain;
    }
    
    .fullwidth-lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .lightbox-arrows {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }
    
    .lightbox-arrow-left {
        left: 10px;
    }
    
    .lightbox-arrow-right {
        right: 10px;
    }
}

/* Accessibility Enhancements */
.fullwidth-lightbox-close:focus,
.lightbox-arrows:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Keyboard Navigation Support */
.fullwidth-lightbox-overlay[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .fullwidth-lightbox-close,
    .lightbox-arrows {
        background: rgba(0, 0, 0, 0.8);
        border: 3px solid white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .fullwidth-lightbox-overlay,
    .fullwidth-lightbox-image,
    .fullwidth-lightbox-close,
    .lightbox-arrows {
        transition: none;
    }
}