/**
 * ============================================================================
 * WELLPOINT ID EXAMPLE LIGHTBOX
 * ============================================================================
 */

/* Main lightbox container - full screen overlay */
.wellpoint-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999; /* Above WordPress admin bar (999990) */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dark overlay background */
.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

/* Content container with white background */
.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Image styling */
.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    height: auto;
    display: block;
    border-radius: 4px;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    border: 2px solid #333;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-weight: bold;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: #333;
    color: #fff;
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    transform: scale(1.1);
}

/* Link styling in help text */
.help-text .wellpoint-id-example {
    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 500;
}

.help-text .wellpoint-id-example:hover,
.help-text .wellpoint-id-example:focus {
    color: #005177;
    text-decoration: none;
}

/**
 * Mobile Responsive Styles
 */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
        padding: 15px;
    }
    
    .lightbox-content img {
        max-height: 85vh;
    }
    
    .lightbox-close {
        top: 5px;
        right: 5px;
        font-size: 24px;
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        padding: 10px;
        border-radius: 4px;
    }
    
    .lightbox-close {
        top: 0;
        right: 0;
        font-size: 20px;
        width: 30px;
        height: 30px;
        border-width: 1px;
    }
}

/**
 * Accessibility improvements
 */
.lightbox-close:focus-visible {
    outline: 3px solid #0073aa;
    outline-offset: 3px;
}

/* Smooth transitions */
.wellpoint-lightbox {
    transition: opacity 0.2s ease;
}

/* Print styles - hide lightbox when printing */
@media print {
    .wellpoint-lightbox {
        display: none !important;
    }
}
