/*
Description:    CSS mods for Anvil child themes of Kadence
Version: 		2.0.3 CUSTOM
Author:         R3DF
Author URI:     http://r3df.com
Author email:   support@r3df.com
Copyright: 		Code, css and html - R-Cubed Design Forge
*/


/* R3DF Kadence Anvil - CSS */


/* Undo shadow on entry */
.entry {
	box-shadow: none;
	border-radius: 0;
}
.entry.loop-entry {
	box-shadow: none;
	border-radius: 0;
}

/* remove left margin on first meta item of single post if left aligned */
.single-post .title-align-left .entry-meta.entry-meta-divider-customicon > *:first-child > .kadence-svg-iconset {
	margin-left: 0;
}

/* add overflow-wrap to posts boxes for posts module */
.kt-blocks-post-grid-item .entry-content {
	flow-wrap: break-word;  /* for microsoft */
	overflow-wrap: break-word;
}


/* lists - remove spacing above */
.entry-content p + ul,
.entry-content h1 + ul,
.entry-content h2 + ul,
.entry-content h3 + ul,
.entry-content h4 + ul,
.entry-content h5 + ul,
.entry-content h6 + ul {
	margin-top: -1.25em;
}

/* headings, remove space when first in column */
.wp-block-kadence-column:first-child h1,
.wp-block-kadence-column:first-child h2,
.wp-block-kadence-column:first-child h3,
.wp-block-kadence-column:first-child h4,
.wp-block-kadence-column:first-child h5,
.wp-block-kadence-column:first-child h6 {
	margin-top: 0;
}

/* Menu */
/* Desktop drop down - allow width to fit content, up to 400px */
.header-navigation .header-menu-container ul ul.sub-menu li a {
	max-width: 350px;
	/* min-width: 200px; */
	min-width: 100%;
	width: 280px; /* for browsers that don't support max-content */
	width: max-content;
}

/* Menu Button CSS */
.main-navigation .primary-menu-container .menu-button {
	margin-left: 1em;
}
.main-navigation .primary-menu-container .menu-button a {
	border-radius: 5px;
	color: #ffffff;
	background: #000;
	padding-top: .4em;
	padding-bottom: .4em;
	margin-top: .2em;
	height: auto;
}

.main-navigation .primary-menu-container .menu-button a:hover {
	color: #ffffff;
	background: var(--global-palette1);
}


/* help with full height columns */
.align-bottom .kt-inner-column-height-full .kt-inside-inner-col,
.align-bottom .kt-inner-column-height-full .kt-inside-inner-col .wp-block-kadence-posts .entry-content-wrap /* fix posts block to work with bottom align */ {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.align-bottom .kt-inner-column-height-full .kt-inside-inner-col > :nth-child(n+3):last-child,
.align-bottom .kt-inner-column-height-full .kt-inside-inner-col .bottom, /* help force items to bottom if above selector does not work */
.align-bottom .kt-inner-column-height-full .kt-inside-inner-col .wp-block-kadence-posts footer /* readme in posts block */ {
	margin-top: auto;
}

/* fix posts block to work with bottom align */
.align-bottom .kt-inner-column-height-full .kt-inside-inner-col .wp-block-kadence-posts {
    height: 100%;
}

/* fix headings that are in links "a" as that makes them last child and removes the bottom margin */
.single-content a h1:last-child, .single-content a h2:last-child, .single-content a h3:last-child, .single-content a h4:last-child, .single-content a h5:last-child, .single-content a h6:last-child {
	margin-bottom: .5em;
}


/* fix spacing on columns in rows for mobile */
/* no padding/margin between columns when rows collapse */
@media (max-width:767px) {
	.kt-row-layout-inner .inner-column-2 > .kt-inside-inner-col,
	.kt-row-layout-inner .inner-column-3 > .kt-inside-inner-col,
	.kt-row-layout-inner .inner-column-4 > .kt-inside-inner-col,
	.kt-row-layout-inner .inner-column-5 > .kt-inside-inner-col,
	.kt-row-layout-inner .inner-column-6 > .kt-inside-inner-col {
		margin-top: 40px;
	}
}


.search-field {
	max-width: 350px;
}

.wp-block-image {
	margin-top: 0;
}

.drawer-content .site-header-item {
	margin-bottom: 0px;
}