/* =========================================================
   Wedding Gallery
   Reuses the site's existing typography and gold palette.
   ========================================================= */

.gallery-page {
  min-height: 100vh;
  overflow-x: hidden;
}

.gallery-content {
  position: relative;
  z-index: 1;
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 4rem 0 3rem;
  text-align: center;
}

.gallery-home {
  display: inline-block;
  margin-bottom: 1rem;
  font-family: var(--font-main);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.gallery-flower {
  display: block;
  width: min(420px, 70%);
  margin: 0 auto 1rem;
}

.gallery-flower-bottom {
  margin-top: 4rem;
  margin-bottom: 0;
}

.gallery-content h1 {
  margin-bottom: 0.15em;
}

.gallery-intro {
  margin: 0 auto 4rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.85;
}

/* -----------------------------
   Album sections
   ----------------------------- */

.photo-section {
  margin: 0 auto 5rem;
}

.photo-section h2 {
  margin-bottom: 1.5rem;
}

/* Ordinamento per righe tramite CSS Grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  text-align: left;
}

.photo-card {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 2px;
}

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.45s cubic-bezier(.2,.7,.2,1),
    filter 0.45s ease;
}

.photo-card:hover img {
  transform: scale(1.025);
  filter: brightness(0.92);
}

/* -----------------------------
   Lightbox
   ----------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 4rem;
  background: rgba(20, 18, 15, 0.94);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-figure {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 100%;
  margin: 0;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.35);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 1001;

  border: 0;
  background: transparent;
  color: white;

  font-family: Arial, sans-serif;
  font-weight: 200;
  line-height: 1;

  cursor: pointer;
  opacity: 0.8;

  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-close {
  top: 1.25rem;
  right: 1.5rem;
  font-size: 2.5rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  padding: 1rem;
}

.lightbox-prev {
  left: 0.75rem;
}

.lightbox-next {
  right: 0.75rem;
}

.lightbox-prev:hover {
  transform: translate(-3px, -50%);
}

.lightbox-next:hover {
  transform: translate(3px, -50%);
}

body.lightbox-open {
  overflow: hidden;
}

/* -----------------------------
   Empty state
   ----------------------------- */

.gallery-empty {
  margin: 4rem auto;
  padding: 3rem 1rem;
}

.gallery-empty h2 {
  margin-bottom: 1rem;
}

.gallery-empty code {
  font-family: var(--font-main);
  font-size: 0.9em;
}

/* -----------------------------
   Mobile
   ----------------------------- */

@media (max-width: 700px) {
  .gallery-content {
    width: 94%;
    padding-top: 2rem;
  }

  .gallery-intro {
    margin-bottom: 2.5rem;
  }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
  }

  .lightbox {
    padding: 3rem 0.75rem;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 3rem;
    padding: 0.5rem;
  }

  .lightbox-prev {
    left: 0;
  }

  .lightbox-next {
    right: 0;
  }

  .lightbox-close {
    top: 0.75rem;
    right: 0.9rem;
  }
}

@media (max-width: 430px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
```[cite: 2]