#galleryWrap,
#productGal { text-align: center; }
.gallery {
    border: 1px solid #CCCCCC;
    margin: 0px auto;
    margin-bottom: 10px;
    width: 280px;
    background: #fff;
}
.galleryContainer {
    height: 210px;
    margin: 0;
    padding: 0;
    text-align: center;
}
.galleryContainer img { cursor: pointer; }
.galleryThumbs ul {
    list-style: none;
    clear: both;
    display: inline;
    float: left;
    margin: 20px 0 0 32px;
    padding: 0;
    width: auto;
}
.galleryThumbs li {
    float: left;
    margin: 2px;
}
.galleryThumbs li a {
    border: 2px solid #fff;
    float: left;
}
.galleryThumbs li a:hover {
    border: 2px solid #aaa;
}
.galleryThumbs li.active a {
    border: 2px solid #000;
    -moz-box-shadow: 0 0 3px #000;
    -webkit-box-shadow: 0 0 3px #000;
    box-shadow: 0 0 3px #000;
}
.galleryThumbs li a:focus {
    outline: none;
}
.galleryThumbs li img {
    float: left;
}
a.galleryTrigger {
    color: #999;
    float: left;
    font-size: 9px;
    margin: 0 0 0 10px;
    padding: 4px 0 0 0;
    text-align: left;
}

a.prevPhoto:focus,
a.nextPhoto:focus,
#thumbsWrap li a:focus {
    outline:none;
}
a.prevPhoto.disabled { background-position: left bottom; cursor: default; }
a.nextPhoto.disabled { background-position: right bottom; cursor: default; }
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1990;
    display: none;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; 
    filter: alpha(opacity=90);
    -moz-opacity: 0.9;
    -khtml-opacity: 0.9;
    opacity: 0.9;
}
#thumbsWrap {
    z-index: 2001;
    display: none;
    position: fixed;
    overflow: hidden;
    left: 0px;
    top: 4px;
    z-index: 2001;
    width: 80%;
    margin:0 10%;
    text-align: center;
}
#thumbsWrap #thumbsContent {
    margin: 0 auto;
    overflow: hidden;
    background: #fff;
    height: 119px;
    position: relative;
}
#thumbsWrap ul {
    list-style: none;
    clear: both;
    display: inline;
    padding: 0 7px 0 9px;
    float: left;
    margin: 7px 0;
}
#thumbsWrap li {
    float: left;
    margin: 0 3px;
    height: 102px;
}
#thumbsWrap li.active {
    background-color: #fff;
    border:1px solid #666;
}
#thumbsWrap li span {
    margin: 2px;
    border: 1px solid #ccc;
}
#thumbsWrap li.active span { margin: 1px; }
#thumbsWrap li.active a {
    cursor: default;
}
#galContainer, #controlsWrap {
    position: fixed;
    left: 0;
    height: 100%;
    width: 100%;
    top: 0;
    z-index: 1999;
}
#galContainer {
    overflow: hidden;
}

#controlsWrap {
    z-index: 99999;
}
#galContainer #imageWrapper {
    margin: 30px 40px 10px;
    position: relative;
    visibility: hidden;
    overflow: hidden;
    cursor: pointer;
}
#galContainer #imageWrapper img {
    border:10px solid #fff;
}
span.prevPhoto, span.nextPhoto {
    display: block;
    position: fixed;
    top: 0;
    cursor: pointer;
    width: 14%;
    height: 100%;
    background: url(../images/gallery-arrows-left.png) 0 0 no-repeat;
    z-index: 2000;  
}
span.prevPhoto:hover, span.nextPhoto:hover {
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=80)";
    filter: alpha(opacity=80);
    -moz-opacity: 0.8;
    -khtml-opacity: 0.8;
    opacity: 0.8;
}
span.prevPhoto {
    left: 0;
    background-position: 0 50%;
}
span.nextPhoto {
    right: 0;
    background: url(../images/gallery-arrows-right.png) 100% 50% no-repeat;
}
#contentSlider {
    width: 855px;
    position: fixed;
    left: 19px;
    bottom: 4px;
    height: 13px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -moz-box-shadow: inset 0 0 4px #000;
    -webkit-box-shadow: inset 0 0 4px #000;
    box-shadow: inset 0 0 4px #000;
    background: #939393;
    display: none;
}
#contentSlider #track {
    width: 825px;
    margin: 0 auto;
    background: none;
}
#thumbsContent span.thumbBg {
    display: block;
    width: 100px;
    height: 75px;
    width: 98px;
    height: 98px;
    line-height: 98px;
    overflow:hidden;
}
#thumbsContent span.thumbBg img {
    vertical-align:middle;
}
.closeGallery {
    display: block;
    background: url(../images/gallery-close-x.png) no-repeat 0 0;
    width: 25px;
    height: 25px !important;
    visibility: visible;
    position: absolute;
    z-index: 10000;
    top: 5px;
    top: 5px;
    display: none;
    margin:10px 15px;
}

.closeGallery:hover {
    opacity: 0.8;
}


#galleryWrap .gallery .galleryContainer div.img {
    height: 210px;
    width: 280px;
    cursor: pointer;
    position: absolute;
}
#galleryWrap .gallery .galleryContainer div.img:hover {
    opacity: 0.9;
}

.galleryThumbs {display: none;}
,nextPhoto, .prevPhoto {display: none;}