*,
*:before,
*:after {
    box-sizing: border-box;
}

/*
--------------------------------------------------------------------------
 Typography 
--------------------------------------------------------------------------
 */

 :root {
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

body {
    color: #333;
    font-size: inherit !important;
    font-family: inherit !important;
}

p+p {
    margin-top: .25em;
}

p:empty {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .5em;
    padding: 0;
    font-weight: bold;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 28px;
}

h5 {
    font-size: 25px;
}

h6 {
    font-size: 20px;
}


/*  Links -------------------

 */

a {
    color: var(--secondary);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

a.button-link,
input[type="submit"]:not(#mms-main input),
.mobile-login button {
    /* :not exception needed to avoid messing with all sorts of different buttons in the MMS  */
    background: var(--primary);
    font-size: inherit;
    padding: .6em 2ch;
    display: inline-block;
    color: white;
    position: relative;
    /*^^ Optically adjust for rounded left edge */
    border: none;
    text-align: center;
}

/*.button-link:not(:last-child) {
    margin-bottom: .5em;
}*/

a.button-link:hover,
a.button-link:focus {
    text-decoration: none;
	background-color: #1267C4;
}

a.button-link+*:not(.button-link) {
    padding-top: 1.5em;
}

/**+.button-link {
    margin-top: 1em;
}*/

li:not(:last-child) .button-link {
    margin-bottom: .75rem;
}

.quick-links {
	display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 20px;
	padding: 0 15px;
}

.quick-links .button-link {
	width: 100%;
	text-align: left;
	padding: 0;
	line-height: 0;
}

@media (max-width: 990px) {
	.quick-links {
		display: block;
	}
	.quick-links p {
		margin: 30px;
	}
	.quick-links .button-link {
		line-height: 1;
	}
}

@media (max-width: 1200px) {
	.quick-links .button-link {
		line-height: 1;
	}
}

.quick-links::before {
	display: none;
}

.quick-links .button-link:hover, .button-link:focus {
	background-color: #1267C4;
}

.quick-links .button-link a {
	color: white;
}

.button-link img {
	margin-right: 25px;
}

.button-link p {
	position: relative;
	top: 50%;
}

/*
--------------------------------------------------------------------------
 Objects
--------------------------------------------------------------------------
 */
 
 #hidden {
	 display: none;
 }
 
.line-row {
	left: calc(var(--side-margin) * -1);
}

/*  Wrappers
    *.wrapper acts as a more symantic stand in for <container><row><col-md-12></col-md-12></row></container> in sections of this build that don't require stacking columns 
 */

.wrapper {
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
    position: relative;
    height: inherit;
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width:768px) {
    body {
        --side-margin: calc((100vw - 750px) / 2);
    }
    .wrapper {
        width: 750px;
    }
}

@media (min-width:992px) {
    body {
        --side-margin: calc((100vw - 987px) / 2);
    }
    .wrapper {
        width: 970px;
    }
}

@media (min-width:1200px) {
    body {
        --side-margin: calc((100vw - 1170px) / 2);
    }
    .wrapper {
        width: 1170px;
    }
}

@media (min-width: 767px) {
    /*The following styles are meant to give more space to the label column in contact forms that are too narrow for the entire label to be read normally*/
    .col-md-5 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-4 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-3 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-2 form[action="contact_form_resp.php"] .col-sm-2,
    .col-md-1 form[action="contact_form_resp.php"] .col-sm-2 {
        width: 25%;
        padding-right: 1em;
    }
    .col-md-5 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-4 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-3 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-2 form[action="contact_form_resp.php"] .col-sm-10,
    .col-md-1 form[action="contact_form_resp.php"] .col-sm-10 {
        width: 75%;
        padding-left: 0;
    }
    .col-md-5 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-4 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-3 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-2 form[action="contact_form_resp.php"] .col-sm-offset-2,
    .col-md-1 form[action="contact_form_resp.php"] .col-sm-offset-2 {
        margin-left: 25%;
    }
    /*^^Adjusts the form-group placement of the reCAPTCHA iframe and submit buttom to match the new widths from the styles above*/
}

blockquote {
    font-size: inherit;
    border-left-color: var(--secondary);
}

blockquote p {
    font-size: 1.05em;
}


/*Styles below are taken from Bootstrap's table style to ensure that tables on content pages are responsive and neat whether Bootstrap classes are added or not. :not added to prevent styling Google Custom Search tables*/

#subpage-main table {
    max-width: 100%;
    border-collapse: collapse;
    color: #212529;
    margin-bottom: 1em;
    font-size: 16px;
    border-bottom: 1px solid #dee2e6;
    margin-top: 2em;
}

#subpage-main thead {
    font-weight: bold;
}

#subpage-main td,
#subpage-main th {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    text-align: inherit;
}

#subpage-main thead th {
    vertical-align: bottom;
    border-top: none;
}

#subpage-main table caption {
    color: currentColor;
    text-align: left;
    font-size: 1.375em;
    font-weight: bold;
    padding: 0;
}

#subpage-main tbody tr:hover {
    color: #212529;
    background-color: rgba(0, 0, 0, .075);
}

@media (max-width: 767px) {
    #subpage-main table {
        font-size: 14px;
    }
    #subpage-main td:first-child,
    #subpage-main th:first-child {
        padding-left: 5px;
    }
    #subpage-main td:last-child,
    #subpage-main th:last-child {
        padding-right: 5px;
    }
}

@media (max-width: 500px) {
    #subpage-main td,
    #subpage-main th {
        padding: 5px 2px;
    }
}

grammarly-btn {
    display: none;
    /*If someone copy/pastes text from Grammarly it will add this invisible button and cause the page to scroll horizontally. This style hides that.*/
}

.ui-widget {
    /* Part of some pages in the MMS, this style tells it not to overwrite the font with Verdana */
    font-family: revert;
}


/* Feed items */

.feed-item {
    padding: 1.25rem 15px;
}

.feed-item h3 {
    font-size: 1.1rem;
}

.feed-item *:not(:last-child) {
    margin-bottom: .5rem;
}


/* Slideshow defaults */

.carousel-caption {
    position: absolute;
    z-index: 100;
    background-color: #002857;
    background: rgba(4, 187, 198, .6);
    padding: 10px 15px;
    left: inherit;
    bottom: 0px;
    right: 0px;
    top: inherit;
    width: 100%;
    text-align: left;
    text-shadow: none;
}

@media (max-width: 600px) {
    .carousel-caption {
        padding: 0px;
    }
}

.caption-text {
    font-size: 28px;
    font-weight: 600;
    line-height: 33px;
    display: block;
    color: initial;
    margin-bottom: 10px;
}

.alt-text {
    font-size: 16px;
    color: initial;
    margin-bottom: 10px;
}


/*--end slideshow-defaults---------*/


/*----------Responsive Nivo*/

div[id^=slider-container-FD],
div[id^=slider_FD],
.nivoSlider img {
    max-width: 100% !important;
    height: auto !important;
}


/*----------Nivo Controls*/

.nivo-prevNav,
.nivo-nextNav {
    background-image: none !important;
    width: 25px !important;
    top: 25% !important;
    /*Fallback for browsers that don't support calc*/
    top: calc( 50% - 50px) !important;
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 75px;
    font-family: Arial, sans-serif;
    text-shadow: 0px 0px 10px rgba(51, 51, 51, 0.4);
}

.nivo-prevNav:hover,
.nivo-nextNav:hover {
    text-decoration: none;
    color: #ae0e0d;
    text-shadow: none;
}

.nivo-prevNav {
    left: 10px !important;
}

.nivo-nextNav {
    right: 10px !important;
}

.nivo-prevNav:after {
    content: "‹";
}

.nivo-nextNav:after {
    content: "›";
}


/*  Modals ---------------------------------
    ----------------------------------------
 */

.modal-open .modal {
    display: flex;
}

.modal-dialog {
    max-width: 260px;
    font-size: 16px;
    margin: auto;
}

.modal-header,
.modal-body {
    padding: .5rem 1rem;
}

.modal-header .close {
    opacity: 1;
    z-index: 1;
    position: relative;
}

.modal h2 {
    font-size: 20px;
    opacity: .9;
}

.modal a {
    display: block;
    margin-bottom: .5em;
}


/*  Login Forms ----------------------------
----------------------------------------
*/

.modal input[name="Username"],
.modal input[name="Password"] {
    width: 100%;
    padding-left: .25em;
    padding-right: .25em;
    margin-bottom: 0.5em;
    height: 2em;
    border: 1px solid rgba(68, 68, 68, .5);
}


/*
--------------------------------------------------------------------------
 Header
--------------------------------------------------------------------------
 */
 
.top-wrap {
	width: 100%;
	background-color: var(--background);
}

#top-left {
	padding-left: 0;
}

#top-right{
	display: flex;
    justify-content: flex-end;
	padding-right: 0;
}
@media (max-width: 767px) {
	#top-right {
		justify-content: flex-start;
		padding-left: 0;
	}
}

#top-right .button-link {
	margin-right: 1px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2em 0px;
}

.logo-section img {
  width: auto;
}

.org-name a {
	font-size: 26px;
	position: relative;
    right: 180px;
    bottom: 10px;
	color: black;
	line-height: 1;
}
@media (max-width: 1200px) {
	.org-name a {
		right: 0;
		bottom: 0;
		left: 10px;
	}
}

.logo-section p {
	padding-top: 10px;
}


/*  Desktop Menu ---------------------------
    ----------------------------------------
 */

#nav_menu>ul {
    display: block;
    width: 100%;
    list-style: none;
    padding-left: 0;
    position: relative;
    margin: 0;
    padding-bottom: 0;
    transition: .125s height ease-in;
}

#nav_menu>ul>li>ul {
    /* 1st tier submenus */
}

#nav_menu>ul>li:last-child>ul {
    /* Submenu of the last top-level menu item */
    left: -100%;
}

#nav_menu>ul::before,
#nav_menu>ul::after {
    content: none;
}

#nav_menu .navbar-nav>li>a {
    font-size: 16px;
    white-space: nowrap;
	height: 45px;
	border-right: 1px solid #1267C4;
}

#nav_menu .navbar-nav>li:first-child {
	border-left: 1px solid #1267C4;
}

.caret {
    /* Convert Bootstrap style into em's so carets scale with type 
    border-top: .2em dashed;
    border-right: .2em solid transparent;
    border-left: .2em solid transparent;*/
	width: 10px;
}

.dropdown-menu {
    font-size: inherit;
}

.dropdown-menu>li>a {
    font-size: inherit;
    padding: .5rem 1rem;
}

.nav .open>a,
.nav .open>a:focus,
.nav .open>a:hover,
.nav>li>a:focus,
.nav>li>a:hover {
    /* Overwriting BS defaults */
    background-color: transparent;
    color: inherit;
    transition: color .125s ease-in;
}

.nav .open>a:hover,
.dropdown-menu>li>a:focus,
.dropdown-menu>li>a:hover {
    color: var(--secondary);
    background-color: transparent;
}

.dropdown:hover>.dropdown-menu {
  display: block;
}

#nav_menu li.greyed a {
    opacity: .75;
}


/*  Mobile Header Nav ----------------------
    ----------------------------------------
 */

@media (max-width: 990px) {
    #nav_menu {
        display: none !important;
    }
}

.mobileMenuTrigger label {
    display: none;
}

.menu-trigger {
    cursor: pointer;
    margin: 0;
    width: 100%;
    height: 30px;
    padding: 5px;
}

.menu-trigger:hover,
.menu-trigger:focus {
    color: var(--secondary);
}


/*  Mobile Menu-----------------------------
    ----------------------------------------
 */

#mobileMenuWrapper {
    box-shadow: 7px 0 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    left: -120%;
    width: 300px;
    background-color: white;
    transition: left 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    color: #444;
}

#mobileMenuWrapper.open {
    left: 0;
}

#mobile-menu {
    list-style: none;
    overflow-y: auto;
    overflow-x: visible;
    padding: 1em 1.5em;
}

.triggerClose {
    text-align: right;
}

#mobile-menu button {
    border: none;
}

.triggerClose button {
    background: none;
    font-weight: bold;
}

#mobileMenuWrapper #mobile-menu a {
    display: inline-block;
    width: 100%;
    margin-bottom: .75em;
	color: black;
}

#mobileMenuWrapper #mobile-menu a:hover, a:focus {
	text-decoration: underline;
}

#mobileMenuWrapper .mDropdown {
    display: none;
    list-style: none;
    padding: 0;
    background: none;
    border-top: 1px solid var(--secondary);
    border-bottom: 1px solid var(--secondary);
    padding-top: .75em;
    margin-bottom: .75em;
}

#mobileMenuWrapper .mDropdown.open {
    display: block;
}

.mDropdown>li>a {
    padding: 0;
}

.mDropdown-parent {
    color: var(--primary);
}


/*
--------------------------------------------------------------------------
 Main
--------------------------------------------------------------------------
 */

main {
    min-height: calc(100vh - 118px - 143px);
    position: relative;
}

@media (min-width: 767px) {
    #subpage-main .row,
    #homepage-main .row {
        /*These two styles can be tweaked if needed, but they are a handy default for spacing rows (and then columns once the screen hits the col-xs breakpoint on subpages*/
        margin-bottom: 2.5em;
    }
    div[class^="col"]+.col-md-12 {
        margin-top: 2em;
    }
}

@media(max-width: 1200px) {
    #homepage-main article>section,
    #subpage-main {
        padding: 3.5em 0;
    }
}

@media(max-width: 990px) {
    #homepage-main article>section,
    #subpage-main {
        padding: 2.5em 0;
    }
    .col-md-6.col-sm-12+.col-sm-12 {
        margin-top: 30px;
    }
}

@media (max-width: 900px) {
    #subpage-main:not(.full-background),
    #mms-main {
        margin-bottom: 2em;
    }
    main div[id^="section-"] {
        padding: 3.5em 0;
    }
}

@media (max-width: 767px) {
    #homepage-main article>section,
    #subpage-main {
        padding: 1.5em 0;
    }
    #subpage-main [class*="col-md"]+[class*="col-md"] {
        margin-top: 1rem;
    }
    #subpage-main div[class^="col-md"],
    #homepage-main div[class^="col-md"] {
        margin-bottom: 1em;
    }
    #homepage-main article>section {
        padding: 3em 0;
    }
}

@media (max-width: 450px) {
    #homepage-main article>section {
        padding: 2em 0;
    }
}


/*  Home Slideshow  ------------------------
    ----------------------------------------
 */

#banner-row .carousel-control.left,
#banner-row .carousel-control.right {
    /* Remove carousel controls from homepage slideshow */
    display: none;
}

#banner-row img {
	width: 100%;
}

#banner-row .carousel-caption {
    position: absolute;
    z-index: 100;
    left: 0;
    bottom: 3vh;
    right: 0;
    top: unset;
    width: 100%;
    text-align: center;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}
@media(max-width: 767px) {
	#banner-row .carousel-caption {
		bottom: 0;
	}
}

#banner-row .caption-wrapper {
    padding-left: 15px;
    padding-right: 15px;
}

#banner-row .caption-text {
    font-size: 28px;
    font-weight: bold;
    line-height: .9;
    display: block;
    color: white;
}

#banner-row .alt-text {
    font-size: 18px;
    line-height: 1.2;
    color: white;
}

@media (max-width: 990px) {
    #banner-row .caption-text {
        font-size: 38px;
    }
    #banner-row .alt-text {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    #banner-row .caption-text {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
	.carousel-indicators {
		bottom: -15px;
	}
}

.slide-wrap {
	padding-left: 0;
}


/*  Subpages -------------------------------
    ----------------------------------------
 */


/*  Grid Page Editor workarounds -----------
----------------------------------------
 */

html {
    --primary: #004AAD;
    --secondary: #79070B;
    --accent: #04bbc6;
    --background: #F4F0E4;
    --text: #333333;
    overflow-x: hidden;
    font-size: 19px;
    font-family: 'Inter', sans-serif;
    color: #263138;
    --side-margin: 1px;
}

@media (min-width:768px) {
     :root {
        --side-margin: calc((100vw - 750px) / 2);
    }
}

@media (min-width:991px) {
     :root {
        --side-margin: calc((100vw - 987px) / 2);
    }
    .wrapper {
        width: 970px;
    }
}

@media (min-width:1201px) {
     :root {
        --side-margin: calc((100vw - 1170px) / 2);
    }
    .wrapper {
        width: 1170px;
    }
}

body {
    color: inherit;
    overflow: inherit;
}

body,
header,
footer,
main,
header nav {
    font-family: inherit !important;
    font-size: inherit !important;
    /* Prevent MMS pages with hard-coded fonts from overwriting this  */
}

p {
    margin: 0;
}

p:not(:last-child) {
    margin-bottom: 1em;
    color: inherit;
}


/*--------------------------------------------------------
    Headings
--------------------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 .7em;
    padding: 0;
    font-weight: bold;
    color: black;
    text-transform: capitalize;
    line-height: 1;
}

h1:not(:first-child),
h2:not(:first-child),
h3:not(:first-child),
h4:not(:first-child),
h5:not(:first-child),
h6:not(:first-child) {
    margin-top: 1em;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 28px;
}

#homepage-main h2 {
    font-size: 28px;
	margin-top: 30px;
}

h3 {
    font-size: 26px;
}

#homepage-main h3 {
    font-size: 26px;
	margin-bottom: 1em;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}


/*--------------------------------------------------------
    Links
--------------------------------------------------------*/

a {
    text-decoration: none;
    color: var(--secondary);
    transition: .125s color ease-in-out;
}

a:hover,
a:focus {
    color: var(--primary);
    text-decoration: underline;
}

.button-link {
    text-transform: capitalize;
    display: block;
    width: fit-content;
    color: white;
    background-color: var(--primary);
    text-align: center;
    padding: 0.6em 2ch;
    text-decoration: none;
    line-height: 1;
    transition: background .125s ease-in-out;
    text-shadow: none;
    border: none;
}

.button-link:hover,
.button-link:focus {
    background-color: var(--secondary);
    text-decoration: none;
    outline: none;
    color: white;
}

/*.button-link:not(:first-child) {
    margin-top: 1.5em;
}

.button-link:not(:last-child) {
    margin-bottom: 2em;
}*/

.donate-button {
    color: white;
    background-color: var(--secondary);
    text-align: center;
    padding: 0.6em 2ch;
    text-decoration: none;
    line-height: 1;
    transition: background .125s ease-in-out;
    text-shadow: none;
    border: none;
	display: inline-block;
	position: relative;
	top: -1px;
}

.donate-button:hover {
	background-color: #A23636;
	text-decoration: none;
	color: white;
}

#mms-main a {
    text-decoration: none;
}


/*--------------------------------------------------------
    Objects
--------------------------------------------------------*/

.offscreen {
    /* This class allows an element to be read by a screenreader without appearing in the viewport  */
    position: absolute;
    left: -666vw;
}


/*  Wrappers
    *.wrapper acts as a more symantic stand in for <container><row><col-md-12></col-md-12></row></container> in sections of this build that don't require stacking columns 
 */

.wrapper {
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
    position: relative;
    height: inherit;
    padding-left: 15px;
    padding-right: 15px;
}

.full-width {
    /* Make an element span the width of the viewport */
    position: relative;
    left: var(--side-margin);
    right: var(--side-margin);
    width: calc(100vw + 13px);
}

.img-responsive.full-width:not(#mycanvas img) {
    /* Make sure that when the system automatically adds the class .img-responsive that it doesn't break .full-width. This is not applied to images viewed on the Grid Editor page. */
    max-width: unset;
}

#gm-canvas .full-width {
    left: unset;
    right: unset;
    width: unset;
}

.row-background:not(#mycanvas .row-background) {
    position: relative;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 15px;
}

.row-background:not(#mycanvas .row-background)::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    display: block;
    background-color: var(--background);
}

@media (min-width: 992px) {
    .row-background:not(#mycanvas .row-background)>.col-md-9 {
        width: calc(75% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-8 {
        width: calc(66.7% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-7 {
        width: calc(58.3% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-6 {
        width: calc(50% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-5 {
        width: calc(41.7% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-4 {
        width: calc(33.3% - 20px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-3 {
        width: calc(25% - 20px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-2 {
        width: calc(20% - 20px);
    }
}

@media (max-width: 990px) {
    .container,
    .wrapper {
        /* Extra wiggle room at a breakpoint that needs it  */
        width: 100%;
    }
    .full-width {
        --side-margin: -15px;
        left: var(--side-margin);
        right: var(--side-margin);
        width: calc(100vw + 30px);
    }
    .row-background:not(#mycanvas .row-background) {
        padding-right: 15px;
    }
    .row-background::before {
        left: 0;
        right: 0;
    }
}

@media (max-width: 767px) {
    .row-background {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}


/* Events/News items */

.feed-item {
    display: flex;
    flex-direction: column;
	outline: 1px solid #e6e6e6;
}

.feed-item:not(:last-child) {
    margin-bottom: 1.75rem;
}

.feed-item img {
    margin-right: 10px;
    margin-bottom: 5px;
}

.feed-item time {
    background: var(--secondary);
    border-radius: 5px;
    color: white;
    text-align: center;
    min-width: 50px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feed-item time span {
    display: block;
}

.feed-item .day {
    font-size: 1.4em;
    line-height: 1;
}

#homepage-main .feed-item h3 {
    font-size: 1.1rem;
    margin: 0 0 5px;
    line-height: 1;
}

@media (min-width: 768px) {
    .feed-item time {
        font-size: 14px;
    }
}

.ev-title-link {
	color: black;
	text-decoration: underline;
}

.news-wrap:not(#gm-canvas .news-wrap) {
    position: relative;
}
.news-wrap:not(#gm-canvas .news-wrap)::before {
	content: "";
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: calc(var(--side-margin) * -1);
    right: calc(var(--side-margin) * -1);
    background-image: linear-gradient(rgba(4, 187, 198, .8),rgba(4, 187, 198, .8)), 
						url(../images/news-background-2024.jpg);
	background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.news-wrap h2{
	color: black;
}

.news-feed-item {
	background: white;
	width: 360px;
	padding: 20px;
}

.news-feed-item img {
    margin-right: 10px;
    margin-bottom: 5px;
}

.news-row {
	display: flex;
	justify-content: space-between;
	gap: 15px;
}
@media (max-width: 768px) {
	.news-row {
		flex-direction: column;
		align-items: center;
	}
}

.news-title-link {
	color: black;
	text-decoration: underline;
	line-height: 1.25;
}	


/* Slideshows defaults */

.carousel {
    font-size: 20px;
}

.carousel-control.left,
.carousel-control.right {
    display: none;
}


/*--------------------------------------------------------
    Header
--------------------------------------------------------*/

header {
    /*display: flex;
    justify-content: space-between;
    align-items: center;
	flex-direction: column;*/
}

#homepage-header {
    position: absolute;
    top: 0;
    z-index: 1;
    left: calc(var(--side-margin) * -1);
}

.search-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem 15px;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.search-list .button-link {
    margin-top: 0;
}


/* Search */

.searchbox {
    width: 230px;
    max-width: 100%;
    position: relative;
    /*padding: 5px 1ch;*/
    height: 34px;
    outline: 1px solid #e6e6e6;
    transition: .125s outline ease-in-out;
    overflow: hidden;
}
@media (max-width: 990px) {
	.searchbox {
		display: none;
	}
}

.searchbox:hover,
.searchbox:focus,
.searchbox:focus-within {
    outline: 1px solid var(--primary);
}

.search-input {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: none;
    width: 100%;
    padding: inherit;
    background: transparent;
	color: var(--primary);
	padding: 0px 5px;
}

.search-input:focus {
    outline: none;
}

.search-button {
    color: white;
    background-color: var(--primary);
    border: none;
    background-image: url(../images/search-new.svg.php?fc=eeeeee) !important;
    position: absolute;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 15px !important;
    transition: .125s background-image ease-in-out;
    bottom: 3px;
    width: 40px;
    right: 0;
	float: right;
	margin-right: 0 !important;
}

.search-button:hover,
.search-button:focus {
    background-image: url(../images/search-new.svg.php?fc=185481);
    outline: none;
}


/* Desktop menu  */

header nav {
    /*width: 630px;*/
    max-width: 100%;
}

.nav-wrap {
	width:100%;
	background-color: var(--primary);
}
@media (max-width: 990px) {
	.nav-wrap {
		background-color: white;
	}
}

#nav_menu {
    position: relative;
    z-index: 1;
	padding-left: 0;
}

#nav_menu>ul::before,
#nav_menu>ul::after {
    content: none;
}

#nav_menu li {
    position: relative;
}

#nav_menu>ul>li>a {
    transition: background .125s ease-in-out;
    position: relative;
    text-transform: capitalize;
    color: white;
}

#homepage-header #nav_menu>ul>li>a {
    color: white;
}

#nav_menu a {
    text-decoration: none;
    background: transparent;
    transition: .125s color ease-in-out;
    color: var(--text);
}

#nav_menu a:hover,
#nav_menu a:focus,
#nav_menu .nav .open>a,
#nav_menu .nav .open>a:focus,
#nav_menu .nav .open>a:hover {
    background: #1267C4;
}

#nav_menu .caret {
    margin-left: .5ch;
}

#nav_menu .dropdown-menu {
    /* Dropdown menu  */
    font-size: inherit;
    padding: 0;
    border: none;
    border-radius: 0;
    top: calc(100% - .5rem);
}

#nav_menu .dropdown-menu a {
    text-decoration: none;
    background: #1267C4;
    transition: .125s background ease-in-out, .125s color ease-in-out;
    padding: .5em 1ch;
	color: white;
}

#nav_menu .dropdown-menu a:hover,
#nav_menu .dropdown-menu a:focus {
    background: #227FD3;
    color: white;
}

#nav_menu .dropdown-menu:not(.men-level-):not(.men-level-0) {
    top: 0;
}

.search-icon {
    width: 1rem;
    position: relative;
    top: -.125rem;
}

@media (max-width: 1200px) {
    #nav_menu>ul {
        /*display: flex;
        justify-content: space-between;*/
    }
    #nav_menu>ul>li>a,
    #nav_menu .dropdown-menu a {
        padding: .5em 1ch;
    }
}

@media (max-width: 990px) {
    header nav {
        /*display: none;*/
    }
}


/* Mobile menu trigger  */

.mobileMenuTrigger:not(.triggerClose) {
    border: 2px solid currentColor;
    padding: 10px 5px;
    color: var(--primary);
    transition: color .125s ease-in-out;
    display: inline-flex;
    border-radius: 5px;
    background: transparent;
	width: 100%;
}

.mobileMenuTrigger:not(.triggerClose):hover,
.mobileMenuTrigger:not(.triggerClose):focus {
    color: var(--secondary);
    outline: none;
}

@media (min-width: 991px) {
    .mobileMenuTrigger:not(.triggerClose) {
        display: none;
    }
}

@media (max-width: 990px) {
	.mobile-section {
		margin-bottom: 10px;
	}
}


/* Login modal */

.modal-open .modal {
    display: flex;
}

.modal-dialog {
    max-width: 100%;
    font-size: 16px;
    margin: auto;
    width: 300px;
}

.modal-content {
    margin-top: 20px;
    border-radius: 0;
}

.modal-header,
.modal-body {
    padding: .5rem 1rem;
}

.modal-header .close {
    opacity: 1;
    z-index: 1;
    position: relative;
}

.modal h2 {
    font-size: 24px;
    margin-top: 0;
}

.modal-header,
.modal-body {
    padding: 1em 2ch;
}

.modal input[name="Username"],
.modal input[name="Password"] {
    width: 100%;
    padding-left: .25em;
    padding-right: .25em;
    margin-bottom: 0.5em;
    height: 2em;
    border: 1px solid rgba(68, 68, 68, .5);
}

.modal a {
    display: block;
    margin-bottom: .5em;
}

@media (max-width: 990px) {
    .header-links li:not(:last-child) {
        display: none;
    }
}


/*--------------------------------------------------------
    Mobile navigation
--------------------------------------------------------*/

#mobileMenuWrapper {
    position: fixed;
    background: white;
    top: 0;
    bottom: 0;
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    left: -120%;
    width: 300px;
    box-shadow: 0 3px 14px -2px rgba(0, 0, 0, 0.4);
    transition: left .125s ease-in-out;
}

#mobileMenuWrapper.open {
    left: 0;
}

#mobileMenuWrapper ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#mobileMenuWrapper li {
    display: block;
    margin-bottom: .7rem;
}

#mobileMenuWrapper .mobile-search-close {
    display: flex;
    justify-content: space-between;
}

#mobileMenuWrapper a {
    background-color: transparent;
    text-decoration: none;
}

#mobileMenuWrapper .mDropdown {
    display: none;
    padding-top: .7rem;
}

#mobileMenuWrapper .mDropdown.open {
    display: block;
}

.triggerClose {
    text-align: right;
}

.triggerClose button {
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 0;
    line-height: 1;
}

#mobileMenuWrapper #mobile-menu {
    overflow: auto;
    padding: 1rem;
}


/*--------------------------------------------------------
    Main
--------------------------------------------------------*/

#subpage-main,
#mms-main {
    padding-top: 1rem;
    min-height: calc(100vh - 54px - 167px - 4rem);
}

main:not(#mms-main) .row:not(#banner-row) {
    position: relative;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

#homepage-main .row:last-child {
    padding-bottom: 0 !important;
}

@media (max-width: 990px) {
    main:not(#mms-main) .row:not(#banner-row) {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
    main:not(#mms-main) .column+.column {
        margin-top: 1rem;
    }
}


/* @media (max-width: 767px) {
    #homepage-main {
        overflow-x: hidden;
    }
} */


/* Banner row  */

#banner-row {
    position: relative;
	left: calc(var(--side-margin) * -1);
}
@media (max-width: 990px) {
	#banner-row {
		left: 0;
	}
}

#banner-row:not(#mycanvas #banner-row) figcaption {
    position: absolute;
    bottom: 100px;
    color: white;
    font-size: 24px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgb(0 0 0 / 70%);
    max-width: calc(100% - 30px);
}

#banner-row:not(#mycanvas #banner-row) h1 {
    color: white;
    font-size: 55px;
    padding-bottom: 0;
    border-bottom: 3px solid;
    width: fit-content;
}

@media (max-width: 990px) {
    #banner-row:not(#mycanvas #banner-row) figcaption {
        bottom: 2rem;
        font-size: 1.1rem;
    }
    #banner-row:not(#mycanvas #banner-row) h1 {
        font-size: 40px;
    }
}

@media (max-width: 767px) {
    #banner-row:not(#mycanvas #banner-row) figcaption {
        position: relative;
        background: var(--primary);
        top: 0;
        bottom: 0;
        margin-left: -15px;
        margin-right: -15px;
        max-width: unset;
        padding: 1rem;
    }
}


/* Events and News rows */

#events-row .column:not(#mycanvas .column),
#news-row .column:not(#mycanvas .column) {
    /* max-height: 50vh;
    overflow-y: visible; */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    grid-gap: 1rem 30px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    height: 100%;
}

#events-row img:not(#mycanvas img),
#news-row img:not(#mycanvas img) {
    height: 100% !important;
    object-fit: cover;
    object-position: top;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: -1;
    opacity: .25;
}

#events-row h2,
#news-row h2,
#events-row .button-link,
#news-row .button-link {
    grid-column: 1 / -1;
}

#news-row time {
    display: none;
}

[src="https://media.istockphoto.com/photos/baseball-batter-preparing-to-hit-ball-picture-id536311505?s=2048x2048"] {
    /* Specific to the placeholder images of this template */
    object-position: 0 -200px !important;
}

[src="https://media.istockphoto.com/photos/two-plastic-balls-picture-id503626553?s=2048x2048"] {
    /* Specific to the placeholder images of this template */
    object-position: 0 -380px !important;
}

@media (max-width: 990px) {
    #events-row:not(#mycanvas .row),
    #news-row:not(#mycanvas .row) {
        overflow: hidden;
    }
    #events-row img:not(#mycanvas img),
    #news-row img:not(#mycanvas img) {
        height: 200% !important;
    }
}


.evr-field-info {
    font-size: 16px !important;
}


/* We Are Row */

#we-are-row h2,
#we-are-row .button-link,
#sponsors-row h2 {
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

.we-are-grid,
.sponsors-list {
    /* margin-top: 2rem; */
    padding: 0;
    list-style: none;
    display: grid;
    gap: 50px 30px;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
}

.we-are-grid li {
    background: white;
    border-radius: 5px;
    box-shadow: 0px 3px 5px rgb(102 102 102 / 30%);
    /* border: 1px solid #ddd; */
    overflow: hidden;
}

.we-are-grid img {
    height: 240px !important;
    height: unset !important;
    /* Overwrite inline style automatically added to any uploaded image */
    width: 100%;
    /* object-fit: cover; */
}

.we-are-grid section {
    padding: 1em;
}

.we-are-grid h3 {
    font-size: 20px;
    /* color: var(--secondary); */
}

@media (max-width: 1200px) {
    .we-are-grid,
    .sponsors-list {
        gap: 2rem 30px;
    }
}

@media (max-width: 767px) {
    .we-are-grid,
    .sponsors-list {
        gap: 1.5rem 30px;
    }
}


/* Sponsors Row */

.sponsors-list li {
    justify-self: center;
}


/* #mycanvas .sponsors-list {
    display: block;
} */

.sponsors-list {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    margin-top: 2rem;
}

.sponsors-list img {
    border: 1px solid #e6e9f4;
    border-radius: 5px;
    object-fit: cover;
    object-position: center;
}


/*--------------------------------------------------------
    Footer
--------------------------------------------------------*/

footer:not(#homepage-main+footer) {
    margin-top: .5rem;
}

footer>section {
    position: relative;
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    gap: 30px 1em;
    flex-wrap: wrap;
}

footer>section:last-child {
    padding: 2rem 0;
}

footer>section::before {
    content: '';
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    background: var(--background);
    position: absolute;
    z-index: -1;
}

footer img {
    margin-bottom: 10px;
}

.footer-logo img {
	background: white;
}

.contact-icons img {
	display: inline-block;
	margin-bottom: 0;
    margin-right: 5px;
}

footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
	display: flex;
    flex-direction: column;
    align-items: flex-end;
}
@media (max-width: 990px) {
    footer ul {
        flex-direction: row;
		justify-content: space-between;
		align-items: flex-start;
		margin-top: 2rem;
    }
}

footer>section:first-child p {
    max-width: 767px;
}

footer a {
	color: white;
    text-decoration: underline;
}

footer a:hover,
footer a:focus {
    color: inherit;
}

footer {
	background-color: var(--accent);
	color: black;
	padding-top: 2em;
	margin-top: 2em;
}

.footer-row {
	padding-bottom: 2em;
}

footer .button-link {
	width: 135px;
}

.bottom-wrap {
	background-color: var(--secondary);
	padding: 20px 0px;
}

.bottom-left {
	padding-left: 0;
}

.bottom-right {
	padding-right: 0;
	text-align: right;
}
@media (max-width: 990px) {
    .bottom-right {
        text-align: left;
		padding-left: 0;
    }
}

.bottom-banner {
	background-image: url(../images/pattern-banner.jpg);
	height: 50px;
}


.social-list {
    /* color: white; */
    display: flex;
    align-items: center;
    /* justify-content: flex-end; */
    position: relative;
    list-style: none;
    gap: 10px;
    margin-bottom: 0;
	padding-left: 0;
}

.social-list svg {
    padding: 3px;
    transition: border .125s ease-in-out;
	vertical-align: middle;
}

.social-list svg:hover,
.social-list svg:focus {
    border: 1px solid var(--primary);
}

.social-list path {
    fill: var(--primary) !important;
}

.social-list rect {
    display: none;
}

@media (max-width: 900px) {
    footer {
        grid-template-columns: repeat(3, 1fr);
    }
    footer .social-list {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    footer,
    footer section {
        display: block;
    }
    footer ul {
        margin-bottom: 1rem;
    }
}


/*--------------------------------------------------------
    MMS Styles
--------------------------------------------------------*/


/* MMS Member Menu icons */

@media (min-width: 1200px) {
    .nav-tabs li.dropdown {
        width: 190px;
    }
}

@media (min-width: 990px) and (max-width: 1200px) {
    .nav-tabs li.dropdown {
        width: 155px;
    }
}

@media (min-width: 767px) and (max-width: 990px) {
    .nav-tabs li.dropdown {
        width: 120px;
    }
}