.gallery a {
  display: block;
  margin: 0;
}

.gallery-header:empty {
  display: none;
}

.gallery-header h1 {
  color: #2c3e50; /* <--- Tekstfarven her */
  font-family: Tamoha;
  font-size: 1.5em;
  border: 1px solid #000;
  border-radius: 10px;
  padding: 10px 15px;
  margin: 0 0 10px;
}

.gallery-header p {
  margin: 0;
  font-size: 1.1em;
  color: #ddd;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 10px;  
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox.active {
  display: flex;
}

/* Sørg for at overlay'et altid er mørkt */
.lightboxOverlay {
  background-color: rgba(0, 0, 0, 0.85) !important;
}

/* Gør container-ne baggrunde gennemsigtige */
.lb-outerContainer,
.lb-container,
.lb-image {
  background-color: transparent !important;
}

/* Skifter også loading baggrund væk fra hvid */
.lb-data,
.lb-data .lb-number,
.lb-data .lb-caption {
  background-color: transparent !important;
}

/* Background på loading spinner */
.lb-loader {
  background: transparent !important;
}

.gallery-header {
  text-align: center;
  margin-bottom: 30px;
}
