How to create a lightbox

The idea of lightbox is in summoning a window with an image or video allowing users to see a larger size of the object in the same tab . It’s good for a user as it doesn’t require him to perform too many actions. It’s also good for a designer who needs to display a large amount of content on one page.