.thumbnail-links{
position: relative;
z-index: 0;
}

.thumbnail-links:hover{
background-color: transparent;
z-index: 50;
}

.thumbnail-links span{ /*CSS for enlarged image*/
position: absolute;
background-color: #FFFFFF;
padding: 5px;
left: -500px;
border: 1px dashed gray;
visibility: hidden;
color: black;
text-decoration: none;
}

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

.thumbnail-links:hover span{ /*CSS for enlarged image on hover*/
visibility: visible;
top: 25px;
left: 25px; /*position where enlarged image should offset horizontally */
}


.thumbnail-links_right{
position: relative;
z-index: 0;
}

.thumbnail-links_right:hover{
background-color: transparent;
z-index: 50;
}

.thumbnail-links_right span{ /*CSS for enlarged image*/
position: absolute;
padding: 5px;
left: -500px;
visibility: hidden;
color: black;
text-decoration: none;
}

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

.thumbnail-links_right:hover span{ /*CSS for enlarged image on hover*/
visibility: visible; 
top: 15px;
right: 15px; /*position where enlarged image should offset horizontally */

}