
/*
  IMPORTANT:
  pointer-events: none allows the user
  to interact with the website behind
  the popup.
*/
.popup-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  justify-content: center;
  align-items: center;

  pointer-events: none;
}

/* ----------------------------------
   Popup Card
---------------------------------- */

/*
  pointer-events: auto restores
  interaction INSIDE the popup only.
*/
.popup-card {
  position: relative;

  width: min(90vw, 900px);
  max-height: 94vh;

  border-radius: 16px;
  overflow-x: hidden;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25);

  background: white;

  pointer-events: auto;
}

/* ----------------------------------
   Responsive Image
---------------------------------- */

.popup-image {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
}

/* ----------------------------------
   Close Button
---------------------------------- */

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;

  background: rgba(0, 0, 0, 0.7);
  color: white;

  font-size: 24px;
  line-height: 1;

  cursor: pointer;

  z-index: 2;

  transition: background 0.2s ease;
}

.popup-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* ----------------------------------
   Mobile Adjustments
---------------------------------- */

@media (max-width: 768px) {
  .popup-card {
    width: 92vw;
    border-radius: 12px;
  }

  .popup-close {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
}
