.gallerycontainer{
position: relative;
height: 280px;
width: 100%;
}

.gallerycontainer_alt{
position: relative;
height: 450px;
width: 100%;
}

.gallerycontainer_alt_middle{
position: relative;
height: 370px;
width: 100%;
}

.thumbnail img{
border: 1px dotted #21459C;
margin: 0 5px 5px 0;
}

.thumbnail:hover{
background-color: transparent;
}

.thumbnail:hover img{
border: 1px dotted #21459C;
}

.thumbnail span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dotted #21459C;
visibility: hidden;
color: #21459C;
text-decoration: none;
}

.thumbnail span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 0;
left: 330px; /*position where enlarged image should offset horizontally */
z-index: 50;
}

/* Artikkelbilder */

.thumbnail_alt img{
border: 1px dotted #21459C;
margin: 0 5px 5px 0;
}

.thumbnail_alt:hover{
background-color: transparent;
}

.thumbnail_alt:hover img{
border: 1px dotted #21459C;
}

.thumbnail_alt span{ /*CSS for enlarged image*/
position: absolute;
background-color: lightyellow;
padding: 5px;
left: -1000px;
border: 1px dotted #21459C;
visibility: visible;
color: #21459C;
text-decoration: none;
}

.thumbnail_alt span img{ /*CSS for enlarged image*/
border-width: 0;
padding: 2px;
}

.thumbnail_alt:hover span{ /*CSS for enlarged image*/
visibility: visible;
top: 0;
left: 330px; /*position where enlarged image should offset horizontally */
z-index: 50;
}

.default{
position: absolute;
background-color: lightyellow;
padding: 5px;
border: 1px dotted #21459C;
color: black;
text-decoration: none;
visibility: visible;
top: 0;
left: 330px; /*position where enlarged image should offset horizontally */
z-index: 50;
}

.default img{
border: 1px dotted #21459C;
margin: 0 5px 5px 0;
}
