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

:root {
    --primary-color: #252b32;
    --secondary-color: #237cc7;
    --accent-color: #00a67e;
    --light-blue: #90c9f9;
    --text-gray: #696969;
    --light-gray: #e7e7e7;
    --dark-gray: #41464D;
    --new-blue: #6699cc;
    --sans: 'Open Sans', sans-serif;
    --serif: 'Libre Baskerville', serif;
    font-size: 16px;
}

body {
    color: var(--text-gray);
    font-size: inherit !important;
    overflow-x: hidden;
    font-family: var(--sans) !important;
    margin-top: 5px;
    z-index: 1;
}

@media (min-width: 1201px) {
    body {
        border-left: 15px solid var(--light-gray);
        border-right: 15px solid var(--light-gray);
    }
}

body::before {
    content: '';
    background: linear-gradient(to right, #237cc7 50%, #00a67e 50%);
    height: 5px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

@media (max-width: 767px) {
    body {
        border: none;
    }
}

header,
main,
footer,
#nav_menu {
    font-size: inherit !important;
    font-family: inherit !important;
}


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

p {
    font-size: inherit;
    margin-bottom: .75em;
}

p:empty {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .8em;
    /* text-transform: uppercase; */
    padding: 0;
    font-weight: bold;
    color: #333;
    line-height: 1.1;
    letter-spacing: -.05ch;
}

h1 {
    font-size: 35px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 29px;
}

h4 {
    font-size: 26px;
}

h5 {
    font-size: 23px;
}

h6 {
    font-size: 20px;
}

h1+h2,
h2+h3,
h3+h4,
h4+h5,
h5+h6 {
    margin-top: -1em;
}

#subpage-main p:not(:empty)+h2,
#subpage-main p:not(:empty)+h3,
#subpage-main p:not(:empty)+h4,
#subpage-main p:not(:empty)+h5,
#subpage-main p:not(:empty)+h6,
#subpage-main ul+h2,
#subpage-main ul+h3,
#subpage-main ul+h4,
#subpage-main ul+h5,
#subpage-main ul+h6,
#subpage-main table+h2,
#subpage-main table+h3,
#subpage-main table+h4,
#subpage-main table+h5,
#subpage-main table+h6 {
    margin-top: 1em;
}

#subpage-main h2+ul,
#subpage-main h3+ul,
#subpage-main h4+ul {
    margin-top: -.75rem;
    /*Adjusts for the margin-bottom placed on these headings to make the ul's look like they belong to that heading*/
}


/* :not(header):not(footer) ul>li+*:not(li) {
    margin-top: 1em;
}

:not(header):not(footer) ul>li+li {
    margin-top: .25em;
} */


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

 */

a {
    color: var(--secondary-color);
    text-decoration: none;
}

a:hover,
a:focus {
    filter: brightness(1.1);
    transition: filter .25s ease-in;
    text-decoration: none;
}

a.button {
    background: var(--secondary-color);
    font-size: inherit;
    font-weight: bold;
    padding: .5em 4ch;
    display: inline-block;
    color: white;
    border-radius: 2em;
    margin-right: 2ch;
    position: relative;
    left: -.25em;
    /*^^ Optically adjust for rounded left edge */
}

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


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

ul.two-columns {
    columns: 2;
}

.five-column-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px 30px;
    justify-items: center;
    margin-bottom: 2.5rem;
}

.five-column-photo-grid img {
    width: 150px;
}

@media (max-width: 767px) {
    .five-column-photo-grid {
        gap: 15px;
    }
}


/*  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) {
    .wrapper {
        width: 100%;
    }
}

@media (min-width:992px) {
    .wrapper,
    .container {
        width: 100%;
    }
}

@media (min-width:1200px) {
    .container,
    .wrapper {
        width: 1400px;
        max-width: 100%;
    }
}

@media (max-width: 990px) {
    .container {
        width: 100%;
    }
}

#subpage-main img {
    display: block;
    max-width: 100%;
    height: auto;
}

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


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

#subpage-main table {
    max-width: 100%;
    border-collapse: collapse;
    color: #212529;
    margin-bottom: 1em;
}

#subpage-main table td,
#subpage-main table th {
    padding: .75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
    text-align: inherit;
}

#subpage-main table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    border-top: none;
}

#subpage-main table caption {
    padding-top: .75rem;
    padding-bottom: .75rem;
    color: #6c757d;
    text-align: left;
    caption-side: bottom;
}

#subpage-main table tbody tr:hover {
    color: #212529;
    background-color: rgba(0, 0, 0, .075);
}

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


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

.modal.in {
    display: flex !important;
    /* Overwrite the inline style of display: block; */
}

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

.modal-title {
    text-transform: capitalize;
}

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

.modal input[type="submit"] {
    color: white;
    display: inline-block;
    background: var(--secondary-color);
    padding: calc(46px / 2 - 0.7em);
    text-decoration: none;
    z-index: 1;
    text-transform: capitalize;
    position: relative;
    min-width: calc(9vw + 5px);
    text-align: center;
    border: none;
    margin-top: 1em;
    transition: background .25s ease-in;
}

.modal input[type="submit"]+* {
    padding-top: 1.5em;
}


/*  BS slideshow defaults -------------------------
----------------------------------------
*/

.carousel-inner img {
    width: 100%;
}

.carousel-caption {
    font-size: 1.2rem;
}

.carousel-control {
    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: "›";
}


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

header {
    background: var(--light-gray);
}

header>section {
    z-index: 1;
    padding-left: 50px;
    padding-right: 50px;
}

header ul {
    list-style: none;
    padding: 0;
    display: inline-flex;
    margin: 0;
}

header li:hover,
header li:focus,
header li:focus-within {
    background: var(--secondary-color);
    transition: background .25s ease-in-out;
}

header a {
    text-transform: uppercase;
}

@media (min-width: 990px) {
    header a {
        font-size: 14px;
        letter-spacing: -.25px;
    }
}


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

.header-top {
    display: flex;
    justify-content: flex-end;
    z-index: 2;
}

.header-top,
.header-bottom,
#nav_menu {
    padding-right: 0;
}

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

.header-top>a:first-child {
    display: flex;
    align-items: center;
}

.top-menu li {
    border-left: 1px solid var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-menu a {
    color: white;
    padding: 1em 2em;
    display: block;
}

.top-menu svg {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--secondary-color);
    padding: 4px;
    margin: 0;
}

.top-menu rect {
    display: none;
}

.top-menu [class*="-icon"] path {
    fill: var(--secondary-color);
}

.top-menu a:hover svg,
.top-menu a:focus svg {
    border-color: white;
    transition: border .25s ease-in-out;
}

.top-menu a:hover path,
.top-menu a:focus path {
    fill: white;
    transition: fill .25s ease-in-out;
}

#member-options {
    cursor: pointer;
    color: var(--secondary-color);
    border-right: 1px solid var(--secondary-color);
    position: relative;
}

#member-options:hover,
#member-options:focus,
#member-options:focus-within {
    color: white;
}

#member-options a {
    color: inherit;
}

#member-options img {
    color: inherit;
    width: 30px;
    border-radius: 50%;
    border: 1px solid currentColor;
    margin-top: -5px;
    transition: border .25s ease-in-out;
}

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

@media (min-width: 768px) {
    #big-logo {
        display: block;
    }
    #small-logo {
        display: none;
    }
}

@media (max-width: 767px) {
    .header-top {
        display: none;
    }
}


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

.header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 180px;
    background: var(--light-gray);
}
.header-bottom nav {
    width: 65%;
}


/*  Desktop Menu ---------------------------
    ----------------------------------------
 */

@media (min-width: 991px) {
    #triggerClose,
    .home-link,
    .mobile-login {
        display: none !important;
    }
}

#nav_menu>ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    list-style: none;
    padding-left: 0;
    margin: 0;
}

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

#nav_menu .navbar-nav>li>a {
    padding: 1.5em;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

#nav_menu .nav>li>a:focus,
#nav_menu .nav>li>a:hover,
#nav_menu .nav .open>a,
#nav_menu .nav .open>a:focus,
#nav_menu .nav .open>a:hover {
    /* Overwriting BS defaults */
    background-color: var(--secondary-color);
    color: white;
    transition: color .0125s ease-in;
}

header .dropdown-menu>li>a:focus,
header .dropdown-menu>li>a:hover {
    color: inherit;
    background-color: transparent;
}

header .dropdown-toggle b {
    display: none;
}

header .dropdown-toggle::after {
    content: '❮';
    transform: rotate(-90deg);
    display: inline-block;
    margin-left: 10px;
    color: var(--text-gray);
}

header .dropdown-toggle:hover::after,
header .dropdown-toggle:focus::after {
    color: white;
    transition: color .25s ease-in-out;
}

@media (max-width: 1200px) {
    #nav_menu .navbar-nav>li>a {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 990px) {
    .header-bottom nav {
        display: none;
    }
}


/*  Dropdown Menus -------------------------
    ----------------------------------------
 */

@supports (display: block) {
    /* These two styles make sure that the .dropdown-menu can be positioned absolutely to the .header-bottom rather than the menu */
    .header-bottom {
        position: relative;
    }
    nav,
    #nav_menu,
    #nav_menu>ul,
    #nav_menu>ul>li {
        position: unset!important;
    }
}

header .open>.dropdown-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20%, 1fr));
    color: var(--primary-color);
    background: var(--secondary-color);
    padding: 0;
    position: absolute;
    left: 0;
    right: 0;
}

@media (min-width: 1301px) {
    header .dropdown-menu {
        min-height: 175px;
    }
}

header .dropdown-menu li,
header .dropdown-menu .event-item {
    font-family: var(--sans);
    border-right: 1px solid var(--light-blue);
    padding: 40px 1em;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
}

header .dropdown-menu li:hover,
header .dropdown-menu li:focus,
header .dropdown-menu .event-item:hover,
header .dropdown-menu .event-item:focus {
    background: var(--light-blue);
    transition: background .15s ease-in-out;
}

header .dropdown-menu li:last-of-type,
header .dropdown-menu .event-item:last-of-type {
    border-right: none;
}

header .dropdown-menu a,
#event-feed-for-menu .event-item .title {
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-transform: none;
    margin-bottom: .5em;
    line-height: 1.2em;
}

header .dropdown-menu a {
    padding: 0;
    white-space: normal;
}


/*  Mobile Menu-----------------------------
    ----------------------------------------
 */

header .mobileMenuTrigger {
    background: transparent;
    transition: background .15s ease-in-out, color .15s ease-in-out;
    color: var(--secondary-color);
    border: none;
    padding: 10px 5px 5px;
}

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

header .mobileMenuTrigger:hover,
header .mobileMenuTrigger:focus,
header .mobileMenuTrigger:focus-within {
    background: var(--secondary-color);
    color: white;
}

.menu-trigger line {
    color: inherit;
    stroke: currentColor !important;
    transition: stroke .25s ease-in;
}

#mobileMenuWrapper {
    box-shadow: 7px 0 5px rgba(0, 0, 0, 0.1);
    background: var(--secondary-color);
}

#mobile-menu {
    overflow-y: auto;
    overflow-x: visible;
    padding: 15px 15px 60px 10px;
    color: white;
}

#mobileMenuWrapper #mobile-menu a {
    width: 100%;
    color: white;
}

#mobileMenuWrapper .mDropdown a {
    padding: 0;
    margin: .5em 0;
    display: block;
}

@media (max-width: 1300px) {
    a[href*="do_not_delete"] {
        display: none !important;
    }
}

@media (min-width: 1301px) {
    .top-menu-mobile {
        display: none !important;
    }
}

.top-menu-mobile>ul {
    margin-left: 0;
    padding-left: 0;
}

.social-list-item {
    display: inline-block;
}

.social-list-item img {
    border-radius: 50%;
    border: 1px solid white;
    padding: 5px;
    width: 35px;
}


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

main {
    min-height: calc(100vh - 125px - 104px);
    position: relative;
    margin-bottom: 7.5ch;
}

main.container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -100vw;
    right: -100vw;
    border-top: 1px solid #d7d7d7;
    z-index: -1;
    display: block;
}

#subpage-main>.row>.col-md-12,
#mms-main>.row>.col-md-12 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 991px) {
    main:not(#mms-main) .row {
        border: 1px solid var(--light-gray);
    }
}

@media (min-width: 991px) {
    #subpage-main .row+.row,
    #homepage-main .row+.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*/
        padding-top: 2.5rem;
    }
}

@media (max-width: 990px) {
    #homepage-main div[class^="col-md"]:not(#slide-row>div),
    #subpage-main div[class^="col-md"] {
        padding-top: 2.5rem;
    }
}


/*  Slide Row ------------------------------
    ----------------------------------------
 */

#slide-row:not(#mycanvas #slide-row) {
    color: white;
    display: grid;
    grid-template-columns: 1fr 530px;
    display: flex;
    flex-wrap: wrap;
}

#slide-row>.column:first-child {
    /* Setting up flex styles so the slideshow will automatically stack on top of the welcome message when the screen gets too small */
    flex-basis: 800px;
    flex-grow: 1;
}

#slide-row>.column:last-child {
    /* Setting up flex styles so the slideshow will automatically stack on top of the welcome message when the screen gets too small */
    flex-basis: 350px;
    flex-grow: 1;
}

#slide-row::before,
#slide-row::after {
    content: none;
}

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

#mycanvas #slide-row .column {
    padding: 15px;
}

#slide-row .column:first-child {
    border-bottom: 5px solid var(--accent-color);
}


/* Home Slideshow */

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

#slide-row .carousel-caption {
    position: absolute;
    z-index: 2;
    padding: 30px;
    left: inherit;
    bottom: 0;
    right: unset;
    top: unset;
    min-width: 50%;
    text-align: left;
    text-shadow: none;
    color: white;
}

#slide-row .alt-text {
    font-weight: normal;
    line-height: 1.2em;
    display: block;
    color: inherit;
    margin-bottom: .5em;
    font-size: 1.2rem;
}

#slide-row .caption-text {
    font-size: 22px;
    font-weight: bold;
    color: inherit;
    margin-bottom: 10px;
}

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

#slide-row .carousel-indicators li,
#slide-row .carousel-indicators li.active {
    width: 15px;
    height: 15px;
    border: 1px solid white;
    margin: 0;
    margin-left: 5px;
}

@media (max-width: 767px) {
    #slide-row .carousel-caption::before {
        opacity: 1;
    }
    #slide-row .carousel-caption {
        position: relative;
    }
    #slide-row .carousel-indicators {
        top: 1em;
    }
}


/*  Welcome Section / Button Section -------
----------------------------------------
*/

#slide-row #welcome-section {
    border-bottom: 5px solid var(--secondary-color);
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

#welcome-section h1 {
    font-size: 35px;
    text-transform: unset;
    color: white;
    line-height: 1em;
}

#welcome-section p {
    color: white;
    font-weight: bold;
    line-height: 1.6;
}

@media (max-width: 1450px) {
    #welcome-section h1 {
        font-size: 30px;
    }
}

@media (max-width: 1200px) {
    #slide-row {
        /* display: block; I was originally changing from grid to block display here, but Chrome was showing this bug where viewing the following row in the inspector included #slide-row and collapsed the padding of the following row */
        grid-template-columns: unset;
    }
    #slide-row img {
        max-height: 70vh;
        object-fit: cover;
    }
    #slide-row>[class*="col-md-"]:nth-child(2) {
        display: flex;
        flex-direction: column;
    }
    #slide-row>[class*="col-md-"]:nth-child(2) section {
        padding: 20px 60px;
    }
    #welcome-section {
        text-align: left;
        border: none;
    }
    #welcome-section h1 {
        margin-bottom: .5em;
    }
    #welcome-section h1 br {
        display: none;
    }
}

@media (max-width: 767px) {
    #slide-row {
        display: block;
    }
    #slide-row>[class*="col-md-"]:nth-child(2) section {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 600px) {
    #slide-row .carousel-caption,
    #slide-row #welcome-section {
        padding: 15px;
    }
}


/*  News and Events Feeds ------------------
    ----------------------------------------
 */


/* #home-main-row>.column:first-child {
    padding: 0;
    overflow-x: hidden;
}

#home-main-row>.column:first-child>* {
    padding-left: 30px;
    padding-right: 30px;
} */

#home-events h2,
#home-news h2 {
    font-size: 24px;
}

#home-news h2 {
    margin-top: 30px;
}

.news-item,
.event-item {
    font-family: var(--serif);
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
}

.event-item:first-child {
    margin-top: 30px;
}

.event-item:last-child::before {
    border-bottom: 1px solid var(--light-gray);
}

.news-item *,
.event-item * {
    margin-bottom: .75em;
    display: block;
}

.news-item h3,
.event-item h3 {
    font-size: inherit;
    text-transform: none;
    font-weight: normal;
}

@media (min-width: 767px) {
    .news-item,
    .event-item {
        font-size: 14px;
    }
}

.dropdown-menu .yl-event-item:first-child {
    padding: 0;
    margin-top: 0;
}

.yl-event-item time {
    display: none;
}

.yl-event-item:last-child::before {
    content: none;
    border: none;
    top: -1.6em;
    left: unset;
    right: unset;
    font-size: 16px;
    display: block;
    margin-bottom: 12px;
}

.young-leaders-previous .yl-event-item::before {
    content: 'Recent Activity';
}

.young-leaders-upcoming .yl-event-item::before {
    content: 'Upcoming Event';
}


/*  Home Main Row ------
    ----------------------------------------
 */

#home-main-row>.col-md-8 {
    position: relative;
}

#home-main-row>.col-md-8::before {
    content: '';
    position: absolute;
    top: -2.5em;
    bottom: 0;
    left: 0;
    right: 0;
    border-left: 1px solid var(--light-gray);
    z-index: -1;
}

#home-main-row>.col-md-8>section {
    padding-bottom: 2.5rem
}


/*  Online Services ------
    ----------------------------------------
 */

#online-services ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    list-style: none;
    justify-content: space-around;
    gap: 1em;
    padding: 0;
}

#online-services li {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

#online-services li>:first-child {
    margin-bottom: 1em;
}

#online-services svg {
    pointer-events: none;
}

#online-services ul a::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.employment-icon {
    padding: 0 5px 5px;
}


/*  Photo Section ------
    ----------------------------------------
 */

#photo-section h2,
#photo-section h2+a {
    display: inline-block;
    margin-bottom: 0;
}

#photo-section h2+a {
    text-transform: uppercase;
    margin-left: 1ch;
    font-weight: bold;
}

.five-column-photo-grid a {
    position: relative;
}

.member-item .name {
    font-weight: bold;
    margin-top: 5px;
}


/*  Inner Pages ----------------------------
    ----------------------------------------
 */


/*  Contact banner aside -------------------
    ----------------------------------------
 */

#contacts-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: #4a4a4a;
    background: transparent;
    background: rgba(74, 74, 74, .2);
    background: white;
    transition: bottom .25s ease-in-out;
    transition-delay: .25s;
    box-shadow: 0 -3px 14px -2px rgba(0, 0, 0, 0.15);
}

.unscrolled~#contacts-banner,
#contacts-banner.hide {
    bottom: -3rem;
    box-shadow: none;
}

#contacts-banner .wrapper {
    display: flex;
    justify-content: flex-end;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    /* color: white; */
    padding-top: .5em;
    padding-bottom: .5em;
}

#contacts-banner h1 {
    font-size: inherit;
    font-weight: normal;
    padding-right: 1em;
}

.social-media {
    padding-left: 0;
}

#contacts-banner .social-media {
    display: inherit;
    align-items: inherit;
}

.social-media svg {
    width: 30px;
    height: 30px;
}

.social-media a[href^="mailto:"] svg {
    background: var(--accent-color);
    max-width: 100%;
    padding: 6px;
}

#contacts-banner a.button {
    padding: 0.5em 4ch;
    left: unset;
}

@media (min-width: 767px) {
    #contacts-banner a.button {
        font-size: .9em;
    }
}

#contacts-banner a:not(.button) {
    height: 30px;
    display: block;
}

#contacts-banner .wrapper>*,
#contacts-banner a.button,
#contacts-banner .social-media>li:last-of-type {
    margin: 0;
}

#close-button {
    -webkit-appearance: none;
    background: none;
    border: none;
    color: #444;
    position: absolute;
    right: 1em;
    top: 0;
    font-weight: bold;
    transform: rotate(45deg);
    font-size: 1.3em;
    transition: color .25s ease-in;
}

#close-button:focus,
#close-button:hover {
    outline: none;
    color: #880000;
}


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

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5em 0;
}

footer::after {
    content: '';
    background: var(--light-gray);
    border-bottom: 2px solid #41464D;
    position: absolute;
    top: 0;
    bottom: -2px;
    left: -100vw;
    right: -100vw;
    z-index: -1;
}

footer * {
    color: var(--text-gray);
    font-weight: bold;
}

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

footer li+li::before {
    content: '-';
    display: inline-block;
}

footer li+li::before,
footer ul a {
    margin-left: 1ch;
}

footer li:first-child a {
    margin-left: 0;
}

@media (max-width: 990px) {
    footer.wrapper {
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column;
        text-align: left;
        padding-left: 15px;
        padding-right: 15px;
        width: 100%;
        align-items: flex-start;
    }
}


/*  Weirdness on Mobile ---------------
--------------------------------------
*/

@media (max-width: 767px) {
    .header-top::before,
    main.container::before,
    footer::after {
        left: 0;
        right: 0;
    }
    footer::after {
        bottom: 0;
        border-bottom: 0;
    }
}


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