/**
 * WordPress-only overrides on top of main.css.
 */

body {
	background-color: var(--tk-surface, #f7f3ec);
}

.wp-site-blocks,
.wp-block-group.wp-block-group {
	margin: 0;
	padding: 0;
	gap: 0;
}

/* WP flow layout adds --wp--style--block-gap (24px) between template
   parts. That shows as a white strip above the footer photo. */
.wp-site-blocks > * + *,
.wp-site-blocks > * {
	margin-block-start: 0;
	margin-block-end: 0;
}

.site-footer,
.wf-float {
	margin-top: 0;
}

main.wp-block-group,
.wp-block-post-content {
	max-width: none;
	margin: 0;
}

.wp-block-post-content > * {
	margin-block: 0;
}

.wp-block-post-content .wp-block-thienky-section,
.dalatflora-section-block,
.thienky-section-block {
	max-width: none;
}

/* Gutenberg canvas: keep section blocks full-bleed like the wireframe. */
.editor-styles-wrapper .wp-block[data-type^="thienky/"] {
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.editor-styles-wrapper {
	background: var(--tk-surface, #f7f3ec);
	font-family: Montserrat, ui-sans-serif, system-ui, sans-serif;
}

.thienky-section-ssr a {
	pointer-events: none;
}

/* WP admin bar shifts html; keep the hero inside one visual screen. */
.admin-bar .hero-slider {
	--hero-vh: calc(100dvh - var(--wp-admin--admin-bar--height, 32px));
}

@media (min-width: 1024px) {
	.admin-bar .hero-slider {
		--hero-vh: min(900px, calc(100dvh - var(--wp-admin--admin-bar--height, 32px)));
	}
}
