.MediaDisplay img{
  cursor: pointer;
}
.MediaDisplay .img-main{
  cursor:pointer;
  margin: 0 auto;
  border:1px solid white;
  -webkit-transition: opacity 1s ease-in-out;
  -moz-transition: opacity 1s ease-in-out;
  -o-transition: opacity 1s ease-in-out;
  transition: opacity 1s ease-in-out;
}
.MediaDisplay .img-secondary{
  margin-top:10px;

}

.MediaDisplay .selected-picture{
  border:1px solid #c0c0c0;
}
.MediaDisplay .container-pic{
  position:relative;
}
.MediaDisplay .container-pic:hover > div {
    display: block !important;
}
.MediaDisplay .container-pic .overlay-picture-zoom{
  display:none;
  position: absolute;
  width:100%;
  bottom:0px;
  left:0px;
  z-index: 100;
  pointer-events: none;
}
.MediaDisplay .container-pic .overlay-picture-zoom .over{
  opacity: 0.9;
  color: white;
  max-width: 129px;
  border-radius: 10px;
  background: #4f4f4f;
  margin: 0 auto;
  padding: 7px;
  overflow: visible;
  text-align: center;
}
.MediaDisplay .zero-left-margin-padding{
    margin-left: 0px;
    padding-left: 0px;
}
.MediaDisplay .min-width{
  width: 75px;
  height:75px;
}

.MediaDisplay .owl-carousel {
position: relative;
}
.MediaDisplay .owl-prev,.MediaDisplay .owl-next {
position: absolute;
top: 50%;
}
.MediaDisplay .owl-prev {
left: 0;
}
.MediaDisplay .owl-next {
right: 0;
}
.MediaDisplay iframe {
 border: none;
}

.MediaDisplay .left_arrow_navigation {
  cursor: pointer;
  width:15px;
  height:15px;
  position: absolute;
  bottom: 50%;
  margin-left: 5%;
  z-index: 20;
}

.MediaDisplay .right_arrow_navigation {
  cursor: pointer;
  width:15px;
  height:15px;
  position: absolute;
  bottom: 50%;
  margin-left: 95%;
  z-index: 20;
}
/*
 * Space reserved for the gallery before the main picture loads and Owl starts, so nothing below it moves (CLS).
 * The template sets the classes and the variables on #pictureDisplay only when the widget knows the sizes; a layout
 * can tune the rules through the same variables.
 *
 * Main picture: the <img> declares the size of its file (width/height) until it loads. In a flex layout, where
 * #pictureDisplay has no width of its own, it keeps at least min(100%, file width) meanwhile. The load handler of
 * the <img> drops the attributes and .md-reserve-main, so the settled layout is the one without the reservation.
 */
.MediaDisplay #pictureDisplay.md-reserve-main {
  min-width: min(100%, var(--md-main-w, 0px));
}

/*
 * Thumbnails: until Owl starts, owl.carousel.css hides the carousel (display: none). Meanwhile it is shown as a row
 * laid out like Owl will lay it out (item width (W + margin) / items - margin, stage padding at both ends, the
 * proportions of the tallest thumbnail), invisible like before (inline opacity: 0). Owl takes over on
 * initialisation (.owl-loading, then .owl-loaded) and these rules stop applying.
 *
 * If Owl never starts, the row is the fallback: MediaDisplay.js shows it when the Owl plugin is missing or fails, and
 * the md-thumbs-fallback animation shows it after 10s in any case (an animation overrides the inline opacity), still
 * clickable and scrollable sideways. When Owl starts after that, MediaDisplay.js keeps the row shown
 * (MediaDisplay.keepThumbsFallbackShown()).
 */
.MediaDisplay #pictureDisplay.md-reserve-thumbs .owl-carousel:not(.owl-loaded):not(.owl-loading) {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 0 var(--md-thumbs-padding, 0px);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  animation: md-thumbs-fallback 0s linear 10s forwards;
}
.MediaDisplay #pictureDisplay.md-reserve-thumbs .owl-carousel:not(.owl-loaded):not(.owl-loading)::-webkit-scrollbar {
  display: none;
}
.MediaDisplay #pictureDisplay.md-reserve-thumbs .owl-carousel:not(.owl-loaded):not(.owl-loading) > * {
  flex: 0 0 auto;
  width: calc((100% + var(--md-thumbs-margin, 0px)) / var(--md-thumbs-items-sm, 1) - var(--md-thumbs-margin, 0px));
  height: auto;
  aspect-ratio: var(--md-thumbs-aspect, auto);
  margin-right: var(--md-thumbs-margin, 0px);
}
@media (min-width: 560px) {
  .MediaDisplay #pictureDisplay.md-reserve-thumbs .owl-carousel:not(.owl-loaded):not(.owl-loading) > * {
    width: calc((100% + var(--md-thumbs-margin, 0px)) / var(--md-thumbs-items, 1) - var(--md-thumbs-margin, 0px));
  }
}
/*
 * MBRM-306: every thumbnail fits in the row, so MediaDisplay.js lays them out in Owl's markup without starting Owl
 * (MediaDisplay.layOutStaticThumbs()). The items take the width the reserved row gives them, as Owl would.
 */
.MediaDisplay #pictureDisplay.md-reserve-thumbs .owl-carousel.md-thumbs-static .owl-stage {
  display: flex;
  flex-wrap: nowrap;
  padding: 0 var(--md-thumbs-padding, 0px);
}
.MediaDisplay #pictureDisplay.md-reserve-thumbs .owl-carousel.md-thumbs-static .owl-item {
  flex: 0 0 auto;
  width: calc((100% + var(--md-thumbs-margin, 0px)) / var(--md-thumbs-items-sm, 1) - var(--md-thumbs-margin, 0px));
  margin-right: var(--md-thumbs-margin, 0px);
}
@media (min-width: 560px) {
  .MediaDisplay #pictureDisplay.md-reserve-thumbs .owl-carousel.md-thumbs-static .owl-item {
    width: calc((100% + var(--md-thumbs-margin, 0px)) / var(--md-thumbs-items, 1) - var(--md-thumbs-margin, 0px));
  }
}
@keyframes md-thumbs-fallback {
  to {
    opacity: 1;
  }
}
