h2{
  font-weight: bold;
  margin-bottom: 15px;
  font-size: 40px;
}

body {
  font-family: Arial, sans-serif;
  background: darkgray;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-align: center;
  font-size: 24px;
} 
/* Dark overlay shared by all popups */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* When overlay is visible */
.overlay.show {
  display: block;
  opacity: 1;
}

/* Common popup styling */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #fff;
  width: 70%;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  opacity: 0;
  transition: all 0.3s ease;
  overflow-y: auto;
  padding: 20px;
  text-align: center;
  border: 6px solid transparent; /* default border, will override per popup */
}
/* Overlay show */
.overlay.show .popup {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Popup close button */
.popup button.close-btn {
  margin-top: 20px;
  padding: 12px 25px;
  background: crimson;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.popup button.close-btn:hover {
  background: darkred;
}

/* Homepage buttons container */
.home-buttons {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
}

/* Homepage button styles */
.home-buttons button {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 24px;
  color: white;
}

.home-red { background: crimson; }
.home-red:hover { background: darkred; }

.home-blue { background: royalblue; }
.home-blue:hover { background: dodgerblue; }

.home-green { background: seagreen; }
.home-green:hover { background: darkgreen; }

.home-purple { background: purple; }
.home-purple:hover { background: indigo; }

/* Container for images */
.popup-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* Each image figure */
.popup-images figure {
  width: 100%;          /* take full container width */
  max-width: 500px;     /* maximum size for large screens */
  text-align: center;
  margin: 0;
}

/* Images */
.popup-images img {
  width: 100%;          /* scale to figure width */
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  max-height: 400px;    /* optional: limit height */
  object-fit: cover;    /* maintain aspect ratio nicely */
}

/* Figcaption (photo credit) */
.popup-images figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
  font-style: italic;
}

/* Popup borders by popup type */
#popup1 .popup { border-color: crimson; }    
#popup2 .popup { border-color: royalblue; }    
#popup3 .popup { border-color: seagreen; }    
#popup4 .popup { border-color: purple; }      
