.photo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 40px auto 60px auto;
  max-width: 1100px;
  padding: 0 16px;
}
.mariage-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(124,58,237,0.10);
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s;
}
.mariage-photo:hover {
  transform: scale(1.04) rotate(-1deg);
  box-shadow: 0 8px 32px rgba(124,58,237,0.18);
}

/* Lightbox styles */
#lightbox-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(30, 30, 40, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox-content {
  position: relative;
  background: none;
  border-radius: 18px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}
#lightbox-img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 8px 40px rgba(124,58,237,0.18);
  background: #fff;
  animation: fadeIn 0.4s;
}
.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: color 0.2s;
}
.lightbox-close:hover {
  color: #7c3aed;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  border-radius: 50%;
  width: 54px;
  height: 54px;
  font-size: 2.2rem;
  color: #7c3aed;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(124,58,237,0.10);
}
.lightbox-arrow.left { left: -70px; }
.lightbox-arrow.right { right: -70px; }
.lightbox-arrow:hover {
  background: #7c3aed;
  color: #fff;
  box-shadow: 0 6px 24px rgba(124,58,237,0.18);
}
@media (max-width: 700px) {
  .photo {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
  }
  #lightbox-img {
    max-width: 98vw;
    max-height: 60vh;
  }
  .lightbox-arrow.left { left: 0; }
  .lightbox-arrow.right { right: 0; }
  .lightbox-arrow {
    width: 44px;
    height: 44px;
    font-size: 1.6rem;}
}


.text {
  text-align: center;
  margin: 48px 0 32px 0;
  padding: 0 12px;
}
.text h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #7c3aed;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(124,58,237,0.08);
  animation: fadeInDown 1s;
}
.text p {
  font-size: 1.18rem;
  color: #444;
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 1.2s;
}