.gallery {
  background-color: rgba(255,255,255,.3);
  bottom: 0;
  color: #DDD;
  opacity: .8;
  position: absolute;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -o-transition: all .5s;
  -ms-transition: all .5s;
  transition: all .5s;
  width: 100%;
  z-index: 222;
}

/* Hover Zoom Effekt für Bilder */
.hover-zoom img {
  transition: transform 0.3s ease;
}

.hover-zoom:hover img {
  transform: scale(4);
}

.collage-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin: 0 auto;
  overflow: visible;
  position: relative;
  padding: 40px 0; /* mehr Platz oben/unten */
}

.collage-img {
  max-height: 140px;
  transition: transform 0.3s ease;
  transform: rotate(var(--rotation, 0deg));
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transform-origin: center center;
  z-index: 1;
}

.collage-img:hover {
  transform: rotate(var(--rotation, 0deg)) scale(2.5); /* Starker, aber nicht übertriebener Zoom */
  z-index: 1000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Mobile: Scrollbar, kleiner, kein Zoom */
@media (max-width: 767px) {
  .collage-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 10px;
  }

  .collage-img {
    width: 100px;
    height: auto;
    transform: rotate(var(--rotation, 0deg)) scale(1);
  }

  .collage-img:hover {
    transform: rotate(var(--rotation, 0deg)) scale(1);
    box-shadow: none;
  }
}
