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

:root {
    font-size: 16px;
    font-family: 'Albert Sans', sans-serif;
    --primary: #010000;
    --secondary: #2d2d2d;
    --accent: #BB0100;
    --box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.2);
    --side-margin: calc((100vw - var(--page-width) + 13px) / -2);
    color: #333;
    overflow-x: hidden;
}

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

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

@media (max-width:990px) {
     :root {
        --side-margin: 0px;
    }
}

body {
    overflow-x: hidden;
}


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

body {
    color: var(--purple);
    font-size: inherit !important;
    font-family: inherit !important;
}

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

p:empty {
    display: none;
}

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

h1 {
    font-size: 36px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 29px;
}

h4 {
    font-size: 25px;
}

h5 {
    font-size: 22px;
}

h6 {
    font-size: 18px;
}


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

 */

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

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


/* a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
} */

.button-link,
input[type="submit"]:not(#mms-main input),
.mobile-login button {
    /* :not exception needed to avoid messing with all sorts of different buttons in the MMS  */
    background: var(--accent);
    padding: 0.5em 2ch;
    display: inline-block;
    color: white;
    position: relative;
    border: none;
    text-align: center;
    text-shadow: none;
    text-transform: capitalize;
    text-decoration: none;
    font-size: inherit;
    transition: .125s background ease-in-out;
}

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

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

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

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


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

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

@media (max-width: 990px) {
    .wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}

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

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

.background-row:not(#mycanvas .background-row) {
    background: url(../images/pattern.webp);
    background-size: cover;
    padding: 1rem;
    position: relative;
    left: var(--side-margin);
    right: var(--side-margin);
    width: calc(100vw + 13px);
    display: flex;
}

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

#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: 22px;
        width: 550px;
        max-width: 100%;
        transform: translateX(-15px);
    }
}

.row-background:not(#mycanvas .row-background) {
    position: relative;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 30px;
}

.row-background:not(#mycanvas .row-background):last-child {
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
}

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

.row-background:not(#mycanvas .row-background)>.column {
    background: white;
    padding: 1.5rem 30px;
    border-radius: 5px;
}

@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,
    .background-row {
        --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;
    }
}

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

@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 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-indicators li.active {
    background: var(--primary);
    width: 11px;
    height: 11px;
}

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


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


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

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


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

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

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

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

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

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

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


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

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

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

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

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

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

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


/*  Login Forms 
*/

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


/* Social list */

.social-list {
    display: flex;
    align-items: center;
    position: relative;
    list-style: none;
    gap: 5px;
    padding: 0;
    margin: 0;
}

header .social-list::before {
    content: 'Follow us ';
    color: white;
    margin-top: -3px;
}

#mobile-menu .social-list::before {
    color: var(--purple);
}

.social-list svg {
    padding: 3px;
    border: none;
    background: transparent;
    color: white;
}

.social-list svg:hover,
.social-list svg:focus {
    background: var(--primary);
}

.social-list rect {
    display: 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;
    left: -120%;
    width: 300px;
    background-color: white;
    transition: left 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    color: #444;
}

#mobileMenuWrapper.open {
    left: 0;
}

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

.triggerClose {
    text-align: right;
}

#mobile-menu button {
    border: none;
}

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

#mobileMenuWrapper #mobile-menu a {
    display: inline-block;
    width: 100%;
    margin-bottom: .75em;
    color: var(--primary);
    text-decoration: none;
}

#mobileMenuWrapper .mDropdown {
    display: none;
    list-style: none;
    padding: 0;
    background: none;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    padding-top: 0.75em;
    margin-bottom: 0.75em;
}

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

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

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

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

#mobileMenuWrapper .search-item path {
    fill: var(--purple);
}

#mobileMenuWrapper .social-list {
    margin-top: 1rem;
}

#mobileMenuWrapper .social-list svg {
    border-radius: 50%;
    background: var(--yellow);
}


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

body>header {
    display: flex;
    gap: 1rem 15px;
    position: relative;
    margin: 0 50px;
    margin-bottom: -5px;
}

body>header::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    background: white;
    z-index: -1;
}

.logo-link img,
.logo-link svg {
    display: block;
}

header>section {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.header-links {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    gap: .5rem 1ch;
    position: relative;
}

.header-links::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100vw;
    right: -50px;
    background: var(--primary);
    z-index: -1;
}

header .button-link {
    background: var(--accent);
}

header .button-link:hover,
header .button-link:focus {
    background: var(--secondary);
}

@media (max-width: 1200px) {
    .logo-link img,
    .logo-link svg {
        max-width: 100%;
    }
}

@media (max-width: 990px) {
    body>header {
        margin: 0 15px;
    }
}


/* Desktop menu  */
body>header nav {
    position: relative;
    z-index: 4;
}
#nav_menu {
    padding: 2em 0;
    position: relative;
    z-index: 1;
}

#nav_menu>ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
    gap: 0.5rem 2ch;
}

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

#nav_menu li {
    position: relative;
}

#nav_menu>ul>li>a {
    transition: background .125s ease-in-out;
    position: relative;
    padding: 0;
}

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

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

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

#nav_menu .dropdown-menu {
    /* Dropdown menu  */
    font-size: 1rem;
    padding: 0.5em 0.5ch;
    border: none;
    border-radius: 0;
    top: calc(100% + 0.5rem);
    right: -1ch;
    left: unset;
}

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

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

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

@media (max-width: 1200px) {
    #nav_menu>ul {
        gap: .5rem 1.5ch;
    }
}

@media (max-width: 990px) {
    #nav_menu {
        display: none !important;
        /* !important needed to overwrite BS defaults */
    }
}


/* Mobile menu trigger  */

.mobileMenuTrigger:not(.triggerClose) {
    border: none;
    padding: 10px 5px;
    color: var(--primary);
    transition: color .125s ease-in-out;
    display: inline-flex;
    border-radius: 5px;
    background: transparent;
    padding-bottom: 2em;
    /* ^^ Raise mobile trigger off of bottom of container */
}

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

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

.mobileMenuTrigger button {
    font-size: 150%;
}

.menu-trigger {
    width: 30px;
}

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


/* Login modal */

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

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

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

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

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

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

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

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

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


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

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

#subpage-main,
#mms-main {
    padding-top: 1rem;
    padding-bottom: 1rem;
    font-size: 18px;
}

#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: 3.5em;
}

div[class^="col"]+.col-md-12 {
    margin-top: 2em;
}

@media(max-width: 1200px) {
    #subpage-main {
        padding-top: 3.5em;
        padding-bottom: 3.5em;
    }
}

@media(max-width: 990px) {
    #subpage-main {
        padding: 2.5em 15px;
    }
    .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;
    }
}

@media (max-width: 767px) {
    #subpage-main {
        padding: 1.5em 15px;
    }
    #subpage-main .row,
    #homepage-main .row {
        margin-bottom: 2em;
    }
    #homepage-main [class*="col-md"]+[class*="col-md"],
    #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;
    }
}


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

#slideshow-row .column {
    padding: 0;
}

#slideshow-row .carousel-indicators {
    text-align: right;
    bottom: unset;
    top: 10px;
}

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

#slideshow-row .carousel-caption {
    top: unset;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    padding-top: 10%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 1)
}

#slideshow-row .caption-wrapper {
    margin: auto calc((var(--side-margin) * -1) + 15px);
    color: white;
    line-height: 1.1;
}

#slideshow-row .alt-text {
    color: white;
    margin: 0;
}

#slideshow-row p+p:not(:empty) {
    margin-top: 1rem;
}

@media (max-width: 1100px) {
    #slideshow-row p+p:not(:empty) {
        margin-top: 1rem;
    }
}

@media (max-width: 850px) {
    #slideshow-row .carousel-caption {
        padding-top: 1.5rem;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        text-align: left;
        position: relative;
        background: var(--primary);
        color: white;
    }
    #slideshow-row .carousel-caption {}
    #slideshow-row .caption-text {
        font-size: 22px;
    }
}


/*  Welcome row ----------------------
    ----------------------------------------
 */

.cta-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    border-radius: 5px;
    gap: 3px;
    overflow: hidden;
}

.cta-list li {
    background: var(--secondary);
    transition: .125s background ease-in-out;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    padding: 1em;
    position: relative;
}

.cta-list li:hover,
.cta-list li:focus {
    background: var(--accent);
}

.cta-list img {
    margin: auto;
}

.cta-list a {
    font-size: 22px;
    font-weight: bold;
    text-transform: capitalize;
}

#homepage-main .cta-list a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.cta-list li * {
    color: white;
}

@media (max-width: 600px) {
    .cta-list {
        flex-direction: column;
    }
}


/*  News row -------------------------------
    ----------------------------------------
 */

main:not(#mms-main) #news-row>.column {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
    gap: 1rem 30px;
}

#news-row h2,
#news-row .button-link {
    grid-column: 1/-1;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

#homepage-main #news-row h2 {
    color: white;
    position: relative;
    padding: 4rem 0 3.5rem;
    margin-bottom: -3.25rem;
    z-index: -1;
}

#homepage-main #news-row h2::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -50vw;
    right: -50vw;
    background: var(--primary);
    z-index: -1;
}

.news-item {
    overflow: hidden;
    box-shadow: var(--box-shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 15px;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    background: white;
}

.news-item img {
    height: 200px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.news-item h3 {
    font-size: 18px;
    padding-bottom: 0;
}

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

@media (max-width: 767px) {
    main:not(#mms-main) #news-row>.column:not(#slideshow-row .column) {
        display: flex;
        flex-direction: column;
    }
}


/*  Events resources row ------------------------------
    ----------------------------------------
 */

#events-resources-row ul {
    padding-left: 2ch;
    margin-bottom: 1rem;
}


/* Event feed */

.event-item {
    box-shadow: var(--box-shadow);
    padding: 1rem;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.event-item h3 {
    font-size: 18px;
    margin-bottom: 0;
}


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


/* List styles */

.star-list>li {
    list-style-image: url('../images/I100_Icons_InnerStar_Lake_RGB.svg');
}


/* Page titles */

#page-title {
    background-image: url(../images/single_family_construction_blog_large_v2.jpg);
    background-size: cover;
    background-position: center;
    min-height: 290px;
    max-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#page-title::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    opacity: .25;
    z-index: 1;
}

#page-title h1 {
    --shadow-color: rgba(0, 0, 0, .75);
    font-size: 36px;
    margin: 0;
    color: white;
    text-align: center;
    width: fit-content;
    filter: drop-shadow(0px 1px 2px var(--shadow-color));
    border-bottom: 4px solid;
    padding: .25em .5ch;
    position: relative;
    z-index: 2;
}

#page-title:has(h1:empty) {
    display: none;
}

#subpage-main>.row:first-child {
    z-index: 3;
    position: relative;
}


/* Background heading */

.background-heading {
    position: relative;
}

#subpage-main>.background-row:first-child,
#subpage-main>.background-heading:first-child {
    margin-top: 0;
    z-index: 1;
}

#subpage-main .background-heading::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: calc(100% - 260px);
    left: var(--side-margin);
    right: var(--side-margin);
    background: url(../images/pattern.webp);
    background-size: cover;
    background-repeat: no-repeat;
    display: block;
    z-index: -1;
}

#subpage-main .background-heading h1,
#subpage-main .background-heading h2 {
    text-align: center;
    width: fit-content;
    margin: 1em auto;
    color: white;
}

#subpage-main .background-heading>.column {
    color: white;
    text-align: center;
}

#subpage-main .background-heading+.row {
    margin-top: -3rem;
    z-index: 4;
    position: relative;
}


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


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

footer {
    position: relative;
    color: white;
    padding: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 30px;
}

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

@media (min-width: 991px) {
    .section-wrapper {
        display: contents;
    }
}

@media (min-width: 991px) {
    footer>section:nth-of-type(1),
    #global-section {
        grid-column: 1/3;
    }
    .credit-section {
        grid-column: 3/6;
        text-align: right;
    }
}

#global-section {
    position: relative;
}

#global-section a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}


/* Footer elements */

footer h2 {
    color: white;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

footer address {
    margin: .5rem 0;
}

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

footer .social-list {
    gap: 10px;
}

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


/* Footer logos */

footer .logo {
    height: 27.8px;
    width: 200px;
    display: block;
}

footer #global-section .cls-2 {
    display: none;
}

footer path {
    fill: white !important;
}


/* Footer links */

.footer-links a {
    display: block;
    width: fit-content;
    position: relative;
    margin-bottom: .25rem;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -2px;
    height: 2px;
    background: white;
    display: block;
    transition: .125s right ease-in-out;
}

.footer-links a:hover::before,
.footer-links a:focus::before {
    right: 0;
}


/* Footer social list */

footer .social-list svg {
    /* border-radius: 50%; */
    background: rgb(255 255 255 / 60%);
    transition: .125s background ease-in-out;
}

footer .social-list a:hover svg {
    background: white;
}

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

@media (max-width: 990px) {
    /* footer {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    } */
    .credit-section {
        margin-top: 1rem;
    }
}