a {
  text-decoration: none;
}
#overlay-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 320px;
  min-height: 240px;
  width: auto;
  height: auto;
  z-index: 1001;
}
/* Container für den Button */
.gallery-burger-menu {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  user-select: none;
}
/* Basis-Stil für den Button */
.burger-btn {
  background: #333;
  border: none;
  border-radius: 12px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: background 0.3s ease, transform 0.2s ease;
}
.burger-btn:hover {
  background: #2e7d32;
  transform: scale(1.05);
}

/* Das Burger-Icon */
.burger-icon {
  width: 32px;
  height: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.burger-icon span {
  height: 4px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animation beim Öffnen */
.burger-btn.open .burger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger-btn.open .burger-icon span:nth-child(2) {
  opacity: 0;
}
.burger-btn.open .burger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Dropdown */
.burger-dropdown {
  position: absolute;
  top: 74px;
  right: 0;
  background: #212121;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  min-width: 200px;
}
.burger-dropdown.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Einträge */
.burger-item {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 1rem 1.2rem;
  font-size: 1.1rem;
  background: none;
  border: none;
  color: #eee;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
}
.burger-item:hover {
  color: white;
}
.burger-item .icon {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#gallery-header {
  display: none !important;
}
/* Gallery Help Button */

.gallery-header {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1002;
}

/* Gallery Help Dialog */
.image-help {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30,30,30,0.95);
  color: #fff;
  padding: 1.2rem 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  z-index: 1001;
  font-size: 1.08rem;
}

.image-help button {
  background: #43a047;
  color: #fff;
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 1em;
}
/* public/css/gallery.css */
body {
  background-color: #121212;
  color: #f0f0f0;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 2rem;
}
a, button {
  color: #90caf9;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
h2 {
  font-weight: 300;
  margin-top: 0;
}
#gallery {
  column-count: 1;
  column-gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 600px) {
  #gallery {
    column-count: 2;
  }
}
@media (min-width: 1200px) {
  #gallery {
    column-count: 3;
  }
}

.thumb-container {
  display: block;
  break-inside: avoid;
  margin-bottom: 1rem;
  width: 100%;
  aspect-ratio: 3/2;
  background: #23262f;
  border-radius: 18px;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}
.thumb-container:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,198,167,0.25), 0 0 6px rgba(255,255,255,0.1);
  cursor: pointer;
}
.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  pointer-events: none;
}
.thumb-tooltip {
  position: absolute;
  left: 8px;
  bottom: 8px;
  max-width: 280px;
  background: rgba(30, 30, 30, 0.95);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.thumb-container:hover .thumb-tooltip {
  opacity: 1;
}
#overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
}

#overlay video, #overlay img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  display: block;
  margin: 0 auto;
}

#overlay-content img, #overlay-content video {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1), transform 0.4s cubic-bezier(.4,0,.2,1);
}
#overlay-content img.active, #overlay-content video.active {
  opacity: 1;
  transform: translateX(0);
}

#overlay video.active, #overlay img.active {
  transform: translateX(0); /* Slide into view */
}
#nav-left, #nav-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  color: #ffffffaa;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
  transition: color 0.2s ease-in-out; /* Smooth hover effect */
}
#nav-left:hover, #nav-right:hover {
  color: #ffffff;
}
#nav-left { left: 40px; }
#nav-right { right: 40px; }
#overlay-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

.admin-mode-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1500;
  font-size: 1.3rem;
  background: #23262f;
}


@media (max-width: 600px) {
  body {
    padding: 0.5rem;
  }
  #gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.5rem;
    max-width: 100vw;
    column-gap: 0.7rem;
  }
  .thumb-container {
    border-radius: 12px;
    min-height: 120px;
  }
  .video-icon {
    width: 36px;
    height: 36px;
    font-size: 1.7rem;
    bottom: 10px;
    right: 10px;
  }
  #overlay video, #overlay img {
    width: 98vw;
    max-height: 70vh;
    border-radius: 8px;
  }
  #nav-left, #nav-right {
    font-size: 3.5rem;
    left: 10px;
    right: 10px;
  }
  #overlay-close, #reset-overlay {
  font-size: 4.5rem;
  padding: 1.5rem 2.5rem;
  min-width: 80px;
  min-height: 80px;
  border-radius: 50%;
  background: rgba(30,30,30,0.85);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  touch-action: manipulation;
  z-index: 1002;
  }
  .thumb-tooltip {
    max-width: 280px;
    font-size: 1.1rem;
    padding: 6px 12px;
    left: 8px;
    bottom: 8px;
  }
  .container, .about-container {
    padding: 1.2rem 0.7rem;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0,0,0,0.3);
  }
  .login-button {
    font-size: 1.15rem;
    padding: 1rem 1.5rem;
    border-radius: 7px;
  }
  input[type="email"], input[type="password"] {
    width: 95vw;
    font-size: 1.1rem;
    padding: 0.7rem;
  }

    .burger-btn {
    width: 76px;
    height: 76px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  }

  .burger-icon {
    width: 36px;
    height: 30px;
    gap: 8px;
  }

  .burger-icon span {
    height: 6px;
    border-radius: 4px;
  }

  .burger-dropdown {
    top: 84px;
    min-width: 200px;
  }

  .burger-item {
    font-size: 2.0rem;
    padding: 1.2rem 1.8rem;
  }

  .burger-item .icon {
    font-size: 1.6rem;
    width: 2rem;
    height: 2rem;
  }
}

