/* Globals */
p, li { font-size: 20px; }
.hentry .entry-content .has-huge-font-size { font-size: 1.5em!important; }
.hentry .entry-content .has-large-font-size { font-size: 1.3em!important; }
img { border-radius: 5px; }
h1, h2, h3, h4, h5, h6 { font-family: "Josefin Sans", sans-serif; font-weight: 500; }
h2+h3, .beta+h3 { border-top: none; }

/* Buttons */
.hentry .entry-content .wp-block-button .wp-block-button__link, .editor-styles-wrapper .wp-block-button .wp-block-button__link { border-radius: 5px; }

/* Media & Text block spacing fix */
.wp-block-media-text { margin-top: 3em; margin-bottom: 3em; }
.wp-block-media-text.has-media-on-the-right>.wp-block-media-text__content { padding: 0 8% 0 0; }

/* Header */
.site-branding { display: flex !important; }
.hentry .entry-header { padding-bottom: 0.5em; }
img.custom-logo { max-width: 2.5em !important; margin-top: -0.4em; }
h1.site-title { margin-left: 0.25em !important; font-size: 1.5em !important; align-self: center; ;}
h1.site-title a { font-weight: 500 !important; color: #5f7568 !important; }
.main-navigation ul.menu>li>a, .main-navigation ul.nav-menu>li>a { font-size: 18px; padding: 0.75em; }
.site-header ul.menu li.current-menu-item > a { font-weight: bold; color: #45967e; }

/* Hide title on homepage and remove spacing */
#post-1 .entry-header { display: none; }
.home.page:not(.page-template-template-homepage) .site-header { margin-bottom: 0; }

/* Search */
.search #post-1 .entry-header { display: block; }
.search .hentry.type-page .entry-header { border-bottom: 1px solid rgba(0,0,0,.05); }
.search .hentry .entry-header { padding-bottom: 0; margin-bottom: 1em; }
.search .hentry .entry-header h2 { padding-bottom: 0; margin-bottom: 0; }
.search p { margin-bottom: 1em; }
.astm-search-menu { margin-top: 2em; }
.handheld-navigation ul.menu li.astm-search-menu button::after { content: none; }
.is-search-form.is-form-style { margin: 0.5em 0; }
.is-search-form.is-form-style.is-form-style-3 input.is-search-input { border-radius: 5px 0 0 5px; }
.is-search-form.is-form-style.is-form-style-3 button.is-search-submit, .is-search-form.is-form-style.is-form-style-3 button.is-search-submit .is-search-icon { border-radius: 0 5px 5px 0; }
.is-search-form.is-form-style.is-form-style-3 button.is-search-submit .is-search-icon:hover, .is-search-form.is-form-style.is-form-style-3 button.is-search-submit .is-search-icon:focus { background-color: #45967E!important; }
.search .category-gallery .wp-block-columns { display: none; }

/* Wide separator fix */
hr.is-style-wide { width: 80%; }

/* Cover styles */
.wp-block-cover.align-full img { border-radius: 0; }
.wp-block-cover.homepage-banner { min-height: 300px; }
.hentry .entry-content .wp-block-cover.homepage-banner .wp-block-cover__inner-container h2{ font-size: 2.5em; color: white; font-weight: 400; }
.wp-block-cover span.has-background-dim { border-radius: 5px; }
.wp-block-cover h2 a { font-weight: inherit; text-decoration: none!important; }
.wp-block-cover h2 a:hover, .wp-block-cover h2 a:focus { text-decoration: underline!important; }
.wp-block-cover h2, .wp-block-cover p { text-shadow: 0 0 32px black; }

/* Feature tiles on homepage */
.wp-block-columns.features {  }
.wp-block-columns.features .wp-block-column { flex-basis: 50%!important; padding: 0.5em; }

/* Latest posts on the homepage */
.wp-block-query ul.wp-block-post-template { margin-left: 0; grid-template-columns: 1fr 1fr!important; }

/* Media block styles */
.wp-block-media-text>.wp-block-media-text__media { margin-bottom: 2em; }

/* Timeline */
ul.wp-block-jetpack-timeline { margin-left: 0; }
ul.wp-block-jetpack-timeline li.wp-block-jetpack-timeline-item { padding: 1em; }
ul.wp-block-jetpack-timeline h3 { font-size: 1.5em; }
ul.wp-block-jetpack-timeline .wp-block-media-text { margin: 0; }
.apa-citations { gap: 0; }
.apa-citations h3 { font-size: 0.8em; text-transform: uppercase; font-weight: bold; }
.apa-citations p { font-size: 0.75em; margin-left: 2em; text-indent: -2em; margin-bottom: 1em; }
.apa-citations p:last-of-type { margin-bottom: 0; }

/* Mobile grid fix */
.wp-block-group.is-layout-grid { display: inherit; }

/* Multi-column lists */
ul.three-col-list { columns: 1; }

/* Resources */
.wp-block-gallery.has-nested-images figure.wp-block-image { height: 37vw; max-height: 200px; }
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img { object-fit: contain; border-radius: 5px }

/* Category page */
.wp-block-query h3.wp-block-post-title { font-size: 1.3em; }
.wp-block-query .wp-block-post-featured-image img:hover, .wp-block-query .wp-block-post-featured-image img:focus { filter: opacity(75%); }
.wp-block-query h3.wp-block-post-title a { text-decoration: none; color: #2c2d33; }
.wp-block-query h3.wp-block-post-title a:hover, .wp-block-query h3.wp-block-post-title a:hover { text-decoration: underline; color: #45967e; }

/* Post page */
.entry-date.published { float: right; font-size: 16px; }
aside.entry-taxonomy { display: none; }
.navigation.post-navigation { display: none; }

/* Related posts */
#jp-relatedposts h3.jp-relatedposts-headline { font-size: 1.5em; }
#jp-relatedposts .jp-relatedposts-items-visual h4.jp-relatedposts-post-title { font-size: 1.25em; margin-top: 1em; text-align: center; }

/* Hide featured images on stitches, gallery, and patterns */
article.category-stitches .attachment-.wp-post-image, article.category-gallery .attachment-.wp-post-image, article.category-patterns .attachment-.wp-post-image { display: none; }

/* Notation table */
.hentry .entry-content .wp-block-table thead th, .hentry .entry-content .wp-block-table td { padding: 1em; border: 1px solid lightgray; }

/* Footer */
.footer-widgets .widget, .footer-widgets .widget p { margin-bottom: 0; }
.footer-widgets .widget_nav_menu ul li { padding-left: 0; margin-bottom: 0.5em; line-height: 1em; font-size: 1em; }
.footer-widgets .widget_nav_menu ul li a { text-decoration: none; color: #494949!important; }
.footer-widgets .widget_nav_menu ul li a:hover, .footer-widgets .widget_nav_menu ul li a:focus { text-decoration: underline; color: #45967e!important; }
.footer-widgets .widget_nav_menu ul li::before { content: none; }
.footer-widgets .footer-widget-2 p { text-align: center; }
.site-info { text-align: center; max-width: 500px; margin: 0 auto; }

/* Media queries */

@media (min-width: 768px) {
	.hentry .entry-content .has-huge-font-size { font-size: 2.2906835em!important; }
	.hentry .entry-content .has-large-font-size { font-size: 1.65em!important; }
	h1.site-title { font-size: 3em!important; }
	img.custom-logo { max-width: 4em !important; }
	.wp-block-query ul.wp-block-post-template { grid-template-columns: 1fr 1fr 1fr 1fr!important; }
	.main-navigation ul.nav-menu>li.menu-item-has-children>a::after { margin-left: 0.5em; font-size: 12px; }
	ul.three-col-list { columns: 3; }
	.wp-block-group.is-layout-grid { display: grid; }
	.main-navigation ul ul li a, .secondary-navigation ul ul li a { width: 220px; }
	.astm-search-menu { margin-top: 0; float: right; }
	.search .category-gallery figure.wp-block-image { width: 40vw; max-width: 400px; margin-bottom: 0; margin-right: 2em; float: left; }
	.search .category-gallery .wp-block-columns { display: flex; }
	.hentry .entry-content .wp-block-cover.homepage-banner .wp-block-cover__inner-container h2{ font-size: 3em; }
	.footer-widgets .footer-widget-2 p { text-align: right; }
	.footer-widgets .footer-widget-2 figure { max-width: 250px; float: right; }
}