A modal window with an image that pops up by clicking on a preview and having its own unique link is required (if the user clicks on it, the same page opens with the modal window already loaded). This is how the view of VKontakte images is implemented.
Maybe there is somewhere ready libraries that give this functionality?
Or it’s not necessarily the images, at least just a library for creating modal windows that can be opened from the links.
Thanks a lot in advance!