.hidden-popup {
  display: none;
}
#popupOverlay {
  position: fixed;
  inset: 0;
  /* width: 100%;  */
  /* height: 100%; */
  background: rgba(0, 0, 0, 0.879);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.popup-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border-radius: 15px;
  padding: 30px 30px;
  color: white;
  text-align: center;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.5s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
.popup-content img{
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
}
.nextPopup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nextPopup:hover {
  transform: scale(1.1);
  transform: translateY(-3px);
}
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@media (max-width: 576px) {
  .popup-content {
    padding: 10px;
  }
  .nextPopup {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}