Hey paul,
Well there are a few important stuff to be considered.
first off, I decided to go for width:auto;height:100%, because I don’t want images of different heights spread out in the gallery, it will make it utterly ugly.
The other reason is for centering the images, some images can be bigger in height so for them I set width:100%;height:auto since they will always take 100% of the height of the box, and then I can center them using negative margin-left, about images with width > height I need to set negative margin-top to center.
We can continue discussing it on my new topic since its more relevant there:
Thanks.