/* Compatibility styles for frameworks like bootstrap, foundation e.t.c */
.xzoom-source img, .xzoom-preview img, .xzoom-lens img {
  display: block;
  max-width: none;
  max-height: none;
}
/* --------------- */

/* xZoom Styles below */
.xzoom-container { 
  display: block;
}

.xzoom-thumbs {
  text-align: center;
  margin-bottom: 10px;
  height: 468px;
  overflow-x: hidden;
}

#detail_page .xzoom-thumbs {
  margin: 0;
}

#detail_page2 .xzoom-thumbs {
  top: 10%;
  left: 4%;
}

.xzoom-thumbs a {
  display: block;
}

.share_icon {
  position: relative;
  text-align: center;
}

.share_icon a {
  display: inline-block;
}

.share_icon a i {
  padding: 10px 5px;
}

.share_icon_dropdown {
  position: absolute;
  left: 44%;
  margin: 0;
  top: 40px;
  border-radius: 2px;
  background-color: #ffffff;
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.18);
  display: none;
}

.share_icon:hover > .share_icon_dropdown  {
  display: block;
}

.share_icon > .share_icon_dropdown:after {
  content: '';
  position: absolute;
  top: -20px;
  right: 40px;
  border-right: 15px transparent solid;
  border-bottom: 20px #fff solid;
  border-left: 15px transparent solid;
}

.share_icon_dropdown li {
  display: inline-block;
  margin: 0;
}

.share_icon_dropdown li a {
  display: block;
  margin: 0;
  padding: 0 5px;
  font-size: 16px;
}

.share_icon_dropdown ul li:nth-child(1) a {
  color: #3b5998;
}

.share_icon_dropdown ul li:nth-child(2) a {
  color: #55acee;
}

.share_icon_dropdown ul li:nth-child(3) a {
  color: #125688;
}

.xzoom { 
  margin-bottom: 0;
}

.xzoom2, .xzoom3, .xzoom4, .xzoom5 {
  margin-bottom: 15px; 
}

/* Thumbs */
.xzoom-gallery, .xzoom-gallery2, .xzoom-gallery3, .xzoom-gallery4, .xzoom-gallery5 { 
  border: 1px solid #dcdcdc; 
  margin-right: 5px;
  margin-bottom: 10px;
}

.xzoom-source, .xzoom-hidden {
  display: block;
  position: static;
  float: none;
  clear: both;
}

/* Everything out of border is hidden */
.xzoom-hidden {
  overflow: hidden;
}

/* Preview */
.xzoom-preview {
  border: 1px solid #888;
  background: #2f4f4f;
}

/* Lens */
.xzoom-lens {
  border: 1px solid #dcdcdc;
  cursor: crosshair;
}


/* Additional class that applied to thumb when it is active */
.xactive {
  border: 1px solid #f06c45;
}

/* Caption */
.xzoom-caption {
  position: absolute;
  bottom: -43px;
  left: 0;
  width: 100%;
  text-align: left;
}

.xzoom-caption span {
  color: #fff;
  font-family: Arial, sans-serif;
  display: block;
  font-size: 0.75em;
  font-weight: bold;
  padding: 10px;
}

#detail_page .xzoom {  
  margin-bottom: 15px;
}

@media only screen and (max-width: 1200px) {
#detail_page .xzoom {  
    margin-left: 110px; 
  }

  .xzoom-thumbs {
    height: 390px;
  }
}

@media only screen and (max-width: 1024px) {
  .xzoom-thumbs {
    height: 510px;
  }
}
@media only screen and (max-width: 780px) {

.xzoom-thumbs {
  text-align: center;
  position: relative;
  margin-top: 15px;
  height: auto;
  }

  .xzoom-thumbs a {
    display: inline-block;
  }
}

@media only screen and (max-width: 768px) {
#detail_page .xzoom {  
  margin-bottom: 15px;
  margin-left: 0; 
  text-align: center;
  }
}
@media only screen and (max-width: 502px) {
.xzoom {margin-left: 0;}

.xzoom-thumbs {margin-left: 0;}
}