Summary
The same process would be for any images inside of a query loop. Set the 'link to' to 'media file' and make sure the link selector matches the link. the lightbox is just looking for the links and will load up whatever it finds at the href. (which will be the images in this case)