Any insights as to why the quoted code for displaying captions in lightbox mode only works when navigating the gallery with mouse or touch input, and not keyboard? With the arrow keys, the next image displays but the caption remains from the previously viewed image, and then fades out after one second.
Here's a link to a gallery demonstrating this: https://dove-bear-a9r4.squarespace.com/figures
Password: site123
Thanks for any help!!