.gallerycontainer{
    position: relative;
    /*Add a height attribute and set to largest image's height to prevent overlaying*/
}

.gallerycontainer a {
    text-decoration:none;
}

.thumbnail a {
    text-decoration:none;
}

.thumbnail img {
    border: 1px solid white;
    margin: 0;
    text-decoration:none;
}

.thumbnail:hover{
    background-color: transparent;
}

.thumbnail span {
    position: absolute;
    background-color: #CCDDFF;
    padding: 2px;
    padding-left:2px;
    margin:0px;
    left: -1000px;
    visibility: hidden;
    color: black;
    text-align:center;
    top: -2000px;
    border-style:none;
}

.thumbnail span img { 
    border-style:none;
    padding: 2px;
}

.thumbnail:hover span { 
    visibility: visible;
    top: 0px;
    left: 370px; 
    z-index: 50;
    border-style:solid;
    border-color:#000;
    border-width:1px;
    text-decoration:none;
}
