/* HERO SECTION START */

.hero-section {
  padding: 0rem 1rem 2rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: #f9ced9;
  color: #e23c65;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.hero-description {
  font-size: 1.25rem;
  color: #475569;
 /* max-width: 48rem;*/
  margin: 0 auto;
  line-height: 1.6;
}

/* GALLERY SECTION */

/* .past-gallery-section-home {
  background: #f4f8fd;
  padding: 40px 0;
  border-top: 1px #CCC solid;
  border-bottom: 1px #d3e5fb solid;
  margin-bottom: 80px;
}
*/

#moments{display:block;}


#moments .gallery-section {
  padding: 2.5rem 1rem 5rem;
}

#moments .gallery-section .container{max-width:60% !important; } 

#moments .timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  justify-content: center;
}

#moments .timeline-header-line {
  height: 4px;
  width: 3rem;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 9999px;
}

#moments .section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
}

#moments .gallery-item,
#moments .gallery-item img {
  cursor: default !important; /* arrow cursor */
}

#moments .gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

#moments .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #e2e8f0;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.5s;
}

#moments .gallery-item::before {
  content: '';
  display: block;
  padding-bottom: 70%;
}


#moments .gallery-item-tall::before {
  padding-bottom: 140%; /* earlier visually too tall */
}


#moments .gallery-item img {cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

#moments .gallery-item:hover {
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

#moments .gallery-item:hover img {
  transform: scale(1.1);
}

#moments .gallery-item-large { cursor:pointer;
  grid-column: span 2;
  grid-row: span 2;
}

#moments .gallery-item-wide {
  grid-column: span 2;
}

#moments .gallery-item-tall {
  grid-row: span 2;
}

#moments .gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.5s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(2px);
}

#moments .gallery-item:hover .gallery-overlay {
  opacity: 1;
}

#moments .gallery-overlay-title {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  transform: translateY(16px);
  transition: transform 0.5s;
}

#moments .gallery-item:hover .gallery-overlay-title {
  transform: translateY(0);
}

#moments .gallery-overlay-year {
  color: #93c5fd;
  font-size: 1.125rem;
  font-weight: 600;
  transform: translateY(16px);
  transition: transform 0.5s 0.075s;
}

#moments .gallery-item:hover .gallery-overlay-year {
  transform: translateY(0);
}

#moments .gallery-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  color: #1e293b;
  padding: 1rem 2.5rem;
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.125rem;
  border: 2px solid #cbd5e1;
  transition: all 0.3s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

#moments .gallery-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s;
}

#moments .gallery-button:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  box-shadow: 0 20px 25px rgba(59, 130, 246, 0.4);
  transform: translateY(-4px);
}

#moments .gallery-button:hover svg {
  transform: translateX(4px);
}

/* RESPONSIVE DESIGN */
@media (min-width: 640px) {
  .hero-title {
    font-size: 1.75rem;
  }

  #moments .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 768px) {
  .hero-section {
    padding: 0rem 1rem 3rem; padding-bottom:0px;
  }

  .hero-title {
    font-size: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 2rem;
  }

  #moments .gallery-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .main-nav {
    width: 100%;
    justify-content: center;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  #moments .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  #moments .gallery-section .container{max-width:100% !important; } 
/* Fix forced height cropping */
  #moments .gallery-item::before,
  #moments .gallery-item-tall::before {
    padding-bottom: 100% !important;
  }

  /* Preserve faces */
  #moments .gallery-item img {
    object-fit: cover !important;
    object-position: 50% 15% !important;
  }

  /* Remove grid spans */
  #moments .gallery-item-large,
  #moments .gallery-item-wide,
  #moments .gallery-item-tall {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }

  #moments .gallery-item-large,
  #moments .gallery-item-wide,
  #moments .gallery-item-tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }
}