How to open a link in a new tab:

WordPress Image Lightbox