Updates and improvements on layout

Now adjusts the size of elements based on orientation, in thumbs, main
image, and lightbox