I got stuck in a little problem and hope you can give me some hints so I can figure the solution out.
Some things I figured out: ImageGalleryPage_album.ss includes GalleryUI_layout.ss. $GalleryItem somehow includes Lightbox_item.ss. I don't know where the variable $ViewLink is built, which I guess is crucial to my solution. I guess I then will have to copy some code from the lightbox.js and make it available via ImageGalleryPage_album.ss. href="$ViewLink", which contains the ID of the Image, will then update the page.
To be honest, I find programming quite difficult if not practised continuously.
Best regards and thanks,
Visualization of the use case: