/* THEME */
body {
  background: #2a2a2a;
  color: #ccc;
}

header {
  position: fixed;
  height: 70px; 
  padding: 15px 28px 0;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

header .title {
  position: absolute;
  left: 10%; 
  top: 30px;
  font-size: 22px;
  margin: 0;
}

header .gallery-meta {
  position: relative;
  z-index: 1;
}

header #galleryAuthor a {
  display: inline-block;
  color: #e5e5e5;
  text-decoration: none;
  transition: all 0.3s ease;
}

header #galleryAuthor a:hover {
  color: #ffffff;
  transform: scale(1.15); 
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

header strong#galleryTitle {
  margin-left: 5px;
  color: #ccc;
  font-weight: bold;
}

header .background {
  background: rgba(42, 42, 42, 0.65);
  backdrop-filter: blur(8px);
}

body.loupe-active header {
  display: none;
}

/* HEADER BUTTON */
#buttonFullscreenHeader {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  text-align: center;
  line-height: 42px;
  font-size: 18px;
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

#buttonFullscreenHeader:hover {
  background: rgba(255,255,255,0.35);
  transform: scale(1.1);
}

/* --- THUMBNAILS --- */
.thumbnail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;
  width: 250px;
  height: 250px;
  margin: 14px;
  border-radius: 4px; /* Minimal abgerundete Ecken */
  overflow: hidden; 
  background: transparent;
}

#thumbnailContainer {
  padding-top: 80px !important;
}

.thumbnail img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  transition: transform 0.35s ease;
  border-radius: 4px; 
}

.thumbnail:hover img {
  transform: scale(1.05);
}

.thumbnail:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

/* LOUPE */
#loupeContainer .background {
  background: #2a2a2a;
}

#loupeContainer img {
  width: auto;
  height: auto;
  max-width: 95vw;
  max-height: 88vh;
  object-fit: contain;
  filter: drop-shadow(8px 10px 18px rgba(0,0,0,.4));
  will-change: transform;
}

/* --- TITLE (Beschriftung) --- */
#imageTitle {
  position: fixed;
  bottom: 75px; 
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  /* Leicht transparenter Hintergrund */
  background: rgba(40, 40, 40, 0.4); 
  border-radius: 8px;
  font-size: 16px;
  color: #fff;
  z-index: 31;
  white-space: nowrap;
  backdrop-filter: blur(3px);
}

/* --- FOOTER - STEUERLEISTE --- */
.loupe-footer {
  position: fixed;
  bottom: 15px; 
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  background: rgba(40, 40, 40, 0.5); 
  padding: 10px 14px;
  border-radius: 30px;
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px); /* Unterstützung für Safari */
}

.loupe-footer li {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  font-family: Arial, sans-serif;
  user-select: none;
  transition: background 0.2s ease;
}

.loupe-footer li:hover {
  background: rgba(255, 255, 255, 0.25);
}

.loupe-footer .counter {
  cursor: default;
  background: transparent;
  width: auto;
  padding: 0 10px;
}

.loupe-footer .counter:hover {
  background: transparent;
}

#buttonFullscreenFooter {
  font-size: 18px;
}

/* Sicherheit: Footer verstecken wenn Lupe inaktiv */
body:not(.loupe-active) .loupe-footer {
  display: none;
}