#future-events {
  text-align: center;
}
#future-events,
#past-events,
#photos {
  padding-left: 0px;
  padding-right: 0px;
}
/* ---------- Sticky Year Header ---------- */
.section {
  background-color: white;
  color: #3388e4;
  border: solid 4px #A7D8FC;
  position: sticky;
  top: 107px;
  z-index: 100;
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}
/* ---------- Month Header ---------- */
.subsection {
  padding: 0.75rem 0;
  font-size: 1rem;
  opacity: 0.7;
}
/* ---------- Masonry ---------- */
.gallery {
  column-count: 4;
  column-gap: 0;
}
@media (max-width: 1200px) {
  .gallery {
    column-count: 3;
  }
}
@media (max-width: 992px) {
  .gallery {
    column-count: 2;
  }
}
@media (max-width: 576px) {
  .gallery {
    column-count: 1;
  }
}
.gallery img {
  width: 100%;
  display: block;
  cursor: pointer;
  break-inside: avoid;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
/* ---------- Fade-in when loaded ---------- */
.gallery img.loaded {
  opacity: 1;
  transform: translateY(0);
}
/* ---------- Hover Glow ---------- */
.gallery img:hover {
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.55);
  transform: scale(1.01);
}
/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}
.lightbox img {
  max-width: 95%;
  max-height: 95%;
}
.lightbox.show {
  display: flex;
}
/* Toggle Buttons */
#toggleRow {
  margin-top: -40px;
  padding-top: 15px;
  position: sticky;
  top: 0px;
  z-index: 1000;
  background-color: #DFF3FC;
}
#toggleRow.sticky-shadow {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.toggle-wrapper {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: inline-flex;
  border-radius: 15px;
  background-color: white;
  border: solid 4px #A7D8FC;
  overflow: hidden;
  padding: 5px;
  margin-bottom: 30px;
  transition: box-shadow 0.3s ease;
  width: 100%;
  max-width: 500px;
}
.toggle-wrapper.sticky-shadow {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.toggle-btn {
  position: relative;
  z-index: 2;
  padding: 10px 20px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #3388e4;
  font-weight: 500;
  transition: color 0.3s;
  flex: 1 1 auto;
}
.toggle-btn.active {
  color: white;
}
.slider-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: #007bff;
  border-radius: 10px;
  /* Smooth slide with ease-out */
  transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease;
  z-index: 1;
  opacity: 1;
}
.slider-indicator.glow {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
  animation: pulseGlow 1.5s ease-in-out infinite alternate;
}
.slider-indicator.highlight {
  opacity: 0.85;
}
@keyframes pulseGlow {
  0% {
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
  }
  50% {
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.5);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
  }
}
.content-wrapper {
  position: relative;
  min-height: 200px;
}
.content {
  display: none;
  opacity: 0;
  padding: 20px;
}
.content.active {
  display: block;
  opacity: 1;
}
