/* Einzelne Blogbeiträge: Abstände für Bilder & Spalten an restliches Layout anpassen */

/* Feature-Bild oben: etwas weniger Abstand zum Text */
body.single-post .contentpartPage .post-thumbnail {
  margin: 0 0 20px 0;
}

body.single-post .contentpartPage .post-thumbnail img {
  margin: 0;
}

/*
 * Bilder: Abstand über Block/Figure steuern (nicht zusätzlich über img),
 * damit kein doppelter Abstand entsteht. Orientierung: Absatz-Abstand 20px.
 */
body.single-post .contentpartPage .entry-content img {
  margin-top: 0 !important;
  margin-bottom: 0;
}

body.single-post .contentpartPage .entry-content .wp-block-image,
body.single-post .contentpartPage .entry-content figure.wp-block-image,
body.single-post .contentpartPage .entry-content figure:not(.wp-block-gallery figure) {
  margin: 20px 0;
}

/* Spalten: gleicher vertikaler Rhythmus wie Absätze */
body.single-post .contentpartPage .entry-content .wp-block-columns {
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Kein zusätzlicher Top-Abstand am ersten Element jeder Spalte */
body.single-post .contentpartPage .entry-content .wp-block-columns .wp-block-column > *:first-child {
  margin-top: 0 !important;
}

/* Bilder in Spalten: kein Extra-Margin (Layout bleibt bündig) */
body.single-post .contentpartPage .entry-content .wp-block-columns .wp-block-image,
body.single-post .contentpartPage .entry-content .wp-block-columns figure,
body.single-post .contentpartPage .entry-content .wp-block-columns img {
  margin-top: 0 !important;
  margin-bottom: 0;
}

/* Wenn eine Spalte nur aus einem Bild besteht */
body.single-post .contentpartPage .entry-content .wp-block-columns .wp-block-column > .wp-block-image:only-child,
body.single-post .contentpartPage .entry-content .wp-block-columns .wp-block-column > figure:only-child {
  margin: 0;
}
