// ============================================================================
// Stylescape | Lightbox Manager
// ============================================================================
// Creates and manages lightbox overlays for viewing images and content.
// Supports data-ss-lightbox attributes for declarative configuration.
// ============================================================================
/**
* Configuration options for LightboxManager
*/
export interface LightboxManagerOptions {
/** CSS class for active state */
activeClass?: string;
/** Close on backdrop click */
closeOnBackdrop?: boolean;
/** Close on Escape key */
closeOnEscape?: boolean;
/** Animation duration in ms */
animationDuration?: number;
/** Callback when lightbox opens */
onOpen?: () => void;
/** Callback when lightbox closes */
onClose?: () => void;
}
/**
* Lightbox manager for viewing content in fullscreen overlay.
* Supports images, HTML content, and custom close behavior.
*
* @example JavaScript
* ```typescript
* const lightbox = new LightboxManager("myLightbox")
*
* // Show with image
* lightbox.showLightbox('
')
*
* // Show with custom content
* lightbox.showLightbox('