.galleryWrap {
    position: relative;
}

.galleryWrap .galleryContainer {
    position: relative;
    -webkit-box-shadow: 1px 1px 5px #C5D8E0, -1px -1px 5px #C5D8E0;
    box-shadow: 1px 1px 5px #C5D8E0, -1px -1px 5px #C5D8E0;
}


.galleryWrap .galleryContainer div {
    width: 100%;
    cursor: pointer;
}

.galleryThumbs {
    overflow: hidden;
    position: relative;
    width: 494px;
    padding: 5px 0 0;
    margin: 0 auto;
    height: 76px;
}

.galleryThumbs > ul {
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
    white-space: nowrap;
}

.galleryThumbs li {
    position: relative;
    float: left;
    padding: 0 2px 0 0;
    cursor: pointer;

}

.galleryThumbs li > img {
    border: 2px solid #fff;
}

.galleryThumbs li.active > img,
.galleryThumbs li:hover > img{
    border: 2px solid #0083ff;
}

.galleryThumbs li.active:after {
    content: '';
    display: block;
    position: absolute;
    left: 42px;
    top: -12px;
    border-style: solid;
    border-width: 6px;
    border-color: transparent transparent #0083ff transparent;
}


.galleryWrap .leftControl,
#thumbsWrap .leftControl {
    padding: 0 20px 0 5px;
    left: 0;
}

.lockArrow {
    display: none;
}

#thumbsWrap .leftControl {
    left: 50%;
    margin-left: -465px;
    top: 28px;
}

.galleryWrap .rightControl,
#thumbsWrap .rightControl{
    padding: 0 5px 0 20px;
    right: 2px;
}

#thumbsWrap .rightControl {
    right: 50%;
    margin-right: -465px;
    top: 28px;
}

.galleryWrap .leftControl:after,
.galleryWrap .rightControl:after,
#thumbsWrap .leftControl:after,
#thumbsWrap .rightControl:after {
    content: '';
    position: absolute;
    top: 50%;
    margin-top: -8px;
    display: block;
    width: 16px;
    height: 16px;
}

.galleryWrap .leftControl:after,
#thumbsWrap .leftControl:after {
    right: 50%;
    background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAARJJREFUeNpi/P//PwMlgAWbYPySJ1pAajUQSwNx+sIYmZW4DGBCF4hd9Ejr379/B4AYRPMDcSPRLohe8ABk8wEgFkUSvkmUAeFz74I070XTfBaIE/EZwAgKxJBZt9ShNksgyT0F4jgg/oim59eaNLXLcAP8p16TA9In0TQTAiBvuW3I0nzE8vvP3zQSNYMAyMV+QDyF5c+fPzfJiP4vQHwEHgbOXWfbgewKNEUgBYuxaP4OxJv2lhl/hBsAAvbtJ7EZkn6w0nwWwViAAevmY9gM8Txaa7WDqJQIVFj59++/DiBmQMKu+FyAkZRPNNhU/v33rx6IGYD4IxAvI9oLyMC45gAoI3082+LwhSwDiAUAAQYANgKBt9XQZxkAAAAASUVORK5CYII=) no-repeat center;
}

.galleryWrap .rightControl:after,
#thumbsWrap .rightControl:after {
    left: 50%;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAR1JREFUeNpi/P//PwMlgAWXRPySJ7FAahoQ3wfi0IUxMjexqWPCZcC/f/9agJgHiHWBeG/sokfqpBpwDYgZoFgaZEj0ggfqRBvw5+/fOCC+AMQMUCwNxHvD595VQVbHCAvEkFm3DIAUM5o5QkC8FIhFkcSeArHDmjS1O2AD/KdeA5m4HYhVSAh8kCEmG7I0X7D8/vPXm0TNICANxGlA3MTy58+f40DGdyDmJNGQC/AwcO46C/KrHxCzYVGYAMSWaGL1e8uMm1ACERuwbz+ZD6QmoGs+WGnehBEL6MC6+VggkFqHrvlorVUTUUn5799/HuiaTzTYNBGdkP7++7cAiL8AMYhdiU0zwTAwrjnAD6R4zrY4PMWlhpHS7AwQYAB02ZFxN2N/6wAAAABJRU5ErkJggg==") no-repeat center;
}

.galleryWrap .control,
#thumbsWrap .control {
    position: absolute;
    width: 16px;
    height: 30px;
    bottom: 23px;
    text-align: center;
    background-color: #E8F1F6;
    background: -webkit-linear-gradient(top, white, #E8F1F6);
    background: -moz-linear-gradient(top, white, #E8F1F6);
    background: -o-linear-gradient(top, white, #E8F1F6);
    background: -ms-linear-gradient(top, white, #E8F1F6);
    background: linear-gradient(top, white, #E8F1F6);
    border-radius: 3px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .4);
    line-height: 30px;
    cursor: pointer;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    z-index: 16;
    display: none;
    opacity: .9;
}

#thumbsWrap {
    padding-top: 10px;
    background: rgba(0, 0, 0, .5);
    overflow: hidden;
    border-bottom: 3px solid #4A5255;
    z-index: 250;
    position: absolute;
    width: 100%;
    height: 80px;
}

#thumbsContent {
    margin: 0 auto;
    height: 76px;
    overflow: hidden;
    position: relative;
}

#thumbsContent > ul {
    margin: 0;
    padding: 0 0 0 20px;
}

#thumbsContent li {
    position: relative;
    display: inline-block;
    margin: 0 1px;
    cursor: pointer;
}

#thumbsContent li img {
    border: 2px solid transparent;
}

#thumbsContent li.active img,
#thumbsContent li:hover img{
    border: 2px solid #0083ff;
}

#thumbsContent li.active:after {
    content: '';
    display: block;
    position: absolute;
    left: 42px;
    bottom: -8px;
    border-style: solid;
    border-width: 6px;
    border-color: #0083ff transparent transparent transparent;
}

#galContainer {
    z-index: 100;
}

.galleryCurrentNumber {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    text-align: center;
    top: 0;
    left: 0;
    margin: 0;
    font-size: 18px;
    line-height: 42px;
}




/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/


#thumb{   
    
    float: left;
    
    display: block;
    
    overflow: hidden;
    
    height: auto !important;
    
    width: 100%;
    
    background-color: #1E1E1E;
}
#thumb a{
    
    height: auto !important;
    
    width: 100%;
    max-width: 100%;
    
    overflow: hidden;
    background: white url('../images/image_bg.png') center center no-repeat;
    
    float: left;
    
    display: block;
    
    margin: auto;
}
#thumb a img{
    max-width: 100%;
    height: auto !important;
}
#thumb a:hover img{
        opacity: 0.76;
    filter:alpha(opacity=76);
    -moz-opacity:0.76;
    filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=76); 
    -khtml-opacity: 0.76; 
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=76);
}


#images{
    width: 100%;
    height: auto;
}
#images ul{
    list-style: none;
    
    padding: 0;
    
    margin: 10px 0 0;
    
    float: left;
}
#images ul li:hover{
    border: 2px #359bed solid;
}
#images ul li{
    float: left;
    
    height: 91px;
    width: 160px;
    
    background: black url('../images/image_bg.png') center center;
        
    margin: 0 8px 8px 0;
    
    overflow: hidden;
    
    
    border: 2px #ddd solid;

    padding: 0;
    
    -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    transition: all .2s linear;
}
#images ul li img{
    margin: 0;
    padding: 0;
}
#images ul li a{
    background-position: center center;
    background-repeat: no-repeat;
    height: 91px;
    width: 160px;        
    
    margin: 0;
    padding: 0;
    
    font-size: 0px;
    
    display: block;
}

#big_gallery{
    width: 100%;
    height: 100%;
    position: fixed;

    z-index: 100;    
    display: none;    

    top: 0;
    left: 0;        

    overflow: hidden;
    
    -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    -o-transition: all .2s linear;
    -ms-transition: all .2s linear;
    transition: all .2s linear;
}
#big_gallery .bg{

    opacity: 0.76;
    filter:alpha(opacity=76);
    -moz-opacity:0.76;
    filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=76); 
    -khtml-opacity: 0.76; 
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=76);

    background-color: #222;
    /*background: url('../images/gallery_bg.png') repeat;*/
    width: 100%;
    height: 100%;
    position: absolute;

    z-index: 1;
    top: 0;
}


#big_gallery ul{
    height: 66px;
    width: 100%;
    background-color: #222;

    margin: 0;
    text-align: center;

    z-index: 2;
    position: relative;

    border-bottom: 2px solid #0083ff;
}
#big_gallery ul li a{
    margin: 8px 4px 8px 4px;

    height: 49px;


    overflow: hidden;

    background-color: white;

    display: inline-block;
}
#big_gallery ul li img{
    margin: 2px;
    padding: 0;
}
#big_gallery ul li{    
    height: 49px;
    display: inline;    
}
#big_gallery ul li, #big_gallery ul li a{    
        -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    -o-transition: all .2s linear;
    -ms-transition: all .2s linear;
    transition: all .2s linear;

} 
#big_gallery ul li.selected a, #big_gallery ul li:hover a{
    background-color: #0083ff;
    
    box-shadow: 0px 0px 5px 0px rgba(255, 255, 255, 0.76);    
}
#big_gallery ul img{
    height: 45px;
    margin: 2px;
}

#big_gallery img#big{
    z-index: 3;

    position: absolute;
    top: 103px;

    border: 4px solid white;
}
#left, #right{
    height: 63px; 
    width: 44px;

    z-index: 3;
    position: absolute;

    top: 200px;

    border-top: 2px white solid;
    border-bottom: 2px white solid;

    opacity: 0.76;
    filter:alpha(opacity=76);
    -moz-opacity:0.76;
    filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=76); 
    -khtml-opacity: 0.76; 
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=76);
    
    -webkit-transition: all .2s linear;
    -moz-transition: all .2s linear;
    -o-transition: all .2s linear;
    -ms-transition: all .2s linear;
    transition: all .2s linear;
}
#left:hover, #right:hover{
    opacity: 1.00;
    filter:alpha(opacity=100);
    -moz-opacity:1.00;
    filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100); 
    -khtml-opacity: 1.00; 
    -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);

    border-color: #0083ff;
}
#left{
    background: #ccc url('../images/left.png') no-repeat center center;        
    border-right: 2px solid white;
}
#left:hover{
    background-image: url('../images/left_hover.png');
}
#right{    
    background: #ccc url('../images/right.png') no-repeat center center;        
    border-left: 2px solid white;
}
#right:hover{
    background-image: url('../images/right_hover.png');
}