/* ════════════════════════════════════════
   Foto-Raster
   ════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 1 / 1;
  background: var(--cream-darker);
  cursor: pointer;
}

.gallery-item.wide  { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-item.tall  { grid-row:    span 2; aspect-ratio: 1 / 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item .caption {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-sm);
  background: linear-gradient(transparent 40%, rgba(61,43,31,0.7));
  opacity: 0;
  transition: opacity 0.3s;
  color: var(--cream);
  font-size: 0.85rem;
  font-style: italic;
}
.gallery-item:hover .caption { opacity: 1; }

/* Placeholder-Label wenn kein Bild vorhanden */
.gallery-item .placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--sand-light);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 1rem;
}
.gallery-item .placeholder-label .icon { font-size: 2rem; margin-bottom: 0.5rem; }

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 2; aspect-ratio: 16/9; }
  .gallery-item.tall { grid-row: span 1; aspect-ratio: 1/1; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 4/3; }
}

/* ════════════════════════════════════════
   Lightbox (einfach, CSS-only-fähig)
   ════════════════════════════════════════ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 20, 15, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.lightbox-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
