/* Centered popup overlay */
.photo-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.6s ease;
  padding: 10px;
}

/* Popup box */
.popup-content {
  position: relative;
  background: #fff8e1;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 850px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  animation: scaleIn 0.5s ease;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 8px;
  right: 15px;
  font-size: 30px;
  color: #ff9933;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s;
}
.close-btn:hover { color: #e68a00; }

/* Heading */
.popup-content h2 {
  color: #ff9933;
  margin-bottom: 15px;
  font-size: 1.8em;
}

/* Carousel area */
.popup-carousel {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 10px;
}

/* Each image stacked and fully visible, smooth curved edges */
.popup-carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: contain;           /* Fit full image */
  background: #fff8e1;           /* Soft warm background (matches popup) */
  opacity: 0;
  transition: opacity 1s ease-in-out;
  border-radius: 500px; //20px;           /* Rounded corners for smooth look */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* soft drop shadow */
}


/* Navigation arrows */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 153, 51, 0.8); /* orange with transparency */
  color: white;
  border: none;
  font-size: 2.5em;
  padding: 5px 12px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s, transform 0.2s;
  z-index: 10;
}

.nav-arrow:hover {
  background: #e68a00;
  transform: translateY(-50%) scale(1.1);
}

/* Left & right positioning */
.nav-arrow.prev {
  left: 15px;
}
.nav-arrow.next {
  right: 15px;
}

/* Hide arrows on small screens if desired */
@media (max-width: 600px) {
  .nav-arrow {
    font-size: 2em;
    padding: 3px 8px;
  }
}



.popup-content {
  background: #fff8e1;
  border-radius: 20px;  /* matches image curve */
  overflow: hidden;     /* ensures corners look neat */
}


/* Visible image */
.popup-carousel img.active {
  opacity: 1;
}

/* Opening animations */
@keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0.8; }
  to { transform: scale(1); opacity: 1; }
}

/* Mobile */
@media (max-width: 600px) {
  .popup-content { width: 95%; padding: 15px; }
  .popup-carousel { height: 250px; }
  .popup-content h2 { font-size: 1.3em; }
}





/* Top-right close (outside popup box) */
.close-btn-top {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  color: #ff9933;
  font-weight: bold;
  cursor: pointer;
  z-index: 3000;
  transition: color 0.3s;
}
.close-btn-top:hover {
  color: #e68a00;
}

/* Bottom centered close button */
.close-bottom-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 20px;
  background: #ff9933;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s, transform 0.2s;
}
.close-bottom-btn:hover {
  background: #e68a00;
  transform: scale(1.05);
}

/* Keep popup box tidy for both close buttons */
.popup-content {
  position: relative;
  background: #fff8e1;
  border-radius: 20px;
  padding: 20px;
  width: 90%;
  max-width: 850px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0,0,0,0.3);
  animation: scaleIn 0.5s ease;
  overflow: hidden;
}
