/* Template A1GA */

/* .image-row - the last image in the last column will be used for the background image */

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

:root {
    --page-width: 100vw;
    --primary: #021f36; 
    --secondary: #033a56; /* button and link hover color */
    --accent: #185b89; /* link and background color */
    --transparent-accent: hsla(from var(--accent) h s l / 0.8);
    --link-color: hsl(from var(--accent) h calc(s* 1.5) calc(l* 1.1)); /* brighter and lighter color for text links */
    --menu-hover: hsl(from var(--accent) h calc(s* 1.5) calc(l* 2.75)); /* close to white color used for menu dropdown link and footer link hover */
    --text: #4d5e68;
    --light-gray: #ededed;
    --radius: 5px;
    --small-radius: 3px;
    font-size: 16px;
    --side-margin: calc((100vw - var(--page-width)) / -2);
    font-family: "Roboto", sans-serif;
    overflow-x: clip;
    --header-height: 118px;
    --footer-height: 520px;
}

@media (min-width: 768px) {
    :root {
        /* --page-width: 750px; */
    }
}

@media (min-width: 992px) {
    :root {
        --page-width: 970px;
    }
}

@media (min-width: 1201px) {
    :root {
        --page-width: 1170px;
    }
}

* {
    scroll-margin-top: var(--header-height);
}

body {
    color: var(--text);
    position: relative;
    max-width: 100%;
    overflow-x: inherit;
}

body,
header,
nav,
footer {
    font-family: inherit !important;
    font-size: inherit !important;
    /*^^ Overwrites mms_styles.css*/
}


/*--------------------------------------------------------
	H1 - H6
--------------------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    margin-bottom: 1em;
    padding: 0;
    font-weight: 700;
    line-height: 1em;
    text-transform: capitalize;
    color: var(--secondary);
    font-family: "Roboto", sans-serif;
}

h1 {
    font-size: 32px;
}

h1.title:empty {
    /*^^Hides the extra margin that is added on pages without a title*/
    display: none;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}

p+h1,
p+h2,
p+h3,
p+h4 {
    margin-top: 1.25em;
}


/*--------------------------------------------------------
	LINKS
--------------------------------------------------------*/

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

a:is(:hover, :focus) {
    color: var(--secondary);
    /* text-decoration: underline; */
}

.button-link {
    color: white;
    border: 1px solid white;
    text-transform: capitalize;
    font-weight: 700;
    padding: .75em 2ch;
    display: block;
    width: fit-content;
    margin: 1.25em 0;
    transition: .125s background-color ease-in-out, .125s color ease-in-out, .125s padding ease-in-out;
    line-height: 1;
    text-decoration: none;
    background-color: var(--accent);
    border-radius: var(--radius);
    white-space: nowrap;
}

.button-link:first-child {
    margin-top: 0;
}

.button-link:last-child {
    margin-bottom: 0;
}

.button-link:is(:hover, :focus) {
    padding: .75em calc(2ch - 5px) .75em 2ch;
    background-color: var(--secondary);
    color: white;
    text-decoration: none;
}

.button-link::after {
    content: url(../images/right-arrow.svg);
    display: inline-block;
    margin-left: 10px;
    transition: .125s margin ease-in-out;
}

.button-link:is(:hover, :focus)::after {
    margin-left: 15px;
}

.arrow-link {
    color: var(--secondary);
}

.arrow-link:is(:hover, :focus) {
    text-decoration: none;
    color: var(--accent);
}

.arrow-link::after {
    content: url(../images/right-arrow.svg);
    display: inline-block;
    margin-left: 5px;
    padding: 2px 5px 0;
    border-radius: 50%;
    border: 1px solid white;
    line-height: 1.4;
    background-color: var(--primary);
    transition: .125s background-color ease-in-out;
}

.arrow-link:is(:hover, :focus)::after {
    background-color: var(--accent);
}


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

.offscreen {
    position: absolute;
    left: -200vw;
}

.embed-wrapper {
    /* Essentially remove the div added for Embed Script from the DOM */
    display: contents;
}


/* Wrappers*/

.wrapper {
    /* .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  */
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
    position: relative;
    height: inherit;
    padding-left: 15px;
    padding-right: 15px;
    width: calc(var(--page-width) - 30px);
    width: var(--page-width);
}

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

main:is(#homepage-main, #subpage-main) .full-width>.column {
    padding-left: 0;
    padding-right: 0;
}

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

.background-row {
    position: relative;
}

.background-row:not(#mycanvas .background-row)::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: calc(var(--side-margin) - var(--scrollbarWidth));
    display: block;
    background: var(--light-gray);
}

.background-row:not(#mycanvas .background-row)>.column {
    background: transparent !important;
    font-size: 16px;
    /* color: white; */
    /* text-align: center;
    font-weight: bold; */
    max-width: 1200px;
    margin: auto;
    line-height: 1.3;
}

.background-row:not(#mycanvas .background-row)>.column:not(.column:has(+.column)) {
    /* Since element is extended past where the scrollbar is, extra padding is added to make sure it's content is not hidden under the scrollbar */
    /* padding-right: calc(15px + var(--scrollbarWidth)); */
}

#subpage-main:has(.background-row:last-child) {
    /* If .background-row is the last row, don't include a gap between main and footer */
    margin-bottom: 0;
    padding-bottom: 0;
}

#subpage-main>.background-row:last-child {
    /* If .background-row is the last row, don't include a gap between main and footer */
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .background-row:not(#mycanvas .background-row)>.column {
        font-size: 16px;
    }
}

@media (max-width: 992px) {
    .container,
    .wrapper {
        /* Extra wiggle room at a breakpoint that needs it  */
        width: 100%;
    }
    .full-width,
    .background-row {
        /* left: var(--side-margin);
        right: var(--side-margin);
        width: calc(100vw + var(--scrollbarWidth)); */
    }
}

@media (min-width: 992px) and (max-width: 1201px) {
    .container {
        width: 970px;
    }
}

@media (min-width: 1201px) {
    .container {
        width: 1170px;
    }
}

/* Image-row */

.image-row {
    position: relative;
}

.image-row:not(#mycanvas .image-row) {
    color: white;
}

.image-row::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
    background: var(--transparent-accent);
    z-index: -1;
}

.image-row:not(#mycanvas .image-row)>.column:last-of-type {
    position: static;
}

.image-row:not(#mycanvas .image-row)>.column:last-of-type img:last-of-type {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
    width: 100vw !important;
    height: 100%  !important;
    z-index: -2;
    object-fit: cover;
    max-width: unset;
}

.image-row:not(#mycanvas .image-row) :is(p, a, h1, h2, h3, h4, h5, h6, ul, li) {
    color: white;
}

.image-row a:not(.button-link) {
    text-decoration: underline;
}

.image-row a:is(:hover, :focus) {
    color: white;
}


/* Lists */

.three-column-grid {
    display: grid;
    gap: 1rem 20px;
    grid-template-columns: repeat(auto-fill, minmax(min(275px, 100%), 1fr));
}

ul.three-column-grid {
    list-style: none;
    padding: 0;
    margin: 0;
}


/* Tables */

#subpage-main table {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 990px) {
    #subpage-main table {
        max-width: 100%;
    }
}

@media (max-width: 550px) {
    #subpage-main table {
        font-size: 16px;
        line-height: 1.25em;
    }
}

#subpage-main *+table {
    margin-top: 2em;
}

#subpage-main table+* {
    margin-top: 3em;
}

#subpage-main table caption {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
}

#subpage-main table tr {
    border-left: .35em solid white;
    border-right: .35em solid white;
}

#subpage-main table *+strong {
    margin-top: .75em;
}

#subpage-main table tbody>tr:nth-of-type(even) {
    background: #F6F6F6;
    border-left: .35em solid #F6F6F6;
    border-right: .35em solid #F6F6F6;
}


/*Feed items */

[class*="item"] img[src=""] {
    /* Don't display a broken image if no image has been added to a feed item */
    display: none;
}

main [class*="item"] br {
    /* Remove gaps in description text of feed items */
    /* <main> included in selector to prevent the inclusion of ...-items in the footer*/
    display: none;
}

.feed-item {
    margin-bottom: 30px;
}

.feed-item h3 {
    margin-bottom: .25em;
}

.feed-item.event-item:not(#event-row .feed-item.event-item) time {
    display: block;
}

.feed-item.event-item:not(#event-row .feed-item.event-item) .timespan:has(.start-time:not(:empty) + .end-time:not(:empty)) .end-time::before {
    content: '- ';
}

/* Slideshow defaults */

.carousel {
    font-size: 20px;
}

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

.caption-text {
    font-size: 28px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

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


/*Responsive Nivo Slideshow*/

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


/*Nivo slideshow 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: "Roboto", 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: "›";
}


/*Misc. Objects */

.script-row:not(#mycanvas .script-row) {
    /* Allows scripts to be added via the Grid Editor without displaying the padding, etc that would be included on the published page */
    display: none;
}

address {
    margin-bottom: unset;
    /*Overwrites Bootstrap style*/
}


/* Modal */

.modal-header {
    /*Applies to any modal on the site*/
    border: none;
}

.close,
.close:hover {
    opacity: 1;
}

.close svg.menu-trigger {
    width: 30px;
    height: 30px;
}

.close svg.menu-trigger line {
    stroke-width: 4px;
}

.close svg.menu-trigger .line-1 {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left;
    transform-origin: left;
}

.close svg.menu-trigger .line-4 {
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: right;
    transform-origin: right;
}

.close svg.menu-trigger .line-2 {
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    -webkit-transform-origin: center;
    transform-origin: center;
}

.close svg.menu-trigger .line-3 {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    -webkit-transform-origin: center;
    transform-origin: center;
}


/* Header */

header {
    padding-block: 25px;
    display: flex;;
    justify-content: space-between;
    gap: 30px;
}

header .logo-link :is(svg, img) {
    display: block;
    max-width: 100%;
    height: auto;
}

header #header-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: end;
    gap: 25px;
}

header #header-right .header-list {
    list-style-type: none;
    padding-inline-start: 0;
    margin-bottom: 0;
    display: flex;
    gap: 25px;
    justify-content: flex-end;
}

header #header-right .header-list a {
    font-size: 16px; 
    font-weight: 500;
    color: var(--text);
}

header #header-right .header-list a:is(:hover, :focus) {
    color: var(--accent);
    text-decoration: none;
}

/* header #header-right .header-list .search-link a::after {
    content: url(../images/search-icon.svg.php?fc=4d5e68);
    margin-left: 5px;
}

header #header-right .header-list .search-link a:is(:hover, :focus)::after {
    content: url(../images/search-icon.svg.php?fc=185b89);
} */

@media (max-width: 767px) {
    header #header-right .header-list {
        display: none;
    }
}

/* Navigation */

header>nav {
    display: flex;
}

#nav_menu {
    padding: 0;
    /* margin-top: 20px;
    margin-bottom: 20px; */
}

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

#nav_menu>ul {
    display: flex;
    justify-content: flex-end;
    gap: 1rem 25px;
    /* Overwrite BS defaults */
    float: none;
    margin: 0;
    align-items: flex-start;
}

#nav_menu a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: .125s color ease-in-out;
    font-family: "Roboto", sans-serif;
}

#nav_menu>.nav>li>a {
    padding: 0;
    position: relative;
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: var(--text);
}

#nav_menu a:is(a:hover, a:focus) {
    color: var(--accent);
}

/* #nav_menu>.nav>li>a::before {
    --size: 9px;
    content: '';
    position: absolute;
    bottom: calc(var(--size) * -1);
    left: 0;
    right: 0;
    height: var(--size);
    background: var(--accent);
    opacity: 0;
    transition: .125s opacity ease-in-out;
    z-index: -1;
}

#nav_menu>.nav>li>a:has(.caret)::before {
    right: -15px;
}

#nav_menu>.nav>li>a:is(a:hover, a:focus)::before {
    opacity: 1;
} */

#nav_menu>.nav>li>a:focus,
#nav_menu>.nav>li>a:hover {
    /* Overwrite BS defaults */
    background: unset;
}

#nav_menu .nav .open>a,
#nav_menu .nav .open>a:focus,
#nav_menu .nav .open>a:hover {
    transition: .125s background-color ease-in-out;
    background-color: transparent;
    border: none;
}

#nav_menu .caret {
    position: absolute;
    color: var(--text);
    bottom: .4em; 
    margin-left: 5px;
}

#nav_menu .dropdown-submenu .caret {
    bottom: unset;
    top: .8em;
}

#nav_menu .caret::after {
    /* content: url(../images/dropdown-arrow.svg); */
}

#nav_menu li:has(.caret) {
    /* Adjust width for absolutely positioned caret */
    padding-right: 15px;
}

#nav_menu .dropdown-menu {
    top: calc(100% + 9px);
    border: none;
    font-size: 1rem;
}

#nav_menu .dropdown-menu:is(.men-level-1, .men-level-2) {
    top: -7px;
    margin-left: 15px;
}

#nav_menu .dropdown-menu>li {
    position: relative;
}

#nav_menu .dropdown-menu>li>a:focus,
#nav_menu .dropdown-menu>li>a:hover {
    color: var(--accent);
    background: transparent;
}

/* Large Menu Drop-down Modification */

#nav_menu>.nav>li {
    position: unset;
}

#nav_menu>ul>li>.dropdown-menu {
    top: 100%;
    border: none;
    font-size: 1rem;
    left: var(--side-margin);
    right: var(--side-margin);
    padding: 0 45px;
    /*display: block;
    columns: 5;*/
    /* column-rule: 2px solid hsla(from var(--light-gray) h s l / 0.25); 
    row-rule: 2px solid hsla(from var(--light-gray) h s l / 0.25); */
    display: grid;
    grid-template-columns:repeat(auto-fill, minmax(min(180px, 100%), 1fr));
    gap: 20px 0;
    box-shadow: none;
    background: var(--transparent-accent);
    /* Below for transition */
    max-height: 0;
    transition: max-height .25s cubic-bezier(0.45, 0.05, 0.55, 0.95), padding .25s cubic-bezier(0.45, 0.05, 0.55, 0.95); /* In Out Sine */ 
    overflow: hidden;
}

/* Adjustments to the min-width so the menu items fills the whole width */
@media (min-width: 1170px) and (max-width: 1350px) {
    #nav_menu>ul>li>.dropdown-menu {
        grid-template-columns:repeat(auto-fill, minmax(min(190px, 100%), 1fr));
    }
}

@media (min-width: 1350px) and (max-width: 1560px) {
    #nav_menu>ul>li>.dropdown-menu {
        grid-template-columns:repeat(auto-fill, minmax(min(210px, 100%), 1fr));
    }
}

@media (min-width: 1560px) and (max-width: 1700px) {
    #nav_menu>ul>li>.dropdown-menu {
        grid-template-columns:repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    }
}

@media (min-width: 1700px) {
    #nav_menu>ul>li>.dropdown-menu {
        grid-template-columns:repeat(auto-fill, minmax(min(270px, 100%), 1fr));
    }
}

#nav_menu>ul>li.open>.dropdown-menu {
    transition-delay: .25s;
}

/* Menu is not transparent for subpages */
body:has(#subpage-main, #mms-main) #nav_menu>ul>li>.dropdown-menu {
    background: hsla(from var(--accent) h s l / 1);
}

/* Transition */
#nav_menu>ul>li.open>.dropdown-menu {
    max-height: 100vh;
    padding: 30px 45px;
}

#nav_menu .dropdown-menu a[href="#"] {
    /* Make menu items that are just meant to function as headings unclickable */
    pointer-events: none;
}

#nav_menu .dropdown-menu a {
    color: white;
}

#nav_menu .dropdown-menu>li a:is(:hover, :focus) {
    color: var(--menu-hover);
}

#nav_menu .dropdown-menu .dropdown-menu {
    display: block;
    /* top: 100%; */
    left: 0;
    float: left;
    border: none;
    padding: 0;
    margin: 0;
    box-shadow: none;
    position: relative;
    font-size: inherit;
    background: transparent;
}

#nav_menu .dropdown-menu>.dropdown-submenu {
    break-after: column;
    break-before: column;
    page-break-inside: avoid;
}

#nav_menu .dropdown-menu>.dropdown-submenu .caret{
    display: none;
}    

#nav_menu li:not(.dropdown-submenu) {
    break-after: avoid;
}


#nav_menu .dropdown-menu>li {
    position: relative;
    /* page-break-inside: avoid; */
}

#nav_menu .dropdown-menu>li:not(.dropdown-menu>li .dropdown-menu>li) {
    border-left: 2px solid hsla(from var(--light-gray) h s l / 0.25);
}

#nav_menu .dropdown-menu>li>a {
    white-space: normal;
}

#nav_menu>.nav>li.dropdown>.dropdown-menu>li>a,
#nav_menu>.nav>li.dropdown>.dropdown-menu>.dropdown-submenu>.dropdown-menu>li a {
    font-weight: 400;
}

/* Menu links in drop-down that have child pages */
#nav_menu>.nav>li.dropdown>.dropdown-menu>li.dropdown-submenu>a {
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 15px;
    line-height: 1.1;
}

@media (max-width: 790px) {

}
/* Large Menu Drop-down Modification - End */

/* Original MQs for Menu */

@media (max-width:990px) {
    #nav_menu {
        /* margin-bottom: 30px; */
        display: block;
        /* Overwrite .collapse that hides desktop menu on smaller screens */
    }
    #nav_menu>.nav>li>a {
        font-size: 16px;
    }
}

@media (max-width:767px) {
    #nav_menu {
        margin-top: 0;
    }
}

@media (max-width:550px) {
    #nav_menu {
        /* margin-bottom: 18px; */
    }
    #nav_menu>.nav>li>a {
        font-size: 16px;
    }
}


/* Site originally had no Mobile Navigation per design from outside designers, but this was abandoned by Ilana during Content Population */

#mobileMenuWrapper {
    position: fixed;
    background: white;
    z-index: 100;
    top: 0;
    bottom: 0;
    left: -200vw;
    overflow-y: auto;
    overflow-x: hidden;
    width: 300px;
    transition: .125s left ease-in-out;
    padding: .5rem 2ch;
    box-shadow: 7px 0 5px rgba(0, 0, 0, 0.1);
}

#mobileMenuWrapper.open {
    left: 0;
}

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

button.mobileMenuTrigger {
    background: none;
    border: none;
    margin-left: auto;
}

.mobileMenuTrigger label {
    position: absolute;
    left: -200vw;
}

#mobile-menu {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    font-size: 18px;
    list-style-type: none;
    padding-inline-start: 0;
    margin-bottom: 0;
}

.triggerClose {
    display: block;
    margin-left: auto;
}

.triggerClose button {
    background: none;
    border: none;
    font-size: 2em;
    line-height: 1;
}

.mDropdown {
    list-style-type: none;
    margin-bottom: 0;
    padding-inline-start: 1em;
    /* Below for transition */
    display: block;
    max-height: 0;
    transition: .5s max-height ease-in-out, .5s display ease-in-out;
    overflow: hidden;
}

.mDropdown.open {
    display: block;
    max-height: 900px;
}

.mDropdown .mDropdown {
    margin-top: 1px;
}

#mobile-menu>li.mobile-login {
    margin-top: 10px;
}

#mobile-menu>li>a {
    font-weight: 500;
    color: var(--accent);
}

#mobile-menu>li>a:is(:hover, :focus) {
    text-decoration: none;
    color: var(--secondary);
}

#mobile-menu .caret {
    border-top-color: var(--text);
    margin-left: 5px;
}

.mDropdown a {
    font-size: 18px;
    color: var(--accent);
}

.mDropdown a:is(:hover, :focus) {
    text-decoration: none;  
    color: var(--secondary);  
}

#mobile-menu li:has(.button-link) {
    margin-bottom: 5px;
}

#mobile-menu .button-link {
    width: 100%;
    text-align: center;
    color: white;
}

#mobile-menu .button-link:is(:hover, :focus) {
    color: white;
}

@media (max-width: 991px) {
    body:has(.mobileMenuTrigger) #nav_menu {
        display: none !important;
    }
}


/* Search */

.searchbox {
    position: relative;
    --size: 17.5px;
}

.searchbox .search-input {
    padding: .5em 2ch;
    padding-left: calc(2ch + (var(--size)));
    border: none;
    border-radius: .75em;
    font-size: 1rem;
    width: 507px;
    max-width: 100%;
}

.searchbox .search-button {
    background: url(../images/search-new.svg.php?fc=000);
    background-size: 120%;
    height: var(--size);
    width: var(--size);
    position: absolute;
    right: calc(var(--size) / 1.5);
    top: calc(50% - (var(--size) / 2));
    color: transparent;
    border: none;
    outline: none;
}


/* Main */

main {
    --gap: 75px;
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

main>.row {
    position: relative;
    padding-block: var(--gap);
    /* padding-top: var(--gap); */
}

main:is(#subpage-main, #mms-main)>.row {
    padding-block: calc(var(--gap) / 2);
}

main:is(#subpage-main, #mms-main)>.row:first-child {
    padding-top: var(--gap);
}

main:is(#subpage-main, #mms-main)>.row:last-child {
    padding-bottom: var(--gap);
}

@media (max-width: 990px) {
    main:is(#homepage-main, #subpage-main)>.row:not(#cta-row)>.column:not(:first-child) {
        margin-top: var(--gap);
    }
}

@media (max-width: 767px) {
    main {
        --gap: 45px;
    }
}

@media (max-width: 550px) {
    main {
        --gap: 35px;
    }
}


/* Footer */

footer {
    padding-block: 65px;
    position: relative;
    color: white;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
    background: var(--primary);
    z-index: -1;
}

footer #footer-top {
    padding-bottom: 40px;
    display: flex;
    justify-content: space-between;
    gap: 45px 30px;
}

footer :is(p, a, h1, h2, h3, h4, h5, h6) {
    color: white;
}

footer a {
    text-decoration: underline;
}

footer a:is(:hover, :focus) {
    color: var(--menu-hover);
}

footer h2 {
    font-size: 23px;
}

footer .social-list {
    list-style-type: none;
    padding-inline: 0;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: fit-content;
}

footer .social-list svg {
    width: 30px;
    height: 30px;
    border: 1px solid white;
    border-radius: 50%;
    padding: 4px;
    transition: .125s background-color ease-in-out;
    color: white;
}

footer .social-list svg rect {
    display: none;
}

footer .social-list svg:is(:hover, :focus) {
    background-color: var(--accent);
    color: white;
}

footer .social-list svg.active:is(:hover, :focus) {
    background-color: var(--accent) !important;
}

footer .newsletter-form {
    min-width: 300px;
}

footer .newsletter-form .form-group>label,
footer .newsletter-form .form-group>div {
    display: block;
    width: 100%;
    float: unset;
    text-align: left;
}

footer .newsletter-form .form-group>label {
    font-size: 16px;
}

footer .newsletter-form .form-group:has(label[for="contactCaptcha"]) {
    display: flex;
    flex-direction: column;
} 

footer .newsletter-form label[for="contactCaptcha"] {
    order: 2;
    padding-top: 15px;
}

footer .newsletter-form label[for="contactCaptcha"] img {
    border-radius: var(--small-radius);
}

footer .newsletter-form input.form-control {
    max-width: 300px;
    background-color: var(--primary);
    color: white;
}

footer .newsletter-form input.form-control::placeholder {
    color: white;
}

footer .newsletter-form input.form-control:focus {
    border-color: var(--link-color);
    box-shadow: none;
}

footer .newsletter-form .form-group>div:has(input[type="submit"]) {
    margin-left: 0;
}

footer .newsletter-form .button-link {
    position: relative;
    padding-inline: 2ch calc(2ch + 17px);
    background-color: var(--primary);
    font-size: 16px;
    font-weight: 400;
}

footer .newsletter-form .button-link:is(:hover, :focus) {
    background-color: var(--accent);    
}

footer .newsletter-form div:has(>.button-link)::after {
    content: url(../images/right-arrow.svg);
    display: inline-block;
    position: absolute;
    top: calc(.75em - 1px);
    left: 90px;
    transition: .125s left ease-in-out;
}

footer .newsletter-form div:has(>.button-link:is(:hover, :focus))::after {
    left: 95px;
}

footer #footer-bottom {
    border-top: 1px solid #ffffff24;
    padding-top: 30px;
}

/* Animation */
footer .social-list svg.active {
    animation: five .5s forwards;
}

footer .social-list li:nth-child(1) svg {
    animation-delay: .25s;
}

footer .social-list li:nth-child(2) svg {
    animation-delay: .5s;
}

footer .social-list li:nth-child(3) svg {
    animation-delay: .75s;
}

footer .social-list li:nth-child(4) svg {
    animation-delay: 1s;
}

footer .social-list li:nth-child(5) svg {
    animation-delay: 1.25s;
}

@keyframes five {
    0% {
        background-color: transparent;
    }
    50% {
        background-color: var(--accent);
    }
    100% {
        background-color: transparent;
    }
}

@media (max-width: 767px) {
    footer #footer-top {
        flex-direction: column;
    }

    footer .newsletter-form {
        min-width: 255px;
    }
}

/*--------------------------------------------------------
						Homepage Styles
--------------------------------------------------------*/

#slide-row {
    padding-block: 0;
}

#slide-row .carousel img {
    width: 100%;
}

#slide-row .carousel-caption {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding-block: 30px 35px;
    background-color: var(--primary);
    text-align: left;
}

#slide-row .caption-wrapper {
    width: 100vw;
    margin-inline: auto;
}

@media (min-width: 992px) {
    #slide-row .caption-wrapper {
        width: 970px;
    }
}

@media (min-width: 1201px) {
    #slide-row .caption-wrapper {
        width: 1170px;
    }
}

@media (max-width: 991px) {
    #slide-row .caption-wrapper {
        padding-inline: 15px;
    }
}

#slide-row .caption-text {
    font-size: 25px;
    font-weight: 700;
    color: white;
    text-shadow: none;
}

#slide-row .alt-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: none;
}

#slide-row .caption-wrapper p:last-of-type {
    margin-bottom: 0;
}

/* if the slide has no caption */
/* #slide-row .item:not(:has(.carousel-caption))::after {
    content: '';
    display: block;
    min-height: 111px; 
    width: 100vw;
    background-color: var(--primary);
    z-index: 5;
} */

#slide-row .carousel-indicators {
    display: none;
}

#slide-row .carousel-control.left, 
#slide-row .carousel-control.right {
    display: block;
    text-indent: -9999px;
}

#slide-row .carousel-control.left,
#slide-row .carousel-control.right {
    display: unset;
    background-image: none;
}

#slide-row .carousel-control.left {
    top: 20px;
    right: calc(65px + var(--scrollbarWidth));
    bottom: unset;
    left: unset;
    margin: auto;
    vertical-align: middle;
    text-align: center;
    padding-right: 5px;
    width: 30px;
    height: 30px;
    opacity: 1;
}

#slide-row .carousel-control.right {
    top: 20px;
    right: calc(25px + var(--scrollbarWidth));
    left: unset;
    bottom: unset;
    margin: auto;
    vertical-align: middle;
    text-align: center;
    padding-left: 5px;
    width: 30px;
    height: 30px;
    opacity: 1;
}

#slide-row .carousel-control.left:after {
    content: url(../images/left-arrow.svg);
    width: 30px;
    height: 30px;
    display: block;
    position: relative;
    top: -28px;
    right: 0;
    background-color: var(--primary);
    border-radius: 50%;
    border: 1px solid white;
    line-height: 1.3;
    text-indent: 1px;
    color: white;
    transition: .125s background-color ease-in-out;
}

#slide-row .carousel-control.right:after {
    content: url(../images/right-arrow.svg);
    width: 30px;
    height: 30px;
    display: block;
    position: relative;
    top: -28px;
    right: 5px;
    background-color: var(--primary);
    border-radius: 50%;
    border: 1px solid white;
    line-height: 1.3;
    text-indent: 1px;
    color: white;
}

#slide-row .carousel-control.left:is(:hover, :focus):after {
    background-color: var(--accent);
}

#slide-row .carousel-control.right:is(:hover, :focus):after {
    background-color: var(--accent);
}

@media (max-width: 450px) {
    #slide-row .carousel-control.left,
    #slide-row .carousel-control.right,
    #slide-row .carousel-control.left:after,
    #slide-row .carousel-control.right:after {
        width: 25px;
        height: 25px;
    }

    #slide-row .carousel-control.left:after,
    #slide-row .carousel-control.right:after {
        line-height: 1.1;
        text-indent: 0;
    }
    
}

@media (max-width: 350px) {
    #slide-row .carousel-control.left, 
    #slide-row .carousel-control.right {
        display: none;
    }
}

/* CTA Row */

#cta-row:not(#mycanvas #cta-row) {
    margin-top: -10px;
    padding-top: 0;
    display: inline-flex;
    justify-content: space-between;
    gap: 30px;
}

#cta-row::before,
#cta-row::after {
    display: none;
}

#cta-row .column {
    position: relative;
    box-shadow: 3px 3px 10px #dadada;
    border-radius: var(--radius);
    padding: 45px 30px 30px 30px;
    display: flex;
    flex-direction: column;
}

#cta-row:not(#mycanvas #cta-row) h2 {
    margin-inline: -30px;
    margin-top: -45px;
    border-top-right-radius: var(--radius);
    border-top-left-radius: var(--radius);
    padding-inline: 30px;
    padding-block: 45px 20px;
    background-color: var(--light-gray);
    font-size: 22px;
    transition: .125s color ease-in-out;
}

#cta-row .column:is(:hover, :focus) h2 {
    color: var(--accent);
}

#cta-row p:has(+ p>.arrow-link) {
    margin-bottom: 25px;
}

#cta-row p:has(.arrow-link) {
    margin-top: auto;
    margin-bottom: 0;
}

#cta-row .arrow-link::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}


/* #cta-row .arrow-link::after {
    content: '';
    clip-path: path("M7.4.4l5.6,5.6-5.6,5.6-1-1,3.8-3.9H.2v-1.4h9.9l-3.7-3.9,1-1Z");
    height: 1.5em;
    width: 1.5em;
    vertical-align: -.75em;
    border: 1px solid var(--primary);
} */

/* Animation */
#cta-row .arrow-link.active::after {
    animation: mover .5s forwards;
}

#cta-row .column:nth-child(1) .arrow-link.active::after {
    animation-delay: .25s;
}

#cta-row .column:nth-child(2) .arrow-link.active::after {
    animation-delay: .5s;
}

#cta-row .column:nth-child(3) .arrow-link.active::after {
    animation-delay: .75s;
}

@keyframes mover {
    0% {
        transform: translateX(0px);
    }
    50% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0px);
    }
}

@media (max-width: 991px) {
    #cta-row:not(#mycanvas #cta-row) {
        padding-inline: 15px;
        flex-direction: column;
    }
}

/* Event-row */

#event-row:not(#mycanvas #event-row) .column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 25px;
    justify-content: space-between;
}

#event-row:not(#mycanvas #event-row) .column * {
    opacity: 0; /* For animation */
}

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

#event-row .feed-item {
    position: relative;
    margin-bottom: 0;
    border: 1px solid white;
    border-radius: var(--radius);
    padding: 35px;
    transition: .125s background-color ease-in-out;
}

#event-row .feed-item:is(:hover, :focus) {
    background: var(--transparent-accent);
}

#event-row .feed-item h3 {
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

#event-row .feed-item h3>a {
    text-decoration: none;
}

#event-row:not(#mycanvas #event-row) .feed-item h3>a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#event-row .feed-item time {
    display: block;
    line-height: 1;
}

#event-row .feed-item time:not(time.timespan) {
    margin-bottom: 10px;
}

#event-row .feed-item .timespan:has(.start-time:not(:empty) + .end-time:not(:empty)) .end-time::before {
    content: '- ';
}

#event-row .feed-item .start-time:empty,
#event-row .feed-item .end-time:empty {
    display: none;
}

#event-row .feed-item time:not(time.timespan)::before {
    content: url(../images/calendar-icon.svg);
    display: inline-block;
    margin-right: 13px;
    margin-left: 1px;
    vertical-align: middle;
}

#event-row .feed-item time.timespan::before {
    content: url(../images/clock-icon.svg);
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

#event-row .feed-item time.timespan:has(.start-time:empty)::before {
    margin-right: 6px;
}

#event-row .button-link {
    margin-top: 35px;
}

#event-row .button-link:has(+ img:last-child) {
    margin-bottom: 0;
}

/* Animation */
#event-row .column:not(#mycanvas #event-row).active * {
    animation: fade .5s forwards;
    animation-delay: .15s;
}

/* Animation used for multiple rows */
@keyframes fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 991px) {
    #event-row:not(#mycanvas #event-row) .column {
        grid-template-columns: repeat(1, 1fr);
        gap: 25px;
    }

    #event-row h2 {
        margin-bottom: .1em;
    }

    #event-row .button-link:first-of-type {
        margin-top: .75em;
    }
}

/* News-row */

#news-row:not(#mycanvas #news-row) .column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 25px;
    opacity: 0; /* For animation */
}

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

#news-row .feed-item {
    position: relative;
    margin-bottom: 0;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 35px;
    transition: .125s background-color ease-in-out;
}

#news-row .feed-item:is(:hover, :focus) {
    background-color: var(--light-gray);
}

#news-row .feed-item.active:is(:hover, :focus) {
    background-color: var(--light-gray) !important;
}

#news-row .feed-item h3 {
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

#news-row .feed-item h3>a {
    text-decoration: none;
    color: var(--accent);
}

#news-row .feed-item h3>a:is(:hover, :focus) {
    color: var(--secondary);
}

#news-row .feed-item h3>a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#news-row .button-link {
    margin-top: 35px;
}

/* Animation */
#news-row .column:not(#mycanvas #news-row).active {
    animation: fade .5s forwards;
    animation-delay: .15s;
}

@media (max-width: 991px) {
    #news-row:not(#mycanvas #news-row) .column {
        grid-template-columns: repeat(1, 1fr);
        gap: 25px;
    }

    #news-row h2 {
        margin-bottom: .1em;
    }

    #news-row .button-link:first-of-type {
        margin-top: .75em;
    }
}

/* Sponsor Row */

#sponsor-row:has(.carousel) {
    padding-bottom: calc(var(--gap) + 50px);
}

#sponsor-row:not(#mycanvas #sponsor-row) .column {
    opacity: 0; /* For animation */
}

#sponsor-row .carousel .item>.row {
    margin-inline: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

#sponsor-row .carousel .item>.row::before,
#sponsor-row .carousel .item>.row::after {
    display: none;
}

#sponsor-row .carousel .item>.row>div {
    position: relative;
    width: 100%;
    min-height: 200px;
    padding-block: 15px;
    background-color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

#sponsor-row .carousel .item>.row>div a::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

#sponsor-row .carousel-indicators {
    display: none;
}

#sponsor-row .carousel-control.left, 
#sponsor-row .carousel-control.right {
    display: block;
    text-indent: -9999px;
}

#sponsor-row .carousel-control.left,
#sponsor-row .carousel-control.right {
    display: unset;
    background-image: none;
}

#sponsor-row .carousel-control.left {
    top: calc(100% + 20px);
    right: unset;
    bottom: unset;
    left: 0;
    margin: auto;
    vertical-align: middle;
    text-align: center;
    padding-right: 5px;
    width: 30px;
    height: 30px;
    opacity: 1;
}

#sponsor-row .carousel-control.right {
    top: calc(100% + 20px);
    right: unset;
    left: 35px;
    bottom: unset;
    margin: auto;
    vertical-align: middle;
    text-align: center;
    padding-left: 5px;
    width: 30px;
    height: 30px;
    opacity: 1;
}

#sponsor-row .carousel-control.left:after {
    content: url(../images/left-arrow.svg);
    width: 30px;
    height: 30px;
    display: block;
    position: relative;
    top: -28px;
    right: 0;
    background-color: transparent;
    border-radius: 50%;
    border: 1px solid white;
    line-height: 1.3;
    text-indent: 1px;
    color: white;
}

#sponsor-row .carousel-control.right:after {
    content: url(../images/right-arrow.svg);
    width: 30px;
    height: 30px;
    display: block;
    position: relative;
    top: -28px;
    right: 5px;
    background-color: transparent;
    border-radius: 50%;
    border: 1px solid white;
    line-height: 1.3;
    text-indent: 1px;
    color: white;
}

#sponsor-row .carousel-control.left:after,
#sponsor-row .carousel-control.right:after {
    filter: invert(1) saturate(0%);
    transition: .125s background-color ease-in-out, .125s filter ease-in-out;;
}

#sponsor-row .carousel-control.left:is(:hover, :focus):after,
#sponsor-row .carousel-control.right:is(:hover, :focus):after {
    background-color: var(--accent);
    filter: none;
}

#sponsor-row .column:not(#mycanvas #sponsor-row).active {
    animation: fade .5s forwards;
    animation-delay: .15s;
}

@media (max-width: 767px) {
    #sponsor-row .carousel .item>.row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 550px) {
    #sponsor-row .carousel .item>.row {
        grid-template-columns: repeat(1, 1fr);
    }
}


/*--------------------------------------------------------
						Subpage Styles
--------------------------------------------------------*/

/* Board-row */

.board-row:not(#mycanvas .board-row) {
    padding-inline: 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.board-row::before,
.board-row::after {
    display: none;
}

.board-row img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-bottom: 15px;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
}

.board-row:not(#mycanvas .board-row) .column {
    width: 100%;
    border: 0;
    border-radius: var(--radius);
    padding: 0;
    box-shadow: 2.08px 3.12px 20.8px rgba(0, 0, 0, 0.2);
}

.board-row.background-row:not(#mycanvas .board-row.background-row) .column {
    border: 0;
}

.board-row :is(p, h1, h2, h3, h4, h5, h6) {
    padding-inline: 15px;
}

.board-row .column p:first-of-type {
    margin: 0 0 .25em;
    font-size: 18px;
    font-weight: 600;
}

.board-row p:has(.button-link) {
    margin-bottom: 1.25em;
}

@media (max-width: 991px) {
    .board-row:not(#mycanvas .board-row) {
        padding-inline: 15px;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    main:is(#homepage-main, #subpage-main) .board-row:not(#mycanvas .board-row) .column {
        margin-top: 0;
    }
}

@media (max-width: 767px) {
    .board-row:not(#mycanvas .board-row) {
        grid-template-columns: repeat(1, 1fr);
    }

    .board-row:not(#mycanvas .board-row) .column {
        max-width: 450px;
        margin-inline: auto;
    }

    .background-row:not(#mycanvas .background-row).board-row:not(#mycanvas .board-row) .column {
        max-width: 450px;
        margin-inline: auto;
    }
}

/*--------------------------------------------------------
						MMS Styling
--------------------------------------------------------*/

#mms-main *[face] {
    font-family: inherit;
    font-size: inherit;
}

#mms-main *[style*="erdana"],
#mms-main *[font-family*="erdana"],

/*^^Targets both elements with Verdana and verdana spec'd*/

#mms-main div,
#mms-main span:not([class^="fa"]),

/*Allows the Font Awesome icons in the Grid Editor to show*/

#mms-main td,
#mms-main tr,
#mms-main table,
#mms-main input,
#mms-main textarea,
#mms-main label
/*^^Styles are meant to overwrite the MMS styles that set everything to Verdana*/

{
    font-family: inherit !important;
}


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

#mycanvas a {
    text-decoration: none;
}

#mycanvas a::before {
    position: initial;
    bottom: initial;
    left: initial;
    right: initial;
    background: initial;
    height: initial;
    transition: initial;
    display: initial;
    z-index: initial;
}