<?php
/**
 * Master generated style function
 *
 * @package Verbosa
 */

function verbosa_body_classes( $classes ) {
	$options = cryout_get_option( array(
		'verbosa_image_style','verbosa_magazinelayout','verbosa_comclosed','verbosa_contenttitles', 'verbosa_caption_style',
		'verbosa_elementborder', 'verbosa_elementshadow', 'verbosa_elementborderradius', 'verbosa_fresponsive',
		'verbosa_comlabels', 'verbosa_sidebarback', 'verbosa_comdate'
	) );

	$classes[] = esc_html( $options['verbosa_image_style'] );
	$classes[] = esc_html( $options['verbosa_caption_style'] );

	if ( $options['verbosa_fresponsive'] ) $classes[] = 'verbosa-responsive-featured';
		else $classes[] = 'verbosa-cropped-featured';

	if ( $options['verbosa_magazinelayout'] ) {
		switch ( $options['verbosa_magazinelayout'] ):
			case 1: $classes[] = 'verbosa-magazine-one verbosa-magazine-layout'; break;
			case 2: $classes[] = 'verbosa-magazine-two verbosa-magazine-layout'; break;
			case 3: $classes[] = 'verbosa-magazine-three verbosa-magazine-layout'; break;
		endswitch;
	}
	switch ( $options['verbosa_comclosed'] ) {
		case 2: $classes[] = 'verbosa-comhide-in-posts'; break;
		case 3: $classes[] = 'verbosa-comhide-in-pages'; break;
		case 0: $classes[] = 'verbosa-comhide-in-posts'; $classes[] = 'verbosa-comhide-in-pages'; break;
	}
	if ( $options['verbosa_comlabels'] == 1 ) $classes[] = 'verbosa-comment-placeholder';
	if ( $options['verbosa_comlabels'] == 2 ) $classes[] = 'verbosa-comment-labels';
	if ( $options['verbosa_comdate'] == 1 ) $classes[] = 'verbosa-comment-date-published';

	switch ( $options['verbosa_contenttitles'] ) {
		case 2: $classes[] = 'verbosa-hide-page-title'; break;
		case 3: $classes[] = 'verbosa-hide-cat-title'; break;
		case 0: $classes[] = 'verbosa-hide-page-title'; $classes[] = 'verbosa-hide-cat-title'; break;
	}

	if ( $options['verbosa_elementborder'] ) $classes[] = 'verbosa-elementborder';
	if ( $options['verbosa_elementshadow'] ) $classes[] = 'verbosa-elementshadow';
	if ( $options['verbosa_elementborderradius'] ) $classes[] = 'verbosa-elementradius';

	if ( !$options['verbosa_sidebarback'] ) $classes[] = 'verbosa-no-sidebar-back';

	return $classes;
}
add_filter( 'body_class', 'verbosa_body_classes' );


/*
 * Dynamic styles for the frontend
 */
function verbosa_custom_styles() {
$options = cryout_get_option();
extract($options);

ob_start();
/////////// LAYOUT DIMENSIONS. ///////////
?>

#content, #colophon-inside { max-width: <?php echo esc_html($verbosa_sitewidth); ?>px; }

<?php
/////////// COLUMNS ///////////
$colPadding = 1; // percent
?>

#sidebar 									{ width: <?php echo $verbosa_sidebar; ?>px; }
#container.two-columns-left .main,
#container.two-columns-right .main 			{ width: calc(<?php echo 98-(int)$colPadding ?>% - <?php echo $verbosa_sidebar; ?>px); }
#container.two-columns-left #sidebar-back,
#container.two-columns-right #sidebar-back 	{ width: calc( 50% - <?php echo (($verbosa_sitewidth)/2 - $verbosa_sidebar); ?>px); min-width: <?php echo $verbosa_sidebar;?>px;}


<?php
/////////// FONTS ///////////
?>
html
					{ font-family: <?php echo cryout_font_select( $verbosa_fgeneral, $verbosa_fgeneralgoogle ) ?>;
					  font-size: <?php echo esc_html($verbosa_fgeneralsize) ?>; font-weight: <?php echo esc_html($verbosa_fgeneralweight) ?>;
					  line-height: <?php echo esc_html( floatval($verbosa_lineheight ) ) ?>; }

#site-title 		{ font-family: <?php echo cryout_font_select( $verbosa_fsitetitle, $verbosa_fsitetitlegoogle ) ?>;
					  font-size: <?php echo esc_html($verbosa_fsitetitlesize) ?>; font-weight: <?php echo esc_html($verbosa_fsitetitleweight) ?>; }

#site-description	{ font-family: <?php echo cryout_font_select( $verbosa_fsitedesc, $verbosa_fsitedescgoogle ) ?>;
					  font-size: <?php echo esc_html($verbosa_fsitedescsize) ?>; font-weight: <?php echo esc_html($verbosa_fsitedescweight) ?>; }

#access ul li a 	{ font-family: <?php echo cryout_font_select( $verbosa_fmenu, $verbosa_fmenugoogle ) ?>;
					  font-size: <?php echo esc_html($verbosa_fmenusize) ?>; font-weight: <?php echo esc_html($verbosa_fmenuweight) ?>; }
#mobile-menu ul li a { font-family: <?php echo cryout_font_select( $verbosa_fmenu, $verbosa_fmenugoogle ) ?>; }

.widget-title 		{ font-family: <?php echo cryout_font_select( $verbosa_fwtitle, $verbosa_fwtitlegoogle ) ?>;
					  font-size: <?php echo esc_html($verbosa_fwtitlesize) ?>; font-weight: <?php echo esc_html($verbosa_fwtitleweight) ?>; }
.widget-container 	{ font-family: <?php echo cryout_font_select( $verbosa_fwcontent, $verbosa_fwcontentgoogle ) ?>;
				      font-size: <?php echo esc_html($verbosa_fwcontentsize) ?>; font-weight: <?php echo esc_html($verbosa_fwcontentweight) ?>; }
.entry-title, #reply-title
					{ font-family: <?php echo cryout_font_select( $verbosa_ftitles, $verbosa_ftitlesgoogle ) ?>; color: <?php echo esc_html($verbosa_titletext); ?>;
					  font-size: <?php echo esc_html($verbosa_ftitlessize) ?>; font-weight: <?php echo esc_html($verbosa_ftitlesweight) ?>;}
<?php
$font_root = 260; // headings font size root
for ( $i=1; $i<=6; $i++ ) {
		$size = round( ($font_root-(30*$i))/100 * (preg_replace("/[^\d]/","",esc_html($verbosa_fheadingssize))/100), 5 ); ?>
		h<?php echo $i ?> { font-size: <?php echo $size ?>em; } <?php
} //for ?>
h1, h2, h3, h4, h5, h6 { font-family: <?php echo cryout_font_select( $verbosa_fheadings, $verbosa_fheadingsgoogle ) ?>;
					     font-weight: <?php echo esc_html($verbosa_fheadingsweight) ?>; }


<?php
/////////// COLORS ///////////
?>
body 										{ color: <?php echo esc_html($verbosa_sitetext); ?>;
											  background-color: <?php echo esc_html($verbosa_sitebackground) ?>; }

#site-title a, #access li 					{ color: <?php echo esc_html($verbosa_accent1) ?>; }
#site-description 							{ color: <?php echo esc_html($verbosa_metatext) ?>; }
#access a, #access .dropdown-toggle, #mobile-menu a,
#mobile-menu .dropdown-toggle			{ color: <?php echo esc_html($verbosa_menutext) ?>; }
#access a:hover, #mobile-menu a:hover		{ color: <?php echo esc_html($verbosa_menutexthover) ?>; }
#access li a span:before					{ background-color: <?php echo esc_html(cryout_hexdiff($verbosa_sidebarbackground,51)) ?>; }
#access li:hover > a:before					{ background-color: <?php echo esc_html($verbosa_menutexthover) ?>; }
<?php if (! $verbosa_menubullets) { ?>
#access li a span:before					{ display: none;}
<?php } ?>
.dropdown-toggle:hover:after 				{ border-color: <?php echo esc_html($verbosa_metatext) ?>;}
.searchform:before 							{ background-color: <?php echo esc_html($verbosa_accent2) ?>;
											  color: <?php echo esc_html($verbosa_sidebarbackground) ?>;}
#colophon .searchform:before 				{ color: <?php echo esc_html($verbosa_footerbackground) ?>; }

article.hentry, .main > div:not(#content-masonry), .comment-header,
.main > header, .main > nav#nav-below, .pagination span, .pagination a, #nav-old-below, .content-widget
											{ background-color: <?php echo esc_html($verbosa_contentbackground) ?>; }
#sidebar-back, #sidebar, nav#mobile-menu	{ background-color: <?php echo esc_html($verbosa_sidebarbackground) ?>; }
.pagination a:hover, .pagination span:hover { border-color: <?php echo esc_html($verbosa_metatext); ?>;}
#breadcrumbs-container 						{ background-color: <?php echo esc_html($verbosa_contentbackground); ?>;}
#colophon 									{ background-color: <?php echo esc_html($verbosa_footerbackground); ?>; }

span.entry-format i							{ color: <?php echo esc_html($verbosa_metatext) ?>;
											  border-color: <?php echo esc_html($verbosa_metatext);?>;}
span.entry-format i:hover 					{ color: <?php echo esc_html($verbosa_accent2) ?>; }
.entry-format > i:before 					{ color: <?php echo esc_html($verbosa_metatext);?>;}

.entry-content blockquote::before,
.entry-content blockquote::after 			{ color: rgba(<?php echo cryout_hex2rgb( esc_html($verbosa_sitetext) ) ?>,0.1); }

a 											{ color: <?php echo esc_html($verbosa_accent1); ?>; }
a:hover, .entry-meta span a:hover, .widget-title span,
.comments-link a:hover 						{ color: <?php echo esc_html($verbosa_accent2); ?>; }
.entry-meta a								{ background-image: linear-gradient(to bottom, <?php echo esc_html($verbosa_accent2);?> 0%,  <?php echo esc_html($verbosa_accent2);?> 100%);}
.entry-title a								{ background-image: linear-gradient(to bottom, <?php echo esc_html($verbosa_titletext);?> 0%,  <?php echo esc_html($verbosa_titletext);?> 100%);}
.author-info .author-avatar img 			{ border-color:  <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,17)); ?>;
											  background-color: <?php echo esc_html($verbosa_contentbackground);?> ;}
#footer a, .page-title strong 				{ color: <?php echo esc_html($verbosa_accent1) ?>; }
#footer a:hover								{ color: <?php echo esc_html($verbosa_accent2) ?>; }

.socials a 									{ border-color: <?php echo esc_html($verbosa_accent1); ?>;}
.socials a:before 							{ color: <?php echo esc_html($verbosa_accent1); ?>; }
.socials a:after 							{ background-color: <?php echo esc_html($verbosa_accent2); ?>; }

#commentform								{ <?php if ($verbosa_comformwidth) { echo 'max-width:' . esc_html($verbosa_comformwidth) . 'px;';}?>}

#toTop .icon-back2top:before 				{ color: <?php echo esc_html($verbosa_accent1) ?>; }
#toTop:hover .icon-back2top:before 			{ color: <?php echo esc_html($verbosa_accent2) ?>; }
.page-link a:hover 							{ background: <?php echo esc_html($verbosa_accent2) ?>; color: <?php echo esc_html($verbosa_sitebackground) ?>; }
.page-link > span > em						{ background-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,17)) ?>; }

.verbosa-caption-one .main .wp-caption .wp-caption-text 	{ border-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,17)) ?>; }
.verbosa-caption-two .main .wp-caption .wp-caption-text 	{ background-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,10)) ?>; }

.verbosa-image-one .entry-content img[class*="align"],
.verbosa-image-one .entry-summary img[class*="align"],
.verbosa-image-two .entry-content img[class*='align'],
.verbosa-image-two .entry-summary img[class*='align'] 	{ border-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,17)) ?>; }
.verbosa-image-five .entry-content img[class*='align'],
.verbosa-image-five .entry-summary img[class*='align'] 	{ border-color: <?php echo esc_html($verbosa_accent2);?>; }

/* diffs */

#sidebar .searchform 						{ border-color: <?php echo esc_html( cryout_hexdiff($verbosa_sidebarbackground, 17) ) ?>; }
#colophon .searchform 						{ border-color: <?php echo esc_html( cryout_hexdiff($verbosa_footerbackground, 17) ) ?>; }
.main .searchform 							{ border-color: <?php echo esc_html( cryout_hexdiff($verbosa_contentbackground, 17) ) ?>;
											  background-color: <?php echo esc_html($verbosa_contentbackground) ?>;}
.searchform .searchsubmit					{ color: <?php echo esc_html($verbosa_metatext); ?>;}
.socials a:after							{ color: <?php echo esc_html($verbosa_sidebarbackground); ?>;}
#breadcrumbs-nav .icon-angle-right::before,

.entry-meta span, .entry-meta span a, .entry-utility span, .entry-meta time,
.comment-meta a, .entry-meta .icon-metas:before,
a.continue-reading-link						{ color: <?php echo esc_html($verbosa_metatext) ?>;
											  font-size: <?php echo esc_html($verbosa_fmetassize) ?>; font-weight: <?php echo esc_html($verbosa_fmetasweight) ?>; }
.entry-meta span, .entry-meta span a, .entry-utility span, .entry-meta time,
.comment-meta a, a.continue-reading-link	{ font-family: <?php echo cryout_font_select( $verbosa_fmetas, $verbosa_fmetasgoogle ) ?>; }
a.continue-reading-link						{ background-color: <?php echo esc_html($verbosa_accent2) ?>; color: <?php echo esc_html($verbosa_contentbackground) ?>; }
a.continue-reading-link:hover				{ background-color: <?php echo esc_html($verbosa_accent1) ?>; }
.comment-form > p:before					{ color: <?php echo esc_html($verbosa_metatext) ?>; }
.comment-form > p:hover:before				{ color: <?php echo esc_html($verbosa_accent2) ?>; }

code,
#nav-below .nav-previous a:before, #nav-below .nav-next a:before
											{ background-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,17)) ?>; }
#nav-below .nav-previous a:hover:before, #nav-below .nav-next a:hover:before
											{ background-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,34)) ?>; }
#nav-below em 								{ color: <?php echo esc_html($verbosa_metatext);?>;}
#nav-below > div:before						{ border-color:  <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,17)) ?>;
											  background-color: <?php echo esc_html($verbosa_contentbackground);?>;}
#nav-below > div:hover:before				{ border-color:  <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,34)) ?>;
											  background-color:  <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,34)) ?>;}
pre, article .author-info, .comment-author, #nav-comments, .page-link,
.commentlist .comment-body, .commentlist .pingback, .commentlist img.avatar
											{ border-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,17)) ?>; }

#sidebar .widget-title span					{ background-color: <?php echo esc_html($verbosa_sidebarbackground) ?>; }
#sidebar .widget-title:after				{ background-color: <?php echo esc_html(cryout_hexdiff($verbosa_sidebarbackground,17)) ?>; }
#site-copyright, #footer 					{ border-color: <?php echo esc_html(cryout_hexdiff($verbosa_sidebarbackground,17)) ?>; }

#colophon .widget-title span				{ background-color: <?php echo esc_html($verbosa_footerbackground) ?>; }
#colophon .widget-title:after				{ background-color: <?php echo esc_html(cryout_hexdiff($verbosa_footerbackground,17)) ?>; }

select, input[type], textarea 				{ color: <?php echo esc_html($verbosa_sitetext); ?>;
											  /*background-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,10)) ?>;*/ }
input[type="submit"], input[type="reset"]
											{ background-color: <?php echo esc_html($verbosa_accent1) ?>;
											  color: <?php echo esc_html($verbosa_contentbackground) ?>; }
input[type="submit"]:hover, input[type="reset"]:hover
											{ background-color: <?php echo esc_html($verbosa_accent2) ?>; }
select, input[type], textarea
											{ border-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,22)) ?>; }
input[type]:hover, textarea:hover,
input[type]:focus, textarea:focus
											{ /*background-color: rgba(<?php echo esc_html(cryout_hex2rgb(cryout_hexdiff($verbosa_contentbackground,10))) ?>,0.65);*/
												border-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,50)) ?>;		}

hr											{ background-color: <?php echo esc_html(cryout_hexdiff($verbosa_contentbackground,22)) ?>; }

#toTop 										{ background-color: rgba(<?php echo esc_html(cryout_hex2rgb(cryout_hexdiff($verbosa_contentbackground,5))) ?>,0.8) }

/* gutenberg */
.wp-block-image.alignwide,
.wp-block-image.alignfull {
	margin-left: -<?php echo round( intval($verbosa_elementpadding) * 0.9) ?>rem;
	margin-right: -<?php echo round( intval($verbosa_elementpadding) * 0.9)  ?>rem;
}
.wp-block-image.alignwide img,
.wp-block-image.alignfull img {
	width: <?php echo intval( 100 ) ?>%;
	max-width: <?php echo intval( 100 ) ?>%;
}

.has-accent-1-color, .has-accent-1-color:hover	{ color: <?php echo esc_html( $verbosa_accent1 ) ?>; }
.has-accent-2-color, .has-accent-2-color:hover	{ color: <?php echo esc_html( $verbosa_accent2 ) ?>; }
.has-sitetext-color, .has-sitetext-color:hover	{ color: <?php echo esc_html( $verbosa_sitetext ) ?>; }
.has-sitebg-color, .has-sitebg-color:hover 		{ color: <?php echo esc_html( $verbosa_contentbackground ) ?>; }
.has-accent-1-background-color 				{ background-color: <?php echo esc_html( $verbosa_accent1 ) ?>; }
.has-accent-2-background-color 				{ background-color: <?php echo esc_html( $verbosa_accent2 ) ?>; }
.has-sitetext-background-color 				{ background-color: <?php echo esc_html( $verbosa_sitetext ) ?>; }
.has-sitebg-background-color 				{ background-color: <?php echo esc_html( $verbosa_contentbackground ) ?>; }
.has-small-font-size 						{ font-size: <?php echo intval( intval($verbosa_fgeneralsize) / 1.6 ) ?>px; }
.has-regular-font-size 						{ font-size: <?php echo intval( intval($verbosa_fgeneralsize) * 1.0 ) ?>px; }
.has-large-font-size 						{ font-size: <?php echo intval( intval($verbosa_fgeneralsize) * 1.6 ) ?>px; }
.has-larger-font-size 						{ font-size: <?php echo intval( intval($verbosa_fgeneralsize) * 2.56 ) ?>px; }
.has-huge-font-size 						{ font-size: <?php echo intval( intval($verbosa_fgeneralsize) * 2.56 ) ?>px; }

<?php
/////////// LAYOUT ///////////
?>
.main .entry-content, .main .entry-summary 	{ text-align: <?php echo esc_html($verbosa_textalign) ?>; }
.main p, .main ul, .main ol, .main dd, .main pre, .main hr
											{ margin-bottom: <?php echo floatval( $verbosa_paragraphspace ) ?>em; }
.main p 									{ text-indent: <?php echo floatval( $verbosa_parindent ) ?>em; }
.main a.post-featured-image 				{ background-position: <?php echo esc_html($verbosa_falign) ?>; }
.main .featured-bar							{ height: <?php echo esc_html($verbosa_fbar); ?>px;
											  background-color: <?php echo esc_html($verbosa_accent2);?>;}
.main .featured-bar:before					{ background-color: <?php echo esc_html($verbosa_accent1);?>;}

.main			 							{ margin-top: <?php echo esc_html($verbosa_contentmargintop) ?>px; }
<?php if ($verbosa_fpost) { ?>
.verbosa-cropped-featured .main .post-thumbnail-container
											{ height: <?php echo esc_html($verbosa_fheight) ?>px; }
.verbosa-responsive-featured .main .post-thumbnail-container
											{ max-height: <?php echo esc_html($verbosa_fheight) ?>px; height: auto; }
<?php } ?>

<?php
/////////// ELEMENTS PADDING ///////////
?>
article.hentry, #breadcrumbs-nav,
.verbosa-magazine-one #content-masonry article.hentry, .verbosa-magazine-one .pad-container  {
		padding-left: <?php echo esc_html( $verbosa_elementpadding ) ?>%;
		padding-right: <?php echo esc_html( $verbosa_elementpadding ) ?>%; }
.verbosa-magazine-two #content-masonry article.hentry, .verbosa-magazine-two .pad-container, .with-masonry.verbosa-magazine-two #breadcrumbs-nav {
		padding-left: <?php echo esc_html( round($verbosa_elementpadding/2.1, 2) ) ?>%;
		padding-right: <?php echo esc_html( round($verbosa_elementpadding/2.1, 2) ) ?>%; }
.verbosa-magazine-three #content-masonry article.hentry, .verbosa-magazine-three .pad-container, .with-masonry.verbosa-magazine-three #breadcrumbs-nav {
		padding-left: <?php echo esc_html( round($verbosa_elementpadding/3.1, 2) ) ?>%;
		padding-right: <?php echo esc_html( round($verbosa_elementpadding/3.1, 2) ) ?>%; }
article.hentry .post-thumbnail-container {
		margin-left: -<?php echo esc_html( round($verbosa_elementpadding * 1.5, 2) ) ?>%;
		margin-right: -<?php echo esc_html( round($verbosa_elementpadding * 1.5, 2) ) ?>%;
		width: <?php echo esc_html( (100 + (int)$verbosa_elementpadding * 3) ); ?>%; }

<?php
/////////// HEADER LAYOUT ///////////
?>
#branding img.header-image 				{ max-height: <?php echo esc_html($verbosa_headerheight) ?>px; }
<?php if (! display_header_text() ) { ?>
	#site-title, #site-description		{ display: none; }
<?php };
/////////// lANDING PAGE ///////////
?>
.lp-staticslider .staticslider-caption-title, .seriousslider.seriousslider-theme .seriousslider-caption-title
 					{ font-family: <?php echo cryout_font_select( $verbosa_fsitetitle, $verbosa_fsitetitlegoogle ) ?>;
					 /* font-weight: <?php echo esc_html($verbosa_fsitetitleweight) ?>; */
				   }

.lp-staticslider .staticslider-caption-text, .seriousslider.seriousslider-theme .seriousslider-caption-text
					{ font-family: <?php echo cryout_font_select( $verbosa_fsitedesc, $verbosa_fsitedescgoogle ) ?>;
					 font-weight: <?php echo esc_html($verbosa_fsitedescweight) ?>; }
a[class^="staticslider-button"]	{
					  font-family: <?php echo cryout_font_select( $verbosa_fmetas, $verbosa_fmetasgoogle ) ?>;
					  font-size: <?php echo esc_html($verbosa_fmetassize) ?>;
					  font-weight: <?php echo esc_html($verbosa_fmetasweight) ?>;
					  }
.lp-text-overlay, .lp-text	{ background-color: <?php echo esc_html($verbosa_contentbackground) ?>; }

.lp-staticslider .staticslider-caption,
.seriousslider.seriousslider-theme .seriousslider-caption,
.verbosa-landing-page .lp-text-inside,
.verbosa-landing-page .lp-posts-inside,
.verbosa-landing-page .lp-page-inside,
.verbosa-landing-page .content-widget	{ max-width: <?php echo esc_html( $verbosa_sitewidth ) ?>px;	}
.verbosa-landing-page .content-widget 	{ margin: 0 auto; }

a.staticslider-button-1 {  color: <?php echo esc_html( $verbosa_contentbackground ) ?>;  border-color: <?php echo esc_html( $verbosa_accent2 ) ?>; background-color: <?php echo esc_html( $verbosa_accent2 ) ?>;   }
a.staticslider-button-1:hover { color: <?php echo esc_html( $verbosa_accent2 ); ?>; }
a.staticslider-button-2 {  border-color: <?php echo esc_html( $verbosa_contentbackground ) ?>;  background-color: <?php echo esc_html( $verbosa_contentbackground ) ?>; color: <?php echo esc_html( $verbosa_sitetext ); ?>; }
.staticslider-button-2:hover { color: <?php echo esc_html( $verbosa_contentbackground ) ?>; background-color: transparent; }
<?php // end </style>

	return apply_filters( 'verbosa_custom_styles', preg_replace( '/(([\w-]+):\s*?;?\s*?([;}]))/i', '$3', ob_get_clean() ) );
} // verbosa_custom_styles()


/*
 * Dynamic styles for the admin MCE Editor
 */
function verbosa_editor_styles() {
	$options = cryout_get_option();
	extract($options);

	switch ( $verbosa_sitelayout ) {
		case '1c':
			$verbosa_sidebar = $verbosa_secondarysidebar = 0;
			break;
		case '2cSl':
			$verbosa_secondarysidebar = 0;
			break;
		case '2cSr':
			$verbosa_sidebar = 0;
			break;
		default:
			break;
	}
	$content_body = floor( (int) $verbosa_sitewidth - (int) $verbosa_sidebar );

	ob_start();

	if ( function_exists( 'register_block_type' ) && is_admin() ) {
		$scope = '.wp-block';
	} else if ( ! is_admin() ) {
		$scope = '';
	} ?>

/* Standard blocks */
body.mce-content-body, .wp-block { max-width: <?php echo esc_html( $content_body ); ?>px; }

/* Width of "wide" blocks */
.wp-block[data-align="wide"] { max-width: 1080px; }

/* Width of "full-wide" blocks */
.wp-block[data-align="full"] { max-width: none; }

body.mce-content-body, .block-editor .edit-post-visual-editor {
	background-color: <?php echo esc_html( $verbosa_contentbackground ) ?>	}
body.mce-content-body, .wp-block {
	max-width: <?php echo esc_html( $content_body ); ?>px;
	font-family: <?php echo cryout_font_select( $verbosa_fgeneral, $verbosa_fgeneralgoogle ) ?>;
	font-size: <?php echo esc_html( $verbosa_fgeneralsize ) ?>;
	font-weight: <?php echo esc_html( $verbosa_fgeneralweight ) ?>;
	line-height: <?php echo esc_html( floatval($verbosa_lineheight) ) ?>;
	color: <?php echo esc_html( $verbosa_sitetext ); ?>; }
.block-editor .editor-post-title__block .editor-post-title__input {
	color: <?php echo esc_html( $verbosa_accent2 ) ?>; }
<?php
$font_root = 2.6; // headings font size root
for ( $i = 1; $i <= 6; $i++ ) {
$size = round( ( $font_root - ( 0.30 * $i ) ) * ( preg_replace( "/[^\d]/", "", esc_html( $verbosa_fheadingssize ) ) / 100), 5 ); ?>
h<?php echo $i ?> { font-size: <?php echo $size ?>em; } <?php
} //for ?>
%%scope%% h1, %%scope%% h2, %%scope%% h3, %%scope%% h4, %%scope%% h5, %%scope%% h6 {
	font-family: <?php echo cryout_font_select( $verbosa_fheadings, $verbosa_fheadingsgoogle ) ?>;
	font-weight: <?php echo esc_html( $verbosa_fheadingsweight ) ?>; }

%%scope%% blockquote::before, %%scope%% blockquote::after {
	color: rgba(<?php echo cryout_hex2rgb( esc_html( $verbosa_sitetext ) ) ?>,0.1); }

%%scope%% a 		{ color: <?php echo esc_html( $verbosa_accent1 ); ?>; }
%%scope%% a:hover	{ color: <?php echo esc_html( $verbosa_accent2 ); ?>; }

%%scope%% code	{ background-color: <?php echo esc_html(cryout_hexdiff( $verbosa_contentbackground, 17 ) ) ?>; }
%%scope%% pre		{ border-color: <?php echo esc_html(cryout_hexdiff( $verbosa_contentbackground, 17 ) ) ?>; }

%%scope%% select, %%scope%% input[type], %%scope%% textarea {
	color: <?php echo esc_html( $verbosa_sitetext ); ?>;
	background-color: <?php echo esc_html( cryout_hexdiff( $verbosa_contentbackground, 10 ) ) ?>;
	border-color: <?php echo esc_html( cryout_hexdiff( $verbosa_contentbackground, 17 ) ) ?> }

%%scope%% p, %%scope%% ul, %%scope%% ol, %%scope%% dd, %%scope%% pre, %%scope%% hr {
	margin-bottom: <?php echo floatval( $verbosa_paragraphspace ) ?>em;
}
%%scope%% p { text-indent: <?php echo floatval( $verbosa_parindent ) ?>em; }

<?php // end </style>
	return apply_filters( 'verbosa_editor_styles', str_replace( '%%scope%%', $scope, ob_get_clean() ) );
} // verbosa_editor_styles()

/* backwards wrapper for verbosa_editor_styles() to output the editor style ajax request */
function verbosa_editor_styles_output() {
	header( 'Content-type: text/css' );
	echo verbosa_editor_styles();
	exit();
} // verbosa_editor_styles_output()

/* theme identification for the customizer */
function cryout_customize_theme_identification() {
	ob_start();
	?> #customize-theme-controls [id*="cryout-"] h3.accordion-section-title::before { content: "VE"; border: 1px solid #f26e3f; color: #f26e3f; } <?php
	return ob_get_clean();
} // cryout_customize_theme_identification()


/* FIN */
