I have a problem which may be similar to the above. This is Photogallery version 1.4.15.
When I have multiple galleries on a page, I select any one of them, click on an image and it opens the lightbox and cycles through them as expected. However when I click on an image in any other gallery, it shows that image and then goes to the second image in the first gallery and cycles through the first gallery after that.
This happens both with separate galleries on the same page and with a gallery group showing say 12 galleries.
See example at this page https://boltondigital.org/members-photos/