.modal__container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 30001231;
  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;
  overflow: auto;

  transition: all 0.3s ease-in-out;
}

.modal__container--open {
  opacity: 1;
  pointer-events: auto;
}

.modal__container .modal__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  width: 100%;
  height: inherit;
  background-color: #fff;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-80px);
  transition: all 0.3s ease-in-out;
}

.modal__container--open .modal__content {
  transform: translateY(0);
}

.modal__image-wrap {
  max-width: calc(100% - 50px);
  max-height: calc(100% - 50px);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.modal__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal__close {
  --size: 35px;
  position: absolute;
  top: 15px;
  right: 10px;

  min-width: var(--size);
  min-height: var(--size);
  max-width: var(--size);
  max-height: var(--size);
  width: var(--size);
  height: var(--size);

  display: flex;
  align-items: center;
  justify-content: center;

  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #000000;
}

.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 24px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 4px;
}

.modal__nav--prev {
  left: 10px;
}

.modal__nav--next {
  right: 10px;
}

.modal__counter {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  font-size: 20px;
  color: #000000;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  font-family: var(--font-family);
  font-weight: 500;
}

.contact__us_modal .fluentform .ff-el-group:last-child .ff-el-input--content label.ff-el-form-check-label::before,
.contact__us_modal .fluentform .ff-el-group:last-child .ff-el-input--content label.ff-el-form-check-label::after {
  display: none!important;
}

.contact__us_modal .ff-el-input--content .ff-el-form-check label.ff-el-form-check-label span {
  margin-left: 0 !important;
}

@media (max-width: 1200px) {
  .modal__nav {
    padding: 10px;
  }
}

@media (max-width: 900px) {
  .modal__nav--next {
    right: 0;
  }

  .modal__nav--prev {
    left: 0;
  }

  .modal__close {
    top: 10px;
    right: 5px;
  }
}

@media (max-width: 768px) {
  .modal__container .modal__content {
    padding: 10px;
    max-width: 98%;
    max-height: 98%;
  }

  .modal__nav {
    font-size: 18px;
    padding: 8px 12px;
  }
  .modal__close {
    top: 7px;
    right: 9px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
  }

  .modal__counter {
    bottom: 0;
  }
}

@media (max-width: 600px) {
  .modal__container .modal__content {
    border-radius: 6px;
  }
}