.hf-modal {
  align-items: center;
  background: rgba(8, 20, 16, 0.72);
  display: flex;
  inset: 0;
  opacity: 0;
  padding: 24px;
  pointer-events: none;
  position: fixed;
  transition: opacity 220ms ease, backdrop-filter 220ms ease;
  z-index: 99999999;
}

.hf-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hf-modal__dialog {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  margin: 0 auto;
  max-width: 680px;
  overflow: hidden;
  position: relative;
  transform: translateY(14px) scale(0.98);
  transition: transform 240ms ease;
  width: 100%;
}

.hf-modal.is-open .hf-modal__dialog {
  transform: translateY(0) scale(1);
}

.hf-modal__body {
  display: flex;
  justify-content: center;
  padding: 16px;
}

.hf-modal__img {
  border-radius: 12px;
  display: block;
  height: auto;
  max-width: 100%;
}

.hf-modal__close {
  align-items: center;
  background: #0f2f23;
  border: none;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  transition: transform 160ms ease, background 160ms ease;
  width: 36px;
}

.hf-modal__close:hover {
  background: #1f5a43;
  transform: scale(1.05);
}

.hf-modal__close:focus-visible {
  outline: 2px solid #1f5a43;
  outline-offset: 2px;
}

body.hf-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .hf-modal {
    padding: 14px;
  }

  .hf-modal__dialog {
    border-radius: 14px;
  }

  .hf-modal__close {
    right: 10px;
    top: 10px;
  }
}
