/**
 * MicroModal CSS — modal.css
 * Place in public/css/modal.css
 */
.modal {
  display: none;
}

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

.modal__overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal__container {
  background: #fff;
  padding: 0;
  max-width: 520px;
  width: 90%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: mmfadeIn 0.2s ease;
}

@keyframes mmfadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: #225522;
  color: white;
}

.modal__title {
  font-family: "Uncial Antiqua", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.modal__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0.25rem;
  transition: color 0.15s ease;
}

.modal__close:hover { color: white; }
.modal__close::before { content: '×'; }

.modal-content-content {
  padding: 1.5rem;
}

.modal__content p {
  font-size: 0.9rem;
  color: #444;
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.modal__content p strong {
  color: #225522;
  font-weight: 600;
}

.modal__content .ogham-inscription {
  font-family: 'BABEL', 'Noto Sans Ogham', sans-serif;
  font-size: 1.6rem;
  color: #225522;
  display: block;
  margin: 0.5rem 0 1rem;
  letter-spacing: 0.04em;
}

.modal__footer {
  margin-top: 1.25rem;
  display: flex;
  justify-content: flex-end;
}

.modal__btn {
  padding: 0.55rem 1.25rem;
  background: #225522;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-family: inherit;
  transition: background 0.15s ease;
}

.modal__btn:hover { background: #2d7a2d; }

/* Slide animation variant */
.micromodal-slide .modal__overlay {
  animation: mmfadeIn 0.2s ease;
}
