/* Based on CSS from CSSPlay: */
/* http://www.cssplay.co.uk/menu/photo_album.html */
/* though heavily modified to include thumbnails and captions */
/* by Carol Kankelborg, Sept. 2007. */     


/* Styles needed for CSS-based Photo album */
/* Photos are 500 x 375px (H x W) */
/* SLR Photos are 500 x 332px     */
/* Bottom row for Thumbnails is 75 px high (B) */

/* default link style - needed to make the :active work correctly in IE */
a, a:visited, a:hover, a:active {
color:#000;
}
/* style the outer containing div to fit the landscape, portrait and buttons  */
/* Height of album = H + B px; width = H */
/* background offset = H - W - B         */

#album {
width:520px; /* 10 px either side */
height:670px; 
background: navajowhite 10px 120px no-repeat;
background-repeat:   no-repeat;
border:1px solid saddlebrown;
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 */
.gallery {
padding:0; 
margin:550px 0 0 0; 
list-style-type:none; 
position:relative; 
width:520px;
}

/* remove the default image border */
.gallery img {
border:0;
}

/* make the list horizontal */
.gallery li {
float:left;
}

/* style the link text to be central in a surrounding box */
.gallery li a, .gallery li a:visited {
float:left; 
color:#000; 
background:navajowhite; 
text-align: center;
width:75px; 
height:50px; 
border:1px solid saddlebrown;
margin:2px;
}

.gallery li a img.thumb {
  height: 50px;
  border: 0;
  margin: auto;
}  
  

/* position the images using an absolute position and hide them from view */
/* Offset by -H - B */
.gallery li a img.landscape, 
.gallery li a img.portrait, 
.gallery li a img.portrait43 {
position:absolute; 
top:-550px; 
left:0; 
visibility:hidden; 
border:0;
border: 10px solid navajowhite;
}

/* fix the top position for the landscape images */
/* Offset - H + (H - W - B) = -(W + B) */
.gallery li a img.landscape {
top:-450px;
}

/* fix the left position for the portrait images */
/* from most digital cameras (500 x 375 pixels)  */
/* border = (height - width)/2 */
.gallery li a img.portrait43 {
left:0;
border-left:  73px solid navajowhite;
border-right: 72px solid navajowhite;
}

/* fix the left position for the portrait images */
/* from SLR (500 x 332 pixels)                   */
/* border = (height - width)/2                   */
.gallery li a img.portrait {
left:0;
border-left:  94px solid navajowhite;
border-right: 94px solid navajowhite;
}

.gallery li a span.caption {
position: absolute;
top: -37px;
left:0;
visibility:hidden; 
border:5px;
}


/* style the hover background color for the text boxes */
.gallery li a:hover {
background:saddlebrown;
}

/* style the active/focus colors for the text boxes (required for IE) */
.gallery li a:active,
.gallery li a:focus {
background:BurlyWood; 
color:saddlebrown;
}

/* make the images visible on active/focus */
.gallery li a:active img, 
.gallery li a:focus img
{
visibility:visible;
}

/* make the images visible on active/focus */
.gallery li a:active span.caption, .gallery li a:focus span.caption
{
visibility:visible;
}


