body { font-family: 'Poppins', sans-serif; margin:0; background:#f4f4f4; }
h1 { text-align:center; padding:20px; }

.gallery img {
  width:100%;
  height:200px;
  object-fit:cover;
  cursor:pointer;
  border-radius:8px;
  transition:0.2s;
}
.gallery img:hover { transform:scale(1.05); }

/* Lightbox */
.lightbox {
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.92);
  align-items:center;
  justify-content:center;
}

.lightbox.active {
  display:flex;
}

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox img {
  max-width:80vw;
  max-height:70vh;
  border-radius:8px;
}

/* Close Button FIXED */
.close {
  position: fixed;
  top: 20px;
  right: 20px;
  color:white;
  font-size:30px;
  cursor:pointer;
  padding:8px 12px;
  border-radius:50%;
  z-index: 1000; /* wichtig */
}

/* Navigation FIXED */
.nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color:white;
  font-size:40px;
  cursor:pointer;
  user-select:none;
  padding:10px;
  z-index: 1000; 
}

.prev { left: 10px; }
.next { right: 10px; }

/* Mobile */
@media (max-width: 768px) {
  .nav {
    font-size:30px;
    padding:8px;
  }
}

.caption { 
  color:white; 
  margin-top:15px; 
  text-align:center; 
}

footer {
  background:#111;
  color:#aaa;
  text-align:center;
  padding:20px;
}

.footer-nav a {
  color:#aaa;
  margin:0 10px;
  text-decoration:none;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer {
  margin-top: auto;
}