/*
 Theme Name:   GeneratePress (Flexbuilder.ninja) 
 Theme URI:    http://example.com/twenty-fifteen-child/
 Description:  GeneratePress (Flexbuilder.ninja) 
 Author:       John Doe
 Author URI:   http://example.com
 Template:     GeneratePress
 Version:      1.0.0
 License:      private 
 License URI:  http://google.com
 Tags:         light, dark, two-columns, right-sidebar, responsive-layout, accessibility-ready
 Text Domain:  generatepresschild 
*/

/* global improvements on generatepress ugliness */
.inside-header
{
	padding: 20px;
}
/* borderless-article pagetemplate removes padding that ruins the page */
.borderless-article .inside-article
{
	padding: 0;
}
/* going borderless requires us to reinstate flex-grow default because incompetent theme author broke it */
.borderless-article main, .borderless-article article
{
	flex-grow: 1;
}
/* works hand-in-hand with the modifications to the BODY tag that are done in the pagetemplate-* classes,
 * they add this to the BODY tag automastically */
.flexbox-enable
{
	display: flex;
	flex-direction: column;
}
.flexbox-enable #page
{
	display: flex;
}
.flexbox-enable .site-main
{
	margin-top: 0;
	margin-bottom: 0;
}
.flexbox-enable article
{
	display: flex;
}
.flexbox-enable .entry-content
{
	flex-direction: column;
}
/* extends the .flexbox-enable to make the page a fullheight flexbox page */
.flexbox-fullheightpage
{
	height: 100vh;
}
.flexbox-fullheightpage #page
{
	flex-grow:1;
	min-height: 0; /* necessary to workaround stupid bug in Chrome/FF */
}
.flexbox-fullheightpage #content, .flexbox-fullheightpage #main, .flexbox-fullheightpage article
{
	flex-grow:1;
}
.flexbox-fullheightpage div.inside-article, .flexbox-fullheightpage div.entry-content
{
	display:flex;
	flex-grow:1;
}
.flexbox-fullheightpage div.inside-article
{
	padding:0;
}
/* ... GeneratePress has an insane 'make all Video blocks render wrongly' default (or is it Wordpress core? Both suck) */
.wp-block-video
{
	margin:0; /** Which idiot put a 'margin-bottom' on all videos, of blank space? */
}
.wp-block-video video
{
display: block; /** which idiot made all videos 'inline' elements? */
}
/* ... GeneratePress has a broken half-arsed attempt to write bad CSS, with a badly designed 'grid-container' selector */
.flexbox-fullheightpage #page.grid-container
{
	max-width:none;
	margin-left:0;
	margin-right:0;
}

/** Fix 'Stackable Blocks' incomptent forced-margin that is incorrect, bad CSS */
.wp-block-cb-slide .stk-block
{
	margin-bottom: 0;
}
/** Incompetent wordpress team broke CSS by putting their crap AFTER the stylesheets, this was
 * eventually fixed in spring 2022, but not backported to Wordpress < 5.9.
 *
 * We have to artificially force an 'increased specificity' to override their shitty, wrong,
 * CSS that they globally spam ontop of the theme
 */
.entry-content div .stk-block, .stck-block
{
	margin-bottom: 0;
}
/** Fix Wordpress's shitty Gutenberg broken CSS for Group blocks */
.wp-block-group__inner-container > h1
{
	margin-left: -40px; /* Gutenberg sucks and adds 40px for no reason to all groups */
	margin-bottom: 0; /* Wordpress authors dont let you set this */
}

/** Themes never let you style Headings cleanly */
.heading-bottom-bordered
{
	border-bottom: thin gray solid;
}
