/* ═══════════════════════════════════════════════════════════
   RepublicMC — Modal Component
   ═══════════════════════════════════════════════════════════ */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 6000;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
}

.modal.is-open {
  display: grid;
}

.modal-dialog {
  width: min(100%, 1100px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 0;
}

.modal-body img {
  width: 100%;
  height: min(70svh, 760px);
  object-fit: cover;
}

.modal-close {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}

.modal-close:hover {
  background: var(--bg-soft);
  color: var(--text);
}

/* ── Responsive Modal ───────────────────────────────────── */
@media (max-width: 560px) {
  .modal-body img {
    height: 54svh;
  }
}

