You can use this plugin to solve your Gallery and Lightbox problems. I have worked over 2 days for this plugin to be usable on WordPress
I have my own server and thats why I can create most efficient plugins. I am always looking at the logs and PHP warnings. Normally shared hosting users cant see these warnings.
You can look to the “.php” files to understand how this plugin works.
I recommend you the plugins that I have created.
You can contact me for donations! Thanks in advance.