/* 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;
  width: auto;
}

/* --------------- */

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

.xzoom-thumbs {
  text-align: center;
  margin-bottom: 10px;
  justify-items: center;
  display: flex;
}

.xzoom {
  border: 1px solid var(--border-color);
}

/* Thumbs */
.xzoom-gallery {
  border: 1px solid var(--border-color);
  width: 70px;
  height: 100px;
  object-fit: cover;
}

.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: #fff;
  box-shadow: -0px -0px 10px rgba(0, 0, 0, 0.50);
  z-index: 1000;
}

.xzoom-preview {
  min-height: 400px !important;
  width: 400px !important;
  max-height: 400px !important;
}

.xzoom-preview img {
  aspect-ratio: 1/1;
  object-fit: contain;
}

/* Lens */
.xzoom-lens {
  border: 1px solid #555;
  box-shadow: -0px -0px 10px rgba(0, 0, 0, 0.50);
  cursor: crosshair;

}


/* 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;
}