/* ─── GALLERY ─── */
#gallery {
  background: var(--cream);
  text-align: center;
}

.gallery-header { margin-bottom: 3rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 220px);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

.gallery-item:nth-child(5) {
  grid-column: 3 / 5;
  grid-row: 2 / 3;
}

.gallery-img {
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-img { transform: scale(1.06); }

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(61,43,16,0.7));
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.9);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* Gallery colored blocks */
.g1 { background: linear-gradient(135deg, #D4A843, #E8C56A); }
.g2 { background: linear-gradient(135deg, #C49840, #DDB058); }
.g3 { background: linear-gradient(135deg, #B88830, #D4A048); }
.g4 { background: linear-gradient(135deg, #E2C060, #F0D080); }
.g5 { background: linear-gradient(135deg, #C8A448, #DEB860); }
.g6 { background: linear-gradient(135deg, #D8B050, #ECC870); }

.gallery-inner-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── GALLERY LIGHTBOX & MAGNIFIER ─── */
#gallery-lightbox {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.88); z-index: 9999; align-items: center; justify-content: center; cursor: zoom-out;
}
#gallery-lightbox.active { display: flex; }
#gallery-lightbox img { max-width: 88vw; max-height: 88vh; object-fit: contain; border: 1.5px solid var(--honey-light); box-shadow: 0 0 80px rgba(0,0,0,0.6); cursor: default; }
#gallery-lb-info { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.72); color: #fff; font-family: 'EB Garamond', serif; font-size: 1rem; padding: 0.6rem 1.8rem; border: 1px solid rgba(232,184,75,0.4); white-space: nowrap; }
#gallery-lb-info strong { font-family: 'Cinzel', serif; font-size: 0.78rem; letter-spacing: 0.15em; color: var(--honey); }
#gallery-lb-close { position: absolute; top: 1.2rem; right: 1.5rem; background: none; border: none; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; opacity: 0.8; transition: opacity 0.2s; }
#gallery-lb-close:hover { opacity: 1; }
#gallery-lens { display: none; position: fixed; width: 90px; height: 90px; border: 2px solid var(--honey); pointer-events: none; z-index: 8000; background-repeat: no-repeat; }
#gallery-zoom-panel { display: none; position: fixed; width: 300px; height: 300px; border: 1px solid var(--beige-dark); background: var(--cream) no-repeat; box-shadow: 0 8px 40px rgba(61,43,16,0.2); pointer-events: none; z-index: 8001; }
.gallery-img-badge { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.72)); color: #fff; padding: 1.5rem 0.75rem 0.75rem; transform: translateY(100%); transition: transform 0.28s ease; pointer-events: none; }
.gallery-img-badge strong { display: block; font-family: 'Cinzel', serif; font-size: 0.68rem; letter-spacing: 0.14em; color: var(--honey); margin-bottom: 0.15rem; }
.gallery-img-badge span { font-family: 'EB Garamond', serif; font-size: 0.82rem; opacity: 0.88; }
.gallery-img-badge em { display: block; font-family: 'Cinzel', serif; font-size: 0.72rem; color: var(--honey); margin-top: 0.2rem; font-style: normal; }
.gallery-img-wrap { position: relative; cursor: zoom-in; overflow: visible !important; }
.gallery-img-wrap:hover .gallery-img-badge { transform: translateY(0); }
