Removed one useless level in the HTML file. Fixed the overlapping problem with z-index set to 1. Tried to change the display property as you suggested to Alice, but didn't find a way to work around the 4px-size difference at the bottom of the kitten photo yet.