@Mohammad what is it that you perceive to be the fundamentals of a lightbox?
To me they just seem like a table of images you can click or hover to view larger versions. From this perspective the are not really a thing but a style, and can be constructed in many ways. In tiddlywiki we can even bring found html into tiddlers .
When I look at https://github.com/nextapps-de/spotlight
a large amount of the features listed include things tiddlywiki is handling itself and we do not need to import in a lightbox solution.
There is a long history of displaying images, especially Photo galleries, so I would not be surprised if we can harvest prior art and build something suitable.
So I genuinely ask what do you fundamentally want in a lightbox?