/* Popup overlay (background dim) */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* Popup box */
.popup-box {
  position: relative;
  width: auto;
  height: auto;
  max-width: 853px;
  max-height: 1280px;
}

/* Image should fit perfectly */
.popup-image {
  width: auto;
  height: 70vh;
  max-height: 100%;
  object-fit: contain;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  border: none;
  color: #000;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 5px;
}

.close-btn:hover {
  background: #f0f0f0;
}

/* Optional: hide popup by default */
.hidden {
  display: none;
}