
#galleryProduct {
	display: table;
	margin: 0 auto;
}

/* bigPhotosProduct */
.bigPhotosProduct {
	padding-top: 5px;
	border: 1px solid #c8c8c8;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	text-align: center;
	width: 408px;
	height: 305px;
}
.bigPhotosProduct a{
    vertical-align: middle;
    text-align: center;
}
.bigPhotosProduct a img{
    vertical-align: middle;
}
.bigPhotosProductHelper {
    display: inline-block;
    height: 100%;
    vertical-align: middle;
}
/* smallPhotosProduct */
.smallPhotosProduct {
	position: relative;
	width: 410px;
	margin-top: 7px;
}
.galleryThumbs { overflow: hidden; } 
.smallPhotosProduct ul {
	overflow: hidden;
	margin: 0;
	padding: 0;
	-webkit-transition: all 1s ease;
	-moz-transition: all 1s ease;
	-ms-transition: all 1s ease;
	-o-transition: all 1s ease;
	transition: all 1s ease;	
}
.smallPhotosProduct li {
	list-style: none;
	float: left;
	width: 84px;
}
.smallPhotosProduct li a {
	height: 48px;
    width: 64px;
	border: 1px solid #C8C8C8;
	float: left;
	padding: 4px;
	border-radius: 3px;
}
.smallPhotosProduct li a:hover {
	border: 2px solid #C8C8C8;
	padding: 3px;
}
.smallPhotosProduct li.active a { border-color: #FF5B05; }
.smallPhotosProduct li a img {
	width: auto;
	height: 100%;
    display:block;
    margin:auto;
}

/* galleryTrigger */
.galleryTrigger {
	cursor: pointer;
	background: rgba(0,0,0,0.3);
	font-family: tahoma, verdana, arial, sans-serif;
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 105;
	width: 100%;
	min-height: 15px;
	padding: 7px 0;
}
.galleryTrigger:hover { background: rgba(0,0,0,0.5); }
.galleryTrigger span {
	background: url('../images/gallery/sprite-show-item.png') no-repeat 0 -245px;
	color: #fff;
	text-shadow: 0 1px 1px #232323;
	float: left;
	font-size: 11px;
	margin: 0 10px;
	padding: 0 0 0 16px;
}

/* bigPNav */
.bigPNav {
	cursor: pointer;
	position: absolute;
	z-index: 99;
	height: 100%;
	width: 25%;
}
.bigPNav.next { right: 0; top: 0; }
.bigPNav.prev { left: 0; top: 0; }
.bigPNav:hover { background-color: rgba(255,255,255,0.3); }
.bigPNav:hover span { display: block; }
.bigPNav span {
	width: 50px;
	height: 50px;
	top: 50%;
        margin-top: -25px;
	position: absolute;	
	background: url('../images/gallery/navi.png') no-repeat right top;
	display: none;
}
.bigPNav.next span { right: 0; }
.bigPNav.prev span { background-position: left top; left: 0; }

/* controlThumb */
.controlThumb {
	cursor: pointer;
	background: transparent url('../images/gallery/sprite-show-item.png') no-repeat;
	height: 21px;
	width: 21px;
	position: absolute;
	bottom: 20px;
	z-index: 105;
}
.controlThumb:hover { opacity: 0.9; }
.controlThumb.left {
	left: -10px;
	background-position: -23px -23px;
}
.controlThumb.right {
	right: -10px;
	background-position: 0 -23px;
}

/* galContainer */
#galContainer {
	position: fixed;
	left: 0;
	height: 100%;
	width: 100%;
	top: 0;
	z-index: 10999;
	background: rgba(0,0,0,0.9);
}

/* thumbsContent */
#thumbsContent {
	display: table;
	margin: 0 auto;
	-moz-border-radius: 5px;
	border-radius: 5px;
	background: #5d5d5d;
	position: relative;
	top: 2px;
}
#thumbsContent ul {
	list-style: none;
	padding: 0 5px 0 7px;
	margin: 7px 0;
	overflow: hidden;
}
#thumbsContent li {
	float: left;
	margin: 0 2px 0 0;
	padding: 4px;
	height: 75px;
	-moz-border-radius: 3px;
	border-radius: 3px;
    background: #fff;
}
#thumbsContent li.active {
	border-radius: 3px;
	box-shadow: 0 0 0 3px #DA5014 inset;
}
#thumbsContent li a {
    display: block;
    width: 100px;
    height: 75px;
}
#thumbsContent li img { 
	width: auto;
	height: 100%;
    display:block;
    margin:auto;
}

/* imageWrapper */
#imageWrapper {
	padding: 7px 40px 30px;
	position: relative;
}
#imgContainer { 
	position: relative; 
	display: table;
	margin: 0 auto;
	max-height: calc(100vh - 109px);
}
#imageWrapper img {
	max-height: inherit;
	cursor: pointer;
}
#imageWrapper span.closeGallery {
	display: block;
	cursor: pointer;
	background: url(../images/gallery/close-x.png) no-repeat 0 0;
	width: 30px;
	height: 30px;
	position: absolute;
	z-index: 100;
	top: 0;
	right: 0;
}
span.prevPhoto, span.nextPhoto {
    display: block;
    position: absolute;
    top: 0;
    cursor: pointer;
    width: 37px;
    height: 100%;
    background: url(../images/gallery/gallery-arrows.png) no-repeat;
    z-index: 101000;
}
span.prevPhoto {
    left: 0;
    background-position: -37px 49%;
}
span.nextPhoto {
    right: 0;
    background-position: 0 49%;
}
