/*
Theme Name: AGL
Theme URI: http://ldsitedesign.com
Author: Lane Downs
Author URI: http://ldsitedesign.com
Description: Custom theme for Art Guild of Louisiana
Version: 1.0.2
Text Domain: agl
*/

/* Browser Reset */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: transparent;
	font-size: 100%;
	vertical-align: baseline;
	-webkit-text-size-adjust: 100%;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after {
	content: "";
	content: none;
}
:focus {
	outline: 0;
}
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}
table {
	border-spacing: 0;
	border-collapse: collapse;
}
article, aside, footer, header, hgroup, nav, section {
	display: block;
}

/**************************************** Basic Styles */
* {
	box-sizing: border-box;
}
html {
	scroll-behavior: smooth;
}

@font-face {
	font-family: 'AGL-icons';
	src:
		url('fonts/AGL-icons.ttf?e4dc2i') format('truetype'),
		url('fonts/AGL-icons.woff?e4dc2i') format('woff'),
		url('fonts/AGL-icons.svg?e4dc2i#AGL-icons') format('svg');
	font-weight: normal;
	font-style: normal;
	font-display: block;
}
[class^='has-icon']::before, [class*=' has-icon']::before {
	font-family: AGL-icons;
	vertical-align: middle;
	margin-right: .5em;
}
.has-icon-zoom1::before {
  content: "\e900";
}
.has-icon-close:;before {
  content: "\f00d";
}
.has-icon-remove:;before {
  content: "\f00d";
}
.has-icon-times::before {
  content: "\f00d";
}
.has-icon-chevron-right::before {
  content: "\f054";
}
.has-icon-calendar1::before {
  content: "\f073";
}
.has-icon-chevron-up::before {
  content: "\f077";
}
.has-icon-bars::before {
  content: "\f0c9";
}
.has-icon-navicon::before {
  content: "\f0c9";
}
.has-icon-reorder::before {
  content: "\f0c9";
}
.has-icon-envelope::before {
  content: "\f0e0";
}
.has-icon-paint-brush::before {
  content: "\f1fc";
}
.has-icon-pushpin::before {
  content: "\e946";
}
.has-icon-location::before {
  content: "\e947";
}
.has-icon-location2::before {
  content: "\e948";
}
.has-icon-clock::before {
  content: "\e94e";
}
.has-icon-calendar::before {
  content: "\e953";
}
.has-icon-spinner6::before {
  content: "\e97f";
}
.has-icon-search::before {
  content: "\e986";
}
.has-icon-zoom-in::before {
  content: "\e987";
}
.has-icon-menu::before {
  content: "\e9bd";
}
.has-icon-cross::before {
  content: "\ea0f";
}
.has-icon-facebook::before {
  content: "\ea90";
}
.has-icon-facebook2::before {
  content: "\ea91";
}
.has-icon-instagram::before {
  content: "\ea92";
}
.has-icon-youtube::before {
  content: "\ea9d";
}
/* Body */
body {
	color: #333;
	background-color: #fff;
	background-image: url("https://www.artguildlouisiana.org/images/coarse-weave-100-1.jpg");
	background-position: center top;
	background-size: auto;
	background-repeat: repeat;
	background-attachment: fixed;
	font-family: Roboto, "Open Sans", Arial, sans-serif;
	font-size: 1em;
	font-weight: 400;
	line-height: 1.6em;
}
body:not(.page-template-page_headquarters) {
    display: grid; /* this sets 4 rows for #top-header, #main-header, #main-content, #main-footer; second column is for scroll-top button */
	grid-template-columns: 1fr 0;
	grid-template-rows: repeat(4, auto);
}
/* Links */
a:link {
	color: #6682c1; /* AGL brand color */
	text-decoration: none;
}
a:visited {
	color: #a55dae; /* purpleish */
}
a:hover, a:focus, a:active {
	color: #2ea3f2; /* brighter blue */
	text-decoration: underline;
}

/* Inline Elements */

 /* overrides WP default of 24px for all elements, also overrides 0 for first element */
:root .entry-content :where(.is-layout-flow) > *,
:root .entry-content :where(.is-layout-constrained) > * {
	margin-block-start : unset;
	margin-block-end : unset;
}
/* After overriding WP default of 24px, margin-top goes to 0 for all elements. This adds my own choice of margin-top to only p */
p,
:root .entry-content :where(.is-layout-flow) p,
:root .entry-content :where(.is-layout-constrained) p,
:root .entry-content :where(.is-layout-flex) p {
	margin-block-start: 1em;
}
strong {
	font-weight: bold;
}
cite, em, i {
	font-style: italic;
}
pre, code {
	margin: 1em;
	font-family: Courier New, monospace;
}
sup, sub {
	position: relative;
	height: 0;
	line-height: 1;
	vertical-align: baseline;
	font-size: 80%;
}
sup {
	bottom: 0.4em;
}
sub {
	top: 0.3em;
}
dl {
	margin: 1em 0 0;
}
dl dt {
	font-weight: bold;
}
dd {
	margin-left: 1.5em;
}
blockquote {
	margin: 1.6em 0 1.7em;
	padding-left: 1.5em;
	border-left: 5px solid #6682c1;
}
embed, iframe, object, video {
	max-width: 100%;
}
hr {
	color: #e5e5e5;
	margin: 5px 0 20px;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
	color: #000;
}
/* After overriding WP default of 24px, margin-top goes to 0 for all elements. This adds my own choice of margin-top to only h */
h1, :root .entry-content :where(.is-layout-flow) h1, :root .entry-content :where(.is-layout-constrained) h1,
h2, :root .entry-content :where(.is-layout-flow) h2, :root .entry-content :where(.is-layout-constrained) h2,
h3, :root .entry-content :where(.is-layout-flow) h3, :root .entry-content :where(.is-layout-constrained) h3,
h4, :root .entry-content :where(.is-layout-flow) h4, :root .entry-content :where(.is-layout-constrained) h4,
h5, :root .entry-content :where(.is-layout-flow) h5, :root .entry-content :where(.is-layout-constrained) h5,
h6, :root .entry-content :where(.is-layout-flow) h6, :root .entry-content :where(.is-layout-constrained) h6 {
	margin-block-start: 1em;
	margin-block-end: 0.5em;
}
/* have to add this back in cause overrode the default WP one */
:root .entry-content :where(.is-layout-flow) > :first-child:not(h1, h2, h3, h4, h5, h6),
:root .entry-content :where(.is-layout-constrained) > :first-child:not(h1, h2, h3, h4, h5, h6) {
	margin-block-start: 0;
}
h1, h2 {
	line-height: 1.25em;
}
h3, h4, h5, h6 {
	line-height: 1.1em;
}
.entry-title {
	margin-block-start: 0;
}
h1, h2, h3 {
	font-family: "Arima Madurai", Roboto, "Open Sans", Arial, sans-serif;
	font-weight: 600;
}
h4, h5, h6 {
	font-weight: 500;
}
h1 {
	font-size: 2.2em;
}
h2 {
	font-size: 1.9em;
}
h3 {
	font-size: 1.6em;
}
h4 {
	font-size: 1.3em;
}
h5 {
	font-size: 1.2em;
}
h6 {
	font-size: 1.1em;
}
.has-small-font-size {
	font-size: .85em;
}
.has-medium-font-size {
	font-size: 1.3em;
}
.has-large-font-size {
	font-size: 1.8em;
}
.has-x-large-font-size {
	font-size: 2.1em;
}
/* Forms */
input[type=text],
input[type=password],
input[type=tel],
input[type=email],
input[type=url],
input.text,
input.title,
textarea,
select {
	padding: 2px;
	border: 1px solid #bbb;
	color: #4e4e4e;
	background-color: #fff;
}
input[type=text]:focus,
input[type=url]:focus,
input.text:focus,
input.title:focus,
textarea:focus,
select:focus {
	border-color: #2d3940;
	color: #3e3e3e;
}
input[type=text],
input[type=url],
input.text,
input.title,
textarea,
select {
	margin: 0;
}
textarea {
	padding: 4px;
}
.password-protected-form {
	width: 50%;
}
.password-protected-form p input {
	width:100%;
	padding:16px;
	border-radius:0;
	color:#999;
	background-color:#eee;
	font-size:14px
}
.password-protected-form label,
.password-protected-form h1 {
	display:none
}
.password-protected-form button {
	display:block;
	float:right;
	margin:8px auto 0;
	font-family:inherit;
	cursor:pointer
}
#oad-loginform .input {
    padding: 10px;
    background-color: #eee;
    border-radius: 6px;
    margin-left: 8px;
    min-width: 40%;
    font-size: 1.2em;
}
#oad-loginform #rememberme {   /* remember me checkbox */
    transform: scale(1.4);
    margin-right: 8px;
}
/* Images */
img {
	height: auto;
	width: auto;
	max-width: 100%;
	border: 2px double #cccccc;
}
.wp-block-image figure, /* individual block */
.wp-block-image, /* gallery block */
.gallery-icon, /* WP gallery, not block, on an event's page */
.img-container-for-lightbox { /* link in old text editor i.e. location page */
	position: relative;
}
.filebird-block-filebird-gallery a::before,
.wp-block-image a::before,
.gallery a::before,
.has-lightbox:before { 
	content: "\e900";
	font-family: "AGL-icons";
	font-size: 32px;
	padding-left: calc(50% - 16px);
	color: #ffffff;
	position: absolute;
	display: flex;
	align-items: center;
	opacity: 0;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	transition: all 0.3s ease-in-out;
}
.wp-block-image a:hover img,
.gallery a:hover img,
.has-lightbox:hover img {
	outline: 20px solid rgba(255,255,255,0.35);
	outline-offset: -20px;
}
.gallery-item { /* when img is wrapped with <a> tag, there is a space below the actual image */
	line-height: 0;
}
.no-lightbox a:before {
	display: none;
}
.filebird-block-filebird-gallery a:hover::before, /* filebird gallery */
.wp-block-image figure:hover > a:before, /* individual block */
.wp-block-image:hover > a:before, /* gallery block */
.gallery a:hover:before, /* WP gallery, not block, on an event's page */
.has-lightbox:hover:before { /* link in old text editor */
	opacity: 1;
}
.wp-block-image.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    clear: right;
}
.wp-block-image.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    clear: left;
}
/* Captions */
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	color: #000;
	text-shadow: none;
	background: none;
	position: static;
	font-size: var(--wp--preset--font-size--medium);
	padding: 0.5rem;
	flex: 0 1 auto; /* moves caption up under short images instead of aligned across with other captions */
}
.entry-content .wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
	display: none;
}
/* Clearfix
* Use the clearfix class on the element that could possibly be too short, such as text next to image.
* Do not use clear class on following element */
.clear {
	clear: both;
}
br.clear {
	margin: 0;
	padding: 0;
}
.clearfix:after {
	display: block;
	visibility: hidden;
	clear: both;
	height: 0;
	font-size: 0;
	content: " ";
}
/* *** Button Styles ************************************************************************* Button Styles *** */
.wp-block-button.is-style-button-light {  /* separates button from surroundings */
	margin: 0.5em 0;
}
.gform_wrapper .button,   /* Gravity forms: contact, volunteer */
.password-protected-form button,   /* password protected page */
a.button-light,   /* links with class manually added, WP text */
.is-style-button-light a,   /* WP button blocks */
a.button-dark,   /* links with class manually added, WP text */
input.button-dark,   /* class manually added, WP text */
.is-style-button-light input,	/* MailChimp sign-up form */
a.wp-block-read-more,	/* More Info button on exhibits posts on main exhibits page */
#oad-loginform #wp-submit,   /* Headquarters login */
.is-style-button-dark a {   /* WP button blocks */ 
	color: #6682c1;
	position: relative;
	padding: 0.3em 1em;
	margin: 10px 0;
	display: inline-block;
	border: 2px solid;
	border-radius: 3px;
	background-color: transparent;
	font-size: 1.2em;
	font-weight: 500;
	text-decoration: none;
	line-height: 1.7em;
	transition: all 0.2s;
	overflow: visible;
	width: auto;
 	outline: none;
	text-shadow: 0 1px 0 #f0f0f0;
	box-shadow: 0 1px 0 #f8f8f8;
	cursor: pointer;
}
/* Adds hover effects to buttons */
.gform_wrapper .button:hover,
.password-protected-form button:hover,
#oad-loginform #wp-submit:hover,   /* Headquarters login */
a.button-light:hover,
.is-style-button-light a:hover,
a.button-dark:hover,
input.button-dark:hover,
.is-style-button-dark a:hover,
a.wp-block-read-more:hover {
	padding-right: 2em;
	border: 2px solid transparent;
	border-radius: 5px;
	background: rgba(0, 0, 0, 0.05);
	color: inherit !important;
}
.gform_wrapper .button:hover, /* gravity forms submit without pay do not have arrow */
#oad-loginform #wp-submit:hover {   /* Headquarters login, no arrow */
	padding-right: 1em;
}
/* adds arrow to buttons, shows when hovered */
.password-protected-form button::after,
a.button-light::after,
.is-style-button-light a::after,
a.wp-block-read-more::after {
	position: absolute;
	margin-left: -1em;
	opacity: 0;
	text-shadow: none;
	font-size: 18px;
	line-height: 1.9em;
	font-weight: 400;
	font-style: normal;
	font-variant: none;
	text-transform: none;
	content: "\f054";
	transition: all .2s;
	font-family: AGL-icons;
	color: #888;
}
.password-protected-form button:hover::after,
a.button-light:hover::after,
.is-style-button-light a:hover::after,
a.wp-block-read-more:hover::after {
	margin-left: .5em;
	opacity: 1;
}
a.button-dark,
input.button-dark,
.is-style-button-dark a {
	background-color: #543a71;
	color: #fff;
	margin: 0;
	display: inline;
	text-shadow: none;
	box-shadow: none;
}
a.button-dark:hover,
input.button-dark:hover,
.is-style-button-dark a:hover {
	background: rgba(255, 255, 255, 0.2);
}
a.button-small,
input.button-small,
.button-small a {
	padding: .1em .5em;
	font-size: 1em;
}
a.button-small:hover,
input.button-small:hover,
.button-small a:hover {
	padding: .1em .5em;
}
/* this overrides default button link css from WP */
.gform_wrapper .button,
.password-protected-form button,
#oad-loginform #wp-submit,   /* Headquarters login */
a.button-light,
.is-style-button-light a,
a.button-dark,
input.button-dark,
.is-style-button-dark a,
.wp-block-button__link:visited, .wp-block-button__link:focus, .wp-block-button__link:active,
.wp-block-read-more {
	color: #6682c1;
}

/* Table Styles */
.entry-content table {
	width: 100%;
	margin: 0 0 15px 0;
	border: 1px solid #eee;
}

.entry-content tr th,
.entry-content thead th {
	padding: 9px 24px;
	color: #555;
	font-weight: bold;
}

.entry-content tr td {
	padding: 6px 24px;
	border-top: 1px solid #eee;
}

/* List Styles */
ul {
	padding: 0 0 1.5em 1.5em;
	list-style-type: disc;
}
ol {
	padding: 0 0 1.5em 1.5em;
	list-style: decimal;
}
ol.number-icons {
	list-style-type: none;
	padding-left: 0;
	counter-reset: list-number;
}
ol.number-icons li:before {
  counter-increment: list-number;
  content: counter(list-number);
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: text-bottom;
  width: 30px;
  height: 30px;
  font-size: 20px;
  font-weight: bold;
  background-color: #543a71;
  color: #fff;
  border-radius: 50%;
}
ul li ul {
	padding: 2px 0 2px 20px;
}
ol li ul {
	padding: 2px 0 2px 35px;
}
ol.no-number-icons {
	padding-left: 1.5em;
	list-style: decimal;
}
/* Icon Font */
[class^="icon-"], [class*=" icon-"],
.icon,
#mobile-menu-icon:before,
#header-search-icon:before,
#header-close-search-field:before,
.scroll-top-icon:before {
  /* use !important to prevent issues with browser extensions that change fonts */
	font-family: "AGL-icons" !important;
	line-height: 1;
	font-weight: normal;
	font-style: normal;
	font-variant: normal;
	text-transform: none;
	speak: never;
}

/* Admin Bar Fixes */
.admin-bar #top-header,
.admin-bar #main-header {
	top: 32px; /* height of admin bar */
}

/* ****** Main sections/areas ****************************************** Main sections/area *** */
/* #left-area and #sidebar width/padding/etc is in media queries */
#main-content {
	background-color: rgba(255,255,255,0.5);
	scroll-margin-top: 80px;
	padding: 50px 30px 0;
	min-height: 800px;
}
#main-footer > .wp-block-group .wp-block-group__inner-container {
	max-width: 1600px;
	margin: auto;
}
#main-header,
#main-footer > .wp-block-group .wp-block-group__inner-container {
	padding-left: 30px;
	padding-right: 30px;
}
body.page-template-page_blank #main-content {
	padding-bottom: 50px;
}
#main-content #content-area {
	background-color: rgba(255,255,255,0.7);
	border: 1px solid #e5e5e5;
	display: flex; /* makes left-area and sidebar both full height */
}
#left-area {
	border-right: 1px solid #e5e5e5;
	flex-grow: 1;
}
#sidebar {
	flex: 0 0 20%; /* grow(max/no), shrink(min/no), basis(ideal size) */
}
#content-area .entry-content {
	padding: 15px;
}
.page-template-page_headquarters #content-area .entry-content {
	padding-bottom: 40px;
}
.page-id-22436 #content-area .entry-content {
    background: linear-gradient(to bottom, #f9f9f9, #ddd);
}
#content-area .entry-content,
#content-area #sidebar {
	background-color: #ffffff;
}
.entry-content > :first-child {
	margin-block-start: 0;
}
.home #left-area,
.home #content-area .entry-content {
	padding: 0;
}
.home #content-area {
	background-color: transparent;
}
.home #content-area .entry-content {
	background-color: rgba(0,0,0,0.8);
	background-image: url("https://www.artguildlouisiana.org/images/coarse-weave-100-1.jpg");
	background-blend-mode: multiply;
}
/* ****** Top Menus / Header / Logo *************** Top Menus / Header / logo *** */
#top-header { /* top bar: secondary menu/email/social icons */
	color: #fff;
	font-weight: 600;
	font-size: .8em;
	background-color: #6682c1;
	z-index: 100;
	padding: 0.5em 175px 0.5em 175px;
	position: sticky;
	top: 0;
	display: flex;
	justify-content: space-between;
}
#top-header a {
	color: #fff;
}
/* Secondary Menu */
#menu-secondary {
	padding: 0;
}
#menu-secondary li {
	display: inline-block;
}
#menu-secondary li + li {
	margin-left: 15px;
}
/* Social Icons */
.agl-info a[class^='has-icon-'] { /* class starts with has-icon- */
	margin-left: 12px;
	font-size: 1.2em;
}
.agl-info a[class^='has-icon-'] span { /* span contains the word Facebook, etc, we show only the icon */
	display: none;
}
.agl-info .has-icon-youtube::before {
	font-size: 19px;
}
#header-background {
    position: sticky;
    top: 20px;
    z-index: 90;
    height: 85px;
    background-color: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}
#main-header {
	display: flex;
	justify-content: space-between;
	position: fixed;
	top: 40px;
	width: 100%;
	font-weight: 500;
	z-index: 110;
}
/* Logo */
#site-logo-tagline {
    position: relative;
    margin-top: -25px;
}
.custom-logo {
	border: none;
	height: 125px;
	width: auto;
}
.site-tagline {
    position: absolute;
    top: 55px;
    left: 200px;
    width: max-content;
    color: rgba(0, 0, 0, 0.6);
    margin-block-start: 0;
}

/* Main Nav */
#primary-menu-container {
	padding-top: 30px;
	transition: all 0.4s ease-in-out;
}
#primary-menu-container nav {
	float: left;
}
#primary-menu-container ul {
	padding: 0;
}
#primary-menu-container li {
	display: inline-block;
	padding-right: 22px;
	line-height: 1em;
	font-weight: 600;
}
#primary-menu-container li.has-child {
    display: flex;
}
#primary-menu-container li.has-child .wp-block-navigation__submenu-icon {
    height: 1em;
    width: 1em;
}
#primary-menu-container a {
	display: block;
	color: rgba(0, 0, 0, 0.6); /* overrides default blue/purple links */
}
#primary-menu-container li.current-menu-item > a {
	color: #87d4e7;
}

/* Search Form */
#header-search-icon {
	display: inline-block;
	margin-left: 22px;
}
#header-search-icon:hover {
	color: #2ea3f2;
	cursor: pointer;
}
#header-search-icon:before {
	font-size: 17px;
	content: "\e986";
}
/* hiding and showing */
#primary-menu-container {
	position: relative;
	z-index: 20;
}
#header-search-container,
#main-header.search-closed #header-search-container {
	opacity: 0;
	z-index: 10;
}
#main-header.search-open #header-search-container {
	opacity: 1;
	z-index: 20;
}
#main-header.search-closed #primary-menu-container {
	opacity: 1;
	z-index: 20;
}
#main-header.search-open #primary-menu-container {
	opacity: 0;
	z-index: 10;
}
/* end hiding and showing */
#header-search-container {
	position: absolute;
	top: 30px;
	right: 30px;
	width: 100%;
	max-width: 600px;
	transition: all .4s ease-in-out;
}
.search-form {
	margin-right: 30px;
}
.search-form input {
	border: none;
	box-shadow: 0 0 5px #ccc;
	width: 100%;
	height: 2em;
	font-size: 1em;
	padding-left: 10px;
}
.search-form .search-field::-ms-clear { /* internet explorer 10 & 11 */
	display: none;
	width: 0;
	height: 0;
}
input[type="search"]::-webkit-search-cancel-button {
	-webkit-appearance: none;
}
#header-close-search-field {
	position: absolute;
	top: 0;
	right: -8px; /* -8 instead of 0 so that X overlaps search icon exactly, prob a font issue */
	cursor: pointer;
}
#header-close-search-field:before {
	font-size: 18px;
	line-height: 1.4em;
	content: "\ea0f";
}
/* search results page */
#left-area .search-results {
	list-style: none;
}
.searchform {
	margin-bottom: 30px;
}
.searchform input {
	font-size: 1.2em;
	padding-left: 5px;
}
.search-results-pagination {
	margin: 5px auto 10px;
	width: fit-content;
	border: 1px solid #ccc;
	padding: 10px;
	font-size: 1.2em;
	background: #eee;
}
.search-results-pagination a {
	padding: 5px 10px;
	margin: 0 5px;
	border: 1px solid #ccc;
	border-radius: 5px;
	background: #fff;
}
.search-results-pagination a:hover {
	background: #543a71;
	color: #fff;
	text-decoration: none;
}
/* *** Sidebar *************************** Sidebar *** */
#sidebar > .wp-block-group:not(:first-of-type) {
	margin-top: 1em;
}
#sidebar h4 {
	background-color: rgba(0,0,0,0.02);
	background: linear-gradient(to bottom, rgba(255,255,255,0.95) 0%, rgba(252,252,252,1) 50%, rgba(249,249,249,1) 100%);
	border-bottom: 1px solid #e5e5e5;
	border-radius: 3px 3px 0px 0px;
	padding: 10px 5px 5px;
}
#sidebar p {
	line-height: 1.4em;
	font-size: .9em;
	margin-block-start: 1em;
}
#sidebar a {
	color: #6683c2;
}
#sidebar a:hover {
	color: #2ea3f2;
}
#sidebar .wp-block-buttons {
	margin-block-start: 0;
}

/* *** Footer ********************************* Footer *** */
#main-footer {
	background-color: #543a71;
}
#main-footer .wp-block-column {
	flex-basis: auto;
	flex-grow: 1;
}
#main-footer .wp-block-column:nth-of-type(3) {
	flex-grow: 0;
}

/* Back To Top Button */
/* https://www.freecodecamp.org/news/css-only-back-to-top-button/ */
a.scroll-top-icon {
	display: inline-block;
	position: sticky;
	bottom: 20px; /* when stuck, how far from bottom of screen */
	margin-right: 20px;
	grid-column: 2;
	grid-row: 1 / 5; /* spans all 4 rows */
	place-self: end; /* moves link to bottom of grid column */
	margin-top: calc(100vh + 10em); /* second operator is how far below the initial screen does the link first show up / how far down do you have to scroll */
	
	padding: 8px;
	border-radius: 5px;
	color: #fff;
	background: rgba(0, 0, 0, 0.4);
	font-size: 20px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.scroll-top-icon:before {
	content: "\f077";
}


/* Mobile Menu */
#mobile-menu-container { /* container div */
	display: none;
	float: left;
	margin-top: 3px; /* just to visually align better with search icon, font issue, they are aligned top but hamburger is not as tall as search */
}
#mobile-menu-icon { /* toggle span */
	display: block;
	position: relative;
	margin-top: -5px; /* to align with search icon */
}
#mobile-menu-icon:hover {
	color: #2ea3f2;
	cursor: pointer;
}
#mobile-menu-icon:before {
	position: relative;
	top: 0;
	left: 0;
	font-size: 22px;
	content: "\f0c9";
}
#mobile-menu-icon-text { /* hidden text, hamburger's label */
	display: none;
}
#mobile-menu-ul {
	display: none;
	position: absolute;
	z-index: 40;
	right: 0;
	width: max-content;
	max-height: calc(100vh - 90px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 10px 2em 10px 1em !important;
	white-space: nowrap;
	border-top: 3px solid #6682c1;
	background: #fff;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#mobile-menu-ul::after {
    opacity: 0;
    content: "\f077";
    font-family: AGL-icons;
    font-size: 14px;
    line-height: 12px;
    position: absolute;
    bottom: 5px;
    right: 5px;
    transform: scaleY(-1);
    border: 1px solid #ccc;
    border-radius: 18px 18px 10px 10px / 18px 18px 30px 30px;
    padding: 2px 4px 14px;
}
@media all and (max-height: 490px) {
    #mobile-menu-ul::after {
        opacity: 1;
    }
}
#mobile-menu-ul li { /* overrides primary menu */
	display: block;
	padding-right: 5px;
}
#mobile-menu-ul li a {
	display: block;
	color: rgba(0, 0, 0, 0.6); /* overrides default blue/purple links */
	padding: 10px 5%;
	border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}


/* Responsive Styles Desktop Only */
@media all and (min-width: 981px) {
	#header-background {
		box-shadow: 0 0 7px rgba(0, 0, 0, 0.1);
	}
	#left-area,
	#sidebar {
		padding: 15px;
	}
}
@media all and (max-width: 1084px) {
    .page-template-page_headquarters #primary-menu-container > nav {
		display: none;
	}
	.page-template-page_headquarters #mobile-menu-container {
		display: block;
		margin-top: 13px; /* space between top of hamburger when header shrinks upon sticking */
	}
	.page-template-page_headquarters #mobile-menu-container ul {
	    border-top: none;
	    padding: 0 !important;
	}
	.page-template-page_headquarters #mobile-menu-container li {
	    padding-left: 1em;
	    padding-right: 2em;
        background: linear-gradient(270deg,rgb(255, 255, 255) 0%, rgb(255, 255, 255) 90%, rgb(102, 130, 193) 100%);	    
	}
	.page-template-page_headquarters #mobile-menu-container li:first-of-type {
	    background: linear-gradient(180deg,rgb(102, 130, 193) 0%, rgb(255, 255, 255) 20%);
	    padding-top: 5px;
	}
	.page-template-page_headquarters #mobile-menu-container #menu-item-23207 { /* Wordpress */
	    background: none;
	}
	.page-template-page_headquarters #mobile-menu-container #menu-item-23205 { /* Main Site */
	    pointer-events: none;
	    margin-left: -1em;
	    padding-top: 20px;
	    background: linear-gradient(0deg,rgb(255, 255, 255) 79%, rgb(102, 130, 193) 80%, rgb(255, 255, 255) 100%);
	}
	.page-template-page_headquarters .site-tagline {
	    top: 40px;
	    left: 150px;
	}
	.page-template-page_headquarters .custom-logo {
		height: 95px;
	}
	.page-template-page_headquarters #primary-menu-container {
	    padding-top: 10px;
	}
	.page-template-page_headquarters #header-background {
	    height: 55px;
	    top: 40px;
	}
}
/* Responsive Styles Tablet And Below */
@media all and (max-width: 1024px) {
	#top-header {
		padding: 0.5em 1.5em;
	    justify-content: center;
	}
	#mobile-menu-container {
		display: block;
		margin-top: 13px; /* space between top of hamburger when header shrinks upon sticking */
	}
	.menu-primary-container, /* these classes auto generated by WP */
	.menu-secondary-container {
		display: none;
	}
	#header-search-container {
		max-width: 50%;
		top: 13px;
	}
	#header-search-icon {
		margin-top: 8px;
		padding-bottom: 0;
	}
	.site-tagline {
	    top: 40px;
	    left: 150px;
	}
	.custom-logo {
		height: 95px;
	}
	#primary-menu-container {
	    padding-top: 10px;
	}
	#header-background {
	    height: 55px;
	    top: 40px;
	}
	#content-area {
		flex-flow: column; /* makes left-area and sidebar stack */
	}
	#left-area,
	#sidebar {
		padding: 1%;
	}
	#sidebar {
		border-right: 1px solid #e5e5e5;
		margin-top: 50px; /* some visual separation of sidebar from bottom of main content */
	}
	#sidebar::before {
		content: '';
		width: 100%;
		height: 5px;
		background: linear-gradient(rgba(255,255,255, .5) 0%, rgba(0,0,0,.1) 50%, rgba(255, 255, 255, .5) 100%);
		display: block;
		margin-top: -50px;
		margin-bottom: 50px;
	}
}
/* Only for Headquarters */
@media screen and (max-width: 969px) {
    .page-template-page_headquarters #main-footer p {
        margin-left: 0 !important; /* important overides inline element's style */
    }
}
/* Responsive Styles 782px */
@media screen and (max-width: 782px) {
	/* WP changes the admin bar appearance at this screen size */
	.admin-bar #top-header,
	.admin-bar #main-header {
		top: 38px; /* new height of admin bar */
	}
}

/* Responsive Styles Smartphone Only */
@media all and (max-width: 767px) {
	#top-header,
	#main-header {
		position: relative; /* stops sticky */
	}
	#header-background {
	    position: absolute;
	    width: 100%;
	}
	#main-header {
	    top: 0;
	}
	.admin-bar #top-header,
	.admin-bar #main-header {
		top: 0; /* not sticky so don't need top adjustment for admin bar */
	}
	#main-content {
		padding: 20px 10px 0;
	}
	#main-footer > .wp-block-group .wp-block-group__inner-container {
	    padding: 20px 20px 0;
	}
	#content-area .entry-content {
		padding: 5px;
	}
	#sidebar {
		margin-top: 100px; /* even more visual separation of sidebar from bottom of main content */
	}
}

/* Responsive Styles Smartphone Portrait */
@media all and (max-width: 499px) {
    #main-header {
        padding-left: 10px;
    }
    #top-header {
        justify-content: right;
    }
	#main-content {
		padding: 15px 8px 0;
	}
	#main-footer > .wp-block-group .wp-block-group__inner-container {
	    padding: 15px 15px 0;
	}
}
/* tagline and menu run into each other */
@media all and (max-width: 435px) {
    .site-tagline {
        font-size: 0.7em;
    }
}
@media all and (max-width: 390px) {
    .site-tagline {
        top: 60px;
        left: 115px;
    }
}

/* Printscreen Styles */
@media print {
	#top-header,
	#primary-menu-container,
	#sidebar,
	.footer__menu,
	.footer__bottom,
	.scroll-top-icon	{
		display: none !important;
	}
	#main-header {
		position: relative !important;
		box-shadow: none;
	}
	#main-content,
	#main-footer > .wp-block-group .wp-block-group__inner-container {
		padding: 0;
		width: 100%;
		max-width: 100%;
	}
	#content-area,
	#left-area {
		border: none !important;
	}
	.entry-title {
		text-align: center;
	}
	.entry-content {
		margin-top: .4in;
	}
	/*
	#sidebar a:after {
		content: " (" attr(href) ") ";
		font-family: Roboto, "Open Sans", Arial, sans-serif;
		font-size: 14px;
		position: relative;
		margin-left: 0;
		opacity: 1;
	}
	*/
}