header h2 a,
header h2 a:link,
header h2 a:visited,
header h2 a:hover,
header h2 a:active {
  color: black !important;
}
body.dark-mode header h2 a,
body.dark-mode header h2 a:link,
body.dark-mode header h2 a:visited,
body.dark-mode header h2 a:hover,
body.dark-mode header h2 a:active {
  color: white !important;
}
footer {
  position: static;
  padding: 40px 0 20px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  padding: 20px 0;
}
.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
}
.gallery img:hover {
  transform: scale(1.02);
}
@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
  .gallery img {
    height: 200px;
  }
}
/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 50px;
  cursor: pointer;
  user-select: none;
  padding: 20px;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-nav:hover { color: #ccc; }
