Lightbox functionality encompasses the JS domain (since user is interacting with the page) as well as CSS domain (since the change that is happening on the page is purely of style/design).
So, the breakup which you have given does not unequivocally argue for the use of JS.