/* * * * * * * * * */
/* Custom classes  */
/* * * * * * * * * */

#sgwrap #sgheader img{
  border: none;
}

/* image or gallery name header */
#sgwrap .sgTitle {
  margin-bottom: 0;
}

/* image or gallery artist subheader */
#sgwrap .sgSubTitle {
  margin-top: 0;
}

/* image and artist name displayed beneath image */
#sgwrap p.sgNameByArtist { }

/* image and gallery details such as date, location, camera model, hits etc. */
#sgwrap p.sgDetailsList { }

/* language select box and template select box respectively */
#sgwrap div.sgLanguageFlipper, div.sgTemplateFlipper {
  float: right;
  clear: right;
}

#sgwrap div.sgClear {
  clear: both;
}

/* wraps the drop-shadow table to allow IE to center it */
#sgwrap div.sgShadow {
  text-align: center;
  padding: 1em;
}

/* the main content table that does the drop-shadow effect */
#sgwrap table.sgShadow {
  margin-left: auto;
  margin-right: auto;
  clear: both;
}

#sgwrap table.sgShadow {
  background-color: #f0f0f0;
  padding: 0;
  text-align: left;
}

#sgwrap table.sgShadow td {
  padding: 0;
  margin: 0;
}

/* div containing each gallery sub-gallery on a gallery page */
#sgwrap div.sgGallery {
  margin: 5px;
  padding: 5px;
  border: 1px solid #ccc;
  background-color: #fff;
}

/* the table cell containing the gallery thumbnail */
#sgwrap td.sgGalleryThumb {
  width: 100px;
  text-align: center;
}

/* the gallery thumbnail itself */
#sgwrap img.sgGalleryThumb {
  border: 1px solid #000;
}

/* the descriptive text (title, summary, contents) */
#sgwrap div.sgGallery p {
  margin-top: 0;
  margin-bottom: 2px;
  font-size: 14px;
}

#sgwrap a img.sgThumbnailAlbum{
   border: 2px solid #999;
}


/* full size image on an image page*/
#sgwrap img.sgImage {
  border: none;
}

/* the preview thumbnails and previous, thumbnails, next links */
#sgwrap p.sgTopNavBar, p.sgBottomNavBar {
  text-align: center;
  float: right;
}

/* wraps the thumbnail and rounded-corner code on an album page */
#sgwrap div.sgThumbnail {
  width:  124px;
  height: 124px;
  margin: 10px 5px;
  float: left;
  padding: 0px;
  text-align: center;
}

#sgwrap div.sgThumbnail table {
  width:  114px;
  height: 114px;
  margin: 0px;
  text-align: center;
  vertical-align: middle;
}

#sgwrap .sgThumbnailContent {
  background: #fff;
	margin: 0px;
	padding: 0px;
	border: 1px solid #ccc;
}


/* the following code does the rounded corners of the 35mm slide effect on 
   the album pages. Taken from http://www.albin.net/CSS/roundedCorners/ */
#sgwrap .roundedCornerSpacer {
    margin: 0px; padding: 0px; border: 0px;
    clear: both;
    font-size: 1px; line-height: 1px;
}
#sgwrap .borderTL, .borderTR, .borderBL, .borderBR {
    width: 5px; height: 5px;
    padding: 0px; border: 0px;
    z-index: 99;
}
#sgwrap .borderTL, .borderBL { float: left; clear: both; }
#sgwrap .borderTR, .borderBR { float: right; clear: right; }
#sgwrap .borderTL { margin: -1px 0px 0px -1px; }
#sgwrap .borderTR { margin: -1px -1px 0px 0px; }
#sgwrap .borderBL { margin: -5px 0px 0px 0px; }
#sgwrap .borderBR { margin: -5px 0px 0px 0px; }

#sgwrap div.sgShadow{
    width: 620px;
    margin-left: -12px;
    padding: 0;
}

#sgwrap table.sgShadow{
    width: 100%;
}

/* appropriate background images for drop-shadow effect */
#sgwrap table.sgShadow td.tabl { background-image: url('images/shadow-tabl.gif'); width: 16px; height: 16px; }
#sgwrap table.sgShadow td.tabm { background-color: #fff; }
#sgwrap table.sgShadow td.tabr { background-color: #fff; }

#sgwrap table.sgShadow td.tl {  background-image: url('images/shadow-tl.gif'); width: 32px; height: 16px; }
#sgwrap table.sgShadow td.tm {  background-image: url('images/shadow-tm.gif');}
#sgwrap table.sgShadow td.tr {  background-image: url('images/shadow-tr.gif');}
#sgwrap table.sgShadow td.ml {  background-image: url('images/shadow-ml.gif');}
#sgwrap table.sgShadow td.mm {  padding: 10px;} /* cell containing image */
#sgwrap table.sgShadow td.mr {  background-image: url('images/shadow-mr.gif');}
#sgwrap table.sgShadow td.bl {  background-image: url('images/shadow-bl.gif');}
#sgwrap table.sgShadow td.bm {  background-image: url('images/shadow-bm.gif');}
#sgwrap table.sgShadow td.br {  background-image: url('images/shadow-br.gif'); width: 32px; height: 32px; }

/* the bit with previous, next */
#sgwrap table.sgShadow td.tabm div { 
  font-size: 13px;
  background: #f0f0f0 url('images/shadow-tabm.gif') top right;
  padding-right: 30px;
  float: left;
}

