.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background-color: #f3e5c6;
  color: #4b2e12;
}

/* Gallery Section */
.gallery-section {
  padding: 80px 20px;
  text-align: center;
}

.gallery-header h2 {
  font-size: 2rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.gallery-header hr {
  width: 120px;
  margin: 10px auto 40px;
  border: none;
  height: 2px;
  background-color: #bfa98a;
}

/* Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.4s ease, opacity 1s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* Lightbox */
.lightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  position: fixed;
  inset: 0;
  z-index: 999;
}

.lightbox.hidden {
  display: none;
}

#lightbox-img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#lightbox-img.fade {
  opacity: 0;
}

#prev, #next {
  background: rgba(0,0,0,0.3);
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
}

.gallery-section img {
    cursor: pointer;
}
/* Dim all images when lightbox is active */
body.lightbox-active .gallery-item {
  opacity: 0.2;
  filter: brightness(0.5);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* SECTION DIVIDER */
.section-divider {
    height: 2px;
    background: #bfa98a;
    border: none;
    width: 100px;
    margin: 0 auto;
}

/* Highlight the focused image */
body.lightbox-active .gallery-item.focused {
  opacity: 1 !important;
  filter: brightness(1) !important;
}

.close {
  position: absolute;
  top: 25px;
  right: 40px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
}
