.gallery {
  background: linear-gradient(to bottom, #FFB6C1, #fff5f8);
}

.grid {
  column-count: 4;
  column-gap: 0;
  opacity: 1;               /* Gallery is visible */
  visibility: visible;      /* Gallery visible */
  transition: filter 1s ease, opacity 1s ease;
}

.gallery-item {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  display: block;
  transition: filter 0.3s ease-in-out;
}

.image-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  cursor: default;
  transition: filter 0.3s ease-in-out;
  filter: brightness(30%);  /* initial dim */
}

.image-container:hover {
  filter: brightness(70%);
}

.image-container img {
  pointer-events: none;
  user-select: none;
  width: 100%;
  display: block;
}

.image-container.bright {
  filter: brightness(100%) !important;
}

.image-container.bright:hover {
  filter: brightness(75%) !important; /* Slight dim on hover */
}

@media screen and (max-width: 768px) {
  .grid {
    column-count: 3;
  }
}

@media screen and (max-width: 480px) {
  .grid {
    column-count: 2;
  }
}

footer {
  background: transparent;
}

/* Popup Overlay styles */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease;
}

.popup-content {
  background-color: #fff5f8;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 0 100px rgb(255, 0, 204);
  max-width: 400px;
  font-family: 'Lora', serif;
}

.popup-content h2 {
  font-family: 'Great Vibes', cursive;
  font-weight: lighter;
  font-size: 36px;
  color: black;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-shadow: 3px 3px 5px rgba(0,0,0,0.5), 0 0 10px rgba(255,128,225,0.7);
}

#continue-button {
  background-color: #F6C6D7;
  color: black;
  padding: 12px 25px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  border-radius: 30px;
  font-family: 'Lora', serif;
  transition: background-color 1s ease, transform 1s ease;
}

#continue-button:hover {
  background-color: #ffb4ce;
  color: white;
  transform: scale(1.2);
}
