We’re using featherlight for the image lightbox. It doesn’t look like they have a gallery feature built in (for some reason?). Maybe because it’s so light.
They do have this example, which is intended to work when using a gallery: https://github.com/noelboss/featherlight/wiki/Gallery:-showing-a-caption
You’d have to replace the
$ instances with
Might be worth a shot?