.gallerycontainer{ position: relative; }
.thumbnail:hover{background-color: transparent;}
.thumbnail span{ /*CSS for enlarged image*/
background-color: transparent; visibility: hidden; color: black; text-decoration: none; position: absolute; left: -1000px; }

.thumbnail span img{ background-color: #eee3e0; position: absolute; top: -174px; padding: 5px 20px; border: solid 3px #84116c; /*CSS for enlarged image*/

}

.thumbnail:hover span{ /*CSS for enlarged image*/
left: 15%; z-index: 50; visibility: visible; }