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

:root {
    --page-width: 100vw;
    --blue: #003b79;
    --red: #cd0039;
    --light-blue: #718aaf;
    --dark-blue: #0c2233;
    --text: #4d4d4d;
    --dark-text: #002147;
    --gray: rgba(0, 0, 0, .6);
    --light-gray: #F4F4F4;
    --radius: 20px;
    font-size: 16px;
    --side-margin: calc((100vw - var(--page-width)) / -2);
    font-family: "DM Sans", sans-serif;
    overflow-x: clip;
    --header-height: 50px;
    --footer-height: 50px;
}

@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-gray);
    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: .85em;
    padding: 0;
    font-weight: 700;
    line-height: 1em;
    color: var(--dark-text);
    font-family: "Gelasio", serif;
}

h1 {
    font-size: 30px;
}

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

h2 {
    font-size: 28px;
}

h3 {
    font-size: 26px;
}

h4 {
    font-size: 24px;
}

h5 {
    font-size: 22px;
}

h6 {
    font-size: 20px;
}

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


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

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

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

.button-link,
#login-modal input[type="submit"],
.addl-text {
    color: #fff;
    border: none;
    font-weight: 400;
    padding: .75em 2ch;
    display: block;
    width: fit-content;
    margin: 1.25em 0;
    transition: .125s background-color ease-in-out, .125s color ease-in-out;
    line-height: 1;
    text-decoration: none;
    background-color: var(--blue);
    border-radius: 18px;
    white-space: nowrap;
}

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

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

#login-modal input[type="submit"] {
    margin: 0;
}

.button-link:is(:hover, :focus),
#login-modal input[type="submit"]:is(:hover, :focus) {
    background-color: var(--red);
    color: white;
    text-decoration: none;
}


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

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


/* 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: var(--side-margin);
    width: calc(100vw + var(--scrollbarWidth));
}

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, #gm-canvas .background-row)::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
    background: var(--gray);
}

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

.background-row:not(#mycanvas .background-row, #gm-canvas .background-row)>.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, #gm-canvas .background-row)>.column {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .container,
    .wrapper {
        /* Extra wiggle room at a breakpoint that needs it  */
        width: 100%;
    }
    .full-width,
    .background-row {
        right: calc(var(--side-margin) - var(--scrollbarWidth));
        width: 100vw;
    }
}
@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(275px, 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: 15px;
        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;
}


/* Slideshow defaults */

.carousel {
    font-size: 20px;
}

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

.caption-text {
    font-size: 20px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    font-family: "Gelasio", serif;
}

.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, #gm-canvas .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*/
}


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

#login-modal .modal-dialog {
    max-width: 260px;
    font-size: 16px;
}

#login-modal h2 {
    font-size: 1.4em;
    text-transform: capitalize;
    letter-spacing: -0.4px;
}

#login-modal label {
    position: absolute;
    left: -200vw;
}

#login-modal input[name="Username"],
#login-modal input[name="Password"] {
    width: 100%;
    padding-left: .25em;
    padding-right: .25em;
    margin-bottom: 0.5em;
    height: 2em;
}

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


/* Header */
header.wrapper {
    width: 100%;
    position: relative;
    z-index: 2;
    background: #fff;
    transition: .125s transform ease-in-out;
    padding-left: 0;
    padding-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 30px;
}
header > a.logo-link {
    background: var(--light-blue);
    padding: 0.9em 0.55em;
    position: relative;
}
header #nav_menu>.nav>li>a.button-link {
    font-weight: 500;
    padding: .65em 1.8ch;
}
header #nav_menu>.nav>li>a.button-link:is(:hover, :focus) {
    background: var(--red);
    color: #fff;
}
header #nav_menu>.nav>li>a.join-wrap.button-link,
#mobile-menu>li>a.join-wrap.button-link {
    background: var(--red);
}
header #nav_menu>.nav>li>a.join-wrap.button-link:is(:hover, :focus),
#mobile-menu>li>a.join-wrap.button-link:is(:hover, :focus) {
    background: var(--blue);
}

svg#main-logo {
    width: 295px;
    max-width: 100%;
}



/* Navigation */

header>nav {
    display: flex;
}

#nav_menu {
    padding: 0;
}

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

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

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

#nav_menu>.nav>li>a {
    font-size: 16px;
    padding: 0;
    position: relative;
    line-height: 1;
}

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



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




#nav_menu .dropdown-menu {
    border: none;
    top: auto;
    font-size: inherit;
    margin: 0;
    padding: 6px 0;
}
#nav_menu .dropdown-menu>li {
    position: relative;
}
#nav_menu .dropdown-menu a {
    padding: .25em 1ch;
}

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

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

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


/* 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 (max-width: 1199px) {
        .navbar-collapse.collapse {
            display: none !important;
        }
    }
    @media (min-width: 1199px) {
        .mobileMenuTrigger:not(.triggerClose) {
            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: 0.65rem;
    list-style: none;
    overflow-y: auto;
    overflow-x: visible;
    padding: 1em 0;
}

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

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

.mDropdown {
    display: none;
}

.mDropdown.open {
    display: block;
}

#mobile-menu>li>a {
    font-weight: 500;
}



.mDropdown a {
    font-size: inherit;
    font-weight: 500;
}

@media (max-width: 767px) {
    body:has(.mobileMenuTrigger) #nav_menu {
        display: none;
    }
}
#mobileMenuWrapper .mDropdown {
    list-style: none;
    padding: 0;
    background: none;
    margin-top: 0.5em;
}
#mobileMenuWrapper .mDropdown li {
    padding: 0.25em 0;
}



/* 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;
    left: calc(var(--size) / 1.5);
    top: calc(50% - (var(--size) / 2));
    color: transparent;
    border: none;
    outline: none;
}


/* Main */

main {
    --gap: 90px;
    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:not(#slideshow-row) {
    padding-block: calc(var(--gap) / 4);
}

main:is(#subpage-main, #mms-main)>.row:not(#slideshow-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 > .column:not(:first-child) {
        margin-top: var(--gap);
    }
}


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

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



/* Home - Index Page */
#slideshow-row {
    padding: 0;
}
#slideshow-row img {
    width: 100%;
    max-width: 100%;
}
#slideshow-row .carousel-caption {
    position: absolute;
    z-index: 100;
    background: transparent;
    left: 0;
    top: 0;
    right: 0px;
    bottom: 0;
    width: 40%;
    text-align: left;
    text-shadow: none;
    margin: 0;
    display: flex;
    align-items: center;
    padding: 0px 3em;
}
#slideshow-row .carousel-caption * {
    color: #fff;
}
#slideshow-row .carousel-caption .caption-wrapper {
    background: rgba(0, 28, 53, .85);
    padding: 1em;
    border-radius: 6px;
}
#slideshow-row .carousel-indicators {
    bottom: 30px;
    text-align: left;
    left: 0;
    right: unset;
    margin: 0;
    top: auto;
    padding: 0px 4em;
    z-index: 1;
}
#slideshow-row .carousel-indicators li {
    width: 13px;
    height: 13px;
    margin: 0;
    margin-left: 5px;
    background: #8aadc1;
    border: 1px solid #8aadc1;
}
#slideshow-row .carousel-indicators li.active {
    background: #fff;
    border: 1px solid #fff;
}
#slideshow-row .carousel-indicators li:first-child {
    margin-left: 0px;
}
    
    @media (min-width: 1001px) and (max-width: 1199px) {
        #slideshow-row .carousel-caption {
            width: 60%;
        }
    }
    @media (max-width: 1000px) {
        #slideshow-row .carousel-caption {
            position: relative;
            background: rgba(0, 28, 53, 1);
            width: 100%;
            padding: 0;
        }
        #slideshow-row .carousel-caption .caption-wrapper {
            background: transparent;
            padding-bottom: 2em;
        }
        #slideshow-row .carousel-indicators {
            bottom: 10px;
            padding: 0 1em;
        }
    }




/* Events - Weather */
#events-weather-wrap:not(#gm-canvas #events-weather-wrap) {
    position: relative;
    background: rgba(238, 247, 255, 0.92);
}
#events-weather-wrap:not(#gm-canvas #events-weather-wrap):before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    display: block;
    z-index: -1;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 1;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    background: url(../images/SSYC_Club_House.jpeg) no-repeat;
    max-width: 100%;
    background-size: cover;
    background-position: center;
}



.events-item {
    display: flex;
    gap: 1.5em;
    align-items: center;
    border-bottom: 1px solid rgba(0, 59, 121, .2);
    margin-bottom: 1em;
    padding-bottom: 1em;
}
#events-weather-wrap .events-item:nth-last-child(2) {
    border-bottom: 0px;
}
.events-item date {
    background: rgba(0, 59, 121, .55);
    color: #fff;
    text-align: center;
    padding: 0.7em 0.5em;
    width: 100%;
    max-width: 80px;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    border-radius: 3px;
}
.events-item h3 {
    margin: 0;
    line-height: 18px;
}
a.ev-title-link {
    font-size: 16px;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    color: #4d4d4d;
}
a.ev-title-link:hover, a.ev-title-link:focus {
    color: var(--blue);
}

    @media (max-width: 767px) {
        #events-weather-wrap .column {
            margin-bottom: 2em;
        }
    }



/* Top Footer */
.footer-top-wrap {
    position: relative;
    color: #fff;
    padding: 3rem 15px;
    display: flex;
    justify-content: space-between;
    align-items: normal;
    gap: 1rem 30px;
    font-size: inherit;
    font-family: inherit;
    flex-direction: row;
}
.footer-top-wrap.wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
    z-index: -1;
    background: var(--blue);
}
.footer-address {
    position: relative;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: normal;
    gap: 1rem 8rem;
    font-size: inherit;
    font-family: inherit;
    flex-direction: row;
}
.footer-address h4 {
    color: #fff;
    font-size: 16px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    padding-bottom: 5px;
}
.footer-address p {
    margin: 0;
}
.footer-menu-links ul {
    display: flex;
    align-items: flex-end;
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    list-style-type: none;
    gap: 1.5em;
    justify-content: flex-end;
    line-height: 1;
    flex-wrap: wrap;
}
.footer-menu-links ul li a {
    text-decoration: underline;
}
.footer-menu-links ul li a:hover,
.footer-menu-links ul li a:focus {
    color: #c5ddef;
}

    @media (min-width: 768px) and (max-width: 1199px) {
        .footer-address {
            gap: 1rem 3rem;
        }
    }
    @media (max-width: 767px) {
        .footer-top-wrap, .footer-address {
            flex-direction: column;
            width: 100%;
            align-items: flex-start;
        }
        .footer-menu-links ul {
            justify-content: flex-start;
            gap: 0.5em;
        }
    }





/* Footer */
footer {
    position: relative;
    color: #fff;
    padding: 1.4rem 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 30px;
    font-size: inherit;
    font-family: inherit;
}
    @media (max-width: 767px) {
            footer {
                flex-direction: column;
                align-items: self-start;
                text-align: left;
                width: 100%;
            }
            footer .text-right {
                text-align: left;
            }
    }


footer::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
    z-index: -1;
    background: var(--dark-blue);
}
footer * {
    color: #fff;
}
footer p {
    line-height: 1.6em;
    margin: 0;
}
footer a {
    text-decoration: underline;
    transition: all 0.2s ease;
}
footer a:hover,
footer a:focus {
    opacity: 0.65;
    color: #fff;
}







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


/*--------------------------------------------------------
						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, 
#gm-canvas a {
    text-decoration: none;
}

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