/* default link style - needed to make the :active work correctly in IE */
a, a:visited, a:hover, a:active {
color:#000;
}
/* style the outer cntaining div to fit the landscape, portrait and buttons */
#album {
width:320px; 
height:360px; 
background:#eee url(gallery/wormitbeach.jpg) 0 40px no-repeat;
border:1px solid #aaa;
margin:0 auto;
}
/* remove the padding margin and bullets from the list. Add a top margin and width to fit the images and a position relative */
.gallery2 {
padding:0; 
margin:320px 0 0 0; 
list-style-type:none; 
position:relative; 
width:320px;
}
/* remove the default image border */
.gallery2 img {
border:0;
}
/* make the list horizontal */
.gallery2 li {
float:left;
}
/* style the link text to be central in a surrounding box */
.gallery2 li a, .gallery2 li a:visited {
font-size:11px;
float:left; 
text-decoration:none; 
color:#000; 
background:#fff; 
text-align:center; 
width:26px; 
height:26px; 
line-height:24px; 
border:1px solid #444;
margin:2px;
}
/* position the images using an absolute position and hide them from view */
.gallery2 li a img {
position:absolute; 
top:-320px; 
left:0; 
visibility:hidden; 
border:0;
}
/* fix the top position for the landscape images */
.gallery2 li a img.landscape {
top:-280px;
}
/* fix the left position for the portrait images */
.gallery2 li a img.portrait {
left:0;
border-left:40px solid #eee;
border-right:40px solid #eee;
}
/* style the hover background color for the text boxes */
.gallery2 li a:hover {
background:#ddd;
}
/* style the active/focus colors for the text boxes (required for IE) */
.gallery2 li a:active, .gallery2 li a:focus {
background:#444; 
color:#fff;
}
/* make the images visible on active/focus */
.gallery2 li a:active img, .gallery2 li a:focus img {
visibility:visible;
}