/* Page frame for pages built with blocks (template "Blöcke").
   Everything a block can set itself (colours, widths, alignment, spacing,
   image ratios, block styles) comes from the block settings and theme.json;
   side padding and full-width edges come from theme.json's root padding.
   This file only sets the default vertical rhythm, which any block can
   override with its own spacing setting. */

/* Space under the header when a page starts with text; a full-width hero
   sits directly under the header. */
.entry-content--blocks > :first-child:not(.alignfull) {
	margin-block-start: clamp(2.5rem, 6vw, 5rem);
}

.entry-content--blocks > :last-child:not(.alignfull) {
	margin-block-end: clamp(3rem, 6vw, 5rem);
}

/* Default rhythm: sections (groups, columns, covers, wide and full blocks)
   get more room than running text. */
.entry-content--blocks > :is(.alignwide, .alignfull, .wp-block-group, .wp-block-columns, .wp-block-cover, .wp-block-media-text),
.entry-content--blocks > :is(.alignwide, .alignfull, .wp-block-group, .wp-block-columns, .wp-block-cover, .wp-block-media-text) + * {
	margin-block-start: clamp(2.5rem, 5vw, 4rem);
}

.entry-content--blocks > :is(h2, h3, h4, h5, h6),
.entry-content--blocks > .wp-block-group > :is(h2, h3, h4, h5, h6):not(:first-child) {
	margin-block-start: 2.2em;
}

/* Stacked full-width bands touch; so do bands next to padded sections. */
.entry-content--blocks > .alignfull:first-child,
.entry-content--blocks > .alignfull + .alignfull,
.entry-content--blocks > .alignfull + .is-style-karamousli-section,
.entry-content--blocks > .is-style-karamousli-section + .alignfull {
	margin-block-start: 0;
}

.page-title--fallback {
	margin: clamp(2.5rem, 6vw, 4rem) auto 0;
	text-align: center;
}
