html {
    --primary: #121e2c;
    --secondary: #835fa8;
    --accent: #2f755d;
    --text: #333;
    --side-margin: calc((100vw - var(--page-width) + var(--scrollbarWidth)) / -2);
    overflow-x: hidden;
    font-size: 16px;
}

body {
    font-family: 'Lato', sans-serif;
    font-size: inherit;
    color: #333;
}

p {
    margin-bottom: .5em;
}


/*--------------------------------------------------------
    Headings
--------------------------------------------------------*/

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    margin: 0 0 .75em;
    padding: 0;
    text-transform: capitalize;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 29px;
}

h3 {
    font-size: 26px;
}

h4 {
    font-size: 23px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}


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

a {
    color: var(--accent);
    transition: color .125s ease-in-out;
}

a:hover,
a:focus {
    color: var(--secondary);
}


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

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

@media screen and (min--moz-device-pixel-ratio:0) {
    /* Firefox only. This browser seems to calculate the size of the page differently than Chromium browsers */
    .full-width:is(.row)>.column {
        padding: 0;
    }
}

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

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

@media (min-width:1200px) {
     :root {
        --page-width: 1170px;
    }
    .wrapper {
        width: 1170px;
    }
}

@media (max-width: 990px) {
    .container,
    .wrapper {
        /* Extra wiggle room at a breakpoint that needs it  */
        width: 100%;
    }
    .full-width {
        --side-margin: unset;
        left: unset;
        right: unset;
        width: unset;
    }
}

.row_background {
    color: white;
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.row_background::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
    background-color: var(--primary);
}

.row_background :is(*, :hover, :focus) {
    color: white;
}

@media (max-width: 767px) {
    .row_background {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}


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

header {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    /* Font-size included because some pages of the MMS try to override the body's font-size */
}

header section {
    display: flex;
    align-items: center;
    gap: 0.65em;
}

[href*="search.php?"]:hover,
[href*="search.php?"]:focus {
    text-decoration: none;
}

[href*="search.php?"] svg {
    display: block;
    height: 1em;
    margin-right: 0;
    margin-top: 0;
}


/* Mobile menu trigger  */

header .mobileMenuTrigger {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    transition: color .125s ease-in-out;
    position: relative;
    top: 3px;
}

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

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


/*--------------------------------------------------------
    Desktop Navigation
--------------------------------------------------------*/

body>nav.wrapper {
    position: sticky;
    top: 0;
    font-size: 16px;
    /* Font-size included because some pages of the MMS try to override the body's font-size */
    z-index: 20;
}

body>nav::before {
    content: '';
    background: var(--primary);
    position: absolute;
    left: -666vw;
    right: -666vw;
    top: 0;
    bottom: 0;
}

#nav_menu {
    position: relative;
    z-index: 1;
    padding: 0;
}

#nav_menu>ul {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

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

#nav_menu>ul>li>a {
    color: white;
    transition: background .125s ease-in-out;
}

#nav_menu .nav>li>a:focus,
#nav_menu .nav>li>a:hover {
    text-decoration: none;
    background-color: #eee;
    background: var(--secondary);
}

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

#nav_menu .dropdown-menu {
    /* Dropdown menu  */
    /* background: var(--primary); */
    font-size: inherit;
    padding-bottom: 1em;
    min-width: 20ch;
}

#nav_menu>ul ul a {
    /* Dropdown menu links */
}

#nav_menu>ul ul a:hover,
#nav_menu>ul ul a:focus {}


/* Login modal */

.modal-open #login-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;
}

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


/*--------------------------------------------------------
    Mobile navigation
--------------------------------------------------------*/

#mobileMenuWrapper {
    position: fixed;
    background: white;
    top: 0;
    bottom: 0;
    z-index: 50;
    overflow-y: auto;
    overflow-x: hidden;
    left: -120%;
    width: 300px;
    box-shadow: 0 3px 14px -2px rgba(0, 0, 0, 0.4);
    transition: left .125s ease-in-out;
}

#mobileMenuWrapper.open {
    left: 0;
}

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

#mobileMenuWrapper li {
    display: block;
    margin-bottom: .7rem;
}

#mobileMenuWrapper a {
    background-color: transparent;
    text-decoration: none;
}

#mobileMenuWrapper .mDropdown {
    display: none;
    padding-top: .7rem;
}

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

#mobileMenuWrapper .mDropdown a {
    color: #333;
}

#triggerClose {
    font-size: 22px;
    cursor: pointer;
    text-align: right;
}

#mobileMenuWrapper #mobile-menu {
    overflow: auto;
    padding: 1rem;
}


/* dropdown only */


/* #mobileMenuWrapper .mDropdown a {
    padding: 8px;
    margin-bottom: 10px;
}

#mobile-menu>li>ul {
    background-color: rgba(0, 0, 0, .04);
} */


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

#subpage-main,
#mms-main {
    padding-top: 3rem;
    min-height: calc(100vh - (101px + 50px + 141px + 3rem));
}

main .row+.row {
    margin-top: 3rem;
}

@media (max-width: 990px) {
    #subpage-main,
    #mms-main {
        padding-top: 2rem;
    }
    main .row+.row {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    #subpage-main,
    #mms-main {
        min-height: calc(100vh - (120px + 52px + 157px));
        padding-top: 1rem;
    }
    main [class*="col-"]+[class*="col-"] {
        margin-top: 1rem;
    }
}


/* Slideshows defaults */

.carousel {
    font-size: 20px;
}


/* Homepage slideshow */

#slide-row .carousel-indicators {
    top: 1rem;
    right: 1rem;
    left: unset;
    bottom: unset;
    text-align: right;
    margin: unset;
}

#slide-row .carousel-indicators li {
    border-color: var(--primary);
    background: white;
}

#slide-row .carousel-indicators li.active {
    background: var(--primary);
}

#slide-row img {
    width: 100%;
    max-height: 75vh;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 768px) {
    #slide-row img {
        max-height: 75vh;
        object-fit: cover;
        object-position: center;
    }
}

#slide-row .carousel-caption {
    position: absolute;
    z-index: 2;
    color: #fff;
    left: 0;
    bottom: 0;
    right: 0;
    top: auto;
    width: 100%;
    text-align: left;
    text-shadow: none;
    margin: auto;
    padding: 0;
    /* Style needed to overwrite BS defaults */
}

#slide-row .caption-wrapper {
    position: relative;
    padding: 1.5em 15px;
}

#slide-row .caption-wrapper::before {
    content: '';
    position: absolute;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    opacity: .8;
}

#slide-row .caption-text {
    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
    text-transform: capitalize;
}

#slide-row .alt-text {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.4;
}

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

@media (min-width: 1170px) {
    #slide-row .carousel-caption {
        width: 1170px;
        padding: 0 15px;
    }
}

@media (max-width: 990px) {
    #slide-row .carousel-caption {
        position: relative;
    }
    #slide-row .carousel-caption::before {
        opacity: 1;
    }
    #slide-row .caption-wrapper::before {
        opacity: 1;
    }
    #slide-row .caption-text {
        font-size: 22px;
    }
    #slide-row .alt-text {
        font-size: 1rem;
    }
}


/* Welcome row  */

#welcome-row h1 {
    font-size: 29px;
}

#welcome-row>div:last-of-type img {
    width: 100%;
}


/* News and events feeds */

#feed-row h2 {
    font-size: 25px;
}

#feed-row h2>svg {
    height: 1.2em;
    border: 1px solid var(--accent);
    padding: 5px;
    border-radius: 5px;
    margin-right: .5ch;
    position: relative;
    top: .25em;
    min-width: 1.3em;
    color: white;
}

.feed-item+.feed-item {
    margin-top: 1rem;
}

.feed-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feed-item time {
    display: block;
}


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

body>footer {
    color: white;
    position: relative;
    margin-top: 3rem;
    padding: 1rem 0 2rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 16px;
    /* Font-size included because some pages of the MMS try to override the body's font-size */
}

body>footer::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    background: var(--primary);
    z-index: -1;
}

#homepage-main+footer {
    margin-top: 0;
    padding-top: 3rem;
}

body>footer a {
    color: inherit;
    text-decoration: underline;
}

body>footer a:hover {
    color: var(--secondary);
}

@media (max-width: 990px) {
    body>footer {
        margin-top: 2rem;
    }
}

@media (max-width: 767px) {
    body>footer {
        margin-top: 1rem;
        flex-direction: column-reverse;
    }
}

.credits span {
    display: block;
}

.credits span:last-of-type {
    margin-top: 5px;
}

.social-wrapper {
    margin-bottom: 5px;
}

.social-wrapper svg {
    margin-left: 5px;
}

.social-wrapper a,
.social-wrapper a:hover,
.social-wrapper a:focus {
    text-decoration: none;
}

.social-wrapper circle {
    stroke: var(--accent);
    fill: var(--primary);
    transition: stroke .125s ease-in-out, fill .125s ease-in-out;
}

.social-wrapper path {
    fill: var(--accent);
    transition: fill .125s ease-in-out;
}

.social-wrapper :hover circle,
.social-wrapper :focus circle {
    fill: var(--accent);
}

.social-wrapper :hover path,
.social-wrapper :focus path {
    fill: var(--primary);
}


/*--------------------------------------------------------
    UTILITIES
--------------------------------------------------------*/


/*--------------------------------------------------------
    MMS Styles
--------------------------------------------------------*/


/* MMS Member Menu icons */

@media (min-width: 1200px) {
    .nav-tabs li.dropdown {
        width: 190px;
    }
}

@media (min-width: 990px) and (max-width: 1200px) {
    .nav-tabs li.dropdown {
        width: 155px;
    }
}

@media (min-width: 767px) and (max-width: 990px) {
    .nav-tabs li.dropdown {
        width: 120px;
    }
}


/*------------------------------------------------------------------------------------
                                @Media and Sizes
--------------------------------------------------------------------------------------*/


/*------ Nav collapse @ Tablet size ------*/

@media (max-width: 991px) {
    .navbar-header {
        float: none;
    }
    .navbar-toggle {
        display: block;
    }
    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    .navbar-collapse.collapse {
        display: none!important;
    }
    .navbar-nav {
        float: none!important;
        margin: 7.5px -15px;
    }
    .navbar-nav>li {
        float: none;
    }
    .navbar-nav>li>a {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    /* since 3.1.0 */
    .navbar-collapse.collapse.in {
        display: block!important;
    }
    .collapsing {
        overflow: hidden!important;
    }
    .dropdown-menu {
        border: none;
        background-color: transparent;
        -webkit-box-shadow: none;
        box-shadow: none;
    }
}

@media (min-width: 768px) and (max-width: 990px) {}

@media (max-width: 767px) {}

@media (max-width: 480px) {}