.gallery {
  padding: 120px 20px;
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    to bottom,
    rgba(77, 57, 84, 0.95) 0%,
    rgba(77, 57, 84, 0.5) 20%,
    #f7f2f8 50%,
    #ffffff 100%
  );
}
.gallery-header {
  text-align: center;
  margin-bottom: 60px;
}

.gallery-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgb(77, 57, 84);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-grid img {
  width: 100%;
  height: 260px;

  object-fit: contain;   /* 🔥 wichtig */
  object-position: center;

  border-radius: 22px;
  background: transparent; /* oder komplett entfernen */
  padding: 0px;         /* optional für Luft */

  transition: transform 0.4s ease, box-shadow 0.4s ease;
  
  box-shadow: 0 10px 25px rgba(77, 57, 84, 0.1);
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(77, 57, 84, 0.2);
}
@media (max-width: 991px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 220px;
  }

  .gallery {
    padding: 90px 20px;
  }
}
.gallery-grid img:nth-child(2) {
  grid-row: span 2;
  height: 100%;
}
.gallery-item {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 22px;
}

.gallery-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}