/*
Theme Name: Y Writing
Description: A child theme for the Twenty Twenty-Four theme.
Author: Dave Barrington
Template: twentytwentyfour
Version: 1.0
*/

/* Custom styles for the child theme can be added below this line */

a:hover {
    opacity: 0.8;
}

a:hover img {
    opacity: 1;
}

a:has(img):hover {
  opacity: 1;
}

img {
	max-width: 100%;
	height: auto;
}

.font-12 {
	font-size: 12px;
}
.hover_pointer:hover {
	cursor: pointer;
}
.justify_content_flexend {
	justify-content: flex-end;
}
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid
}

.header_menu.wp-block-navigation .wp-block-navigation__container {
    gap: 52px !important;
}

hr.thick_divider {
    border-width: 0 0 4px 0;
}

.wp-block-navigation__responsive-container:not(.is-menu-open.is-menu-open) li.current-menu-item a {
    font-weight: 700;

}

:root body :where(.wp-block-post-title a:where(:not(.wp-element-button)):hover) {
    text-decoration: none;
}

.wp-block-post-title a {
    color: var(--wp--preset--color--contrast);
}

.wp-block-post-title a:hover {
    opacity: .7;
}

.wp-block-post .wp-block-mfb-meta-field-block.preferred_category, li.post .featured-category {
    ⁨⁨font-family: "Instrument Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.wp-block-post-template-is-layout-grid.is-layout-grid {
	gap: 45px 24px;
}

.search_row .wp-block-search__inside-wrapper {
    justify-content: flex-end;
}

:where(.wp-site-blocks :focus) {
    outline-width: 1px;
    outline-style: solid;
}
nav.header_menu {
	width: 100%;
	
}

.header_menu ul li {
    min-width: 70px;
    justify-content: center;
}

.header_menu ul li:hover a {
    text-decoration: none;
    font-weight: 700;
    opacity: 1;
}

.header_menu ul li:hover {
    border-bottom: 4px solid var(--wp--preset--color--contrast);
}

ul.header_menu {
    height: 22px;
    align-items: flex-start;
    overflow: visible;
}

.header_menu ul li.menu_item1:hover a,
.header_menu ul li.current-menu-item.menu_item1 a {
    color: var(--wp--preset--color--blue-600) !important;
}

.header_menu ul li.menu_item1:hover,
.header_menu ul li.current-menu-item.menu_item1 {
    border-bottom: 4px solid var(--wp--preset--color--blue-600);
}

.light_nav .header_menu ul li a {
	color: #fff !important;
}

.light_nav .header_menu ul li.menu_item1:hover a,
.light_nav .header_menu ul li.current-menu-item.menu_item1 a {
    color: #CBDCF7 !important;
}

.light_nav .header_menu ul li.menu_item1:hover,
.light_nav .header_menu ul li.current-menu-item.menu_item1 {
    border-bottom: 4px solid #CBDCF7;
}

.header_menu ul li.menu_item2:hover a,
.header_menu ul li.current-menu-item.menu_item2 a {
    color: var(--wp--preset--color--green-800) !important;
}

.header_menu ul li.menu_item2:hover,
.header_menu ul li.current-menu-item.menu_item2 {
    border-bottom: 4px solid var(--wp--preset--color--green-800);
}

.light_nav .header_menu ul li.menu_item2:hover a,
.light_nav .header_menu ul li.current-menu-item.menu_item2 a {
    color: #D8F0E0 !important;
}

.light_nav .header_menu ul li.menu_item2:hover,
.light_nav .header_menu ul li.current-menu-item.menu_item2 {
    border-bottom: 4px solid #D8F0E0;
}


.header_menu ul li.menu_item3:hover a,
.header_menu ul li.current-menu-item.menu_item3 a {
    color: #B35820 !important;
}

.header_menu ul li.menu_item3:hover,
.header_menu ul li.current-menu-item.menu_item3 {
    border-bottom: 4px solid #B35820;
}

.light_nav .header_menu ul li.menu_item3:hover a,
.light_nav .header_menu ul li.current-menu-item.menu_item3 a {
    color: #FFE2D2 !important;
}

.light_nav .header_menu ul li.menu_item3:hover,
.light_nav .header_menu ul li.current-menu-item.menu_item3 {
    border-bottom: 4px solid #FFE2D2;
}

.header_menu ul li.menu_item4:hover a,
.header_menu ul li.current-menu-item.menu_item4 a {
    color: #8C8F26 !important;
}

.header_menu ul li.menu_item4:hover,
.header_menu ul li.current-menu-item.menu_item4 {
    border-bottom: 4px solid #8C8F26;
}
.light_nav .header_menu ul li.menu_item4:hover a,
.light_nav .header_menu ul li.current-menu-item.menu_item4 a {
    color: #FFFDB6 !important;
}

.light_nav .header_menu ul li.menu_item4:hover,
.light_nav .header_menu ul li.current-menu-item.menu_item4 {
    border-bottom: 4px solid #FFFDB6;
}

.is-layout-grid .wpp-thumbnail {
    float: none;
    display: block;
    margin: 12px 0 28px;
}

.wpp-taxonomy.category {
    font-size: 13px;
    font-weight: 700;
}

footer {
    margin-block-start: 0;
}

.text_align_right {
    text-align: right;
}

ol.breadcrumb-items {
	font-size: 13px;
	font-weight: 700;
}

#category-filters{
	margin-bottom: 48px;
	display: flex;
	padding: 8px 0;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

button.filter-btn {
	border-radius: 45px;
	border: 2px solid var(--wp--preset--color--green-800);
	background: #fff;
	padding: 7px 16px;
	⁨⁨font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--wp--preset--color--green-800);
	font-family: var(--wp--preset--font-family--instrument-sans);
	cursor: pointer;
}
button.filter-btn:hover, button.filter-btn.active {
	color: #fff;
	background: var(--wp--preset--color--green-800);	
}

.blog h5.wp-block-post-title {
	margin: 10px 0;
}

.blog .wp-block-post-template {
	box-sizing: border-box;
	list-style: none;
	margin-bottom: 0;
	margin-top: 0;
	max-width: 100%;
	padding: 0;
}
.wp-container-core-group-is-layout-essays {
	flex-wrap: nowrap;
	gap: 8px;
}
.wp-container-core-post-template-is-layout-essays  {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
.blog .excerpt p {
	font-size: 14px;
}
.post_breadcrumbs .breadcrumb-item a {
	color: #89D0A5;
}
.green_partial {
	background: linear-gradient(180deg, rgba(2, 92, 46, 1) 0, rgba(2, 92, 46, 1) 650px, rgba(2, 92, 46, 0) 651px, rgba(2, 92, 46, 0) 100%);
}
.author_info {
	max-width: 755px;
}
.acf-image-shortcode img {
	border-radius: 50%;
}
.home_hero {
	cursor: pointer;
}
.no_margin {
	margin: 0;
}

.essays_pref_cat{
	font-size: 13px;
	font-weight: 700;
	color: var(--wp--preset--color--green-800);
	padding-bottom: 12px;
}

.posts-in-both-cats li {
	list-style: none;
	display: flex;
	flex-direction: row;
}
.posts-in-both-cats .landscape_wrapper {
	padding: 10px 20px;
	max-width: 420px;
}
.posts-in-both-cats .landscape_wrapper h5 {
	margin: 0px 0 7px;
}
.posts-in-both-cats .thumb_wrapper {
	flex-basis: 255px;
	flex-shrink: 0;
}

ol.list_spacing li, ul.list_spacing li {
	margin-bottom: 15px;
}
ol.list_spacing li li, ul.list_spacing li li {
	margin-bottom: 0px;
}
.is-layout-flow > h1,
.is-layout-flow > h2,
.is-layout-flow > h3,
.is-layout-flow > h4,
.is-layout-flow > h5,
.is-layout-flow > h6 {
  margin-block-start: 2.5rem; /* your desired value */
}

/* Only affect Search block when "With Icon" variation is selected */
.is-style-with-icon .wp-block-search__inside-wrapper {
  position: relative;
}

.is-style-with-icon .wp-block-search__input {
  padding-left: 2.5rem; /* space for the SVG */
}

.is-style-with-icon .wp-block-search__inside-wrapper::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='search-icon' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath d='M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z'/%3E%3C/svg%3E");
  pointer-events: none; /* don't block typing */
}
.block-editor-block-list__layout .block-editor-block-list__block .search_results_input, .search_results_input {
	position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.search_results_input .wp-block-search__input {
	border: 0;
	border-bottom: 2px solid var(--wp--preset--color--contrast);
    background: var(--wp--preset--color--green-50);
	border-radius: 0;
}

.zindex_100 {
	position: relative;
	z-index: 100;
}
.zindex_200 {
	position: relative;
	z-index: 200;
}

.wp-block-navigation__responsive-container.is-menu-open ul.wp-block-navigation__container{
	flex-wrap: nowrap;
}

.volume_image {
	height: 185px;
}

.header_wrapper {
		padding-left: var(--wp--preset--spacing--10);
		padding-right: var(--wp--preset--spacing--10);
	}
.header_group .wp-block-group:first-child {
	flex-wrap: nowrap;
}
.nav_col2 {
	flex: 1 1 auto;
}



@media (max-width: 1200px) {
	.wp-container-core-post-template-is-layout-essays {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.nav_col3.search_row {
		flex: 0 1 auto; 
	}
}

@media (max-width: 900px) {
	.wp-container-core-post-template-is-layout-essays {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	
	.header_menu.wp-block-navigation .wp-block-navigation__container {
    	gap: 0 !important;
		justify-content: space-around;
	}
}

/* Navigation switches to hamburger */
@media (max-width: 599px) {
	.header_menu li {
		margin-bottom: 10px;
	}
	.nav_col1 {
		flex: 1 1 auto;
	}
	.nav_col2 {
		flex: 0 0 auto;
	}
	.nav_col3.search_row {
		display: none;
	}
	
	.wp-container-core-post-template-is-layout-essays {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
	ul.posts-in-both-cats {
		padding: 0;
	}
	.posts-in-both-cats li {
		flex-direction: column;		
	}
	.posts-in-both-cats .thumb_wrapper {
		flex-basis: auto;
	}
	.posts-in-both-cats .landscape_wrapper {
		padding: 10px 0;
	}
	.wp-block-navigation__container.footer_nav {
		gap: 30px;
	}
	.green_partial {
	background: linear-gradient(180deg, rgba(2, 92, 46, 1) 0, rgba(2, 92, 46, 1) 350px, rgba(2, 92, 46, 0) 351px, rgba(2, 92, 46, 0) 100%);
}
}