Try recreating the custom lightbox from scratch again. In fact, I would suggest following this tutorial:
Hope this helps