/* remove the padding margin and bullets from the list. Add a top margin and width to fit the images and a position relative */
.gallery {
padding:0; 
margin:382px 0 0 -5px; 
list-style-type:none; 
position:relative; 
}
/* remove the default image border */
.gallery img {
border: 0;
}
/* make the list horizontal */
.gallery li {
padding-left: 4px;
float:left;
}
/* style the link text to be central in a surrounding box */
.gallery li a, .gallery li a:visited {
font-size:11px;
float:left; 
text-decoration:none; 
color: #eee;
background:#eee; 
text-align:left; 
width:32px; 
height:26px; 
line-height:24px; 
border:1px solid #444;
margin:-2px;

}
/* position the images using an absolute position and hide them from view */
.gallery li a img {
position:absolute; 
top:-320px; 
left:0; 
visibility:hidden; 
border:0;
}
/* fix the top position for the landscape images */
.gallery li a img.landscape {
top:-382px;
width: 537px;
margin-left: 5px;
}
/* fix the left position for the portrait images */
.gallery li a img.portrait {
border-left:40px solid #eee;
border-right:40px solid #eee;
}
/* style the hover background color for the text boxes */
.gallery li a:hover {
background:#006600;
color: #006600;
}
/* style the active/focus colors for the text boxes (required for IE) */
.gallery li a:active, .gallery li a:focus {
background: #006600; 
color:#006600;
}
/* make the images visible on active/focus */
.gallery li a:hover img, .gallery li a:focus img {
visibility:visible;
}
