Fixed lightbox sizing bug

- edge case where lightbox's height or width will be greater than the
browser window's height or width