/* Minimal styles for Magnific Popup (jquery-popup.js) - inline image popup */
.mfp-hide {
  display: none;
}

.mfp-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1042;
  overflow: hidden;
  background: #0b0b0b;
  opacity: 0.8;
}

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

.mfp-container {
  text-align: center;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  padding: 0 8px;
  box-sizing: border-box;
}

.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;
  z-index: 1045;
  max-width: 90%;
}

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

.mfp-close {
  width: 44px;
  height: 44px;
  position: absolute;
  right: -6px;
  top: -40px;
  cursor: pointer;
  background: transparent;
  border: 0;
  z-index: 1046;
  color: #fff;
  font-size: 32px;
  line-height: 44px;
  text-align: center;
  opacity: 0.8;
}

.mfp-close:hover {
  opacity: 1;
}

.mfp-fade.mfp-bg {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.8;
}

.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}

.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
}

.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
}

#modal_popup img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .mfp-close {
    top: -36px;
    right: 0;
  }
}
