Why don’t you simply use the gallery field?
Depending on your framework/theme would depend how you handle the lightbox.
I use Bootstrap as a framework for my themes, so I tend to use the bootstrap lightbox
However, there are various plugins you can use to add the lightbox effect