Native wp gallery with infinite scroll or a portfolio function. Anyone allowing a shadowbox link

Do you guys know to tell me a plugin or anyway to have an image gallery opening external links in a shadowbox? It can be through the native wp gallery or using a portfolio plugin. My intent is to have all my images opening trough an ajax infinite scroll to show my portfolio as it is here now, but with this feature to get a better user experience and speed:
Thank you! :wink: