.image-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--overlay);
}

.modal-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: min(1100px, 100%);
}

.modal-image {
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.modal-caption {
  color: var(--text-light);
}

.modal-close,
.modal-arrow {
  position: absolute;
  z-index: 1;
  padding: 4px 12px;
  background: none;
  border: none;
  color: var(--text);
  line-height: 1;
}

.modal-close:hover,
.modal-arrow:hover {
  color: var(--color-classic-orange);
}

.modal-close {
  top: 16px;
  right: 16px;
  font-size: 2.5rem;
}

.modal-arrow {
  top: 50%;
  font-size: 2rem;
  transform: translateY(-50%);
}

.modal-prev {
  left: 8px;
}

.modal-next {
  right: 8px;
}
