/*!
Theme Name: montoursville-custom
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: montoursville-custom
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

montoursville-custom is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0 !important;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: black;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	font-size: 1rem;
	line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
    font-size: 1.25rem;
}

body:not(.home) .page-inner {
    font-size: 1rem;
}

hr {
	background-color: var(--blue);
	border: 0;
	height: 2px;
	margin-bottom: 1.5em;
}

ul,
ol {
	/* margin: 0 0 1.5em 3em; */
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

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

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #4169e1;
}

a:hover,
a:focus,
a:active {
	color: var(--light-blue);
}

a:focus {
	outline: thin dotted;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li.focus > ul,
.main-navigation ul ul li > .submenu-toggle:focus + ul,
.main-navigation ul ul li > ul:focus-within,
#primary-menu > li.menu-item-has-children:hover > ul,
#primary-menu > li.menu-item-has-children.active > ul,
#primary-menu > li.menu-item-has-children:focus-within > ul {
	display: block;
	left: auto;
}

/* .main-navigation ul ul a {
	width: 204px;
} */

.main-navigation .sub-menu {
    width: 16rem;
}

.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: none;
}

@media screen and (min-width: 37.5em) {
	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Start custom styles */

:root {
    --dark-blue: #091a2f;
    --blue: #0C2340;
    --light-blue: #1b5093;
    --gold: #FFC72C;
    --off-white: #fbfcfd;
    --light-gray: #c8c8c8;
    --lighter-gray: #d8d8d8;
    --dark-gray: #595959;
    --section-padding: 5rem;
}

div#page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main#primary {
    flex: 1;
}

ul li::marker {
    color: var(--blue);
}

.gray-background {
    background-color: #ededed;
}

article h1, 
article h2, 
article h3, 
article h4, 
article h5, 
article h6 {
    color: var(--blue);
}

th {
    padding: .25rem 0;
    background-color: var(--blue);
    color: white;
}

a {
    color: var(--blue);
    font-weight: 600;
}

button {
    padding: .5rem 1rem;
    background-color: var(--blue);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: .25rem;
    box-shadow: .15rem .15rem .3rem rgba(0,0,0,.5);
    cursor: pointer;
    transition: transform .2s ease-out;
}

button:hover {
    transform: scale(1.05);
}

table tr:nth-of-type(2n+1) {
    background-color: #ededed;
}

.site-branding .site-title {
    font-size: 1.6em;
    color: var(--gold);
}

.site-branding .site-title a {
    text-decoration: none;
    color: inherit;
}

.site-branding p span {
    color: var(--gold);
}

article h1 {
    font-size: 3.2em;
}

article h2 {
    font-size: 2.4em;
}

article h3 {
    font-size: 2em;
}

article h4 {
    font-size: 1.6em;
}

article h5 {
    font-size: 1.2em;
}

article h6 {
    font-size: 1em;
}

#masthead {
    display: flex;
    justify-content: space-evenly;
    background-color: var(--blue);
    height: 11rem;
    padding: 1rem 2rem;
    border-bottom: .25rem solid var(--gold);
    position: relative;
    z-index: 2;
    box-shadow: .5rem .5rem 1rem rgba(0,0,0,.5);
}

.site-branding {
    display: flex;
    gap: 1rem;
    width: fit-content;
}

.site-branding img {
    width: 6em;
    height: auto;
    flex-shrink: 0;
    object-fit: contain;
}

.site-branding p {
    color: var(--light-gray);
    font-size: .8em;
    font-weight: bold;
}

.site-branding > div > * {
    margin: 0;
}

.site-branding > div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .4rem;
}

#site-navigation {
    width: fit-content;
    height: fit-content;
    display: flex;
    gap: 1.5rem;
    margin-bottom: -.5lh;
}

.menu-primary-container a {
    color: white;
    font-size: .92em;
    font-weight: bold;
}

.menu-primary-container #primary-menu {
    display: flex;
    gap: 2rem;
}

.main-navigation-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    color: white;
}

.main-navigation-container > div {
    display: flex;
    justify-content: flex-end;
    gap: 2rem;
    font-size: .92em;
}

.main-navigation-container > div > a {
    display: flex;
}

.grecaptcha-badge {
    display: none;
}

.main-navigation-container > div > a img {
    width: 8.25rem;
    flex-shrink: 0;
    object-fit: contain;
    margin-top: .15rem;
}

.main-navigation-container #primary-menu > li {
    padding-bottom: .5rem;
}

.main-navigation ul.sub-menu {
    flex-direction: column;
    gap: .6rem;
    padding-bottom: .5rem;
    box-shadow: 0 -2px 0 var(--gold);
    border-bottom: 4px solid var(--gold);
    background-color: var(--blue);
}

#primary-menu > li.menu-item-has-children > .sub-menu {
    display: flex !important;
}

#primary-menu > li.menu-item-has-children > .submenu-toggle {
    display: none;
}

.submenu-toggle {
    position: relative;
	width: .75rem;
	height: .75rem;
	margin-left: .5rem;
	padding: 0;
	flex-shrink: 0;
	/* background-image: url('/wp-content/themes/montoursville-custom/images/arrowhead-yellow.png');
	background-size: contain;
	background-repeat: no-repeat; */
    background-color: transparent;
	box-shadow: none;
}

.submenu-toggle:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 2px;
}

.submenu-toggle:hover {
    transform: none;
}

.submenu-toggle::before,
.submenu-toggle::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: white;
	transform: translate(-50%, -50%);
}

.submenu-toggle::before {
    width: 12px;
    height: 2px;
    background: white;
    transition: background-color .25s ease-out;
}

.submenu-toggle::after {
    width: 2px;
    height: 12px;
    background: white;
    transition: opacity .25s ease-out;
}

li.focus > .submenu-toggle::after {
    opacity: 0;
}

li.focus > .submenu-toggle::before {
    background-color: var(--gold);
}

/* Hide for now - probably removing */
/* .main-navigation ul.sub-menu li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    background-image: url('/wp-content/themes/montoursville-custom/images/arrowhead-yellow.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 1rem;
    height: .75rem;
    margin-left: .5rem;
    position: relative;
    top: .15rem;
} */

.main-navigation ul.sub-menu li.menu-item-has-children:hover {
    box-shadow: 0 -2px 0 var(--gold), 0 2px 0 var(--gold);
}

.main-navigation ul.sub-menu li:hover,
.quick-links li:hover {
    box-shadow: 0 2px 0 var(--gold);
}

.main-navigation ul.sub-menu li:hover > a {
    color: var(--gold);
}

.main-navigation ul.sub-menu a {
    position: relative;
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    align-items: center;
    padding-right: .25rem;
    font-weight: 600;
    font-size: .85em;
}

.main-navigation ul.sub-menu li {
    padding: .1875rem 1rem .25rem;
}

/* .main-navigation ul.sub-menu li:hover::before {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: calc(-.25rem - 3px);
    width: 100%;
    height: 1.5px;
    background-color: white;
} */

.main-navigation ul.sub-menu > li:first-of-type {
    padding-top: .1875rem;
}

.main-navigation li.menu-item-has-children {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.main-navigation ul.sub-menu li.menu-item-has-children.focus > ul.sub-menu {
    left: 100%;
}

.quick-links {
    position: relative;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}

.quick-links p {
    margin: 0;
}

.quick-links ul {
    display: none;
    position: absolute;
    top: 100%;
    background-color: white;
    width: fit-content;
    text-wrap: nowrap;
    z-index: 1;
    transform: translateX(-25%);
    flex-direction: column;
    gap: .5rem;
    background-color: var(--blue);
    border: 1px solid var(--gold);
    border-bottom: 4px solid var(--gold);
}

.quick-links:hover ul {
    display: flex;
}

.quick-links a {
    display: block;
    width: 100%;
    color: white;
    text-decoration: none;
}

.quick-links li {
    width: 100%;
    padding: .1875rem 1rem .25rem;
    font-size: .85em;
}

.quick-links img {
    width: 1.25rem;
    height: 1.25rem;
}

.search input {
    border-radius: 0;
    color: black;
    height: 100%;
    width: 0;
    padding: 0;
    border: 0;
    position: absolute;
    top: 2px;
    right: 2.5rem;
    transition: width .3s ease-out, padding .3s ease-out , border .3s ease-out;
}

.search form.open input {
    width: 16rem;
    padding: 3px;
    border: 1px solid var(--gold);
}

.search {
    position: relative;
}

.search form {
    height: 100%;
}

/* .search::after {
    content: "";
    display: block;
    position: absolute;
    top: 1px;
    right: 0;
    width: 1.75rem;
    height: calc(100% - 4px);
    background-image: url('/wp-content/themes/montoursville-custom/images/search-icon2.svg');
    background-size: 85%;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-color: var(--gold);
} */

.search button {
    height: 100%;
    position: relative;
    top: 2px;
    right: 7px;
    background-image: url('/wp-content/themes/montoursville-custom/images/search-icon2.svg');
    background-color: var(--blue);
    background-repeat: no-repeat;
    background-size: 70%;
    background-position: 50% 35%;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: none;
    transition: background-size .3s ease-out, border .3s ease-out, background-position .3s ease-out;
}

.search form.open button {
    background-size: 60%;
    border: 1px solid var(--gold);
    background-position: 50% 50%;
}

.search button:hover {
    transform: none;
}

.search form.open input:focus {
    outline: 0;
    box-shadow: inset 0 0 0 1.5px var(--gold);
}

.default-side-menu {
    position: sticky;
    top: 0;
    left: 0;
    width: 16rem;
    height: 100vh;
    padding: .5rem;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: .5rem .5rem 1rem rgba(0,0,0,.5);
    background-color: var(--blue);
    color: white;
}

.side-menu-background {
    display: none;
}

.default-side-menu .side-menu-toggle {
    display: none;
    padding: 0;
    height: 3.5rem;
    width: 1.75rem;
    box-shadow: none;
    background-color: var(--blue);
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid var(--gold);
    border-top-right-radius: 1rem;
    border-bottom-right-radius: 1rem;
    transition: border .25s ease-out;
}

.default-side-menu.open .side-menu-toggle {
    border: none;
}

.default-side-menu .side-menu-toggle::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-image: url('images/chevron.svg');
    background-size: 125%;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform .25s ease-out;
}

.default-side-menu.open .side-menu-toggle::after {
    transform: rotate(180deg);
}

/* .side-menu-toggle::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc(50% - .15rem);
    width: 1.25rem;
    height: 3px;
    background: currentColor;
    transform: translate(-50%, -50%);
    box-shadow:
        0 -6px 0 currentColor,
        0  6px 0 currentColor;
} */

.side-menu-logo {
	background-color: var(--blue);
	padding: 2rem 10%;
}

.default-side-menu input {
    margin: 2rem auto;
    display: block;
    width: calc(100% - 2rem);
}

.default-side-menu h2 {
    position: relative;
    margin: 0;
    line-height: 1;
    font-size: 1.15em;
}

/* Removing to try a few different designs.  Possibly delete later */
/* .default-side-menu h2::after {
    content: '';
    display: inline-block;
    background-image: url('/wp-content/themes/montoursville-custom/images/arrowhead-yellow.png');
    background-size: contain;
    background-repeat: no-repeat;
    width: 1.75rem;
    height: 1.365rem;
    position: relative;
    top: .35rem;
} */

.default-side-menu ul {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    padding: .5rem;
    margin: .5rem 0 1rem;
    list-style: none;
    font-weight: 600;
    height: 2.5rem;
    border-radius: .5rem;
    overflow: hidden;
    transition: height .25s ease-out, background-color .25s ease-out;
}

.default-side-menu > div {
    overflow: auto;
    scrollbar-width: thin;
    max-height: calc(100vh - 4rem);
}

.default-side-menu > div::-webkit-scrollbar {
    width: 6px;
}

.default-side-menu > div::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    border-radius: 3px;
}

.default-side-menu > div::-webkit-scrollbar-track {
    background-color: transparent;
}

.default-side-menu > div > ul {
    background-color: var(--blue);
    margin: 1rem .5rem;
    padding: 1rem .5rem;
}

.default-side-menu > div > ul.open {
    background-color: rgba(255,255,255, .1);
    height: auto;
}

.default-side-menu > div > ul.open ul {
    height: auto;
}

.default-side-menu > div > ul.open .sub-menu {
    margin-bottom: 0;
    background-color: var(--blue);
}

.default-side-menu ul.open {
    height: fit-content;
}

.default-side-menu .side-menu-header {
    color: white;
    cursor: pointer;
    position: relative;
    padding-bottom: .25rem;
    transition: background-color .25s ease-out, color .25s ease-out, box-shadow .25s ease-out;
}

.default-side-menu ul.open .side-menu-header {
    color: var(--gold);
}

/* .default-side-menu ul .side-menu-header::after {
    content: '+';
    position: absolute;
    top: .9rem;
    right: .5rem;
    font-size: 2rem;
    line-height: .67em;
    font-weight: bold;
    color: white;
    transition: color .25s ease-out;
}

.default-side-menu ul.open .side-menu-header::after {
    content: '-';
    color: var(--gold);
} */

.default-side-menu ul .side-menu-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 1rem;
    height: 3px;
    background-color: white;
    transition: background-color .25s ease-out;
}

.default-side-menu ul .side-menu-header h2::before {
    content: '';
    position: absolute;
    top: calc(50% - .5rem + 1.5px);
    right: calc(.5rem - 1.5px);
    width: 3px;
    height: 1rem;
    background-color: white;
    transition: opacity .25s ease-out;
}

.default-side-menu ul.open .side-menu-header h2::before {
    opacity: 0;
}

.default-side-menu ul.open .side-menu-header h2::after {
    background-color: var(--gold);
}

.default-side-menu ul.open li a {
    position: relative;
}

.default-side-menu ul.open li a:hover::after {
    content: '';
    display: block;
    position: absolute;
    left: -.5rem;
    top: 12.5%;
    height: 75%;
    width: .225rem;
    background-color: var(--gold);
}

.default-side-menu li.current_page_item > a {
    color: var(--gold);
}

/* Trying a few different designs.  Possibly delete later */
/* .default-side-menu li:not(.menu-item-has-children),
.default-side-menu li.menu-item-has-children > a {
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--gold);
} */

.default-side-menu li a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease-out;
    transform-origin: left;
}

.default-side-menu li a:hover {
    transform: scale(1.05);
}

.home-slider {
    width: 100%;
    height: calc(80vh - 12rem);
    min-height: 35vw;
    display: flex;
    overflow: hidden;
}

.home-slider > div {
    width: 50%;
    flex-shrink: 0;
}

.home-slider .slider-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 11.5% 0 3.5%;
    background-color: var(--blue);
    color: white;
}

.home-slider .notices-title {
    margin: 0;
    font-size: 1rem;
    background-color: var(--gold);
    color: var(--blue);
    width: fit-content;
    padding: .25rem 1.15rem;
    border-radius: 10rem;
    font-weight: bold;
}

.home-slider .slider-left .notices-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 80%;
    overflow-y: scroll;
    padding-right: 1rem;
    scrollbar-color: var(--gold) transparent;
    scrollbar-width: thin;
}

.home-slider .slider-left .notices-list::-webkit-scrollbar {
    background-color: var(--gold);
    width: 3px;
}

.home-slider .notice-item {
    flex-shrink: 0;
    height: 9rem;
    background-color: rgba(255,255,255, .075);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: .5rem;
    cursor: pointer;
    transition: background-color .2s ease-out, border-color .2s ease-out;
    overflow: hidden;
    box-shadow: .75rem .75rem 1.5rem rgba(0,0,0,.25);
}

.home-slider .notice-item > a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
    padding: 1rem;
    max-height: 100%;
}

.home-slider .notice-item:hover {
    background-color: rgba(255,255,255, .15);
    border-color: rgba(255,255,255,.4);
}

.home-slider .notice-item > * {
    margin: 0;
}

.home-slider .notice-excerpt {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    margin: 0;
    overflow: hidden;
    font-size: 1rem;
    color: var(--light-gray);
}

.home-slider .notice-item a {
    color: white;
    text-decoration: none;
    font-size: 1.3rem;
}

.home-slider .notice-item-date {
    display: flex;
    align-items: center;
    gap: .5rem;
    position: relative;
}

.home-slider .notice-item-date img {
    width: 1rem;
}

.home-slider .notice-item p,
.home-slider .notice-item h3 {
    margin: 0;
}

.home-slider .notice-item p {
    font-size: .9rem;
    color: var(--lighter-gray);
}

.home-slider .notice-item-date::after {
	content: '';
	position: absolute;
	top: calc(50% - .33rem);
	right: 0;
	background-image: url('/wp-content/themes/montoursville-custom/images/right-arrow.svg');
	height: 1.15rem;
	width: 1.15rem;
	background-size: contain;
}

.home-slider .notice-item-body {
    display: flex;
    gap: 1rem;
}

.home-slider .notice-item-body img {
    width: 10rem;
    max-height: 6rem;
    object-fit: cover;
    flex-shrink: 0;
}

/* .home-slider .slider-left .slider-school-year {
    width: fit-content;
    background-color: var(--gold);
    border-radius: 2rem;
    padding: .5rem 1.25rem;
    color: var(--blue);
    font-weight: 600;
}

.home-slider .slider-left .slide-description {
    font-size: 1.5rem;
}

.home-slider .slider-left .slide-title {
    font-size: 3.75rem;
    line-height: 1.25;
} */

.home-slider .slider-right img {
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: .5rem;
    border-bottom-left-radius: .5rem;
    flex-shrink: 0;
    transition: opacity .75s ease-out;
    position: absolute;
}

.home-slider .slider-right .slider-track > img:not(:first-of-type) {
    opacity: 0;
}

.home-slider .slider-wrap {
    width: 115%;
    height: 90%;
    position: relative;
    top: 5%; 
    right: 15%;
    overflow: hidden;
    box-shadow: .5rem .5rem 2rem rgba(0,0,0,.5);
}

.home-slider .slider-track {
    display: flex;
    height: 100%;
    transition: transform .5s ease-out;
}

.list-no-style {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular-pages {
    text-align: center;
    padding: 2.5rem 0;
}

.popular-pages .ornamented-heading::after {
    top: .75rem;
}

.popular-pages h2 {
    margin: 0 auto 2rem;
}

.popular-pages ul {
    display: flex;
    gap: 2.5rem;
    width: fit-content;
    margin: 0 auto;
    font-size: 1rem;
}

.popular-pages ul a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--blue);
    gap: .5rem;
    text-decoration: none;
    font-weight: bold;
    text-wrap: nowrap;
}

.popular-pages ul li {
    width: 7rem;
    transition: transform .2s ease-out;
}

.popular-pages ul li:hover {
    transform: scale(1.1);
}

.bubble-link {
    width: 3rem;
    height: 3rem;
    padding: .5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--blue);
    border-radius: 50%;
}

.bubble-link img {
    width: 70%;
    height: 70%;
    object-fit: contain;
}

.ornamented-heading {
    width: fit-content;
    position: relative;
}

.ornamented-heading::after {
    content: '';
    display: block;
    position: absolute;
    top: .4rem;
    right: -3.5rem;
    width: 2.25rem;
    height: 1.75rem;
    background-image: url('/wp-content/themes/montoursville-custom/images/arrowhead-yellow.png');
    background-size: contain;
    background-repeat: no-repeat;
}

#colophon {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--blue);
    color: white;
    padding-top: 3rem;
    font-size: 1.15rem;
    width: 100%;
}

.site-info {
    flex-shrink: 0;
    width: 34rem;
    padding-left: 1rem;
}

.site-branding h3 {
    font-size: 2em;
}

footer .site-branding {
    font-size: .8rem;
}

.schools-info {
    display: flex;
    width: calc(100% - 34rem);
    justify-content: space-evenly;
    padding: .5rem 1rem 0 0;
    font-size: 1rem;
}

.schools-info h4 {
    margin: 0 0 1rem;
    line-height: 1.25;
}

.footer-bottom {
    margin: 0;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--light-gray);
    color: var(--light-gray);
}

.footer-bottom p {
    margin: 0;
}

footer .socials {
    display: flex;
    gap: 1rem;
}

footer .socials img {
    height: 2rem;
    border: 2px white;
}

footer .socials .facebook-footer-icon {
    width: .75em;
}

footer .socials .youtube-footer-icon {
    width: 2.375em;
}

footer .socials .arrowhead-footer-icon {
    width: 8.75em;
}

.minor-section {
    padding: var(--section-padding);
}

.home-news {
    background-color: var(--off-white);
}

.news-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.news-article {
    width: 100%;
    border-radius: .75rem;
    box-shadow: .1rem .1rem .25rem rgba(0,0,0,.15);
    transition: transform .2s ease-out;
}

.news-article:hover {
    transform: scale(1.03);
}

.news-article a {
    color: inherit;
    text-decoration: none;
}

.news-article img {
    height: 17.5rem;
    width: 100%;
    object-fit: cover;
    border-top-left-radius: .75rem;
    border-top-right-radius: .75rem;
}

.news-article-bottom {
    padding: 0 1rem 1rem;
}

.news-article-data {
    display: flex;
    justify-content: space-between;
}

.news-article-body h4 {
    font-size: 1em;
    margin-top: 0;
}

.news-article-body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.news-article-category {
    display: flex;
    align-items: center;
    width: fit-content;
    height: fit-content;
    padding: .15rem .5rem;
    font-size: .9rem;
    font-weight: 600;
    border-radius: 1rem;
}

.news-district-news {
    background-color: var(--dark-gray);
    color: white;
}

.news-sports {
    background-color: var(--blue);
    color: white;
}

.news-arts {
    background-color: var(--gold);
}

.news-special-events {
    background-color: #820bf2;
    color: white;
}

.news-academic {
    background-color: #707070;
    color: white;
}

.news-article-date {
    display: flex;
    align-items: center;
    color: var(--dark-gray);
    font-size: .9rem;
}

.news-article-date::before {
    content: '';
    background: url('/wp-content/themes/montoursville-custom/images/calendar-icon-de-emphasized-black.svg');
    display: inline-block;
    width: .9rem;
    height: .9rem;
    margin-right: .25rem;
    background-size: contain;
    flex-shrink: 0;
}

.news-and-calendar {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.news-and-calendar > div {
    flex-shrink: 0;
    width: 50%;
}

.news-and-calendar > div:last-of-type {
    display: flex;
    flex-direction: column;
}

.news-and-calendar iframe {
    display: block;
    margin: 0 auto;
    min-height: 30rem;
    width: 100%;
    height: 100%;
}

.page-template-default .post-thumbnail {
    width: 100%;
}

.page-template-default .post-thumbnail img {
    max-height: 50rem;
    object-fit: cover;
    width: 100%;
}

.page-template-default .page-inner {
    display: flex;
}

.page-template-default main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 5rem;
    width: 100%;
}

.page-template-default article {
    width: 100%;
    max-width: 1400px;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-list .post-item {
    display: flex;
    gap: 1rem;
    font-size: 1rem;
}

.post-item .post-thumbnail {
	width: 30%;
	flex-shrink: 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

.post-item .post-thumbnail a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.post-item .post-thumbnail img {
	max-width: 100%;
	max-height: 12rem;
	flex-shrink: 0;
}

.post-item .post-title {
    font-size: 1.5em;
    margin-bottom: .15rem;
}

.post-item .post-title a {
    text-decoration: none;
    color: var(--blue);
}

.post-item .read-more {
    color: var(--blue);
    text-decoration: none;
}

thead > tr > th:first-of-type,
thead > tr > th:last-of-type {
    border-left-color: black;
    border-right-color: black;
}

.dark-table table {
    background-color: var(--blue);
    color: white;
    border-radius: .5rem;
    overflow: hidden;
    border-collapse: collapse;
}

.dark-table a,
.dark-table h1,
.dark-table h2,
.dark-table h3,
.dark-table h4,
.dark-table h5,
.dark-table h6 {
    color: white;
}

.floating-table table {
    border-radius: .5rem;
    overflow: hidden;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 1rem;
}

.dark-table thead,
.floating-table thead {
    border: 0;
}

.floating-table thead tr > th:first-of-type {
    border-top-left-radius: .5rem;
    border-bottom-left-radius: .5rem;
}

.floating-table thead tr > th:last-of-type {
    border-top-right-radius: .5rem;
    border-bottom-right-radius: .5rem;
}

.dark-table tbody {
    font-size: 1.15rem;
}

.dark-table td,
.dark-table th,
.floating-table td,
.floating-table th {
    border: 0;
}

.dark-table table tr:nth-of-type(2n+1) {
    background-color: transparent;
}

.floating-table table tbody tr {
    background-color: #eff3f9;
}

.floating-table table tr {
    box-shadow: .15rem .15rem .25rem rgba(0,0,0,.25)
}

.dark-table thead th {
    color: var(--gold);
}

.dark-table tr > th:first-of-type,
.dark-table tr > td:first-of-type,
.floating-table tr > th:first-of-type,
.floating-table tr > td:first-of-type {
    padding-left: 1.5rem;
}

.dark-table tr > th:last-of-type,
.dark-table tr > td:last-of-type,
.floating-table tr > th:last-of-type,
.floating-table tr > td:last-of-type {
    padding-right: 1.5rem;
}

.dark-table th {
    background-color: var(--dark-blue);
}

.wp-block-table .dark-table td,
.wp-block-table .dark-table th,
.wp-block-table .floating-table td,
.wp-block-table .floating-table th {
    padding: .75em;
}

.dark-table tbody tr {
    border-bottom: 1px solid var(--dark-gray);
}

.single-post article.post {
    padding: 0 5rem;
}

.single-post .entry-title {
    text-align: center;
}

.single-post .post-thumbnail {
    display: none;  /* Client wants to hide on the post page.  They will add it in the body and style it if they wish */
    justify-content: center;
}

.single-post .post-thumbnail img {
    max-width: 30rem;
    max-height: 50rem;
    object-fit: contain;
}

.single-post .entry-content {
    max-width: 1400px;
    margin: 1.5em auto;
}

body.search-results main {
    max-width: 90%;
    margin: 0 auto;
}

body.search .entry-title a {
    text-decoration: none;
    color: var(--blue);
}

body.search .post-thumbnail img {
    max-width: clamp(10rem, 80%, 25rem);
    max-height: 50rem;
    object-fit: cover;
}

body.search .page-title {
    color: var(--blue);
}

dialog.notice[open] {
	position: fixed;
	top: 0;
	left: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgba(0,0,0,.25);
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	z-index: 9999;
}

dialog.notice > div {
	position: relative;
	background-color: white;
	padding: 3rem 4rem 2rem;
	border-radius: .25rem;
	min-height: 8rem;
    max-height: 85vh;
	min-width: 15rem;
	max-width: 95vw;
	box-sizing: border-box;
    overflow: scroll;
}

dialog.notice div > .notice-close:first-of-type {
	position: absolute;
	top: .5rem;
	right: .75rem;
	font-size: 2rem;
	font-weight: bold;
	border: none;
	background: transparent;
	cursor: pointer;
    box-shadow: none;
    border: 0;
    color: var(--blue);
}

dialog.notice div > .notice-close:last-of-type {
	display: block;
	margin: 2rem auto 0;
	padding: .5rem 1rem;
	background-color: var(--blue);
	color: white;
	font-weight: bold;
	font-size: 1.5rem;
	border-radius: .25rem;
	border: none;
	box-shadow: .25rem .25rem .5rem rgba(0,0,0,.25);
	cursor: pointer;
	transition: transform .2s ease-out;
}

dialog.notice h2 {
    margin: 0;
	padding-bottom: 2rem;
	text-align: center;
	font-weight: bold;
	font-size: 3rem;
	color: var(--blue);
}

.notice-btn {
    position: fixed;
    top: 1rem;
    right: 2rem;
    width: clamp(2rem, 2vw, 3rem);
    height: clamp(2rem, 2vw, 3rem);
    padding: 0;
    background-image: url('images/notice-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    box-shadow: none;
    background-color: transparent;
    opacity: 0;
    pointer-events: none;
}

.notice-btn.dismissed {
    z-index: 999;
    cursor: pointer;
    opacity: 1;
    pointer-events: all;
    transform: translate(0, 0);
    animation: notice-slide-in 0.5s ease-out forwards;
}

/* START temp (possibly) menu changes - delete if you want to revert (most is under media queries for mobile */

/* .main-navigation li.menu-item-has-children {
    flex-wrap: wrap;
    justify-content: flex-start;
    column-gap: .5rem;
}

#primary-menu .menu-item a {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.main-navigation #primary-menu ul.sub-menu {
    position: static;
    max-height: 0;
    overflow: hidden;
    border: 0;
    padding: 0;
    box-shadow: none;
} */

.main-navigation li.menu-item-has-children.focus {
    flex-wrap: wrap;
}

#primary-menu ul.sub-menu ul.sub-menu {
    display: none;
    left: 0;
    position: static;
    max-height: 0;
    max-width: 0;
    overflow: hidden;
    box-shadow: none;
    border-bottom: 0;
    border-radius: .5rem;
    padding: 0;
    transition: width 5s ease-out;
}

#primary-menu > li.menu-item-has-children .sub-menu {
    width: fit-content;
    min-width: 16rem;
    text-wrap: nowrap;
}

#primary-menu li.menu-item-has-children.focus > ul.sub-menu {
    display: flex;
    max-height: fit-content;
    max-width: fit-content;
    padding: .5rem 0;
    margin-top: .5rem;
}

.main-navigation ul.sub-menu li.menu-item-has-children:hover {
    box-shadow: none;
}

.main-navigation ul.sub-menu ul.sub-menu {
    background-color: rgba(255,255,255, .1);
}

.main-navigation ul.sub-menu ul.sub-menu ul.sub-menu {
    background-color: var(--blue);
}

/* END menu changes */

@keyframes notice-slide-in {
    0% { transform: translate(-50vw, 50vh); }
    100% { transform: translate(0, 0); }
}

@media screen and (min-width: 1800px) {
    .popular-pages ul {
        gap: 3.5rem;
    }
}

@media screen and (min-width: 1200px) {
    .submenu-toggle {
        /* margin-top: .15rem; */
    }
}

@media screen and (max-width: 1500px) {
    .schools-info {
        display: grid;
        grid-template-columns: repeat(2, max-content);
        row-gap: 2rem;
    }

    .schools-info .school {
        width: fit-content;
    }
}

@media screen and (max-width: 1600px) {
    .home-slider .notice-item {
        height: 10rem;
    }
}

@media screen and (max-width: 1400px) {
    header .site-branding p {
        text-align: center;
    }

    .home-slider .notice-item {
        height: 12rem;
    }

    .home-slider .notice-item .notice-title {
        margin-top: calc(1em - 1lh);
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 1470px) and (min-width: 1200px) {
    .main-navigation-container {
        flex-shrink: 0;
        padding-right: 1rem;
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 1200px) {
    article h1 {
        font-size: 2.5em;
    }

    article h2 {
        font-size: 2em;
    }

    article h3 {
        font-size: 1.75em;
    }

    article h4 {
        font-size: 1.25em;
    }

    .menu-primary-container #primary-menu {
        font-size: 1rem;
        gap: 1rem;
    }

    #site-navigation > img {
        width: 7rem;
    }

    .menu-toggle,
    .main-navigation.toggled ul {
        display: block;
    }

    .main-navigation:not(.toggled) .menu-primary-container {
        display: none;
    }

    .main-navigation .menu-primary-container {
        position: absolute;
        left: 0;
        top: calc(100% + .25rem);
        width: 100%;
    }

    #primary-menu {
        flex-direction: column;
        background-color: var(--blue);
    }

    .main-navigation-container > div:first-of-type {
        display: none;
    }

    .main-navigation ul.sub-menu li:hover,
    .quick-links li:hover {
        box-shadow: none;
    }

    #primary-menu li.menu-item-has-children.focus > ul.sub-menu {
        max-width: none;
        width: 100%;
    }

    #masthead {
        justify-content: center;
        height: 9rem;
        padding: 1rem 0;
    }

    .site-branding img {
        width: 5rem;
    }

    .main-navigation ul.sub-menu li.menu-item-has-children:hover {
        box-shadow: none;
    }

    .home-slider {
        flex-direction: column;
        background-color: var(--blue);
        height: calc(80vh - 8rem);
    }

    .home-slider .slider-left {
        width: 100%;
    }

    .home-slider .slider-right {
        position: relative;
        order: -1;
        height: 30rem;
        width: 100%;
    }

    .slider-right::before {
        content: '';
        background-color: var(--blue);
        width: 50%;
        display: block;
        position: absolute;
        height: 100%;
    }

    .home-slider .slider-right img {
        border-radius: 0;
    }

    .home-slider .notices-title {
        font-size: 1.25rem;
        margin-top: 1rem;
    }

    .home-slider .notice-item {
        height: 9rem;
    }

    .home-slider .slider-left {
        padding: 0 1rem;
        margin: 0 auto;
        max-width: 45rem;
    }

    .home-slider .slider-left .notices-list {
        max-height: 19rem;
        padding: 0;
    }

    .home-slider .notice-item-body img {
        width: 8rem;
    }

    .news-and-calendar {
        flex-direction: column;
        padding: 3rem 2rem;
    }

    .news-and-calendar > div {
        width: 100%;
    }

    .news-articles {
        grid-template-columns: repeat(1, 1fr);
    }

    #colophon {
        padding-top: 2rem;
    }

    .schools-info {
        width: 100%;
        flex-direction: column;
        gap: 1.25rem;
        padding: 1rem;
    }

    .schools-info h4 {
        margin-bottom: .25rem;
    }

    .site-info {
        width: 100%;
        padding-left: 0;
    }

    footer .site-branding {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding-bottom: 1rem;
    }

    footer .site-branding h3 {
        width: 15rem;
        text-align: center;
    }

    footer .site-branding img {
        width: 8rem;
    }

    footer .socials {
        font-size: .85rem;
        gap: 1.5rem;
    }

    .post-list .post-item {
        flex-direction: column;
        gap: 0;
    }

    .post-item .post-thumbnail {
        width: 100%;
    }

    .post-list {
        gap: 4.5rem;
    }

    .default-side-menu {
        position: fixed;
        padding: 1rem .5rem 0;
        width: 17rem;
        max-width: 90vw;
        border-right: 2px solid var(--gold);
        box-sizing: content-box;
        box-shadow: none;
        transform: translateX(-100%);
        transition: transform .25s ease-out;
        overscroll-behavior: contain;
    }

    .side-menu-background.open {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9;
    }

    .default-side-menu > div {
        overscroll-behavior: contain;
    }

    .default-side-menu > div > ul:first-of-type {
        margin-top: 0;
    }

    .default-side-menu .side-menu-toggle {
        display: block;
        position: absolute;
        top: calc(50% - 1.5rem);
        right: -1.75rem;
        transition: right .25s ease-out, color .25s ease-out;
    }

    .default-side-menu.open .side-menu-toggle {
        color: white;
        right: -2em;
        border: 2px solid var(--gold);
    }

    /* .default-side-menu .side-menu-toggle::after {
        content: '';
        display: block;
        position: absolute;
        background-image: url('http://montoursville-asd.izzscinplg-k26exggmv479.p.temp-site.link/wp-content/themes/montoursville-custom/images/tab-icon.svg');
        width: 4.5rem;
        height: 4rem;
        background-repeat: no-repeat;
        background-size: contain;
        transform: rotate(90deg);
        top: -1rem;
        left: -1.25rem;
        z-index: -1;
    } */

    .default-side-menu.open {
        transform: translateX(0);
        box-shadow: 0 0 0 100vmax rgba(0,0,0,.5);
        z-index: 9;
    }

    .notice-btn.dismissed {
        top: .5rem;
        right: 1rem;
    }

    /* .main-navigation li.menu-item-has-children {
        flex-wrap: wrap;
        justify-content: flex-start;
        column-gap: .5rem;
    } */

    .main-navigation .focus > ul.sub-menu {
        width: 100%;
        flex-shrink: 0;
    }

    .footer-bottom {
        padding: 2rem 1rem;
    }

    .home-slider .slider-right {
        height: 50vw;
        min-height: 15rem;
    }

    .home-slider {
        height: auto;
    }

    .home-slider .slider-left .notices-list {
        max-height: 20rem;
        margin-bottom: 2rem;
        padding-right: 1rem;
    }

    .home-slider .notice-item {
        height: 8rem;
    }

    .home-slider .notices-title {
        font-size: 1rem;
    }

    .home-slider .notice-item .notice-title {
        font-size: 1.2rem;
    }

    .home-slider .notice-item-body img {
        width: 5rem;
    }

    .home-slider .notice-item-body > div {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .menu-toggle {
        position: relative;
        left: 2rem;
        padding: 0;
        margin-top: -1lh;
        font-size: 2rem;
        font-weight: bold;
        box-shadow: none;
        background: transparent;
    }

    #site-navigation {
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
    }

    .main-navigation .menu-primary-container {
        border-bottom: .5rem solid var(--blue);
    }

    #primary-menu {
        padding: .5rem 1rem;
        font-size: 1rem;
        border-bottom: .25rem solid var(--gold);
    }

    #primary-menu .menu-item a {
        width: fit-content;
        display: flex;
        align-items: center;
        gap: .75rem;
    }

    /* Hiding for now - probably remove */
    /* #primary-menu .menu-item-has-children > a::after {
        content: '';
        display: inline-block;
        background-image: url('/wp-content/themes/montoursville-custom/images/arrowhead-yellow.png');
        background-size: contain;
        background-repeat: no-repeat;
        width: 1rem;
        height: .75rem;
        transition: transform .2s ease-out;
    } */

    #primary-menu > li.menu-item-has-children > .submenu-toggle {
        display: inline-block;
    }

    #primary-menu .menu-item-has-children.focus > a::after {
        transform: rotate(90deg);
    }

    .main-navigation ul.sub-menu li.menu-item-has-children > a::after {
        top: .075rem;
    }

    #primary-menu > .menu-item-has-children > a::after {
        margin-top: .125rem;
    }

    .main-navigation ul.sub-menu {
        position: static;
        max-height: 0;
        overflow: hidden;
        border: 0;
        padding: 0;
        box-shadow: none;
    }

    .main-navigation .focus > ul.sub-menu {
        max-height: none;
        padding: .5rem 0;
        border-radius: .5rem;
        margin-top: .6rem;
    }

    .main-navigation .focus > a {
        font-weight: bold;
    }
    
    .main-navigation ul.sub-menu {
        background-color: rgba(255,255,255, .1);
    }

    .main-navigation ul.sub-menu ul.sub-menu {
        background-color: var(--blue);
    }

    .main-navigation ul.sub-menu ul.sub-menu ul.sub-menu {
        background-color: rgba(255,255,255, .1);
    }

    .main-navigation ul.sub-menu ul.sub-menu ul.sub-menu ul.sub-menu {
        background-color: var(--blue);
    }

    .popular-pages {
        padding: 3rem 0 0;
    }

    .popular-pages ul {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem 4rem;
    }

    .popular-pages ul a {
        width: 6rem;
    }

    .page-template-default main {
        padding: 0 1rem;
    }

    .page-template-default article {
        font-size: 1rem;
    }

    .staff-member {
        min-width: 12rem;
    }

    .single-post article.post {
        padding: 0 1rem;
        font-size: 1rem;
    }

    footer .site-branding p {
        text-align: center;
    }

    .schools-info .school {
        width: 100%;
    }
}

@media screen and (max-width: 1000px) {
    .site-branding {
        font-size: 1rem;
    }
}

@media screen and (max-width: 600px) {
    #masthead {
        height: 9rem;
        justify-content: space-between;
        padding: 0 1.25rem;
    }

    .site-branding {
        font-size: .9rem;
        gap: 0;
    }

    .site-branding img {
        width: 4rem;
    }

    .site-branding > div {
        width: 100%;
        flex-shrink: 0;
        align-items: center;
    }

    .site-branding .site-title {
        margin-top: calc(1em - 1lh);
        width: 12.5rem;
    }

    .menu-toggle {
        position: static;
        padding: 0 0 .25rem;
    }

    .home-slider .slider-wrap {
        box-shadow: .5rem .5rem 1rem rgba(0,0,0,.5);
    }

    .popular-pages ul {
        gap: 2rem 1rem;
    }

    .popular-pages ul a {
        text-wrap: wrap;
    }

    .news-article-bottom {
        font-size: 1rem;
    }

    .schools-info {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 350px) {
    .site-branding {
        font-size: .75rem;
    }

    .site-branding > div {
        width: auto;
    }

    .popular-pages ul li {
        width: 6rem;
    }

    .popular-pages ul {
        gap: 2rem 0;
    }
}