/*
Theme Name: CodeGeek FSE
Author: CodeGeek
Author URI: https://codegeek.net
Theme URI:
Description: A WordPress full site editor theme by CodeGeek
Tags: full-site-editing, editor-style, block-styles, block-patterns, accessibility-ready
Text Domain: codegeek
Version: 3.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.1.1
*/

/* Styles intended only for the front.*/
html {
	scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}

body {
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

/*
* Sticky button is experimental,
* only use it on the front for screens above 782px width.
*/
@media screen and (min-width: 782px) {

	.is-style-codegeek-sticky {
		position: fixed;
		top: 2em;
		right: 2em;
	}

	/* Move the fixed position down to adjust for the WordPress admin bar */
	.admin-bar .is-style-codegeek-sticky {
		top: calc(2em + 32px);
	}

	.is-style-codegeek-sticky-header {
		position: sticky;
		top: 0;
		z-index: 999;
	}

	/* Move the sticky position down to adjust for the WordPress admin bar */
	.admin-bar .is-style-codegeek-sticky-header {
		top: 32px;
	}

}

/* Hide the header block patterns on the paginated results. */
.home.paged .codegeek-pattern-header-image {
	display: none;
}

/* Hide selected sticky posts and paginated results. */
body.query-block-paged .wp-block-query.codegeek-hide-sticky {
	display: none;
}

.codegeek-blog-layout .wp-block-post-template li .wp-block-group:not(.codegeek-post-meta) {
	height: 100%;
}
