.mfp-bg {
  position: fixed !important;
  z-index: 100000 !important;
  background: #071018 !important;
  opacity: 0.94 !important;
}

.mfp-wrap {
  position: fixed !important;
  z-index: 100001 !important;
}

.mfp-container {
  padding: 40px 100px !important;
}

.mfp-content {
  vertical-align: middle !important;
}

.mfp-image-holder .mfp-content {
  width: auto !important;
  max-width: min(1180px, calc(100vw - 200px)) !important;
}

.mfp-image-holder .mfp-content img.mfp-img {
  width: auto !important;
  max-width: 100% !important;
  max-height: calc(100vh - 90px) !important;
  padding: 0 !important;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.mfp-figure::after {
  display: none !important;
}

.mfp-bottom-bar {
  top: auto !important;
  right: 0;
  bottom: -30px;
  left: 0;
  margin: 0 !important;
}

.mfp-counter {
  color: #fff !important;
  font-size: 14px;
}

.mfp-close {
  position: fixed !important;
  top: 20px !important;
  right: 24px !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50%;
  color: #fff !important;
  font-size: 36px !important;
  line-height: 46px !important;
  opacity: 1 !important;
}

.mfp-arrow {
  position: fixed !important;
  top: 50% !important;
  width: 58px !important;
  height: 58px !important;
  margin: -29px 0 0 !important;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12) !important;
  opacity: 1 !important;
}

.mfp-arrow-left {
  left: 22px !important;
}

.mfp-arrow-right {
  right: 22px !important;
}

.mfp-arrow::before {
  display: none !important;
}

.mfp-arrow::after {
  top: 17px !important;
  margin: 0 !important;
}

.mfp-arrow-left::after {
  left: 22px !important;
  border-right-color: #fff !important;
}

.mfp-arrow-right::after {
  left: 25px !important;
  border-left-color: #fff !important;
}

@media (max-width: 767px) {
  .mfp-container {
    padding: 65px 15px !important;
  }

  .mfp-image-holder .mfp-content {
    max-width: calc(100vw - 30px) !important;
  }

  .mfp-image-holder .mfp-content img.mfp-img {
    max-height: calc(100vh - 130px) !important;
    border-radius: 10px;
  }

  .mfp-arrow {
    width: 44px !important;
    height: 44px !important;
    margin-top: -22px !important;
  }

  .mfp-arrow-left {
    left: 6px !important;
  }

  .mfp-arrow-right {
    right: 6px !important;
  }
}
