.dtools-photo-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 34px 72px;
  background: rgba(20, 18, 17, 0.86);
  box-sizing: border-box;
}

.dtools-photo-modal.is-open {
  display: flex;
}

.dtools-photo-modal__dialog {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.dtools-photo-modal__image {
  display: block;
  max-width: min(100%, 1180px);
  max-height: 86vh;
  width: auto;
  height: auto;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.dtools-photo-modal__title {
  position: absolute;
  left: 50%;
  top: 0;
  max-width: min(92vw, 980px);
  transform: translateX(-50%);
  padding: 9px 16px;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 3px;
}

.dtools-photo-modal__close,
.dtools-photo-modal__arrow {
  position: absolute;
  border: 0;
  padding: 0;
  color: #ff7900;
  background: transparent;
  cursor: pointer;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}

.dtools-photo-modal__close {
  top: 16px;
  right: 22px;
  width: 42px;
  height: 42px;
  font-size: 38px;
}

.dtools-photo-modal__arrow {
  top: 50%;
  width: 58px;
  height: 84px;
  margin-top: -42px;
  font-size: 78px;
}

.dtools-photo-modal__arrow:hover,
.dtools-photo-modal__close:hover {
  color: #ff9d25;
}

.dtools-photo-modal__prev {
  left: 18px;
}

.dtools-photo-modal__next {
  right: 18px;
}

html.dtools-photo-modal-open,
html.dtools-photo-modal-open body {
  overflow: hidden;
}

@media (max-width: 767px) {
  .dtools-photo-modal {
    padding: 42px 42px 26px;
  }

  .dtools-photo-modal__image {
    max-height: 78vh;
  }

  .dtools-photo-modal__arrow {
    width: 42px;
    font-size: 56px;
  }

  .dtools-photo-modal__prev {
    left: 0;
  }

  .dtools-photo-modal__next {
    right: 0;
  }
}
