lokesh/lightbox2 — pull request #337 by Xatenev (2014-10-20 17:38:10+00:00)
Title: Fixed Shadow Filter on Mobile Devices

Fixed a Bug on Mobile Devices, which can be seen here:
https://github.com/lokesh/lightbox2/issues/336
![bug](https://cloud.githubusercontent.com/assets/9317809/4705756/f0f0ea58-587e-11e4-94f0-079d28495b6f.png)

The width for the black filter(lightboxOverlay) was set to window.width. The problem is that the mobile Devices scale the website smaller, so you have to use document.width, which is always the entire screen.

Aswell there is a bug with position absolute on mobile devices which can be seen here:
http://stackoverflow.com/questions/16518334/using-position-absolute-in-mobile-responsive-design

You have to have a parent element with position:relative on a mobile device. Otherwise position:absolute will break.