/* ===========================
   Anniversary Section (Mobile XL)
   =========================== */

.anniversary-section {
  text-align: center;
}

.anniversary-header-title {
  font-family: var(--font-serif-primary);
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.anniversary-dates {
  font-family: var(--font-serif-secondary);
  font-size: 2.4rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 1.5rem;
}

.anniversary-tagline {
  font-family: var(--font-sans-secondary);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-complement);
  margin-bottom: 2rem;
}

/* Scripture block */
.scripture-block {
  background: #fff;
  border-left: 5px solid var(--primary-green);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  margin: 0 auto 2.5rem;
  max-width: 90%;
}

.scripture-reference {
  font-family: var(--font-serif-primary);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.scripture-version {
  font-size: 1.4rem;
  color: #555;
  margin-bottom: 1rem;
}

.scripture-verses {
  font-size: 1.6rem;
  line-height: 2.4;
  color: #333;
  font-style: italic;
}

/* Intro text */
.intro-text {
  max-width: 90%;
  margin: 0 auto;
}

.intro-text p {
  font-size: 1.8rem;
  line-height: 2.6;
  color: #333;
  text-align: left;
}

/* ===========================
   Anniversary Photos Grid
   =========================== */

.anniversary-photos {
  margin-top: 2rem;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two columns on mobile */
  gap: 1rem;
  max-width: 95%;
  margin: 0 auto;
}

.photo-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.photo-item img:hover {
  transform: scale(1.03);
}

/* Tablet and up: 3-column grid */
@media (min-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===========================
   Lightbox Modal
   =========================== */

.lightbox {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);

  /* Centering with flexbox */
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex; /* only when active */
}


.lightbox-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}


.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  padding: 0.5rem;
}

.lightbox-close {
  top: 20px;
  right: 35px;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}
