div#galleriffic {
  clear: both;
  overflow: auto;
}


/********************************************************************************/
/********************************************************************************/
/********************************************************************************/


#content div#gallery.content {
  overflow: hidden;
  position: relative;
  float: left !important;
  clear: none !important;
  width: 640px;
  display: block;
  margin: 0;
}

  div#gallery.content div.controls {
    display: none;
    margin-top: 5px;
    height: 23px;
  }
    div#gallery.content div.controls div.ss-controls {
      float: left;
    }
    div#gallery.content div.controls div.nav-controls {
      float: right;
    }
      div#gallery.content div.controls a {
        padding: 5px;
      }

  div#gallery.content div.slideshow-container {
    background: #FFF;
    position: relative;
    clear: both;
    height: 340px; /* This should be set to be at least the height of the largest image in the slideshow */
  }
    div#gallery.content div#loading.loader {
      position: absolute;
      top: 0;
      left: 0;
      background-image: url('../images/galleriffic/loader.gif');
      background-repeat: no-repeat;
      background-position: center;
      width: 640px;
      height: 340px;
    }
    div#gallery.content div#slideshow.slideshow {
    
    }
      div#gallery.content div#slideshow.slideshow span.image-wrapper {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
      }
      div#gallery.content div#slideshow.slideshow a.advance-link {
        display: block;
        /*width: 640px;*/
        /*height: 340px;*/ /* This should be set to be at least the height of the largest image in the slideshow */
        /*line-height: 340px;*/ /* This should be set to be at least the height of the largest image in the slideshow */
        text-align: center;
      }
      div#gallery.content div#slideshow.slideshow a.advance-link:hover,
      div#gallery.content div#slideshow.slideshow a.advance-link:active,
      div#gallery.content div#slideshow.slideshow a.advance-link:visited {
        text-decoration: none;
      }
      div#gallery.content div#slideshow.slideshow img {
        vertical-align: top;
        
        width: 640px;
        height: 340px;
      }


      /* ! */
      div#gallery.content div#caption.caption-container {
        /*
        position: relative;
        clear: left;
        height: 75px;
        
        background: red;
        */
        display: block;
        position: absolute;
        width: 100%;
        height: 40px !important;
        bottom: 0;
        left: 0;
        
        background: #441b4a;
        opacity: .7 !important;
        color: #FFF;
      }
        div#gallery.content div#caption.caption-container span.image-caption {
          display: block !important;
          padding: 10px 0 10px 20px;
        }
          div#gallery.content div#caption.caption-container span.image-caption div.caption {
            
          }
            div#gallery.content div#caption.caption-container span.image-caption div.caption h6 {
              font-size: 16px;
              /*margin-bottom: 3px;*/
              margin-top: 2px;
              text-transform: uppercase;
              font-weight: normal;
              text-shadow: 2px 2px 2px #000;
            }
            div#gallery.content div#caption.caption-container span.image-caption div.caption div.image-title {
              font-weight: bold;
              font-size: 1.4em;
            }
            div#gallery.content div#caption.caption-container span.image-caption div.caption div.image-desc {
              line-height: 1.3em;
              padding-top: 12px;
            }


/********************************************************************************/
/********************************************************************************/
/********************************************************************************/


#content div#thumbs {
  overflow: auto;
  clear: none;
  float: right !important;
  width: 75px; /* 73 + 2 for border */
}
  div#thumbs ul.thumbs {
    clear: both;
    margin: 0 !important;
  }
    div#thumbs ul.thumbs li {
      float: left;
      margin-bottom: 5px;
    }
      div#thumbs ul.thumbs li a.thumb {
        display: block;
        border: 1px solid #fff;
      }
        div#thumbs ul.thumbs li.selected a.thumb {
          border: 1px solid #996ba0;
        }
      div#thumbs ul.thumbs li a.thumb:focus {
        outline: none;
      }
        div#thumbs ul.thumbs li a img {
          width: 73px;
          height: 39px;
          border: none;
          display: block;
        }




div.pagination {
  clear: both;
}

div.pagination a,
div.pagination span.current,
div.pagination span.ellipsis {
  display: block;
  float: left;
  margin-right: 2px;
  padding: 4px 7px 2px 7px;
  border: 1px solid #ccc;
}
div.pagination a:hover {
  background-color: #eee;
  text-decoration: none;
}
div.pagination span.current {
  font-weight: bold;
  background-color: #000;
  border-color: #000;
  color: #fff;
}
div.pagination span.ellipsis {
  border: none;
  padding: 5px 0 3px 2px;
}
