/* Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

/* Popup box */
.popup {
  background: #fff;
  width: 90%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  animation: popupFade 0.25s ease;
  max-width: 1200px;
}

/* Image */
.popup-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Text content */
.popup-content {
  padding: 16px;
  text-align: center;
}

.popup-content h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.popup-content p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
}

/* Animation */
@keyframes popupFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Desktop polish */
@media (min-width: 768px) {
  .popup-content h2 {
    font-size: 1.4rem;
  }
}

/* mobile polish */
@media (max-width: 768px) {
  .popup{
    width:98%;
  }
}