@import url(./root.css);

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: var(--col-bg-primary);
  color: var(--col-text);
}

/* Header */
.gallery-header {
  text-align: center;
  padding: 80px 20px 40px 20px;
  background: var(--col-bg-content);
  color: var(--col-text);
  border-bottom: 1px solid var(--col-border-primary);
  box-shadow: var(--shiny-shadow);
}



/* Masonry Grid mit Grid statt Columns */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 30px 30px 30px 30px; /* oben + unten + seitlich */
  background: var(--col-bg-primary);
}

/* Item-Größe dynamisch für Masonry */
.gallery-item {
  cursor: pointer;
  break-inside: avoid; /* optional, funktioniert besser bei Columns, aber harmless hier */
  transition: transform 0.5s ease-out;
}

/* Hover: Bild + Item 10px nach oben */
.gallery-item:hover {
  transform: translateY(-10px);
}

/* Bild-Styling */
.gallery-item img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--col-border-primary);
  box-shadow: var(--shiny-shadow-around);
  display: block;
}



/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: var(--col-bg-content);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

.lightbox-close {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 40px;
  color: var(--col-text);
  cursor: pointer;
}

.lightbox-close:hover {
  color: var(--col-link-hover);
}