.thumbnail{
position: relative;
z-index: 0;
color:#DC143C;
text-decoration: none;
}

.thumbnail:hover{
background-color: transparent;
z-index: 50;
color:#00008B;
text-decoration: none;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: #F5F5F5;
text-decoration: none;
padding: 5px;
left: -100px;
border: 1px solid #808080;
visibility: hidden;
color: #000000;
text-decoration: none;
text-align:justify;
width: auto;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
text-decoration: none;
}

.thumbnail:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
text-decoration: none;
top: 0;
left: 50px; /*position where enlarged image should offset horizontally */

}