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


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

 :root {
    font-size: 16px;
    font-family: 'Albert Sans', sans-serif;
    --red: #920000;
    --lime: #CFCE52;
    --yellow: #F1E071;
    overflow-x: hidden;
    --side-margin: 1px;
}

body {
    color: #1A1A1A;
    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: .75em;
    color: inherit;
}

p:empty {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .5em;
    padding: 0;
    font-weight: bold;
    /* text-transform: capitalize; */
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 21px;
}

h5 {
    font-size: 19px;
}

h6 {
    font-size: 18px;
}

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


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

 */

a {
    color: currentColor;
    text-decoration: underline;
    transition: .125s color ease-in-out;
}

a:hover,
a:focus {
    color: #3D5B66;
}

.button-link,
input[type="submit"]:not(#mms-main input):not(.search-button),
.mobile-login button {
    /* :not exception needed to avoid messing with all sorts of different buttons in the MMS  */
    background: var(--yellow);
    font-size: inherit;
    padding: .5em 2ch;
    display: block;
    width: fit-content;
    border-radius: 2px;
    border: none;
    text-align: center;
    color: currentColor;
    transition: .125s background ease-in-out;
    text-transform: capitalize;
    line-height: 1;
    text-decoration: none;
    text-shadow: none;
}

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

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

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

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

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

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

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

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

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

@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: .25rem 20px;
    border-radius: 5px;
}

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

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


/* Slideshow defaults */

.carousel {
    font-size: 20px;
}

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


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

.header-links {
    position: relative;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 15px;
}

.header-links::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--side-margin) * -1);
    right: calc(var(--side-margin) * -1);
    display: block;
    background: var(--lime);
    z-index: -1;
}

.header-links ul {
    padding-left: 0;
    margin: 0;
    display: flex;
    gap: .5rem 15px;
    align-items: center;
    list-style: none;
}

.repeated-navigation a {
    text-decoration: none;
    color: white;
}

.repeated-navigation a:hover,
.repeated-navigation a:focus {
    color: var(--red);
}

.social-list {
    justify-content: flex-end;
    position: relative;
    padding-top: .25rem;
    padding-bottom: 0;
}

.social-list svg {
    transition: .125s background ease-in-out;
    color: white;
}

.social-list svg:hover,
.social-list svg:focus {
    /* color: white; */
    background: var(--red);
}

.social-list rect {
    display: none;
}

header {
    padding-top: .5rem;
    padding-bottom: .5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-link {
    display: flex;
    align-items: center;
    gap: 1ch;
    text-decoration: none;
}

.home-link:hover,
.home-link:focus {
    text-decoration: none;
}

.tagline {
    color: var(--red);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}


/* Search */

.searchbox {
    width: 230px;
    max-width: 100%;
    position: relative;
    padding: 5px 1ch;
    height: 34px;
    border-radius: 5px;
    outline: 1px solid #e6e6e6;
    transition: .125s outline ease-in-out;
    overflow: hidden;
}

.search-input {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: none;
    width: 100%;
    padding: inherit;
    background: transparent;
}

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

.search-button {
    color: transparent;
    background-color: transparent;
    border: none;
    background-image: url(../images/search-new.svg.php?fc=920000);
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
    transition: .125s background-image ease-in-out;
    top: 0;
    bottom: 0;
    width: 40px;
    right: 0;
}

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


/* Desktop menu  */

header nav {
    display: flex;
    gap: 0.5rem 15px;
    align-items: center;
}

nav .button-link:not(:first-child):not(:last-child) {
    margin: 0;
}


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

.mobileMenuTrigger label {
    margin: 0;
}

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

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

.mobileMenuTrigger:not(.triggerClose) {
    color: var(--red);
    transition: color .125s ease-in-out;
    display: inline-flex;
    background: transparent;
    border: 0;
    align-items: center;
}

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


/*  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;
    right: -120%;
    width: 600px;
    max-width: 100%;
    background-color: var(--lime);
    transition: right 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    color: #444;
}

#mobileMenuWrapper.open {
    right: 0;
}

#mobile-menu {
    list-style: none;
    overflow-y: auto;
    overflow-x: visible;
    padding: 1em 1.5em;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 1rem 30px;
}

.triggerClose {
    text-align: right;
    grid-column: 1/-1;
}

.mobile-login {
    grid-column: 1/-1;
}

#mobile-menu button {
    border: none;
}

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

.no-dropdowns {
    grid-row: 3;
    grid-column: 2/3;
}

@media (min-width: 506px) {
    .no-dropdowns+.no-dropdowns {
        /* position: relative; */
        margin-top: 3em;
    }
    .no-dropdowns+.no-dropdowns+.no-dropdowns {
        margin-top: 6em;
    }
}

#mobile-menu a {
    display: inline-block;
    width: 100%;
    margin-bottom: .25em;
    text-decoration: none;
    font-weight: bold;
    font-size: 17px;
    line-height: 1.1;
}

#mobile-menu a:hover,
#mobile-menu a:focus,
.mobile-login button:hover,
.mobile-login button:focus {
    color: var(--red);
}

#mobile-menu>li>a[href="#"] {
    /* These parent items are meant to be clicked on to reveal the child items, but since the children will be shown from the start this clickable behaviour could be confusing */
    cursor: initial;
    pointer-events: none;
}

#mobileMenuWrapper .mDropdown {
    list-style: none;
    padding: 0;
    background: none;
}

#mobileMenuWrapper .mDropdown.open {
    display: block;
    border-top: 1px solid lightgray;
    border-bottom: 1px solid lightgray;
}

#mobile-menu .mDropdown>li>a {
    padding: 0;
    font-weight: revert;
    font-size: 1rem;
    margin-left: 1.5ch;
}

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

#mobile-menu .caret {
    display: none;
}

#mobile-menu .searchbox {
    width: 100%;
    margin-bottom: 1rem;
    margin-top: .5rem;
    grid-column: 1/-1;
}

.mobile-login button {
    background: white;
}

@media (max-width: 900px) {
    nav>.searchbox {
        display: none;
    }
    .triggerClose {
        grid-row: 2/-1;
    }
    .search-item {
        grid-column: 1/2;
        grid-row: 1/2;
    }
}

@media (min-width: 901px) {
    .search-item {
        display: none;
    }
}

@media (max-width: 700px) {
    nav>.button-link {
        display: none;
    }
}

@media (max-width: 505px) {
    #mobileMenuWrapper {
        width: 350px;
    }
    #mobile-menu {
        display: block;
    }
}


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

main {
    position: relative;
}

#subpage-main,
#mms-main {
    padding-top: 3rem;
    min-height: calc(100vh - 102px - 3rem - 48px);
}

main>.row {
    position: relative;
}

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

@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) {
    main:not(#mms-main) .row:not(#banner-row) {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }
    main:not(#mms-main) .column+.column {
        margin-top: 1rem;
    }
    #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;
    }
}


/* Quote row */

.quote-row:not(#mycanvas .quote-row)::before,
.quote-column:not(#mycanvas .quote-row)::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--side-margin) * -1);
    right: calc(var(--side-margin) * -1);
    background: var(--red);
    display: block;
    border-bottom: 10px solid var(--lime);
    z-index: -1;
}

.quote-column:not(#mycanvas .quote-column)::before {
    left: 0;
    right: 0;
}

.quote-row:not(#mycanvas .quote-row),
.quote-column:not(#mycanvas .quote-column) {
    color: white;
}

.quote-row,
.quote-column {
    text-align: center;
    position: relative;
    padding-top: 1em;
    padding-bottom: calc(1em + 10px);
}


/* Intro row */

.intro-row {
    position: relative;
}

main:not(#mms-main) .intro-row:not(.quote-row) {
    --offset: 250px;
}

.intro-row section:not(#mycanvas section) {
    display: flex;
    align-items: center;
}

.intro-row section+section {
    margin-top: 2em;
    position: relative;
}

.intro-row section>div {
    background: var(--yellow);
    height: fit-content;
    padding: 2em;
    position: relative;
}

.intro-row:not(#mycanvas .intro-row) div a::before {
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
}

@media (min-width: 991px) {
    .intro-row:not(#mycanvas .intro-row) section:nth-child(odd) div {
        left: -50px;
    }
    .intro-row:not(#mycanvas .intro-row) section:nth-child(even) div {
        right: -50px;
    }
    .intro-row:not(#mycanvas .intro-row) section:last-child {
        left: 0;
        margin-bottom: calc(var(--offset) /2);
    }
    .intro-row:not(#mycanvas .intro-row) section:last-child div {
        position: absolute;
        left: 25%;
        right: 25%;
        top: var(--offset);
    }
}

.intro-row h1,
.intro-row h2 {
    font-size: 22px;
}

.intro-row ul {
    padding-left: 2ch;
}

@media (min-width: 991px) {
    .intro-row:not(#mycanvas .intro-row) section:nth-child(1)::before {
        content: url(../images/dot-pattern1.svg);
        position: absolute;
        top: -40px;
        right: calc((var(--side-margin) * -.5) + 15px);
        z-index: -1;
    }
    .intro-row:not(#mycanvas .intro-row) section:nth-child(2)::before {
        content: url(../images/dot-pattern2.svg);
        position: absolute;
        top: 10px;
        left: 0;
        z-index: -1;
    }
    .intro-row:not(#mycanvas .intro-row) section:nth-child(2)::after {
        content: url(../images/wave-pattern1.svg);
        position: absolute;
        top: calc(100% - 1rem);
        right: -105px;
    }
    .intro-row:not(#mycanvas .intro-row) section:nth-child(3)>div::after {
        content: url(../images/wave-pattern2.svg);
        position: absolute;
        top: calc(100% - 1rem);
        right: calc(100% - 1rem);
        z-index: -1;
    }
}

@media (max-width: 990px) {
    .intro-row section {
        flex-wrap: wrap;
    }
    .intro-row section>* {
        width: 100%;
    }
    .intro-row section:nth-child(2) {
        flex-direction: column-reverse;
    }
}


/* Quick links row */

.quick-links-row h2:not(#mycanvas .row),
.events-row h2:not(#mycanvas .row) {
    position: relative;
    padding-top: 2em;
    padding-bottom: 1.5em;
    text-align: center;
}

.quick-links-row h2:not(#mycanvas .row) {
    color: transparent;
    pointer-events: none;
}

.quick-links-row:not(#mycanvas .row) h2::before,
.events-row:not(#mycanvas .row) h2::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: -2em;
    left: calc(var(--side-margin) * -1);
    right: calc(var(--side-margin) * -1);
    background: var(--red);
    z-index: -1;
}

.quick-links-row:not(#mycanvas .row) ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 1rem 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links-row:not(#mycanvas .row) li {
    background-image: url('../images/leaves2.jpeg');
    height: 200px;
    background-repeat: no-repeat;
    background-size: 1070px;
    background-position: -490px -10px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.quick-links-row:not(#mycanvas .row) li:nth-child(2) {
    background-position: -490px -140px;
}

.quick-links-row:not(#mycanvas .row) li:nth-child(3) {
    background-position: -20px -140px;
}

.quick-links-row:not(#mycanvas .row) li:nth-child(4) {
    background-position: -490px -350px;
}

.quick-links-row:not(#mycanvas .row) li:nth-child(5) {
    background-position: -260px -350px;
}

.quick-links-row:not(#mycanvas .row) li:nth-child(6) {
    background-position: -100px -330px;
}

.quick-links-row:not(#mycanvas .row) span {
    position: absolute;
    text-align: center;
    left: 0;
    right: 0;
    color: white;
    font-weight: bold;
    font-size: 28px;
    line-height: 1;
    top: calc(50% - 0.5em);
    text-shadow: 0px 1px 3px rgba(0, 0, 0, .9);
    backface-visibility: hidden;
}

.quick-links-row:not(#mycanvas .row) section {
    /* transform: rotateY(180deg); */
    /* display: none; */
    position: absolute;
    top: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1em;
    backface-visibility: hidden;
    transition: .25s top ease-in-out;
    z-index: 1;
}

.quick-links-row section::before {
    content: '';
    z-index: -1;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--yellow);
}

.quick-links-row:not(#mycanvas .row) li:hover section,
.quick-links-row:not(#mycanvas .row) li:focus section {
    top: 0;
}

.quick-links-row section a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}


/* Events row */

.events-row:not(#mycanvas .row) .column {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    gap: 1rem 30px;
}

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

.events-row:not(#mycanvas .row) h2::before {
    background: var(--lime);
}

.event-item {
    border: 1px solid var(--red);
    position: relative;
    background: white;
}

.event-item>* {
    margin-bottom: 1rem;
}

.event-item img {
    width: 100%;
    display: block;
    aspect-ratio: 5/3;
    object-fit: cover;
    object-position: center;
}

.event-item img:not([src^="https"]):not([src^="http"]) {
    /* Hide the broken image icon on events with no image uploaded */
    display: none;
}

.event-item h3,
.event-item time {
    margin-left: 1rem;
    margin-right: 1rem;
}

.event-item h3 {
    font-size: 17px;
    font-family: 'Albert Sans', sans-serif;
    font-weight: 600;
}

.event-item a {
    text-decoration: none;
}

.event-item a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.event-item a:hover,
.event-item a:focus {
    transition: .125s color ease-in-out;
    color: #3D5B66;
}

.event-item time {
    display: block;
}

.event-item time::before {
    content: url(../images/event-icon.svg);
    position: relative;
    top: 2px;
    display: inline-block;
    margin-right: .75ch;
}


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


/* filearchive_view3.php */

UL.jqueryFileTree {
    font-size: 16px !important;
}


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


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

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 1rem;
    padding-bottom: 1rem;
    position: relative;
}

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