html {
    --pink: #f6cdc7;
    --teal: #028083;
    --dark-teal: #045b5b;
    --black: #010101;
    --gray: #98979b;
    --shadow: 0 10px 20px 4px rgba(0, 0, 0, 0.15);
    --gap: 40px;
    color: #333;
    overflow-x: hidden;
    font-size: 16px;
    font-family: 'Nunito', sans-serif;
}

body {
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    position: relative;
}

body#homepage::before,
body#subpage::before {
    content: '';
    background: url(../images/lotus_flower_1024x1024.jpg);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    /* background-attachment: fixed; */
    display: block;
    background-size: cover;
    z-index: -1;
    opacity: .5;
}

p {
    margin: 0;
}

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

@media (max-width: 990px) {
    html {
        --gap: 30px;
    }
}

@media (max-width: 767px) {
    html {
        --gap: 20px;
    }
    body {
        overflow-x: hidden;
    }
}


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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'EB Garamond', serif;
    margin: 0 0 .75em;
    padding: 0;
    text-transform: capitalize;
    font-weight: 800;
}

h1 {
    font-size: 34px;
}

h1.title {
    text-align: center;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 25px;
}

h4 {
    font-size: 22px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}


/* Title banner  */

#title-banner {
    padding: 0;
}

#title-banner img {
    width: 100%;
}

#title-banner figcaption {
    position: absolute;
    bottom: 1rem;
    text-align: center;
    display: block;
    width: 100%;
}

#title-banner figcaption {
    position: absolute;
    bottom: calc(50% - .5em);
    text-align: center;
    display: block;
    width: 100%;
    font-size: 60px;
}

#title-banner h1 {
    margin: 0;
    text-shadow: 0 2px 10px rgb(0 0 0);
    color: white;
    font-size: inherit;
}

@media (max-width: 990px) {
    #title-banner figcaption {
        font-size: 50px;
    }
}

@media (max-width: 767px) {
    #title-banner figcaption {
        font-size: 40px;
    }
}

@media (max-width: 500px) {
    #title-banner figcaption {
        font-size: 30px;
    }
}


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

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

a:hover,
a:focus {
    color: var(--dark-teal);
    text-decoration: none;
}

a.button-link {
    display: block;
    background: var(--teal);
    color: white;
    text-align: center;
    text-transform: capitalize;
    padding: .8em 2.5ch;
    text-decoration: none;
    line-height: 1;
    border-radius: 5px;
    transition: background .125s ease-in-out, color .125s ease-in-out;
    font-weight: bold;
    white-space: nowrap;
    max-width: max-content;
}

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

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

a.button-link:hover,
a.button-link:focus {
    background: var(--dark-teal);
}

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

.full-width {
    /* Make an element span the width of the viewport */
    --side-margin: calc((100vw - var(--page-width) + 13px) / -2);
    /* 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 {
    left: unset;
    right: unset;
    width: unset;
}

@media (min-width:768px) {
     :root {
        --page-width: 100%;
    }
}

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

@media (min-width:1201px) {
     :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: -15px;
        left: var(--side-margin);
        right: var(--side-margin);
        width: calc(100vw + 30px);
    }
}

.feed-item {
    box-shadow: var(--shadow);
    border-radius: 5px;
    overflow: hidden;
}

.feed-item>section {
    padding: 10px;
}

.feed-item img {
    display: block;
    width: 100%;
}

.feed-item time {
    display: flex;
}

.feed-item time::before {
    content: url('../images/calendar-icon.svg');
    display: inline-block;
    margin-right: 1ch;
}

.feed-item h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    margin: 10px 0 0;
}


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

body,
header,
footer,
main,
#menu-and-search {
    font-family: inherit !important;
    /* Prevent MMS pages with hard-coded fonts from overwriting this  */
}

header {
    background: var(--pink);
    position: relative;
    z-index: 1;
}


/* Logo section  */

#logo-section {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.logo {
    position: relative;
    z-index: 5;
    top: 10px;
    margin-top: -10px;
}

.org-name {
    margin: 2rem 15px 1em;
}

.org-name svg {
    width: 100%;
}

#org-name-full {
    display: none;
}

#org-name-compact {
    display: block;
}

@media (max-width: 990px) {
    .logo {
        /* Pull bottom of header up by 30px */
        top: 40px;
        margin-top: -40px;
    }
    .org-name {
        margin-top: 1.5rem;
    }
}

@media (min-width: 701px) {
    #org-name-full {
        display: block;
    }
    #org-name-compact {
        display: none;
    }
}

@media (max-width: 700px) {
    #logo-section {
        justify-content: flex-start;
        align-items: center;
    }
    .org-name {
        margin-top: 0;
    }
}

@media (max-width: 500px) {
    .logo {
        max-width: 90%;
    }
}


/* Header nav */

header nav {
    position: absolute;
    bottom: -10px;
    width: 100%;
    font-size: 15px;
}

@media (max-width: 990px) {
    header nav::before {
        content: '';
        background: var(--teal);
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: -666vw;
        right: -666vw;
    }
}


/* Desktop navigation */

#nav_menu {
    background: var(--teal);
    position: relative;
    z-index: 1;
    padding-left: 179px;
}

#nav_menu::before {
    content: '';
    background: var(--teal);
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
}

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

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

#nav_menu>ul>li {
    padding: .75em 0;
}

#nav_menu>ul>li>a {
    position: relative;
    padding: 0 1.5ch;
    background: transparent;
    text-transform: capitalize;
    font-weight: bold;
}

#nav_menu>ul>li:not(:last-child)>a {
    border-right: 2px solid var(--dark-teal);
}

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

#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: var(--dark-teal);
}

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

#nav_menu .dropdown-menu {
    /* Dropdown menu  */
    font-size: inherit;
    padding: 0.5em 0;
    background: var(--teal);
    border: none;
    border-radius: 0;
    border-bottom: 2px solid var(--dark-teal);
}

#nav_menu .dropdown-menu a {
    padding: .5em 20px;
}

@media (max-width: 1200px) and (min-width: 991px) {
    #nav_menu>ul>li>a {
        font-size: 14px;
    }
}


/* Header links */

#header-links {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    list-style-type: none;
    font-size: inherit;
}

#header-links>li {
    padding: .75em 0;
}

#header-links>li:not(:last-child) a {
    /* Border between items  */
    border-right: 2px solid var(--dark-teal);
}

#header-links a {
    padding: 0 10px;
}


/* Mobile menu trigger  */

header .mobileMenuTrigger {
    background: none;
    border: none;
    padding: 0;
    color: white;
    transition: color .125s ease-in-out;
    margin-left: 2ch;
    display: contents;
}

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

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


/* @media (max-width: 990px) and (min-width: 768px) {
    header nav {
        bottom: -30px;
    }
} */

@media (max-width: 990px) {
    header nav .wrapper {
        display: flex;
        justify-content: flex-end;
        padding-top: .5em;
        padding-bottom: .5em;
    }
    #header-links,
    #nav_menu {
        display: none !important;
        /* !important'd to overwrite the BS default */
    }
}


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

.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: var(--teal);
    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;
}

#mobileMenuWrapper li:not(:last-child) {
    margin-bottom: .7rem;
}

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

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

#mobileMenuWrapper .mDropdown.open {
    display: block;
    background: var(--dark-teal);
    margin-left: -15px;
    margin-right: -15px;
    padding: 15px;
    margin-top: .7rem;
}

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

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


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

main {
    padding-bottom: var(--gap);
}

#subpage-main,
#mms-main {
    min-height: calc(100vh - 213px);
    padding-top: var(--gap);
}

#homepage-main,
#subpage-main {
    background: white;
}

main>.row,
#mission-row,
#photo-row {
    margin-bottom: var(--gap);
    padding-top: var(--gap);
    position: relative;
}

main>.row:first-child {
    padding-top: 0;
}

main>.row:last-child {
    margin-bottom: 0;
}

#homepage-main h1,
#homepage-main h2 {
    text-align: center;
}

@media (max-width: 767px) {
    main:not(#mms-main) .column+.column {
        margin-top: 1em;
    }
    main:not(#homepage-main) {
        margin-top: 1rem;
    }
    #homepage-main {
        overflow-x: hidden;
    }
}


/* Slideshows defaults */

.carousel {
    font-size: 20px;
}


/* Slideshow row  */

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

#slide-row .carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    padding: 30px 20px;
    line-height: 1.1;
    background: rgba(40, 58, 58, .65)
}

#slide-row .caption-text {
    font-size: 40px;
    font-weight: bold;
    margin-left: auto;
    margin-right: auto;
    font-family: 'EB Garamond', serif;
    font-weight: 800;
    text-transform: capitalize;
}

#slide-row .alt-text {
    font-size: 18px;
    margin: 10px 0;
}

#slide-row .carousel-control {
    display: none;
}

.carousel-indicators {
    bottom: 0;
    padding: 0;
    margin-bottom: 0;
}

@media (max-width: 990px) {
    #slide-row .carousel-caption {
        padding: 15px;
    }
    #slide-row .carousel-wrapper {
        padding-right: 15px;
    }
    #slide-row .caption-text {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    #slide-row .carousel-caption {
        position: relative;
        background: var(--dark-teal);
    }
}


/* Tagline Column */

#tagline-column:not(#mycanvas #tagline-column) {
    position: absolute;
    bottom: 0;
}

#tagline-column p {
    font-family: 'EB Garamond', serif;
    margin-bottom: 0;
    font-weight: 800;
    text-align: center;
    font-size: 34px;
    z-index: 1;
}

#tagline-column:not(#mycanvas #tagline-column) p {
    padding: .5em 30px calc(.5em + 15px);
    color: white;
}

#tagline-column:not(#mycanvas #tagline-column) p::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray);
    opacity: 0.8;
    z-index: -1;
    top: 0;
    border-top-left-radius: .25ch;
    border-top-right-radius: .25ch;
}

@media (max-width: 500px) {
    #tagline-column:not(#mycanvas #tagline-column) p {
        padding: 1rem 30px calc(1rem + 15px);
        font-size: 20px;
    }
}


/* Background section (wraps #mission-row and #photo-row)*/

.background-section {
    position: relative;
}

.background-section:not(#mycanvas .background-section)::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    background-image: url('../images/background-image.png');
    background-repeat: no-repeat;
    background-position: center;
    opacity: .1;
}


/* Mission row */

#mission-row {
    max-width: 767px;
    margin-left: auto;
    margin-right: auto;
}

#mission-row blockquote,
#mission-row cite {
    all: revert;
}

#mission-row h1 {
    text-transform: none;
    margin-bottom: 5px;
}

#mission-row cite {
    font-family: 'EB Garamond', serif;
    font-style: normal;
    font-size: 25px;
    text-align: right;
    display: block;
}

#mission-row h2 {
    font-family: 'Nunito', sans-serif;
    margin-bottom: 5px;
}

#mission-row p+h2 {
    margin-top: 1em;
}

@media (min-width: 768px) {
    #mission-row>.column {
        text-align: center;
    }
}

@media (max-width: 990px) {
    .background-section {
        background-size: contain;
    }
}


/* Photo row*/

#photo-row:not(#mycanvas #photo-row)>.column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
    gap: 1em 30px;
}

#photo-row h2 {
    grid-column: 1 / -1;
}

#photo-row img {
    justify-self: center;
}


/* Events row */

#events-row:not(#mycanvas #events-row)>.column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1em 30px;
}

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

#events-row .button-link {
    justify-self: center;
}

@media (max-width: 700px) {
    #events-row:not(#mycanvas #events-row)>.column {
        display: block;
    }
    #events-row .feed-item {
        width: 360px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    #events-row .feed-item:not(:last-child) {
        margin-bottom: 2em;
    }
    #events-row .button-link {
        margin-left: auto;
        margin-right: auto;
    }
}


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

footer {
    /* margin-top: var(--gap); */
}

footer>section {
    padding: 45px 0;
}


/* Footer links  */

.footer-links {
    background: var(--pink);
}

.footer-links ul {
    margin: 0 -15px;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links .button-link {
    width: 360px;
    max-width: 100%;
    margin: 10px 15px;
}

@media (max-width: 1200px) {
    .footer-links .button-link {
        width: 290px;
    }
}


/* Social search credits section */

#social-search-credits {
    background: var(--gray);
}

.social-links {
    margin-bottom: 1em;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links li:not(:last-child) {
    margin-right: 1ch;
}

#social-search-credits span {
    color: white;
    display: block;
    text-align: center;
}

#social-search-credits a {
    color: inherit;
    text-decoration: underline;
}

#social-search-credits a:hover,
#social-search-credits a:focus {
    color: var(--teal);
}

.privacy-link {
    display: inline-block;
    margin-left: 1ch;
    padding-left: 1ch;
    border-left: 1px solid;
}

@media (max-width: 500px) {
    .social-links li:not(:last-child) {
        margin-right: 0;
    }
    .social-links {
        /* Phones are more likely to be up-to-date right? */
        gap: 1em 1ch;
    }
}


/* --- Search ---  */

.searchbox {
    border: 1px solid var(--gray);
    max-width: 100%;
    position: relative;
    width: 230px;
    height: 40px;
    transition: border .125s ease-in-out;
    overflow: hidden;
    border-radius: 5px;
    background: white;
    margin-left: 1ch;
}

.searchbox:focus-within {
    border: 1px solid white;
}

.search-input {
    border: none;
    padding: .5em 2ch;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

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

.search-button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    border: 0;
    background-image: url(../images/search-icon.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--teal);
    background-size: 1rem;
    padding: 0 20px;
}

.social-wrapper {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    /* gap: 1ch; */
}

.social-wrapper li+li {
    margin-left: 1ch;
}

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

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


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