.gallery-image {
  width: 100%;
  height: 300px; /* Standardhöhe, um Einheitlichkeit zu gewährleisten */
  object-fit: cover; /* Sorgt dafür, dass das Bild vollständig den Bereich ausfüllt, ohne verzerrt zu werden */
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
  margin-top: 20px;
}

body {
  background-color: #333; /* Dunkelgrauer Hintergrund */
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 6px,
    rgba(255, 255, 255, 0.1) 6px,
    rgba(255, 255, 255, 0.1) 7px
  );
}

.modal {
  display: none; /* Versteckt das Modal zunächst */
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Ermöglicht das Scrollen, falls das Bild zu groß ist */
  background-color: rgba(0,0,0,0.8);
}
.modal-content {
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 700px; /* Begrenzt die maximale Breite des Modal-Inhalts */
}
.close {
  color: #ff0000; /* Rot für das Schließen-Symbol */
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover,
.close:focus {
  color: #b30000; /* Dunkleres Rot beim Hover */
  text-decoration: none;
}
.modal img {
  width: 100%; /* Stellt sicher, dass das Bild innerhalb des Modals vollständig sichtbar ist */
}
