.modalbox-trigger {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font: inherit;
  background: #1f2937;
  color: #fff;
}

.modalbox-trigger:hover,
.modalbox-trigger:focus-visible {
  background: #111827;
}

.modalbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

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

.modalbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.modalbox__dialog {
  position: relative;
  width: min(920px, calc(100% - 3rem));
  max-height: min(90vh, 900px);
  overflow: auto;
  margin: 5vh auto;
  border-radius: 18px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.modalbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 2rem;
  line-height: 1;
}

.modalbox__body {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: start;
}

.modalbox__image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.modalbox__content > :first-child {
  margin-top: 0;
}

.modalbox__content > :last-child {
  margin-bottom: 0;
}

.modalbox__content--full {
  grid-column: 1 / -1;
}

body.modalbox-is-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .modalbox__body {
    grid-template-columns: 1fr;
  }
}