/* 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: inline-block; 
}

.xzoom-thumbs {
  text-align: left;
  margin-bottom: 10px;
  margin-left: -1px;
}

.xzoom { 
  /*-webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);  */
  margin-bottom: 5px; 
  width: 100%;
  max-width: 474px;	
}
.xzoom2, .xzoom3, .xzoom4, .xzoom5 {
  -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
  -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);
  box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.5);  
  margin-bottom: 15px;  
}

/* Thumbs */
.xzoom-gallery, .xzoom-gallery2, .xzoom-gallery3, .xzoom-gallery4, .xzoom-gallery5 { 
	border: 1px solid #ededed;
    margin-left: 2px;
    margin-bottom: 0px;
    max-height: 137px;
    width: 142px;
}

.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: #fafafa;
  box-shadow: -0px -0px 10px rgba(0,0,0,0.50);
}

/* Lens */
.xzoom-lens {
  border: 1px solid #555;
  box-shadow: -0px -0px 10px rgba(0,0,0,0.50);
  cursor: crosshair;
}

/* Loading */
.xzoom-loading {
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 100%;
  opacity: .7;
  background: url(../images/xloading.gif);
  width: 48px;
  height: 48px;
}

/* Additional class that applied to thumb when it is active */
.xactive {  
  /*-webkit-box-shadow: 0px 0px 3px 0px rgba(215,190,138,1);
  -moz-box-shadow: 0px 0px 3px 0px rgba(215,190,138,1);
  box-shadow: 0px 0px 3px 0px rgba(215,190,138,1); 
  border: 1px solid #89b8ff;*/opacity: 0.5
}
.xzoom-gallery:hover {opacity: 0.9;border: 1px solid #7ecef8;} 
.xzoom-gallery2:hover {opacity: 0.9;border: 1px solid #7ecef8;} 
.xzoom-gallery3:hover {opacity: 0.9;border: 1px solid #7ecef8;} 
.xzoom-gallery4:hover {opacity: 0.9;border: 1px solid #7ecef8;} 
.xzoom-gallery5:hover {opacity: 0.9;border: 1px solid #7ecef8;} 
.xactive img {opacity: 0.5}

/* Caption */
.xzoom-caption {
  position: absolute;
  bottom: -43px;
  left: 0;
  background: #000;
  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;
}

@media screen and (max-width: 428px) {
.xzoom-thumbs a {width: 20%; text-align: center;}
.xzoom-gallery, .xzoom-gallery2, .xzoom-gallery3, .xzoom-gallery4, .xzoom-gallery5 {width: 99%;max-height: 130px;margin-left: 3px;}
}
