#gallery {
    margin-bottom: 4px;
}
.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;
    padding: 1px;
}
.ad-gallery .ad-thumbs li a.ad-active img,.ad-gallery .ad-thumbs li:hover a img  {
   border: 1px solid #3b5998;
    padding: 1px;
}
.ad-gallery .ad-nav .ad-thumbs {
    height: 64px;
    margin: 0 auto;
}
.ad-gallery .ad-nav {
	 margin-left: 19px;
    width: 204px;
}

.ad-gallery .ad-image-wrapper {
    margin-bottom: 26px !important;
}
@media only screen and (max-width:960px){
	.ad-gallery .ad-image-wrapper {
	    margin-bottom: 0 !important;
	     height: 180px !important;
	}
}
@media only screen and (max-width:700px){
	.ad-gallery .ad-image-wrapper {
	    margin-bottom: 0 !important;
	     height: 140px !important;
	}
}
.ad-gallery .ad-back {
    background: rgba(0, 0, 0, 0) url("../images/jcarousel-control.png") no-repeat scroll 0 center;
    height: 60px;
    left: -18px;
    width: 15px;
}
.ad-gallery .ad-forward {
    background: rgba(0, 0, 0, 0) url("../images/jcarousel-control.png") no-repeat scroll -43px center;
    height: 60px;
    right: -17px;
    width: 16px;
}
/****************************************************/

.gallery_tabs li {
    float: left;
    width: 24%;
}
.gallery_tabs .item_content {
	cursor: pointer;
	margin: 0 4px;
    text-align: left;
      padding-top: 2px;
     padding-bottom: 2px; 
}
.gallery_tabs .compare {
    background: url("../images/icon_compare.png") no-repeat scroll 8px center #EEEEEE;
	 padding-left: 30px;
}
.gallery_tabs .view-360 {
	background: url("../images/icon_360.png") no-repeat scroll 8px center #EEEEEE;
    padding-left: 30px;
}

.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 8px center #EEEEEE;
    padding-left: 30px;
}
.gallery_tabs .popup {
    background: url("../images/overlay.png") repeat scroll 0 0 rgba(0, 0, 0, 0);
    display: none;
    height: 100%;
    left: 0;
    padding-top: 70px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

.gallery_tabs .content-popup {
    background: none repeat scroll 0 0 #FFFFFF;
    border: 8px solid #000000;
    border-radius: 8px 8px 8px 8px;
    margin: 0 auto;
    padding: 10px;
    position: relative;
     text-align: center;
}
.gallery_tabs #popup_v360 .content-popup {
   height: 60%;
   width: 50%;
}
.gallery_tabs #popup_video .content-popup {
   height: 50%;
   width: 40%;
}
iframe {
    border: 0 none;
    max-width: 100%;
	max-height: 100%;
}
.gallery_tabs .content-popup embed{
  min-width: 100%;
  min-height: 100%;
}
.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 8px center #EEEEEE;
  	padding-left: 42px;
}
@media only screen and (max-width:500px){
	.gallery_tabs li {
	    float: left;
	    width: 50%;
	}

	.gallery_tabs .compare,.gallery_tabs .view-360 {
	    display: none;
	}	

}