
/* === Galerie (standalone styles) === */
.gallery-hero {
  background: var(--color-surface);
  padding: 28px 16px 8px;
  text-align: center;
}
.gallery-hero .lead {
  max-width: 800px;
  margin: 8px auto 0;
  color: var(--color-text-secondary);
}

.gallery-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 16px 36px;
}

/* Responsive grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform .25s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

/* Subtle caption (optional) */
.gallery-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0));
  color: #fff;
  font-size: .9rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,.5);
}
.lightbox .close-btn {
  position: absolute;
  top: 14px; right: 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 10px;
  padding: 8px 10px;
  color: #fff;
  cursor: pointer;
}
.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
}
.lightbox .prev { left: 18px; }
.lightbox .next { right: 18px; }

/* Small helper */
.gallery-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.gallery-controls .hint { font-size: .9rem; color: var(--color-text-secondary); }
