/* 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;
  -webkit-transition: none;
  -moz-transition: none;
  -o-transition: none;
  transition: none;
}
/* --------------- */

/* xZoom Styles below */
.xzoom-container { 
  display: inline-block;
}

.xzoom-thumbs {
  text-align: center;
  margin-bottom: 10px;
}

.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);   */
  border: 1px solid #e1e1e1;
}
.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); */
  border: 1px solid #e1e1e1;
}

/* Thumbs */
.xzoom-gallery, .xzoom-gallery2, .xzoom-gallery3, .xzoom-gallery4, .xzoom-gallery5 {
  border: 1px solid #cecece;
  margin-left: 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;
  /* 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(../example/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(74,169,210,1);
  -moz-box-shadow: 0px 0px 3px 0px rgba(74,169,210,1);
  box-shadow: 0px 0px 3px 0px rgba(74,169,210,1);  */
  border: 1px solid #4aaad2;
}

/* 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;
}

img.xzoom-gallery {
    max-width: 60px;
    min-width: 60px;
    max-height: 50px;
    min-height: 50px;
}
.image-zoom {
    position: relative;
}
  /* Styling for xzoom and placement */
  .xzoom-source img, .xzoom-preview img, .xzoom-lens img {
    display: block;
    max-width: 200%;
    min-width: 200%;
    max-height: 150%;
    min-height: 150%;
  }
  
  /* --------------- */
  /* xZoom Styles below */
  /* .xzoom-container {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    text-align: right;
} */
 .xzoom-container {
    display: block !important;
    width: 100%;
    height: 100%;
    text-align: right;
}
  
.xzoom-thumbs {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    column-gap: 20px;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    max-width: 80px;
    position: absolute;
    top: 0;
    left: 0;
}
  
.xzoom, .xzoom2, .xzoom3, .xzoom4, .xzoom5 {
    /* box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.5); */
    margin-bottom: 15px;
    width: 100% !important;
    max-width: calc(100% - 80px);
}
  
  /* Thumbs */
  .xzoom-gallery, .xzoom-gallery2, .xzoom-gallery3, .xzoom-gallery4, .xzoom-gallery5 {
    border: 1px solid #cecece;
    margin-left: 5px;
    margin-bottom: 10px;
  }
  
  .xzoom-source {
    display: block;
    position: static;
    float: none;
    clear: both;
  }
  
  .xzoom-hidden {
    display: block;
    position: static;
    float: none;
    clear: both;
    overflow: hidden;
  }
  
  /* Everything out of border is hidden */
  /* Preview */
  .xzoom-preview {
    border: 1px solid #e1e1e1 !important;
    background: #fff !important;
    /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); */
    width: 100%;
    max-width: 50%;
    min-width: 50%;
    max-height: 100%;
    min-height: 100%;
    z-index: 999999999;
  }
  
  /* Lens */
  .xzoom-lens {
    border: 1px solid #555;
    /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5); */
    cursor: zoom-in;
  }
  
  /* Loading */
  .xzoom-loading {
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 100%;
    opacity: 0.7;
    background: url(../images/xloading.gif) center no-repeat;
    width: 48px;
    height: 48px;
    transform: translate(-50%, -50%);
  }
  
  /* Additional class that applied to thumb when it is active */
  .xactive {
    /* box-shadow: 0px 0px 3px 0px #4aa9d2; */
    border: 1px solid #4aaad2;
  }
  
  /* Caption */
  .xzoom-caption {
    position: absolute;
    bottom: 0;
    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 (max-width: 500px) {
    img.xzoom {
      max-width: 100vw;
      margin-left: auto;
      margin-right: auto;
    }
  
    /* .xzoom-thumbs .xzoom-gallery {
      width: 20%;
      max-width: 50px;
    } */
    /* a.popup {
        width: 100%;
        max-width: 20% !important;
    } */
  }
  .xzoom-gallery, .xzoom-gallery2, .xzoom-gallery3, .xzoom-gallery4, .xzoom-gallery5 {
    margin-left: 0;
    margin-bottom: 10px;
}
.xzoom-thumbs {
    max-width: 60px;
}
  .fancybox-container {
    z-index: 9999999999 !important;
}
.pdtr-inner {
    margin-left: 40px;
}
.iz-icon a {
    display: flex;
    background: #e1e1e1;
    color: #424242;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 99;
    right: 10px;
    top: 10px;
    font-size: 20px;
    border-radius: 4px;
}