So I'm trying to figure out how to create a square photo grid that has a mixture of landscape and portrait orientated (cropped in) pictures that when clicked will popup a larger version keeping the picture orientation and not just showing a larger version of the square.