.mfp-bg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow: hidden;
  position: fixed;
  background: #000;
}

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

.mfp-container {
  width: 100%;
  height: 100%;
  text-align: center;
  position: absolute;
  left: 0;
  top: 0;
  padding: 0 30px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.mfp-container:before {
  content: "";
  height: 100%;
  display: inline-block;
  vertical-align: middle;
}

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

.mfp-fade.mfp-bg {
  opacity: 0;
  -webkit-transition: all 0.3s ease-out;
  transition: all 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;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
}

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

.mfp-loading.mfp-figure,
.mfp-s-ready .mfp-preloader,
.mfp-s-error .mfp-content {
  display: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

.mfp-close,
.mfp-arrow {
  overflow: visible;
  cursor: pointer;
  background: transparent;
  border: 0;
  -webkit-appearance: none;
  display: block;
  outline: none;
  padding: 0;
  z-index: 1046;
  -webkit-box-shadow: none;
          box-shadow: none;
  -ms-touch-action: manipulation;
      touch-action: manipulation;
}

.mfp-close {
  width: 100%;
  height: 30px;
  font-size: 30px;
  line-height: 30px;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  text-decoration: none;
  text-align: right;
  opacity: 0.8;
  color: #fff;
}
.mfp-close:hover, .mfp-close:focus {
  opacity: 1;
}
.mfp-close:active {
  top: 1px;
}

.mfp-counter {
  display: none;
}

.mfp-arrow {
  width: 60px;
  height: 60px;
  padding: 0;
  position: absolute;
  opacity: 0.8;
  top: 50%;
  background: #694E3A;
  border-radius: 50%;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.8);
}
.mfp-arrow:hover {
  opacity: 1;
}
.mfp-arrow:before {
  content: "\f105";
  font: var(--fa-font-solid);
  font-size: min(2.3460410557vw, 24px);
  color: #fff;
  position: absolute;
  top: 50%;
  left: 1em;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  margin: auto;
  text-align: center;
  line-height: min(5.8651026393vw, 60px);
}

.mfp-arrow-left {
  left: -30px;
  -webkit-transform: scale(-1, 1) translateY(-50%);
          transform: scale(-1, 1) translateY(-50%);
}

.mfp-arrow-right {
  right: -30px;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

img.mfp-img {
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  padding: 40px 0 40px;
  display: block;
  line-height: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
@media screen and (min-width: 769px) {
  img.mfp-img {
    max-height: 86vh !important;
  }
}

.mfp-figure {
  line-height: 1;
}
.mfp-figure:after {
  content: "";
  width: auto;
  height: auto;
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 40px;
  display: block;
  right: 0;
  z-index: -1;
  -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
          box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}
.mfp-figure figure {
  margin: 0;
}

.mfp-title {
  width: 100%;
  padding-bottom: 0.3em;
  text-align: center;
  color: #fff;
  word-wrap: break-word;
  position: absolute;
  bottom: 0;
}

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

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

@media screen and (max-width: 768px) {
  .mfp-container {
    padding: 0 2vw;
  }
  .mfp-arrow {
    width: min(6.6666666667vw, 25px);
    height: min(13.3333333333vw, 50px);
    margin: 0;
    border-radius: 100% 0 0 100%/50%;
  }
  .mfp-arrow::before {
    font-size: min(4.2666666667vw, 16px);
    left: 0.55em;
  }
  .mfp-arrow-left {
    left: calc(-2vw - 1px);
  }
  .mfp-arrow-right {
    right: calc(-2vw - 1px);
  }
  img.mfp-img {
    padding: 2.4rem 0;
  }
  .mfp-title {
    font-size: min(4.8vw, 18px);
  }
}