body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav li {
  margin-left: 1rem;
}

nav a {
  text-decoration: none;
  color: black;
}

.gallery-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 20px;
}

.gallery-container img {
  height: auto;
  transition: opacity 0.5s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-wrapper {
  position: relative;
  margin: 0.28rem;
}

.image-wrapper.with-title {
  padding-bottom: 1.5rem; /* Fügt einen zusätzlichen Abstand unten hinzu, wenn ein Titel vorhanden ist */
}

.title-element {
  position: absolute;
  bottom: -1.5rem; /* Anpassen, um den Abstand zum Bild zu steuern */
  text-align: center;
  background-color: rgba(255, 255, 255, 0.7);
  color: #333;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  left: 50%;
  transform: translateX(-50%);
}

.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#large-image {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer {
  background-color: #f8f9fa;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}

.footer-content p {
  margin: 0;
  margin-bottom: 10px;
}

.footer-content a {
  color: inherit;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.logo {
  width: 70px;
  height: auto;
  vertical-align: middle;
  margin-right: 10px;
}

nav ul {
  display: flex;
  align-items: center;
}

.logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  margin-top: 10px;
  margin-bottom: 10px;
}

@media screen and (max-width: 767px) {
  .logo {
    width: 80px;
  }
}

.caption-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.28rem;
  background-color: #f8f8f8;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  padding: 3px;
  border-radius: 3px;
}
