.mfp-bg {
  position: fixed;
  z-index: 1042;
  inset: 0;
  overflow: hidden;
  background: #0b0b0b;
  opacity: .8;
}

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

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

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

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

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

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

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

.mfp-close,
.mfp-arrow {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: 32px/44px Arial, sans-serif;
  cursor: pointer;
  opacity: .8;
  appearance: none;
}

.mfp-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  text-align: center;
}

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

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

.mfp-figure {
  margin: 0;
  line-height: 0;
}

.mfp-figure::after {
  position: absolute;
  z-index: -1;
  inset: 40px 0;
  display: block;
  background: #444;
  box-shadow: 0 0 8px rgb(0 0 0 / 60%);
  content: "";
}

.mfp-img {
  display: block;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  padding: 40px 0;
  line-height: 0;
}

.mfp-bottom-bar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: -36px;
  color: #f3f3f3;
  line-height: 18px;
}

.mfp-title {
  padding-right: 36px;
  color: #f3f3f3;
  overflow-wrap: anywhere;
}

.mfp-counter {
  position: absolute;
  top: 0;
  right: 0;
  color: #ccc;
  white-space: nowrap;
}

.mfp-arrow {
  position: absolute;
  z-index: 1046;
  top: 50%;
  width: 44px;
  height: 60px;
  margin-top: -30px;
  font-size: 40px;
}

.mfp-arrow-left {
  left: 0;
}

.mfp-arrow-right {
  right: 0;
}

.mfp-arrow-left::before {
  content: "‹";
}

.mfp-arrow-right::before {
  content: "›";
}

.zoom-anim-dialog {
  position: relative;
  width: min(900px, calc(100% - 32px));
  margin: 20px auto;
  padding: 24px;
  background: #fff;
}

.zoom-anim-dialog iframe {
  display: block;
  width: 100%;
  min-height: 240px;
  aspect-ratio: 16 / 9;
  border: 0;
}

@media (max-width: 600px) {
  .zoom-anim-dialog {
    padding: 16px;
  }
}
