Hook fired with the new index on every in-lightbox navigation step.
Opens a lightbox showing imageSrc. When galleryImages holds more than
one URL, arrow navigation and a counter are enabled; startIndex selects
the initial slide (falling back to the position of imageSrc).
URL of the image to display.
OptionalgalleryImages: string[]Optional gallery URLs enabling navigation.
OptionalstartIndex: numberOptional initial index into galleryImages.
Closes the active lightbox, tears down listeners, and restores focus.
Returns true while a lightbox is mounted in the document.
Fullscreen image lightbox with optional gallery navigation (arrows, counter, keyboard, focus trap). Implements Lightbox.
A single instance is reused across opens; LightboxManager.open first closes any active lightbox. The exported lightbox singleton is the one wired by attachGalleryEvents.