.image-modal {
  position: fixed;
  inset: 0;
  z-index: 99;
}

.image-modal.hidden {
  display: none;
}

.backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 30, 0.72);
}

.dialog {
  position: relative;
  width: min(1000px, calc(100% - 24px));
  margin: 22px auto;
  overflow: hidden;
  border: 1px solid rgba(70, 120, 181, 0.42);
  border-radius: 12px;
  background: rgba(5, 14, 27, 0.96);
}

.dialog img {
  width: 100%;
  display: block;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  background: rgba(5, 14, 27, 0.96);
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(6, 18, 34, 0.78);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}
