/* Magnific Popup CSS */
.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  position: fixed;
  background: #fff;
		opacity: 0.8;
  }

.mfp-wrap {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1043;
  position: fixed;
  outline: none !important;
  -webkit-backface-visibility: hidden; }

.mfp-wrap:before {
    display:block;
    content: '';
    position: fixed;
    left:0;
    top:0;
    right:0;
    width:100%;
    height: 40px;
    background: #fff;
    z-index: 1049;
	box-shadow: 0 0 5px rgba(0,0,0,0.4);
}

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: calc(100% - 70px);
  left: 0;
  top: 40px;
  padding: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
overflow: auto;}



.mfp-container::-webkit-scrollbar {
    height: 10px;
    width: 10px;
    background: #ddd;
}
.mfp-container::-webkit-scrollbar-thumb:horizontal{
        background: #555;
    border-radius: 10px;
}

.mfp-container::-webkit-scrollbar-thumb:vertical{
        background: #555;
    border-radius: 10px;
}

.mfp-container:before {
  content: '';
  display: inline-block;
  height: 100%;
  vertical-align: middle; }

.mfp-align-top .mfp-container:before {
  display: none; }

.mfp-content {
 /* position: relative; */
  display: inline-block;
  vertical-align: middle;
  margin: 0 auto;
  text-align: left;
}

.mfp-inline-holder .mfp-content, .mfp-ajax-holder .mfp-content {
  width: 100%;
  cursor: auto; }

.mfp-ajax-cur {
  cursor: progress; }

.mfp-zoom-out-cur{
  cursor: -moz-zoom-out;
  cursor: -webkit-zoom-out;
  cursor: zoom-out; }

.mfp-zoom {
  cursor: pointer;
  cursor: -webkit-zoom-in;
  cursor: -moz-zoom-in;
  cursor: zoom-in; }

.mfp-auto-cursor .mfp-content {
  cursor: auto; }

.mfp-close, .mfp-arrow, .mfp-preloader, .mfp-counter {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none; }

.mfp-loading.mfp-figure {
  display: none; }

.mfp-hide {
  display: none !important; }

.mfp-preloader {
  color: #cccccc;
  position: absolute;
  top: 50%;
  width: auto;
  text-align: center;
  margin-top: -0.8em;
  left: 8px;
  right: 8px;
  z-index: 1044; }
  .mfp-preloader a {
    color: #cccccc; }
    .mfp-preloader a:hover {
      color: white; }

.mfp-s-ready .mfp-preloader {
  display: none; }

.mfp-s-error .mfp-content {
  display: none; }




.mfp-counter {
  position: absolute;
  top: 0;
  right: 20px;
  color: #fff;
  font-size: 12px; }

.mfp-arrow {
  position: absolute;
  opacity: 1;
  margin: 0;
  top: 0;
  padding: 0;
  width: 30px;
  height: 30px;
    cursor: pointer;
    border:0;
  }


.mfp-close,
.mfp-arrow-left,
.mfp-arrow-right {
    display:block;
  text-align: left;
    text-indent: -50px;
    position: fixed;
    overflow: hidden;
    left: 5px;
    top:5px;
    width:30px;
    height: 30px;
    margin:0;
    padding:0;
    background:url("../../../theme/default/image/images/icons.svg") -660px -30px no-repeat;
    background-size: 1810px 120px;
    border:0;
    z-index: 1050;
    cursor: pointer;
}

.mfp-close {
    left:auto;
    right:5px;
    background-position: -420px -30px;
    border-radius: 50%;
}

.mfp-arrow-right {
  left:35px; 
    background-position: -630px -30px;
    
}


.mfp-iframe-holder {
  padding-top: 40px;
  padding-bottom: 40px; }
  .mfp-iframe-holder .mfp-content {
    line-height: 0;
    width: 100%;
    max-width: 900px; }
  .mfp-iframe-holder .mfp-close {
    top: -40px; }

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%; }
  .mfp-iframe-scaler iframe {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    background: black; }

/* Main image in popup */
img.mfp-img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  padding: 0;
  margin: 0 auto;
overflow: scroll;
}


/* The shadow behind the image */
.mfp-figure {
  line-height: 0; 
 
}
  .mfp-figure:after {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    bottom: 40px;
    display: block;
    right: 0;
    width: auto;
    height: auto;
    z-index: -1;
}
  .mfp-figure small {
    color: #bdbdbd;
    display: block;
    font-size: 12px;
    line-height: 14px; }

.mfp-bottom-bar {
  position: fixed;
    bottom:0;
      left: 0;
      width: 100%;
    display:block;
    right:0;
    height: 30px;
    background: #fff;
    line-height: 30px;
    vertical-align: middle;
    font-size: 12px;
	box-shadow: 0 0 5px rgba(0,0,0,0.4);
}




.mfp-title {
  text-align: left;
  color: #fff;
    white-space: nowrap;
    display: block;
    padding:0 15px;
}

.mfp-image-holder .mfp-content {
  max-width: 100%; }

.mfp-gallery .mfp-image-holder .mfp-figure {
  cursor: pointer; }

@media screen and (max-width: 800px) and (orientation: landscape), screen and (max-height: 300px) {
  /**
       * Remove all paddings around the image on small screen
       */
  .mfp-img-mobile .mfp-image-holder {
    padding-left: 0;
    padding-right: 0; }
  .mfp-img-mobile img.mfp-img {
    padding: 0; }

    .mfp-img-mobile .mfp-figure small {
      display: inline;
      margin-left: 5px; }
    .mfp-img-mobile .mfp-bottom-bar:empty {
      padding: 0; }



}