Is there a way to link a specific pro galley image to the product details for that image?

Hi, I just got off a 25 minute call with support, and they weren’t able to help me. I want to have a portfolio of images that someone can browse through (set up in pro gallery) and then in expanded view, be able to add a link to the product details for that image. However, because the product pages are dynamic, any links I create in pro gallery go to the full list of products, rather than a specific product. Does anyone know a workaround for this? Thanks!