.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.3s ease-in;
  padding: 10px;
  box-sizing: border-box;
}

.popup-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: min(95vw, 900px);
  max-height: min(95vh, 600px);
}

.popup-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.4s ease-out;
  display: block;
}

/* ✖ Close Button */
.close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.close-btn:hover {
  background: rgba(210, 28, 19, 0.9);
  transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.85);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .popup-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  /* ✖ Close Button */
  .close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
  }
}
