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

:root {
    --page-width: 100vw;
    --header-gradient: linear-gradient(-80deg, rgba(0, 12, 87, 1) 0%, rgba(0, 15, 99, 0.61) 39.24%, rgba(0, 21, 127, 0) 100%);
    --gradient: radial-gradient(circle farthest-corner, rgba(0, 12, 87, 1) 0%, rgba(0, 0, 0, 1) 100%);
    --header-height: 126px;
    --footer-height: 126px;
    --blue: #08186A;
    --cyan: #81cae2;
    --orange: #ff5b40;
    --gray: #b2b2b2;
    --text: white;
    --mms-text: #333333;
    --gap: 35px;
    --radius: .2rem;
    font-size: 17px;
    --side-margin: calc((100vw - var(--page-width)) / -2);
    font-family: "Archivo", sans-serif;
    overflow-x: clip;

    @media (min-width: 768px) {
        & {
            /* --page-width: 750px; */
        }
    }
    
    @media (min-width: 992px) {
        & {
            --page-width: 970px;
        }
    }
    
    @media (min-width: 1201px) {
        & {
            --page-width: 1170px;
        }
    }
}


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

body {
    color: var(--text);
    position: relative;
    max-width: 100%;
    overflow-x: inherit;
    background: radial-gradient(circle farthest-corner, rgba(0, 12, 87, 1) 0%, rgba(0, 0, 0, 1) 100%);

    @media (max-width: 600px) {
        line-height: 1.5;
    }
}

body:has(#mms-main) {
    color: var(--mms-text);
}

body:has(#mms-main) header,
body:has(#mms-main) footer {
    color: var(--text);
}

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

/* @media (max-width: 600px) { */
    p:not(:last-child) {
        margin-bottom: 1rem;
    }
/* } */

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

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    margin-bottom: .5em;
    padding: 0;
    font-weight: 800;
    line-height: 1em;
    text-transform:capitalize;
    color: var(--primary);
    font-family: "Archivo Narrow", sans-serif;
}

h1 {
    font-size: 36px;

    @media (max-width: 767px) {
        font-size: 32px;
    }
}

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

h2 {
    font-size: 32px;

    @media (max-width: 767px) {
        font-size: 25px;
    }
}

h3 {
    font-size: 25px;
    
    @media (max-width: 767px) {
        font-size: 22px;
    }
}

h4 {
    font-size: 22px;

    @media (max-width: 767px) {
        font-size: 20px;
    }
}

h5 {
    font-size: 20px;

    @media (max-width: 767px) {
        font-size: 18px;
    }
}

h6 {
    font-size: 18px;
   
    @media (max-width: 767px) {
        font-size: 1rem;
    }
}

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


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

a:not(#mms-main a,.button-link, .cke_dialog_tab, .cke_dialog_ui_button_ok, .cke_dialog_ui_button) {
    color: var(--text);
    text-decoration: underline;
    transition: .125s color ease-in-out;
    text-decoration-color: var(--cyan);
}

a:not(#mms-main a):is(:hover, :focus) {
    color: var(--orange);
    text-decoration-color: currentColor;
}

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

.button-link:not(#gm-canvas .button-link)::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: .5ch;
    vertical-align: middle;
    border-top: .25em dashed transparent;
    border-right: .25em solid transparent;
    border-left: .25em solid;
    border-bottom: .25em solid transparent;
    position: relative;
    bottom: 1px;
}

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

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

.button-link:not(#gm-canvas .button-link):is(:hover, :focus) {
    color: var(--orange);
    text-decoration: none;
}


/*--------------------------------------------------------
	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(--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;
    }
}


/* 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;
}

#subpage-main ul:not(:last-child) {
    margin-bottom: var(--gap);
}

/* #subpage-main ul[class*=""]li+li {
    margin-top: 5px;
} */

.coach-list:not(#mycanvas .coach-list),
.minutes-list:not(#mycanvas .minutes-list)
 {

    @media (min-width: 990px) {
        padding-inline: 0;
        columns: 2;
        gap: 30px;
        column-wrap: nowrap;

        &:is(.minutes-list:not(#mycanvas .minutes-list)) {
            columns: 4;
        }

        &>li {
            break-inside: avoid;
            margin-bottom: .5rem;
        }
    }

}

.book-list:not(#mycanvas .book-list) {
    list-style: none;
    padding-inline: unset;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(115px, 100%), 1fr));
    gap: 1rem 30px;

    & img {
        width: 100%;
    }
}


/* 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;
}

[class*="item"] img {
    max-width: 100%;
    height: auto;
}

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;
}

:is(.news-item, .event-item) p:empty {
    display: none;
}


/* 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: 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: "›";
}


/*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;
}




/* Header */

header.wrapper {
    display: flex;
    gap: 90px;
    align-items: center;
    justify-content: space-between;
    padding-block: var(--gap);
    z-index: 10;
    position: relative;
}



body:has(#homepage-main) header {
    /* Allow banner row to be shown behind the header on the homepage */
    position: absolute;
    left: calc(var(--side-margin) * -1);
    top: 0;
}

.main-logo {
    transform-origin: left;
    transform: scale(1.5);
}

header nav>ul {
    display: flex;
    flex-direction: row;
    gap: var(--gap);
    list-style: none;
}

header nav a {
    text-decoration-color: transparent;
    position: relative;
    transition: .125s color ease-in-out;
}

header nav a:is(:hover, :focus) {
    color: var(--cyan);
    text-decoration-color: transparent;
}




/* Navigation */


#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-start;
    gap: 1rem 30px;
    flex-wrap: wrap;
    /* Overwrite BS defaults */
    float: none;
    margin: 0;
    align-items: flex-start;
}

body #nav_menu a{
    text-decoration: none;
    transition: .125s color ease-in-out;
    text-decoration: none;
}

#nav_menu>.nav>li>a {
    padding: 0;
    position: relative;
    line-height: 1;
    white-space: nowrap;
    --text: white;
    text-decoration: none;

    &:is(:hover, :focus) {
        --text: cyan;
    }
}


#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;
    color: var(--cyan);
}

#nav_menu .nav .open>a,
#nav_menu .nav .open>a:focus,
#nav_menu .nav .open>a:hover {
    transition: .125s background 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;
    --text: #333;

    /*:is(:hover, :focus) {
        --text: var(--blue);
    }*/
}
#nav_menu .dropdown-menu a:is(:hover, :focus) {
    --text: var(--blue);
    color: var(--blue);
}

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

#nav_menu>.nav>li:is(:last-child, :nth-last-child(2), :nth-last-child(3)) .dropdown-menu:is(.men-level-1, .men-level-2) {
    left: unset !important;
    right: 100%;
}

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

#nav_menu .dropdown-menu>li>a:is(:hover, :focus) {
    /* Overwrite BS default */
    background: transparent;
}

.greyed {
    opacity: .8;
}

@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: 18px;
    }
}

@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;
    }
}


/* Mobile navigation */

#mobileMenuWrapper {
    position: fixed;
    background: var(--gradient);
    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: 768px) {
    .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: 20px;
    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 {
    display: none;
    list-style-type: none;
    padding-inline-start: 1em;
    margin-bottom: 0;
}

.mDropdown.open {
    display: block;
}

#mobile-menu>li>a {
    font-weight: bold;
    font-family: 'Archivo Narrow', sans-serif;
}



.mDropdown a {
    font-size: 16px;
}

#nav_menu .login-item {
    display: none;
}

.login-item {
    margin-top: 1rem;

    & a:is(#mobile-menu>li>a) {
        font-family: 'Archivo', sans-serif;
        font-size: 1rem;
    }
}

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


/* 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 {
    min-height: calc(100vh - var(--header-height) - var(--footer-height) - var(--gap));

    &:is(#subpage-main, #mms-main) {
        --gap: 25px;
        margin-top: var(--gap);
    }
}

main>.row {
    position: relative;
    padding-bottom: var(--gap);
}


h1.title+.row {
    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>.column:not(:first-child) {
        margin-top: var(--gap);
    }
}

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

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

main h2 {
    border-bottom: 1px solid var(--gray);
    padding-bottom: 5px;
    margin-bottom: calc(var(--gap) * .75);
    display: inline-block;
}

/* Banner row */

#banner-row:not(#gm-canvas #banner-row) {
    --gap: 0;
    overflow: hidden;
    aspect-ratio: 1453 / 641;
    max-height: 85vh;
}

#banner-row:not(#gm-canvas #banner-row)::before {
    content: '';
    background: linear-gradient(180deg, rgba(0, 12, 87, 1) 0%, rgba(0, 15, 99, 0.61) 39.24%, rgba(0, 21, 127, 0) 100%);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
    display: block;
    /* height: var(--header-height); */
    aspect-ratio: 1453 / calc(641 / 2);
}

#banner-row:not(#gm-canvas #banner-row) .col-md-12 {
    padding: 0;
}

#banner-row:not(#gm-canvas #banner-row) img {
    object-fit: contain;
    object-position: center;
    transition: 20s transform;
    transform: scale(1);
    width: 100%;
    transform-origin: center;
}

#banner-row:not(#gm-canvas #banner-row):is(.onscreen) img {
    transform: scale(1.15);
}


/* Links row */

#links-row {
    margin-top: calc(var(--gap) * -2);

    .button-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(min(235px, 100%), 1fr));
        gap: 15px;
        list-style: none;
        padding: 0;

        @media (max-width: 1200px) {
            grid-template-columns: repeat(auto-fill, minmax(min(215px, 100%), 1fr));
        } 
    }

    .button-list li {
        width: 100%;
        background: var(--blue);
        text-align: center;
        position: relative;
        border-radius: var(--radius);
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 85px;
        transition: .25s margin ease-in-out;
    }

    /* @media (min-width: 991px) { */
        .button-list li:is(:hover, :focus-within, :focus) {
            margin-block: -2.5px;
        }
    /* } */

    .button-list a {
        max-width: 14ch;
        line-height: 1.1;
        text-decoration: none;
        text-decoration-color: transparent;
    }

    .button-list a::before {
        content: '';
        position: absolute;
        inset: 0;
    }
}




/* Feeds row */

:not(#mycanvas) #news-column {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

:not(#mycanvas) #events-column  {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(275px, 100%), 1fr));
    gap: var(--gap) 30px;
}

:not(#mycanvas) #feeds-row>.column>:is(h2, .button-link) {
    /* Let gap space this out */
    margin: 0;
}

@media (min-width: 768px) {
    :not(#mycanvas) .event-item:first-of-type .button-link {
        font-size: .85em;
    }
}

:not(#mycanvas) .event-item:not(:first-of-type) :is(.description, .button-link)
 {
    display: none;
}

#feeds-row h3 {
    font-size: 20px;
    font-weight: 500;
    font-family: inherit;
}



#events-column :is(h2, .button-link:last-child, .event-item:first-of-type) {
    grid-column: 1/-1;
}

.event-item {
    break-inside: avoid;
}

#feeds-row .col-md-8 li:last-child {
    margin-top: var(--gap);
    margin-bottom: 0;
}

#feeds-row time::before {
    content: url('../images/calendar-icon.svg');
    display: inline-block;
    margin-right: .5ch;
    position: relative;
    bottom: -2px;
}




/* Footer */

footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 30px;
    padding-block: calc(var(--gap) * .5) calc(var(--gap) * 1.5);
    position: relative;
    margin-top: calc(var(--gap) * .5);
}

footer::before {
    content: '';
    border-top: 1px solid var(--gray);
    top: 0;
    left: 15px;
    right: 15px;
    position: absolute;
}

footer>div {
    display: flex;
    gap: 1ch;
    /* align-items: center; */
}

a:has(.linkedin-icon) {
    display: block;
    max-height: 27px;
}


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

/* Calendar demo */

body:has(#mheader_5_wrapper) header.wrapper {
    /* Reset for non-homepage */
    position: relative;
    left: unset;
}

table:is(.calendar-heading) {
    margin-top: var(--gap);
    margin-bottom: calc(var(--gap) * .5);
    background: transparent !important;
    /* Important needed to overwrite inline style on page */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
}

.calendar-heading :is(tbody,
tr) {
    display: contents;
}

table:is(.calendar-heading) b {
    /* Take on appearance of h3's */
    font-size: 29px;
    font-family: "Archivo Narrow", sans-serif;
}

table.cal_table {
    /* Importants needed to overwrite inline styles*/
    --text: white;
    --text: #333;
    max-width: 100%;
    background: transparent !important;
    border: none !important;
    color: var(--text);
    background: white !important;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.cal_table :is(tbody,
tr) {
    /* Allow the display: grid to put <td>s into columns */
    display: contents;
}



.cal_table td {
    /* Importants needed to overwrite inline styles on page */
    width: unset !important;
    padding: 1ch 1.25ch;
    border-color: rgb(255 255 255 / 50%) !important;
    border: none !important;
    border-left: 1px solid lightgray !important;
    border-top: 1px solid lightgray !important;
    /* Only style the top and left borders so that two borders aren't shown next to each other creating the illusion of a 2px border */
}

.cal_table .dayName {
    padding-block: 15px;
}

.cal_table .dayName::after {
    /* Add full name to abbreviated day names */
    content: 'day';
}

.cal_table .dayName:nth-child(3)::after {
    content: 'sday';
}

.cal_table .dayName:nth-child(4)::after {
    content: 'nesday';
}

.cal_table .dayName:nth-child(5)::after {
    content: 'rsday';
}

.cal_table .dayName:nth-child(7)::after {
    content: 'urday';
}

.day>b:nth-child(1) {
    /* nth-child selector used to prevent inadvertently styling something other than the day number */
    display: block;
    margin-bottom: .5em;
    font-size: 1.1rem;
    color: dimgray;
}

.day>br:nth-child(2) {
    /* nth-child selector used to prevent inadvertently styling something other than the break tag used to add space following the day number */
    display: none;
}

.calendar-day {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.calendar-day>br {
    /* Remove second of two break tags used to add a gap between multiple events in a day */
    display: none;
}

@media (max-width: 850px) {
    /* Full calendar doesn't fit on mobile screens so let's remove what's not needed */
    table.cal_table {
        /* Make each calendar item span the width of the calendar */
        grid-template-columns: 1fr;
    }
    .cal_table td:not(:has(.calendar-day:not(:empty))) {
        /* Hide every calendar day that doesn't have an event */
        display: none !important;
    }
}

/* About Us page */

.board-list {
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr));
    gap: 1rem 30px;
    margin-top: 2rem;
}

.board-list li {
    text-align: center;
}

.board-list img {
    width: 100%;
    object-fit: cover;
    margin-bottom: .5rem;
}

.board-list [src*="Jan_Image"] {
    background: white;

}

.board-list strong {
    font-size: 1.1rem;
}

/* Join EC page */



figure:is(.title-figure) {
    position: relative;
    margin-bottom: 1rem;
}

:is(.title-figure) figcaption {
    --fade: 6rem;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, var(--blue) calc(100% -  var(--fade)), transparent);
    left: 0;
    right: 0;
    padding-block: var(--fade) .5rem;

    @media (max-width: 990px) {
        position: relative;
        padding-block: 1rem;
        background: var(--blue);
    }
}

:is(.title-figure) figcaption ul {
    list-style: none;
    padding-inline: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1ch;
    margin: 0;
    
    @media (min-width: 991px) {
        text-align: center;
        justify-content: center;
    }

    & a {
        white-space: nowrap;
    }

    &:is(#subpage-main ul:not(:last-child)) {
        margin-bottom: 5px;
    }
}

#subpage-main .button-list {
    margin-block: 1rem;
    list-style: none;
    display: flex;
    gap: 1rem 30px;
    flex-wrap: wrap;
    padding: 0;
}

a[href="#top"] {
    display: inline-block;
    margin-block: 1rem;
}

/* Contact us page */

#contact-form {
    display: grid;
    grid-template-columns: max-content 1fr max-content 1fr;
    padding-block: var(--gap);
    gap: 1rem 15px;
    align-items: center;

    @media (max-width: 767px) {
        grid-template-columns: max-content 1fr;
    }

    ::before, ::after {
        content: none;
    }

    .form-group {
        display: contents;
    }

    .form-control {
        /* Allows there to be a 30px gap between form-control and the next label */
        width: calc(100% - 15px);
    }

    :is(.col-sm-2, .col-sm-10) {
        width: unset;
        padding-inline: 0;
    }

    @media (min-width: 768px) {
        /* Make Comments and it's label stretch across a row */
        [for="contact_form_comments"] {
            grid-column: 1;
        }
        :has([name="contact_form_comments"]) {
            grid-column: 2 / -1;
        }
    
        /* Align captcha controls to the left */
        [for="contactCaptcha"] {
            grid-column: 1;
        }
        :has([name="security_code"]), :has([type="submit"]) {
            grid-column: 2 / -1 ;
        }
    }

    :has([type="submit"]) {
        margin-left: unset;
    }
}

/* Recommended reading */


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

#mms-main {
    background-color: white;
    padding-block: 25px;
    border-radius: var(--radius);
}

#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;
}


#mms-main input,
#mms-main .panel-body,
body:has(#mms-main) tbody,
body:has(#mms-main) ol.sortable table,
#mms-main #hoverpopup,
#mms-main .gm-content {
    color: #333;
}
body:has(#mms-main) tbody small {
    color: #fff;
}


/*-----------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;
}