.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

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

.modal-content {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 32px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}

.modal-content h2 {
  margin-top: 0;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.modal-content p {
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #414141;
  margin-bottom: 1rem;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0,0,0,0.06);
  border: none;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #414141;
  transition: background 0.15s;
}

.close-btn:hover {
  background: rgba(0,0,0,0.12);
}

.modal-image {
  text-align: center;
  margin-top: 1rem;
}

.modal-image img {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
}

.modal-image figcaption {
  font-size: 13px;
  color: #888;
  margin-top: 0.5rem;
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

.modal-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.modal-buttons-container .button {
  max-width: 250px;
}
