/* 🎨 Gutenberg-Galerie: zentriert, 3 Spalten Desktop / 2 Spalten Handy */
.wp-block-gallery {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;          /* Abstand zwischen Bildern */
  justify-content: center !important; /* Zentrierung */
}

/* 🧱 Galerie-Elemente: Desktop = 3 Spalten */
.wp-block-gallery .wp-block-image {
  flex: 1 1 calc(33.333% - 2px) !important;
  max-width: calc(33.333% - 2px) !important;
  box-sizing: border-box;
}

/* 🖼️ Einheitliche Bildgröße */
.wp-block-gallery img {
  height: 100% !important;     /* gewünschte Höhe */
  width: 100% !important;
  object-fit: cover !important; /* füllt Rahmen, ohne Verzerren */
  border-radius: 0;
  display: block;
}

/* 🧩 Container Styling */
.wp-block-gallery figure {
  overflow: hidden;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 📱 Tablet & Handy: 2 Spalten */
@media (max-width: 768px) {
  .wp-block-gallery .wp-block-image {
    flex: 1 1 calc(33.333% - 8px) !important;
    max-width: calc(33.333% - 8px) !important;
  }
}

/* 📱 Sehr schmale Geräte: 1 Spalte */
@media (max-width: 480px) {
  .wp-block-gallery .wp-block-image {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}

