BODY DIV.gallery,
BODY DIV.gallery DIV,
BODY DIV.gallery SPAN,
BODY DIV.gallery A,
BODY .pageBody DIV.gallery
{
  font-size: 8pt !important;
  font-weight: normal; 
  font-family: Tahoma, Verdana, "MS Sans Serif", sans-serif, arial !important;
  font-style: normal !important;
  padding: 0px;
  marging: 0px;
  text-decoration: none;

  line-height: normal !important;
}

DIV.gallery,
DIV.gallery * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

BODY DIV.gallery
{
  marging: 5px;
  padding: 3px !important;
}

.gallery div.content {
	/* The display of content is enabled using jQuery so that the slideshow content won't display unless javascript is enabled. */
	display: none;
	float: right;
	width: 400px; 
}
.gallery div.content a, div.navigation a {
	text-decoration: none;
	color: #777;
}
.gallery div.content a:focus, div.content a:hover, div.content a:active {
	text-decoration: underline;
}
.gallery div.controls {
	margin-top: 5px;
	height: 23px;
}
.gallery div.controls a {
	padding: 5px;
}
.gallery div.ss-controls {
	float: left;
}
.gallery div.nav-controls {
	float: right;
}
.gallery div.slideshow-container {
	positionX: relative;
	clear: both;
	heightX: 400px; /* This should be set to be at least the height of the largest image in the slideshow */
}
.gallery div.loader {
	positionX: absolute;
	top: 0;
	left: 0;
	background-image: url('ajax-loader.gif');
	background-repeat: no-repeat;
	background-position: center;
	widthX: 400px;
	heightX: 400px; /* This should be set to be at least the height of the largest image in the slideshow */
        width: 100%;
        height: 50px;
        margin-bottom: 30px;
}
.gallery div.slideshow {

}
.gallery div.slideshow span.image-wrapper {
	display: block;
	positionX: absolute;
	topX: 0;
	leftX: 0;
}
.gallery div.slideshow a.advance-link {
	display: block;
	widthX: 400px;
	heightX: 400px; /* This should be set to be at least the height of the largest image in the slideshow */
	line-heightX: 400px; /* This should be set to be at least the height of the largest image in the slideshow */
	text-align: center;
}
.gallery div.slideshow a.advance-link:hover, div.slideshow a.advance-link:active, div.slideshow a.advance-link:visited {
	text-decoration: none;
}
.gallery div.slideshow img {
	vertical-align: middle;
	border: 1px solid #ccc;
}


.gallery div.caption-container {
	position: relative;
	clear: left;
	heightX: 75px;
}
.gallery span.image-caption {
	display: block;
	positionX: absolute;
	widthX: 400px;
	top: 0;
	left: 0;
}
.gallery div.caption {
	padding: 3px;
}
.gallery div.image-title {
	font-weight: bold;
	font-size: 1.2em;
}
.gallery div.image-desc {
	line-height: 1em;
	padding-top: 3px;
}
.gallery div.navigation {
	/* The navigation style is set using jQuery so that the javascript specific styles won't be applied unless javascript is enabled. */
}
.gallery ul.thumbs {
	clear: both;
	margin: 0;
	padding: 0;
}
.gallery ul.thumbs li {
	float: left;
	padding: 0;
	margin: 4px 8px 5px 0;
	list-style: none;
}

.gallery a.thumb {
	padding: 2px;
	display: block;
	border: 1px solid #ccc;

  width: 58px;
  height: 38px;
  background-color: transparent;
}

.gallery a.thumb IMG
{
  margin: auto;
}

.gallery ul.thumbs li.selected a.thumb {
	background: #000;
}
.gallery a.thumb:focus {
	outline: none;
}
.gallery ul.thumbs img {
	border: none;
	display: block;
}
.gallery div.pagination {
	clear: both;
        margin: 0px;
}
.gallery div.navigation div.top {
	margin-bottomX: 12px;
	heightX: 11px;
}
.gallery div.navigation div.bottom {
	margin-top: 3px;
}
.gallery 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;
}
.gallery div.pagination a:hover {
	background-color: #eee;
	text-decoration: none;
}
.gallery div.pagination span.current {
	font-weight: bold;
	background-color: #000;
	border-color: #000;
	color: #fff;
}
.gallery div.pagination span.ellipsis {
	border: none;
	padding: 5px 0 3px 2px;
}


BODY DIV.gallery-theme-default
{
  border: solid 2px #000;
  background-color: #333;
}

BODY DIV.gallery-theme-default.gallery DIV.content
{
  background-color: #333;
}

.gallery-theme-default,
.gallery-theme-default DIV 
{
  text-align: left;
  color: #FFF !important;
} 

.gallery-theme-default DIV.content A
{
  color: #FFF;
}

.gallery-theme-default ul.thumbs li.selected a.thumb {
	background: #888;
}

.gallery-theme-default DIV.pagination A
{
  color: #000;
  background-color: #FFF;
}

.gallery-theme-default DIV.pagination SPAN.current
{
  border-color: #CCC;
}

BODY DIV.gallery-theme-white
{
  border: solid 1px #ccc;
  background-color: #FFF;
}

BODY DIV.gallery-theme-white.gallery DIV.content
{
  background-color: #FFF;
}

.gallery DIV.content
{
  margin-right: 3px;
}

.gallery-theme-white,
.gallery-theme-white DIV 
{
  text-align: left;
  color: #000 !important;
} 

.gallery-theme-white ul.thumbs li.selected a.thumb {
	background: #ccc;
}

.gallery-theme-white div.pagination span.current {
	font-weight: bold;
	background-color: #ccc;
	border-color: #ccc;
	color: #fff;
}

.gallery-theme-white div.loader {
	background-image: url('ajax-loader-white.gif');
}


