#gallery {
    margin-bottom: 4px;
    padding: 10px;
}
.ad-gallery .ad-image-wrapper .ad-image .ad-image-description{
	display: none;
}

.ad-gallery .ad-controls {
    display: none;
}
.ad-gallery .ad-thumbs li a img {
    border: 1px solid #D2D2D2;
}
.ad-gallery .ad-thumbs li a.ad-active img {
    border: 3px solid #F47921;
    height: 86%;
    width: 86%;
}
.ad-gallery .ad-nav .ad-thumbs {
    height: 62px;
    margin: 0 auto;
}
.ad-gallery .ad-nav {
	  margin: 0 auto;
    width: 340px;
}

.ad-gallery .ad-image-wrapper {
    margin-bottom: 26px !important;
}
.ad-gallery .ad-back {
    background: url("../images/ad_scroll_back.png") no-repeat scroll 0 12px;
    left: -30px;
    width: 23px;
}
.ad-gallery .ad-forward {
    background: url("../images/ad_scroll_forward.png") no-repeat scroll 0 12px;
    right: -30px;
    width: 23px;
}
/****************************************************/

.gallery_tabs li {
    float: left;
    width: 25%;
}
.gallery_tabs .item_content {
	cursor: pointer;
	margin: 0 4px;
    text-align: right;
}
.gallery_tabs .compare {
    background: url("../images/icon_compare.png") no-repeat scroll 16px center #EEEEEE;
    padding: 2px 16px;
}
.gallery_tabs .view-360 {
	background: url("../images/icon_360.png") no-repeat scroll 16px center #EEEEEE;
    padding: 2px 16px;
}

.gallery_tabs .no_v360,.gallery_tabs .no_video {
    cursor: default;
    opacity: 0.4;
}
.gallery_tabs .video {
	background: url("../images/icon_video..png") no-repeat scroll 22px center #EEEEEE;
    padding: 2px 22px;
}
.gallery_tabs .popup{
	display: none;
    margin-left: -284px;
    margin-top: -191px;
    padding: 10px;
    background: none repeat scroll 0 0 #FFFFFF;
    box-shadow: 0 0 20px #000000;
    left: 50%;
    position: fixed;
    top: 50%;
    z-index: 101;
}.gallery_tabs .popup_v360{
    margin-left: -130px;
    margin-top: -160px;
}
.content-popup {
    position: relative;
}
.button-close {
    cursor: pointer;
    position: absolute;
     right: -26px;
    top: -26px;
}
.gallery_tabs .slideshow {
	background: url("../images/icon_slideshow.png") no-repeat scroll 6px center #EEEEEE;
    padding: 2px 6px;
}
@media screen and (max-width:500px){
	.gallery_tabs li {
	    float: left;
	    width: 50%;
	}

	.gallery_tabs .compare,.gallery_tabs .view-360 {
	    display: none;
	}	

}