Only by custom code (should be simple).
Example of lightbox plugin (fancybox3):
You need ± to do the same steps (add assets — add html + install) - with javascript slider plugin (first create codepen and learn the plugin).
Some plugins: Swiper, owl, lightslider, flickity.
Slider of photos open in lightbox is more complex (easier to create clickable slider - and card go to inner page with gallery)