/* ============================================================
   MODAL.CSS — lightbox overlay
   ============================================================ */

#modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0);
  transition: background 300ms ease;
}

#modal.is-open {
  pointer-events: all;
  background: rgba(0, 0, 0, 0.75);
}

/* ── lightbox image ── */

.modal__img {
  max-width:  calc(100vw - 4rem);
  max-height: calc(100vh - 4rem);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
  object-fit: contain;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 300ms cubic-bezier(0.34, 1.2, 0.64, 1),
              opacity  250ms ease;
}

#modal.is-open .modal__img {
  transform: scale(1);
  opacity: 1;
}
