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

* {
    /* Create offset so sticky header doesn't cover up content when scrolling to onpage links */
    scroll-margin-top: var(--header-height);
}


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

:root {
    --header-height: 90px;
    --green: #008851;
    --faded-green: rgba(0, 136, 81, .5);
    --blue: #0078C1;
    --light-gray: #ededed;
    --fade-to-black: linear-gradient(to right, #000000, rgb(0 0 0 / 0));
    --padding: 1.25rem;
    --auto-2-columns: repeat(auto-fill, minmax(380px, 1fr));
    --auto-3-columns: repeat(auto-fill, minmax(310px, 1fr));
    --auto-4-columns: repeat(auto-fill, minmax(240px, 1fr));
    --auto-5-columns: repeat(auto-fill, minmax(240px, 1fr));
    font-size: 18px;
}

@media (max-width: 1200px) {
     :root {
        --fade-to-black: linear-gradient(to right, #000000, rgb(0 0 0 / .5));
    }
}

@media (max-width: 767px) {
     :root {
        --header-height: 80px;
    }
}

@media (max-width: 500px) {
     :root {
        --auto-2-columns: repeat(auto-fill, minmax(330px, 1fr));
    }
}

body {
    color: #444;
    font-size: inherit;
    overflow-x: hidden;
    font-family: 'Nunito Sans', sans-serif;
    position: relative;
    /*^^Added to make scrollSpy.js work */
}

p {
    font-size: inherit;
    line-height: unset;
}

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

p:empty {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .8em;
    padding: 0;
    font-weight: bold;
    color: inherit;
    line-height: 1.1;
    font-family: 'Nunito Sans', sans-serif;
    letter-spacing: -.04ch;
    text-transform: none;
}

h1 {
    font-size: 48px;
}

h2 {
    font-size: 36px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 28px;
}

h5 {
    font-size: 25px;
}

h6 {
    font-size: 20px;
}

.subheading {
    display: block;
    font-weight: normal;
    margin-top: 5px;
}

@media (max-width: 1200px) {
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 32px;
    }
    h3 {
        font-size: 27px;
    }
    h4 {
        font-size: 24px;
    }
    h5 {
        font-size: 22px;
    }
}

h1+h2,

/* Or in the case of a Grid page... */

h1+.row>div[class*="col-md-"]>h2,
h2+h3,
h3+h4,
h4+h5,
h5+h6 {
    margin-top: -1em;
}

#homepage-main h2 {
    font-size: 48px;
}

#homepage-main h3 {
    font-size: 36px;
}

#homepage-main h4 {
    font-size: 30px;
}

@media (max-width: 1200px) {
    #homepage-main h2 {
        font-size: 40px;
    }
    #homepage-main h3 {
        font-size: 32px;
    }
    #homepage-main h4 {
        font-size: 27px;
    }
    #homepage-main h5 {
        font-size: 24px;
    }
    #homepage-main h6 {
        font-size: 22px;
    }
}

@media (max-width: 990px) {
    #homepage-main h2 {
        font-size: 32px;
    }
    #homepage-main h3 {
        font-size: 27px;
    }
    #homepage-main h4 {
        font-size: 24px;
    }
    #homepage-main h5 {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    #homepage-main h2 {
        font-size: 30px;
    }
    #homepage-main h4 {
        font-size: 26px;
    }
    #homepage-main h5 {
        font-size: 23px;
    }
}

[id*="row-"],
[id*="row-"]>[class*="col-"]:first-child {
    /* Offset content so when clicking on a link targeting an ID, the title of the section is not covered up by the header */
    /* padding-top: 90px;
    margin-top: -90px; */
}

@media (max-width: 767px) {
    /* [id*="row-"] {
        padding-top: 0;
        margin-top: 0;
    } */
}

[id*="row-"]:not(:first-child):not(.alternating-row)::before {
    /* Hide the border between rows because the psuedo element creating it will be re-ordered with the row-reverse applied to every other .row */
    content: '';
    border-top: 1px solid #0078C1;
    padding-top: 2.5em;
    margin-left: 15px;
    margin-right: 15px;
    display: block;
}

[id*="row-"] .column:not(.card-wrapper)>:last-child:not(h2) {
    margin-bottom: 0;
}

#subpage-main *:not(:empty)+h2,
#subpage-main *:not(:empty)+h3,
#subpage-main *:not(:empty)+h4,
#subpage-main *:not(:empty)+h5,
#subpage-main *:not(:empty)+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*/
}


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

 */

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

a:hover,
a:focus {
    /* filter: brightness(1.1);
    transition: filter .125s ease-in; */
    /* Commented out style removed because it was causing elements inside of a CSS column to reflow on hover */
    text-decoration: underline;
}

a.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(--blue);
    font-size: inherit;
    padding: .8em 4ch;
    display: inline-block;
    color: white;
    border-radius: 2em;
    margin-right: 2ch;
    position: relative;
    left: -.25em;
    /*^^ Optically adjust for rounded left edge */
    border: none;
    text-align: center;
}

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

a.button-link:hover,
a.button-link:focus {
    text-decoration: none;
}

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

a.block-link,
.block-link-list>li>a {
    display: block;
    white-space: nowrap;
}

[class*="-card"] .block-link,
[class*="-card"] .block-link-list>li>a {
    white-space: unset;
}

.block-link::after,
.block-link-list>li>a::after {
    content: '';
    display: inline-block;
    width: .8em;
    height: .8em;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(.25em, .125em) rotate(45deg);
}

.block-link:hover::after,
.block-link:focus::after,
.block-link-list>li>a:hover::after,
.block-link-list>li>a:focus::after {
    animation-name: move-and-fade;
    animation-duration: .62s;
    animation-delay: .125s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes move-and-fade {
    0% {
        transform: translate(.25em, .125em) rotate(45deg);
        opacity: 1;
    }
    100% {
        transform: translate(.75em, .125em) rotate(45deg);
        opacity: 0;
    }
}

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

.block-link-list {
    /* More compact version of a group of block links to cut out spacing between each link */
    margin-top: .5em;
    padding: 0;
    list-style: none;
}

.block-link-list li+li {
    margin-top: 3px;
}

li:not(:last-child) .block-link {
    margin-bottom: .5rem;
}

li:not(:last-child) .button-link {
    margin-bottom: .75rem;
}

a.ev-title-link {
    /* Overwrite styles applied to style.css for pre-refresh site */
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}


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

#homepage-main .offscreen,
#subpage-main .offscreen {
    position: absolute;
    left: -100vw;
}

.disappear {
    transition: opacity .25s ease-in-out;
    /* opacity: 0; */
}

.centered {
    text-align: center;
}

.highlight {
    background: linear-gradient(-45deg, var(--blue), #00AEEF);
    color: white;
    text-shadow: -1px 0px 1px var(--blue);
    padding: 0 1px;
}

.sidenote {
    font-size: 90%;
}

.not-bold {
    font-weight: normal;
}

img+blockquote {
    margin-top: 1rem;
}

main:not(#mms-main) ul:not[class]>li+*:not(li) {
    /* Anytime a list item proceeds something other than a list item inside of an unordered list with no class applied to it, do this: */
    margin-top: 1em;
}

main:not(#mms-main) ul:not[class]>li+li {
    /* Anytime a list item proceeds another list item inside of an unordered list with no class applied to it, do this: */
    margin-top: .25em;
}

ul.unstyled {
    padding: 0;
    list-style: none;
}

ul.two-columns {
    columns: 2;
}

ul.multi-column-list {
    padding: 0;
    list-style: none;
    line-height: 1;
    columns: 3;
    column-gap: 30px;
    column-fill: balance;
}

.multi-column-list li {
    margin-bottom: .5em;
}

@media(max-width: 767px) {
    ul.multi-column-list {
        columns: 2;
        column-gap: 15px;
    }
}

@media(max-width: 500px) {
    ul.multi-column-list {
        columns: 1;
    }
}

.timeline-list {
    padding: 0;
    list-style: none;
}

.timeline-list li {
    margin-bottom: var(--padding);
}

.timeline-list h3 {
    margin-bottom: .25rem;
    font-size: 25px;
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem 30px;
    list-style: none;
    padding: 0;
}

.awards-list>li {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem 30px;
    padding: 1.5rem;
    align-items: center;
    border-radius: .25em;
}

.awards-list h3 {
    font-size: 28px;
    margin-bottom: .25em;
}

.awards-list ul {
    list-style: none;
    padding: 0;
}

@media (max-width: 700px) {
    .awards-list>li {
        display: flex;
        flex-direction: column;
    }
}


/*  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) {
    body {
        --side-margin: calc((100vw - 750px) / 2);
    }
    .wrapper {
        width: 750px;
    }
}

@media (min-width:992px) {
    body {
        --side-margin: calc((100vw - 992px) / 2);
    }
    .wrapper {
        width: 970px;
    }
}

@media (min-width:1200px) {
    body {
        --side-margin: calc((100vw - 1170px) / 2);
    }
    .wrapper {
        width: 1170px;
    }
}

#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;
    border-left-color: var(--blue);
}

blockquote:last-child {
    margin-bottom: 0;
}

blockquote p {
    font-size: 1.05em;
}

.quotation {
    font-size: 1.05em;
    padding: 0;
    border: none;
}

.quotation+.quotation {
    margin-top: 2rem;
}

.quotation q {
    position: relative;
}

@media (min-width: 1020px) {
    .quotation q::before {
        font-size: 4em;
        position: absolute;
        top: -0.35em;
        left: -0.65ch;
        color: var(--blue);
        opacity: 0.8;
    }
}

.quotation cite {
    display: block;
    margin-top: 5px;
    font-style: normal;
    font-weight: bold;
}


/*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;
    color: var(--blue);
}

#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-bottom: 2px solid #dee2e6; */
    border-top: none;
}

#subpage-main table caption {
    color: currentColor;
    text-align: left;
    font-size: 1.375em;
    font-weight: bold;
    padding: 0;
}

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

.caption-reset {
    font-weight: initial;
    font-size: 1rem;
}

#subpage-main .compact-table td,
#subpage-main .compact-table th {
    padding: 3px 1ch;
    line-height: 1;
    vertical-align: middle;
}

#subpage-main .sponsorship-table th:not(:first-child),
#subpage-main .sponsorship-table td:not(:first-child) {
    text-align: center;
    vertical-align: middle;
}

@media (min-width: 768px) {
    #subpage-main .compact-table td,
    #subpage-main .compact-table th {
        font-size: .9em;
    }
}

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


/* Equipment table */

@media (min-width: 601px) {
    #subpage-main #equipment-table {
        max-width: unset;
        /* width: calc(100% + var(--side-margin) - 50px); */
    }
    #equipment-table :is(th, td) {
        font-size: 14px;
    }
}


/* Stuck table head
#equipment-table thead {
    position: sticky;
    top: 86px;
    background: white;
}
#equipment-table thead::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: -1;
    opacity: 0;
} */

#equipment-table .gray {
    background: #eeeeeea1;
}

#equipment-table .border-row td {
    border-left: 1px solid #dee2e6;
}

#equipment-table .border-row td:last-child {
    border-right: 1px solid #dee2e6;
}

#equipment-table th[rowspan="3"][colspan="2"] {
    background: none;
}

#equipment-table thead :is(th, td) {
    /* text-align: center; */
}

#equipment-table .highlight {
    background: none;
    text-shadow: none;
    color: var(--green);
    font-weight: bold;
}

@media (max-width: 1560px) {
    #subpage-main:has(#equipment-table) #onpage-navigation {
        display: none;
    }
}

@media (max-width: 1350px) {
    #equipment-table :is(th, td) {
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    #subpage-main #equipment-table {
        max-width: 100%;
        width: 100%;
        /* margin-left: calc(var(--side-margin) * -1); */
    }
    #equipment-table :is(th, td) {
        font-size: 12px;
        padding-inline: 10px;
    }
}

@media (max-width: 1050px) {
    #equipment-table :is(th, td) {
        padding-inline: 5px;
    }
}

@media (max-width: 990px) {
    #subpage-main #equipment-table {
        margin-left: 0;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        max-width: unset;
        width: calc(100vw - 40px);
        max-height: 50vh;
    }
    #equipment-table :is(th, td) {
        max-width: 200px;
        white-space: break-spaces;
    }
    #equipment-table :is(th:first-child, td:first-child) {
        max-width: 100px;
        white-space: break-spaces;
    }
}

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

#members-feed {
    /* temporary style to hide feeds while logos are added */
    display: none;
}

.members-feed-scrolling {
    padding: 10px 0;
    list-style: none;
    display: flex;
    overflow: hidden;
    height: 170px;
    position: relative;
    /* --number-of-logos: 15; */
    --distance-travelled: calc(160px * var(--number-of-logos));
    --time: calc(var(--number-of-logos) * 2.5);
    --math: calc(var(--time) / var(--number-of-logos));
    --offset: calc(6s * var(--math));
    /* Offset adjusted to prevent blank gap at beginning of scroll */
}

.members-feed-scrolling li {
    padding: 0 5px;
    animation: calc(var(--time) * 1s) infinite normal backwards running memberFeedScroll;
    animation-timing-function: linear;
    position: absolute;
    right: -160px;
    width: 150px;
    height: 150px;
    background: white;
    display: flex;
}

.members-feed-scrolling img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    margin: auto;
}

@keyframes memberFeedScroll {
    from {
        transform: translateX(0);
    }
    to {
        /* Move feed items the width of the .members-feed-scrolling container, plus the width of a logo and its padding to get it out of view */
        transform: translateX(calc((var(--distance-travelled) * -1) - 160px));
    }
}

@media (max-width: 500px) {
    .members-feed-scrolling {
        --time: calc(var(--number-of-logos) * 4);
    }
}

target {
    /* Custom element used to offset page when linking to an area that would be hidden under sticky header normally */
    padding-top: 90px;
    margin-top: -90px;
    display: block;
}

@media (min-width: 601px) {
    #subpage-main .panel ul {
        padding-left: 15px;
        font-size: 14px;
    }
}

#subpage-main .panel-heading {
    position: relative;
}

#subpage-main .panel-heading a::before {
    content: "+";
    position: absolute;
    right: 15px;
}

#subpage-main .panel:has(.in) .panel-heading a::before {
    content: "-";
}

#subpage-main .panel-heading a::after {
    content: '';
    position: absolute;
    top: -10px;
    bottom: -10px;
    left: -15px;
    right: -15px;
}


/*  Backgrounds-----------------------------
    ----------------------------------------
 */

[class*="-background"]::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((100vw - 100%) / 2 * -1);
    right: calc((100vw - 100%) / 2 * -1);
    z-index: -1;
}

:not(#gm-canvas)>.gray-background::after {
    background-color: var(--light-gray);
}

:not(#gm-canvas)>.gradient-background::after {
    background: linear-gradient(120deg, var(--blue), var(--green));
    opacity: .7;
}

.foundation-page :not(#gm-canvas)>.gradient-background::after {
    background: linear-gradient(120deg, var(--blue), #043d5b);
    opacity: 1;
}

.gradient-background h1,
.gradient-background h2,
.gradient-background h3,
.gradient-background h4,
.gradient-background p {
    color: white;
}


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


/*  Cards ----------------------------------
    ----------------------------------------
 */

.card-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: wrap;
    font-size: .9em;
    --margin: 10px;
    margin-left: calc(var(--margin) * -1);
    margin-right: calc(var(--margin) * -1);
}

[class*="-card"] {
    border: 1px solid #aaa;
    position: relative;
    background: white;
    margin-bottom: 1em;
    width: calc(33% - (var(--margin) * 2) + 3px);
    margin-left: var(--margin);
    margin-right: var(--margin);
}

#events-page .card-grid,
#ista-in-europe .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.card-grid:not(:last-child) {
    margin-bottom: 1rem;
}

.card-grid [class*="-card"] {
    margin: 0;
}

.icon-card {
    padding: 1.5rem 1.5rem 3.5rem;
    width: calc(25% - (var(--margin) * 2));
}

.icon-card img {
    width: 100% !important;
    min-height: 135px !important;
}

.icon-card>*,
.event-card>* {
    margin: 0;
}

.icon-card>*+*,
.event-card>*+* {
    margin-top: 1.25rem;
}

.presentation-card figure {
    display: grid;
    grid-template-columns: 25% 1fr;
    gap: 30px 1rem;
}

.presentation-card img {
    width: revert !important;
}

.presentation-card figcaption {
    align-self: center;
}

.presentation-card h3 {
    font-size: 22px;
    margin-bottom: 5px;
}

.presentation-card p {
    font-size: 16px;
    margin-top: 1em;
}

.presentation-card summary {
    cursor: pointer;
}

.presentation-card summary::after {
    content: '+';
    display: inline-block;
    margin-left: .5ch;
    transition: transform .125s ease-in-out;
    font-weight: bold;
}

.presentation-card [open] summary::after {
    transform: rotate(45deg);
}

.text-card {
    padding: var(--padding);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.text-card main {
    min-height: unset;
}

.text-card h2,
.text-card h3 {
    font-size: 22px;
    position: relative;
    z-index: 1;
}

.event-card h3 {
    font-size: 18px;
}

.text-card.title-background h2,
.text-card.title-background h3 {
    color: white;
    margin-bottom: calc(var(--padding) * 2);
    display: grid;
    grid-template-columns: 1fr 3ch;
}

.text-card.title-background h2::before,
.text-card.title-background h3::before {
    content: '';
    position: absolute;
    top: calc(var(--padding) * -1);
    bottom: calc(var(--padding) * -1);
    left: calc(var(--padding) * -1);
    right: calc(var(--padding) * -1);
    z-index: -1;
    background: var(--blue);
}

.title-background .subtitle {
    grid-column: 1 / -1;
    font-size: 0.85em;
    margin-top: 5px;
}

.title-background .hyphen {
    display: none;
}

.title-background .cost {
    position: absolute;
    right: 0;
}

.text-card h4 {
    font-size: 20px;
}

.text-card h5 {
    font-size: 18px;
}

.text-card>ul {
    /* This targets a list of links in the footer of a text-card */
    padding: 1rem 0 0;
    list-style: none;
    line-height: 1.1;
}

.text-card main ul {
    padding: 0 0 0 1rem;
    list-style: disc;
    line-height: unset;
}

.text-card li+li {
    margin-top: 5px;
}

.icon-card>ul:last-child {
    padding: 0;
    list-style: none;
}

#homepage-main *[class$="-card"] h3,
#subpage-main *[class$="-card"] h3,
#subpage-main.ista-china *[class$="-card"] h3 {
    color: inherit;
    font-size: 18px;
}

#homepage-main .event-card h3 {
    min-height: 2em;
}

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

#homepage-main .event-card img {
    display: block;
    width: calc(100% + 3rem);
    height: auto;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

#homepage-main *[class$="-card"] p {
    color: unset;
}

.image-card {
    display: flex;
    flex-direction: column;
    width: calc(33% - (var(--margin) * 2));
}

.image-card img {
    display: block;
    width: 100%;
    height: 20vh;
    object-fit: cover;
}

.image-card figcaption {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    background: white;
    height: 100%;
}

.event-card {
    padding: 1.5rem 1.5rem 4.5rem;
    padding: 1.5rem 1.5rem calc(4.5rem + 2.25rem);
    width: calc(25% - (var(--margin) * 2));
}

time>span {
    display: block;
    color: var(--blue);
    font-size: 18px;
    line-height: 1;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .125ch;
}

time .day {
    font-size: 4em;
    font-weight: bolder;
    letter-spacing: -.125ch;
}

.event-card .description br {
    display: none;
}

.event-card .speaker-name {
    line-height: 1.2;
    /* margin-bottom: 1.5rem; */
}

.event-card .location {
    display: block;
    position: absolute;
    bottom: 1rem;
    bottom: calc(2rem + 1.25rem + 50px);
    bottom: calc(4.25rem);
    line-height: 1.3;
    max-width: calc(100% - 3rem);
    /* Item is set to be absolute so max-width is needed to conform to the padding from parent element */
    pointer-events: none;
}

.event-card .location::before {
    content: '';
    width: 1em;
    height: 1em;
    background-image: url(../images/location.svg);
    background-size: contain;
    background-repeat: no-repeat;
    display: inline-block;
    position: relative;
    bottom: -1px;
    margin-right: 2px;
}

.event-card .location:empty {
    display: none;
}

.event-card .block-link {
    position: absolute;
    /* left: calc(1.5rem - .0125em); */
    bottom: calc(1.5rem + 1rem);
    bottom: 2rem;
}

@media (min-width: 991px) {
    .icon-card>.block-link,
    .icon-card>ul:last-child {
        position: absolute;
        bottom: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .icon-card {
        padding: 1rem 1rem 3.5rem;
    }
    .event-card {
        padding: 1rem 1rem 6.5rem;
    }
    .image-card figcaption {
        padding: 1rem;
    }
    #homepage-main .event-card img {
        width: calc(100% + 2rem);
        margin-left: -1rem;
        margin-right: -1rem;
    }
    .event-card .speaker-name {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 990px) {
    .icon-card {
        width: calc(50% - (var(--margin) * 2));
        padding: 1rem;
        display: flex;
        flex-direction: column;
    }
    .icon-card>*+*,
    .event-card>*+* {
        margin-top: .75rem;
    }
    .event-card:not(#events-page .event-card):not(#ista-in-europe .event-card) {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .image-card,
    .icon-card,
    .event-card {
        width: 100%;
    }
    .icon-card>*+*,
    .event-card>*+* {
        margin-top: 15px;
    }
}


/* New .event-card styles */

.event-card.new {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding: 1.5rem;
}

.event-card.new>*:not(.event-card.new>div),
#subpage-main .event-card.new>*:not(:empty)+h3 {
    margin: 0;
}

.event-card.new>div {
    margin-top: auto;
}

.event-card.new .location,
.event-card.new .block-link {
    position: relative;
    bottom: unset;
}

.event-card.new .location {
    max-width: 100%;
}

@media (max-width: 1200px) {
    .event-card.new {
        padding: 1rem;
    }
}

.logo-grid {
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
}

.logo-grid img {
    max-height: 70px;
    align-self: center;
    justify-self: center;
}

.logo-flex {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px 2rem;
    margin-bottom: 2rem;
}

#subpage-main .logo-flex>*:not(label) {
    max-width: 185px;
}

.logo-flex label {
    flex-basis: 100%;
    margin-bottom: -25px;
}

.gold-sponsor,
.silver-sponsor,
.bronze-sponsor {
    align-self: flex-end;
}

.gold-sponsor::after,
.silver-sponsor::after,
.bronze-sponsor::after {
    padding-top: .5rem;
    display: block;
    text-align: center;
}

.gold-sponsor::after {
    content: 'Gold Sponsor';
}

.silver-sponsor::after {
    content: 'Silver Sponsor';
}

.bronze-sponsor::after {
    content: 'Bronze Sponsor';
}


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

body>header {
    background: white;
    position: fixed;
    top: 0;
    z-index: 20;
    width: 100%;
    color: inherit;
    box-shadow: 0 3px 14px -2px rgba(0, 0, 0, .2);
    transition: color .15s ease-in, box-shadow .15s ease-in, background .2s ease-in;
}

#subpage>header,
#mms-header {
    position: sticky;
}

#homepage header.unscrolled {
    background: transparent;
    color: white;
    box-shadow: 0 3px 14px -2px rgba(0, 0, 0, 0);
    transition: color .15s ease-in, box-shadow .15s ease-in, background 0s ease-in;
    transition-duration: 0s;
}

body>header a {
    color: inherit;
}

body>header a:hover,
body>header a:focus {
    text-decoration: none;
    color: inherit;
}

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


/*  Top Menu -------------------------------
    ----------------------------------------
 */

#top-menu {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    color: #444;
    transition: padding .125s ease-in, color .125s ease-in;
    padding-top: 10px;
    font-size: 16px;
}

@media (max-width: 1200px) {
    #top-menu {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

#homepage .unscrolled #top-menu {
    color: white;
}

#homepage .unscrolled #nav_menu>ul>li>a,
#homepage .unscrolled #top-menu a,
#homepage .unscrolled #top-menu ::placeholder {
    /* Increase contrast between text and background image  */
    text-shadow: 0px 0px 4px black;
}

#top-menu ul {
    /* height: 2rem; */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    /* width: 550px; */
    max-width: 100%;
    margin-bottom: 0;
    color: inherit;
    padding-left: 0;
}

#top-menu li {
    white-space: nowrap;
    margin-left: 2ch;
}

#top-menu li:first-child {
    margin-left: 0;
}

@media (max-width: 400px) {
    #top-menu ul {
        width: 100%;
        padding-bottom: 10px;
    }
}

#top-menu a::before,
.search-item::before {
    width: 1em;
    height: .9em;
    display: inline-block;
    background-repeat: no-repeat;
    content: '';
    background-size: contain;
    position: relative;
    top: .125em;
    margin-right: .5ch;
}

.login-item a::before {
    background-image: url(../images/login-new.svg.php?fc=666);
}

.support-item a::before {
    background-image: url(../images/support-new.svg.php?fc=666);
}

#top-menu .store-item a::before {
    background-image: url(../images/store-new.svg.php?fc=666);
    margin-right: .75ch;
    top: 1px;
}

#top-menu .foundation-item a::before {
    background-image: url(../images/foundation.svg.php?fc=666);
    margin-right: .75ch;
    top: 0;
}

.search-item::before {
    background-image: url(../images/search-new.svg.php?fc=666);
    position: absolute;
    top: calc(50% - .5em);
    left: 0;
}

#homepage .unscrolled .login-item a::before {
    background-image: url(../images/login-new.svg.php?fc=eee);
}

#homepage .unscrolled .support-item a::before {
    background-image: url(../images/support-new.svg.php?fc=eee);
}

#homepage .unscrolled #top-menu .store-item a::before {
    background-image: url(../images/store-new.svg.php?fc=eee);
}

#homepage .unscrolled .search-item::before {
    background-image: url(../images/search-new.svg.php?fc=eee);
}

#homepage .unscrolled .foundation-item a::before {
    background-image: url(../images/foundation.svg.php?fc=eee);
}

li.search-item {
    padding-left: 1.1em;
    position: relative;
}

.search-item:hover::before,
.search-item:focus::before {
    transition: background-position .25s ease-in;
    background-position-x: -1em;
}

@media (max-width: 767px) {
    /* Search form changes to search link @ 767px */
    .search-item::before {
        margin-right: 0;
    }
    .search-item:hover::before,
    .search-item:focus::before {
        background-position-x: 0;
    }
    #top-menu .search-item a::before {
        content: none;
    }
}

@media (max-width: 550px) {
    #top-menu ul {
        flex-wrap: wrap;
        justify-content: unset;
        gap: 0 1.5ch;
    }
    #top-menu a::before,
    .search-item::before {
        content: none;
    }
    li.search-item {
        padding: 0;
    }
    #top-menu li {
        margin-left: 1.5ch;
        margin-left: 0;
    }
}

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


/* Search */

.searchbox,
#searchbox {}

.search-input {
    background: transparent;
    padding: 5px;
    margin-left: -5px;
    color: inherit;
    border: 1px solid transparent;
    border-radius: .25em;
    width: 7ch;
    transition: width .25s ease-in-out, border-color .25s ease-in-out;
    cursor: pointer;
}

.search-input::placeholder {
    color: inherit;
    opacity: 1;
}

.search-item:focus .search-input,
.search-item:hover .search-input {
    width: 200px;
    border-color: currentColor;
    outline: none;
}

.searchbox .search-button,
#searchbox .search-button {
    display: none !important;
}

@media (max-width: 1200px) {
    .search-input:focus,
    .search-input:hover {
        width: 170px;
    }
}


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

#nav_menu {
    padding: 0;
}

#homepage .unscrolled #nav_menu {
    padding-left: 15px;
    padding-right: 0;
}

@media (max-width: 990px) {
    #nav_menu {
        font-size: 16px;
    }
}

@media (max-width: 850px) {
    #nav_menu {
        font-size: 14px;
    }
}

#homepage .unscrolled #nav_menu>ul {
    height: unset;
}

#nav_menu>ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    height: 65px;
    height: 45px;
    list-style: none;
    padding-left: 0;
    position: relative;
    margin: 0;
    padding-bottom: 1em;
    transition: height .125s ease-in;
}

#nav_menu>ul>li>ul {
    /* 1st tier submenus */
    top: calc(100% + 1rem);
}

#nav_menu>ul>li:last-child>ul {
    /* Submenu of the last top-level menu item */
    left: -100%;
}

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

#nav_menu .navbar-nav>li>a {
    padding: 0;
    font-size: 16px;
    white-space: nowrap;
}

.caret {
    /* Convert Bootstrap style into em's so carets scale with type */
    border-top: .2em dashed;
    border-right: .2em solid transparent;
    border-left: .2em solid transparent;
}

.dropdown-menu {
    font-size: inherit;
}

.dropdown-menu>li>a {
    font-size: inherit;
    padding: .5rem 1rem;
}

.nav .open>a,
.nav .open>a:focus,
.nav .open>a:hover,
.nav>li>a:focus,
.nav>li>a:hover {
    /* Overwriting BS defaults */
    background-color: transparent;
    color: inherit;
    transition: color .125s ease-in;
}

#homepage .unscrolled .nav .open>a,
#homepage .unscrolled .nav .open>a:focus,
#homepage .unscrolled .nav .open>a:hover,
#homepage .unscrolled .nav>li>a:focus,
#homepage .unscrolled .nav>li>a:hover {
    /* Overwriting BS defaults */
    background-color: transparent;
    color: white;
}

.nav .open>a:hover,
.dropdown-menu>li>a:focus,
.dropdown-menu>li>a:hover {
    color: var(--blue);
    background-color: transparent;
}

@media (max-width: 1600px) {
    #nav_menu>ul>li:last-child>ul {
        /* Submenu of the last top-level menu item */
        left: -300px;
    }
}

@media (max-width: 1600px) {
    #nav_menu>ul>li:nth-last-child(2)>ul {
        /* Submenu of the last top-level menu item */
        left: -120px;
    }
}

@media (max-width: 990px) {
    nav#nav_menu li:not(:first-child):not(:last-child) {
        display: none;
    }
}

@media (max-width: 900px) and (min-width: 768px) {
    #nav_menu .navbar-nav>li>a {
        font-size: 14px;
    }
}


/*  Scrolled/Unscrolled styles 
    ----------------------------------------
 */


/* Logo styles */

#main-site-navigation>a>.ista-logo {
    display: none;
}

#homepage .unscrolled nav>a>.ista-logo {
    width: 306px;
    height: auto;
    display: block;
    margin: 0 auto 3vh;
}

#main-site-navigation>a>.ista-logo .st0_logo {
    fill: white;
}

#main-site-navigation>a>.ista-logo .st1_logo {
    stroke: white;
}

@media (max-width: 1200px) {
    #homepage .unscrolled nav>a>.ista-logo {
        width: 216px;
        margin-bottom: 10px;
    }
}

@media (max-width: 767px) {
    #homepage .unscrolled nav>a>.ista-logo {
        display: none;
    }
}

@media (min-width: 767px) {
    #top-menu {
        font-size: 13px;
    }
}

#homepage .unscrolled .logo-list-item {
    display: none;
}

.logo-list-item {
    margin-left: -11px;
    display: list-item;
}

.ista-logo {
    opacity: 1;
    display: block;
    width: 120px;
    max-width: 100%;
    height: auto;
    /* padding: 5px 0; */
    position: relative;
    margin-bottom: -7px;
    transition: opacity .125s ease-in .25s;
    margin-left: 7px;
}

@media (min-width: 990px) {
    #homepage .unscrolled li .ista-logo {
        opacity: 0;
        margin-left: 0;
        transition: opacity .125s ease-in 0s;
    }
}

@media (max-width: 990px) {
    .ista-logo {
        bottom: 0;
        padding: 0;
        width: 120px;
    }
    #homepage .unscrolled .ista-logo *:not(.st1_logo) {
        fill: currentColor;
    }
    #homepage .unscrolled .st1_logo {
        stroke: currentColor;
        stroke-width: 3px;
    }
}

@media (max-width: 767px) {
    .ista-logo {
        bottom: 5px;
    }
}


/*  Mobile Header Nav ----------------------
    ----------------------------------------
 */

.mobile-header-nav {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    padding-bottom: 5px;
    align-items: center;
}

@media (min-width:768px) {
    .mobile-header-nav {
        display: none;
    }
}

.mobile-logo {
    transform: translateZ(0);
    /* This hack enables hardware acceleration. I enabled it to deal with a weird white box that surrounds the logo on mobile */
}

.mobile-header-nav button,
#foundation-navigation button {
    background: none;
    border: 1px solid currentColor;
    padding: 0;
    align-items: center;
    display: flex;
}

.mobile-header-nav button:active,
#foundation-navigation button:active {
    transition: border-color .125s ease-in;
    border-color: var(--blue);
}

.mobile-header-nav label,
#foundation-navigation label {
    position: absolute;
    left: -1000vw;
}

.menu-trigger {
    cursor: pointer;
    margin: 0;
    width: 30px;
    height: 30px;
    padding: 5px;
}

.menu-trigger:hover,
.menu-trigger:focus {
    color: var(--blue);
}


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

#mobileMenuWrapper .mDropdown {
    display: none;
    list-style: none;
    padding: 0;
    background: none;
    border-top: 1px solid var(--blue);
    border-bottom: 1px solid var(--blue);
    padding-top: .75em;
    margin-bottom: .75em;
}

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

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

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

.mobile-login {
    margin-top: .5em;
}

#foundation-menu {
    display: none;
}

.foundation-page #foundation-menu {
    display: block;
}

#foundation-menu ul {
    padding: 0;
    list-style: none;
}


/*  Foundation menu ----------------------
    ----------------------------------------
 */

#foundation-navigation {
    display: none;
}

.foundation-page #foundation-navigation {
    display: flex;
    padding-bottom: 0;
    /* height: 50px; */
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
}

.foundation-page #main-site-navigation>*:not(#mobileMenuWrapper),
.foundation-page #top-menu,
.foundation-page #mobile-menu>li {
    /* Get ride of all of the navigation from the non-Foundation pages expect for the shell of the Mobile Menu */
    display: none !important;
}

#foundation-navigation>a:first-child {
    display: contents;
}

#foundation-logo-type {
    font-weight: 900;
    color: var(--blue);
    font-size: 2em;
    font-size: clamp(20px, 3vw, 2em);
    letter-spacing: -.015ch;
    line-height: 0;
    white-space: nowrap;
}

#foundation-navigation ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0;
    position: relative;
}

#foundation-navigation ul a:hover,
#foundation-navigation ul a:focus {
    color: inherit;
}

#foundation-navigation ul .button-link:hover,
#foundation-navigation ul .button-link:focus {
    color: white;
}

#foundation-navigation .foundation-logo {
    display: block;
    max-width: 100%;
    width: 200px;
    padding-bottom: 3px;
    margin-right: 1em;
}

#foundation-navigation .foundation-logo {
    display: block;
    max-width: 100%;
    width: 200px;
    padding-bottom: 3px;
    margin-right: 1em;
}

#foundation-navigation .ista-logo {
    margin: 0;
}

.donation-item .button-link {
    margin-right: 0;
    padding: .25em 1em;
}

.donation-item .button-link:hover,
.donation-item .button-link:focus {
    color: white;
}

.mobile-login~ul {
    /* Unordered list of Foundation links added to mobile menu */
    list-style: none;
    padding: 0;
}

@media (min-width: 991px) {
    #foundation-navigation button {
        display: none;
    }
    #foundation-navigation .donation-item {
        position: absolute;
        right: 0;
    }
    #foundation-navigation ul a {
        padding: .25em 1em;
    }
}

@media (max-width: 990px) {
    #foundation-navigation>a:nth-last-child(2) {
        position: absolute;
        right: 80px;
    }
    #foundation-navigation ul,
    #foundation-navigation .ista-logo {
        display: none;
    }
}

@media (max-width: 550px) {
    #foundation-navigation>a:nth-last-child(2) {
        display: none;
    }
}


/*
--------------------------------------------------------------------------
 Page Titles on Main Site
--------------------------------------------------------------------------
 */

#page-title {
    font-size: 48px;
    height: 300px;
    display: flex;
    position: relative;
    z-index: 2;
    color: white;
}

#page-title::before,
#page-title::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#page-title::before {
    z-index: -1;
    background: rgba(74, 74, 74, 0.55);
}

#page-title::after {
    z-index: -2;
    background-position: center;
    background-size: cover;
}

h1.title {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 990px) {
    #page-title {
        height: 20vh;
    }
    h1.title {
        margin: auto 0;
        line-height: .9;
        font-size: .7em;
    }
}


/*
--------------------------------------------------------------------------
 Page Titles on Foundation Pages
--------------------------------------------------------------------------
 */

.foundation-page #page-title {
    height: 150px;
}

.foundation-page #page-title::before {
    content: none;
}

.foundation-page #page-title::after {
    /* content: none; */
    background: linear-gradient(120deg, var(--blue), #043d5b);
}


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

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


/* #subpage-main,
#mms-main {
    margin-bottom: 2.5em;
} */

#homepage-main article>section,
#subpage-main,
#search-main,
#news-manager-main {
    padding: 4.5em 0;
    padding: min(9vh, 80px) 0;
    position: relative;
    z-index: 1;
}

#mms-main {
    font-size: 16px;
}

#news-manager-main img {
    max-width: 100%;
    height: auto !important;
    display: block;
}

@media (min-width: 767px) {
    #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: 2.5em;
    }
    #subpage-main .no-margin,
    #homepage-main .no-margin {
        /*Exception to the rule above*/
        margin-bottom: 0;
    }
    div[class^="col"]+.col-md-12 {
        margin-top: 2em;
    }
}

@media(max-width: 1200px) {
    #homepage-main article>section,
    #subpage-main {
        padding: 3.5em 0;
    }
}

@media(max-width: 990px) {
    #homepage-main article>section,
    #subpage-main {
        padding: 2.5em 0;
    }
    .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;
    }
    main div[id^="section-"] {
        padding: 3.5em 0;
    }
}

@media (max-width: 767px) {
    #homepage-main article>section,
    #subpage-main {
        padding: 1.5em 0;
    }
    #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;
    }
    #homepage-main article>section {
        padding: 3em 0;
    }
}

@media (max-width: 450px) {
    #homepage-main article>section {
        padding: 2em 0;
    }
}

#homepage-main #banner-row {
    margin-bottom: 0;
}

#homepage-main article>#certification-section::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((100vw - 100%) / 2 * -1);
    right: calc((100vw - 100%) / 2 * -1);
    z-index: -1;
    background-image: url(../images/map2.svg);
    background-repeat: no-repeat;
    background-size: cover;
}

#on-demand-row ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

#subpage-main #event-image {
    display: none;
}


/*  Home Hero Image ------------------------
    ----------------------------------------
 */

#home-hero-banner {
    position: relative;
    width: 100vw;
}

#banner-row .carousel {
    /* Style for when JS doesn't convert slideshow into <figure> and video isn't used */
    margin-right: -15px;
}

#home-hero-banner::after {
    /* content: ''; */
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: rgba(74, 74, 74, 0.55);
    background: rgba(74, 74, 74, .6);
    /* Background opacity boosted slightly for accessibility concerns */
}

#banner-row .carousel-caption::after {
    /* Style for when JS doesn't convert slideshow into <figure> and video isn't used */
    content: '';
    position: absolute;
    top: -100vw;
    bottom: -100vw;
    left: calc(var(--side-margin) * -1 - 30px);
    right: calc(var(--side-margin) * -1 - 30px);
    z-index: -1;
    background: #143D66;
    opacity: .6;
    mix-blend-mode: multiply;
}

@media (max-width: 767px) {
    #banner-row .carousel-caption::after {
        /* Style for when JS doesn't convert slideshow into <figure> and video isn't used */
        left: 0;
        right: 0;
    }
}

@media (max-width: 600px) {
    #banner-row .carousel img {
        min-height: 50vh;
    }
}

#home-hero-banner img,
#banner-row .carousel img {
    object-fit: cover;
    max-height: 90vh;
    width: 100%;
}

#banner-row .carousel img {
    /* Style for when JS doesn't convert slideshow into <figure> and video isn't used */
    max-height: 80vh;
    /* No <figure> to clamp down the image to 80vh */
}

#home-hero-banner figcaption {
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 2rem;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    z-index: 2;
}

#banner-row .carousel-caption {
    /* Style for when JS doesn't convert slideshow into <figure> and video isn't used */
    position: absolute;
    z-index: 100;
    background: transparent;
    left: var(--side-margin);
    right: var(--side-margin);
    bottom: 2rem;
    top: unset;
    width: 100%;
    text-align: left;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 0 4px black;
    padding: 0;
}

#home-hero-banner .wrapper>* {
    margin-top: 0;
    margin-bottom: 0;
}

#home-hero-banner .wrapper>*+*,
#banner-row .alt-text,
#banner-row .button-link {
    margin-top: 1rem;
}

#home-hero-banner .wrapper>*:not(.button-link) {
    text-shadow: 0px 0px 4px black;
}

#home-hero-banner h1 {
    color: inherit;
    font-size: 50px;
    line-height: 1;
    text-transform: none;
}

#home-hero-banner p,
#banner-row p {
    font-size: 1.2em;
    line-height: 1.4;
    color: white;
}

#home-hero-banner p>a {
    display: none;
}

#banner-row .caption-text {
    /* Style for when JS doesn't convert slideshow into <figure> and video isn't used */
    font-size: 58px;
    font-weight: bold;
    line-height: .9;
    display: block;
    color: white;
    margin: 0;
    width: unset;
    float: unset;
}

#banner-row .alt-text {
    /* Style for when JS doesn't convert slideshow into <figure> and video isn't used */
    margin: 0;
    line-height: 1.2;
    color: white;
    float: unset;
    font-style: inherit;
    font-family: inherit;
}

#banner-row a.button-link {
    display: block;
    width: fit-content;
}

.carousel-control {
    opacity: .7;
}

#banner-row .carousel-control.left,
#banner-row .carousel-control.right {
    /* Style for when JS doesn't convert slideshow into <figure> and video isn't used */
    font-size: 60px;
    transition: .125s opacity ease-in-out;
    top: calc(50% - (115px / 2));
}

@media (min-width: 1700px) {
    #home-hero-banner h1,
    #banner-row .caption-text {
        font-size: 60px;
        font-weight: 900;
    }
    #home-hero-banner .wrapper,
    #banner-row .carousel-caption {
        padding-right: 10vw;
    }
    #home-hero-banner .wrapper>*+*,
    #banner-row .alt-text,
    #banner-row .button-link {
        margin-top: 30px;
    }
}

@media(max-width: 1400px) {
    #home-hero-banner h1,
    #banner-row .caption-text {
        font-size: 40px;
    }
    #home-hero-banner figcaption {
        bottom: 1rem;
    }
    #home-hero-banner .wrapper>*+*,
    #banner-row .alt-text,
    #banner-row .button-link {
        margin-top: 1rem;
    }
}

@media(max-width: 1200px) {
    #home-hero-banner p,
    #banner-row p {
        font-size: 18px;
    }
    #home-hero-banner .wrapper>*+*,
    #banner-row .alt-text,
    #banner-row .button-link {
        margin-top: .5rem;
    }
}

@media(max-width: 990px) {
    #home-hero-banner .wrapper,
    #banner-row .carousel-caption {
        width: 100%;
        padding: 0 30px;
    }
    .foundation-home #home-hero-banner .wrapper br {
        display: none;
    }
    #home-hero-banner img {
        height: 450px;
    }
    .foundation-home #home-hero-banner img {
        object-position: right;
    }
    #home-hero-banner figcaption {
        font-size: 1em;
    }
    #home-hero-banner h1,
    #banner-row .caption-text {
        font-size: 32px;
    }
    #home-hero-banner .wrapper>*+*,
    #banner-row .alt-text,
    #banner-row .button-link {
        margin-top: 10px;
    }
    #home-hero-banner p,
    #banner-row p {
        line-height: 1.3em;
    }
    #home-hero-banner .button-link {
        font-size: 16px;
        padding: 0.5em 4ch;
    }
    #banner-row img {
        height: 50vh;
    }
}

@media (min-width: 768px) {
    #banner-row .carousel-caption {
        padding-right: 10vw;
    }
}

@media (max-width: 767px) {
    #banner-row img {
        height: 70vh;
    }
}

@media (max-width: 600px) {
    #home-hero-banner .wrapper,
    #banner-row .carousel-caption {
        padding: 0 15px;
    }
    #home-hero-banner img {
        height: 100vh;
    }
    #banner-row .carousel-caption {
        padding: 0 50px;
    }
}


/*  Home Hero Video ------------------------
    ----------------------------------------
 */

#home-hero-banner.video-test {
    max-height: 80vh;
    overflow: hidden;
}

figure#home-hero-banner::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 0;
    background: black;
    opacity: 0.1;
    background: #143D66;
    opacity: .6;
}

#home-hero-banner video {
    object-fit: cover;
    height: inherit;
    width: 100%;
}


/*  Home Test Protocols --------------------
    ----------------------------------------
 */


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

#onpage-navigation {}

#onpage-navigation {
    position: sticky;
    margin-left: calc(var(--side-margin) * -1);
    max-width: var(--side-margin);
    height: 0;
    font-size: 48px;
    top: 3em;
}

#onpage-navigation .nav {
    display: flex;
    flex-direction: column;
    padding: 0 2vw;
    font-size: .9rem;
}

#onpage-navigation li {
    position: relative;
}

#onpage-navigation .nav a {
    padding: 0;
    line-height: 1.2em;
    margin-bottom: .5em;
    /* color: inherit; */
}

#onpage-navigation li::before {
    /* Set style for active Scroll Spy item  */
    content: none;
    position: absolute;
    left: -1em;
    top: .25em;
    width: 0.5em;
    height: 0.5em;
    display: block;
    background: var(--green);
    border-radius: 50%;
}

#onpage-navigation li.active::before {
    /* Set style for active Scroll Spy item  */
    content: '';
}

@media (max-width: 1560px) {
    /* Switch nav to the right of the wrapper */
    #subpage-main {
        display: grid;
        grid-template-columns: 1fr 200px;
        grid-template-columns: calc(100% - 200px) 200px;
        /* For some reason using "1fr" instead of explicitily spelling it out with "calc(100% - 200px)" pushes the second column off screen  */
        grid-template-areas: "wrapper nav";
    }
    #onpage-navigation {
        grid-area: nav;
        margin-left: unset;
        max-width: unset;
        font-size: 16px;
        top: 120px;
    }
    #subpage-main>.wrapper {
        grid-area: wrapper;
        width: unset;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    #subpage-main {
        width: 100%;
    }
    #onpage-navigation {
        padding-left: 5px;
    }
}

@media (max-width: 767px) {
    #subpage-main {
        display: block;
    }
    .unscrolled~main #onpage-navigation {
        transform: translateY(54px);
        transition-delay: unset;
    }
    #onpage-navigation {
        position: fixed;
        background: white;
        z-index: 3;
        height: unset;
        top: unset;
        bottom: 54px;
        transform: translateY(0);
        transition: transform .25s ease-in-out .125s;
        box-shadow: 0 -3px 14px -2px rgba(0, 0, 0, 0.15);
        display: none;
    }
    #onpage-navigation .nav {
        display: block;
        padding: 15px;
        /* font-size: 1rem; */
    }
    #onpage-navigation li {
        margin-right: 2ch;
        float: none;
        display: inline-block;
    }
    main:not(#mms-main) #onpage-navigation ul>li+li {
        margin-top: 0;
    }
    #onpage-navigation li::before {
        content: '';
        position: absolute;
        left: 0;
        top: unset;
        right: 100%;
        height: 0.25em;
        display: block;
        background: var(--green);
        opacity: .8;
        border-radius: 0;
        bottom: -.0125em;
        width: unset;
    }
    #onpage-navigation li.active::before {
        /* Set style for active Scroll Spy item  */
        right: 0;
        transition: right .125s ease-in-out;
    }
}

@media (min-width: 500px) {
    #onpage-navigation {
        transition-delay: .25s;
    }
}

@media (max-width: 767px) {
    #onpage-navigation .nav {
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        max-width: 100vw;
    }
    #onpage-navigation .nav a {
        white-space: nowrap;
    }
}


/*--Slideshow-defaults---------*/

.carousel-caption {
    position: absolute;
    z-index: 100;
    background-color: #002857;
    background: rgba(0, 0, 0, .6);
    padding: 10px 15px;
    left: inherit;
    bottom: 0px;
    right: 0px;
    top: inherit;
    width: 100%;
    text-align: left;
    text-shadow: none;
}

@media (max-width: 600px) {
    .carousel-caption {
        padding: 0px 10px;
    }
}

.caption-text {
    font-size: 28px;
    font-weight: 600;
    line-height: 33px;
    display: block;
    color: initial;
    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: "›";
}


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

#contacts-banner {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: unset;
    z-index: 10;
    background: #4a4a4a;
    background: transparent;
    background: rgba(74, 74, 74, .2);
    background: white;
    transition: bottom .25s ease-in-out;
    transition-delay: .125s;
    box-shadow: 0 5px 17px 0 rgba(0, 0, 0, .15);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (max-width: calc(333px + 62px + 20px + 20px)) {
    /* Calc formula referrs to:
        * width of #contacts-banner,
        * width of Zoho help widget,
        * distance of Zoho widget from right edge of screen,
        * margin between #contact-banner and Zoho widget */
    #contacts-banner {
        display: none;
    }
}


/* @media (max-width: 767px) {
    #contacts-banner {
        box-shadow: none;
    }
} */

#mms #contacts-banner {
    display: none;
}

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

#contacts-banner>div {
    display: flex;
    justify-content: flex-end;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    padding: .5em 1em;
}

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

@media (max-width: 500px) {
    #contacts-banner h1 {
        display: none;
    }
}

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

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

#contacts-banner .social-media>li:not(:first-of-type) {
    margin-top: -4px;
}

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

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

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

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

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

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

#close-button {
    -webkit-appearance: none;
    background: none;
    border: none;
    color: #444;
    font-weight: bold;
    font-size: 1.3em;
    transition: color .125s ease-in;
    margin-left: 1em;
    padding: 0;
}

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


/*  Subpage styles -------------------------
    ----------------------------------------
 */

#subpage-main h2 {
    grid-column: 1 / -1;
}

.foundation-home-main [class*="-grid"],
#subpage-main [class*="-grid"] {
    display: grid;
    grid-gap: 30px 2rem;
}

#subpage-main [class*="-grid"]>[class*="-card"] {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    #subpage-main [class*="-grid"] {
        grid-gap: 1.2rem 30px;
    }
}

@supports (display:block) {
    /* Fix the GPE */
    #mycanvas .bio-grid {
        display: block;
    }
    #mycanvas .bio-grid .gm-editable-region {
        display: block;
    }
    .bio-grid .gm-content>div {
        margin-bottom: 1rem;
    }
    #mycanvas .bio-grid .gm-content>div>div {
        position: relative;
    }
    #mycanvas .bio-grid a {
        right: unset;
        left: 1ch;
        bottom: 100%;
    }
}


/* Full width  */

.full-width:not(#mycanvas .full-width) {
    position: relative;
    left: calc((var(--side-margin) * -1) - 1rem);
    right: calc((var(--side-margin) * -1) - 1rem);
    width: calc(100vw + 13px);
}

@media (max-width: 767px) {
    .full-width:not(#mycanvas .full-width) {
        position: relative;
        left: -15px;
        right: -15px;
    }
}


/* Full screen background  */

#subpage-main.full-background {
    padding-top: 0;
    min-height: calc(100vh - 85px);
    /* Full background pages should be tall enough to push the footer off screen  */
}

#subpage-main.full-background::before,
#subpage-main.full-background::after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(var(--side-margin) * -1);
    right: calc(var(--side-margin) * -1);
    z-index: -1;
}

#subpage-main.full-background::before {
    background-image: var(--background-image);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
}

#subpage-main.full-background::after {
    background: rgba(74, 74, 74, 0.55);
}

@media (max-width: 767px) {
    #subpage-main.full-background::before,
    #subpage-main.full-background::after {
        left: 0;
        right: 0;
    }
}

.full-background * {
    color: white;
    text-shadow: 0 0 3px rgba(0, 0, 0, .5);
}

.full-background a:not(.button-link) {
    text-decoration: underline;
    position: relative;
    background: transparent;
    transition: background .125s ease-in-out, color .125s ease-in-out;
}

.full-background a:not(.button-link):hover,
.full-background a:not(.button-link):focus {
    text-shadow: none;
    background: var(--blue);
    color: white;
    display: inline-block;
}

.full-background a.block-link {
    display: inline-block;
}

.full-background #page-title::before {
    content: none;
}

@media (max-width: 1560px) {
    #subpage-main.full-background {
        display: block;
    }
}


/* Alternating rows and sections */

.alternating-row:not(.gm-editing) {
    display: flex;
    align-items: center;
}

#mycanvas .alternating-row {
    display: block;
}

@media (min-width: 601px) {
    .alternating-row:not(.gm-editing)+.alternating-row {
        /* Prevent margins from collapsing */
        margin-top: 0;
    }
}

.alternating-row:nth-of-type(even) {
    flex-direction: row-reverse;
}

@media (max-width: 990px) and (min-width: 601px) {
    .alternating-row>:first-child {
        width: 450px;
    }
}

@media (max-width: 600px) {
    .alternating-row {
        gap: 1rem;
    }
    .alternating-row,
    .alternating-row:nth-of-type(even) {
        flex-direction: column-reverse;
    }
    .alternating-row>:first-child {
        margin: 1rem 0;
    }
}


/* Biography grid  */

.bio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    line-height: 1.2;
}

.bio-grid>div,
.pull-quote-author {
    display: flex;
    /* align-items: center; */
    border: 1px solid #aaa;
}

.pull-quote-author {
    border: none;
}

#subpage-main .bio-grid img,
.pull-quote-author img {
    width: 140px;
    height: 140px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.bio-grid>div>div,
.pull-quote-author>div {
    padding: .8ch 1.9ch;
    position: relative;
    height: 100%;
    width: 100%;
    line-height: 1.2;
    font-size: .9rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bio-grid p,
.pull-quote-author p {
    margin: 0;
}

.bio-grid p:first-child,
.pull-quote-author p:first-child {
    font-weight: bold;
    font-size: 1rem;
}

.bio-grid address {
    line-height: inherit;
    /* Overwrite BS defaults */
}

.bio-grid svg {
    width: 30px;
    height: 30px;
    margin-top: 5px;
}

@media (max-width: 1560px) and (min-width: 1200px) {
    .bio-grid>div>div,
    .pull-quote-author>div {
        min-height: 175px;
    }
}

@media (max-width: 1200px) and (min-width: 900px) {
    .bio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .bio-grid>div {
        flex-direction: column;
    }
    #subpage-main .bio-grid img {
        width: 100%;
        height: 100%;
    }
    .bio-grid>div>div {
        padding: .8ch 1ch;
        justify-content: flex-start;
    }
    .bio-grid p {
        /* max-width: calc(100% - 30px - 1ch); */
    }
    .bio-grid a {
        position: absolute;
        bottom: 100%;
        left: 1ch;
    }
}

@media (max-width: 650px) {
    .bio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.instructions-grid {
    list-style: none;
    padding: 0;
    grid-template-columns: var(--auto-2-columns);
    margin-top: 2rem;
}

.instructions-grid.condensed {
    grid-template-columns: var(--auto-3-columns);
}

.instructions-card {
    padding: var(--padding);
    /* display: grid;
    grid-template-columns: repeat(2, 1fr); */
    display: block;
    color: white;
    background: var(--blue);
    min-height: 30vh;
    border: none;
    margin: 0;
}

.condensed .instructions-card {
    min-height: unset;
    line-height: 1.3;
}

.instructions-card a {
    color: inherit;
    text-decoration: underline;
}

.instructions-card>section {
    margin-bottom: 1rem;
}

#subpage-main .instructions-card>ul {
    list-style: none;
    line-height: 1.2;
    /* text-align: right; */
    padding: 0;
    margin: 0;
}

.instructions-card>ul>li {
    margin-bottom: 10px;
}

.instructions-card>ul a::before {
    content: '';
    display: inline-block;
    height: 1em;
    width: 1em;
    background-repeat: no-repeat;
    background-position: 0 4px;
}

.instructions-card>ul a[data-link-type="video"]::before,
.instructions-card>ul a[href*="vid"]::before,
.instructions-card>ul a[href$=".avi"]::before,
.instructions-card>ul a[href$=".mpg"]::before {
    background-image: url(../images/video-icon.svg);
}

.instructions-card>ul a[data-link-type="document"]::before,
.instructions-card>ul a[href$=".pdf"]::before,
.instructions-card>ul a[href$=".doc"]::before {
    background-image: url(../images/document-icon.svg);
}

.instructions-card>ul a[data-link-type="login"]::before {
    background-image: url(../images/company-login-icon.svg);
}

.instructions-card>ul a[data-link-type="link"]::before,
.instructions-card>ul a[href$=".php"]::before,
.instructions-card>ul a[href$=".htm"]::before,
.instructions-card>ul a[href$=".html"]::before {
    background-image: url(../images/link-icon.svg);
}

.instructions-card>section {
    grid-column: 1/-1;
    align-self: flex-end;
}

.instructions-card>section>:last-child {
    margin-bottom: 0;
}

.instructions-card:nth-of-type(1)>:first-child::before {
    content: '1. ';
}

.instructions-card:nth-of-type(2)>:first-child::before {
    content: '2. ';
}

.instructions-card:nth-of-type(3)>:first-child::before {
    content: '3. ';
}

.instructions-card:nth-of-type(4)>:first-child::before {
    content: '4. ';
}

.instructions-card:nth-of-type(5)>:first-child::before {
    content: '5. ';
}

.instructions-card:nth-of-type(6)>:first-child::before {
    content: '6. ';
}

.instructions-card:nth-of-type(7)>:first-child::before {
    content: '7. ';
}

.instructions-card:nth-of-type(8)>:first-child::before {
    content: '8. ';
}

.instructions-card:nth-of-type(9)>:first-child::before {
    content: '9. ';
}

.instructions-card:nth-of-type(10)>:first-child::before {
    content: '10. ';
}

.condensed .instructions-card>:first-child::before {
    font-weight: bold;
    font-size: 22px;
    display: inline-block;
    margin-right: .3ch;
}

@media (max-width: 500px) {
    .instructions-card {
        grid-template-columns: 1fr;
    }
    #subpage-main .instructions-card>ul {
        order: 3;
        text-align: left;
        margin-top: 1rem;
    }
}

.contact-grid {
    grid-template-columns: repeat(3, 1fr);
}

.contact-grid span {
    display: block;
}

.contact-grid span:first-child {
    font-weight: bold;
    padding-bottom: .125em;
    border-bottom: 2px solid var(--blue);
    margin-bottom: .5em;
}

.contact-grid address:nth-child(2) span:first-child {
    all: revert;
    font-weight: bold;
}

@media (max-width: 1200px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid section:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 990px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid section:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .contact-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

.three-column-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.four-column-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    align-items: center;
    justify-items: center;
}

ul.three-column-grid,
ul.four-column-grid {
    list-style: none;
    padding-left: 0;
}

.col-md-10 .four-column-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.col-md-10 .three-column-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

[class*="-column-grid"]>* {
    /* target any 3 or 4 column grid with the class of "align-top/center/bottom" */
}

[class*="-column-grid"].align-top>* {
    margin: auto;
    margin-top: 0;
}

[class*="-column-grid"].align-center>* {
    margin: auto;
}

[class*="-column-grid"].align-bottom>* {
    margin: auto;
    margin-bottom: 0;
}


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


/* ISTA Digital */


/* @media (min-width: 991px) { */

#digital-intro-row:not(#mycanvas .row) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}


/* } */

#digital-intro-row>.column:nth-of-type(2) img {
    width: clamp(100px, 374px, 100%);
    margin: auto;
}

#digital-quote {
    padding-block: 1.25em;
    position: relative;
}

#digital-quote h4 {
    color: var(--blue);
    font-weight: 800;
    font-size: 2.2em;
    letter-spacing: -1.3px;
}

@media(max-width: 990px) {
    #digital-quote h4 {
        line-height: 1;
    }
}

@media(max-width: 767px) {
    #digital-quote h4 {
        font-size: 1.7em;
    }
}


/* ISTA China pages menu */

#page-title.ista-china {
    border-bottom: 10px solid #C1262D;
}

.ista-china #LP {
    position: absolute;
    padding: 0;
    bottom: 0;
    font-size: 1rem;
    left: calc(var(--side-margin) + 10px);
    right: calc(var(--side-margin) + 10px);
}

.ista-china #LP>ul>li>a {
    color: white;
}

.ista-china #LP>ul>li>a:hover,
.ista-china #LP>ul>li>a:focus {
    text-decoration: underline;
}

.ista-china #LP>ul>li:first-child>a {
    padding-left: 0;
}


/* Whova iFrame styles (european_packaging_symposium.php)*/

#subpage-main .iframe-row>.column {
    padding-top: 0;
    margin-top: 0;
}

#subpage-main .iframe-row div[style^="min-height: 750px;"] {
    min-height: unset !important;
}


/* Instructions (article#instructions)*/

#images-table tr {
    display: grid;
    grid-template-columns: 40% 1fr 1fr;
}

#images-table td:nth-child(2) {
    white-space: nowrap;
}


/* Staff & Contact (article#staff)*/

#staff address+p {
    margin-top: -.75rem;
}


/* Become a Member (article#become-a-member)*/

#become-a-member .card-grid {
    grid-template-columns: var(--auto-3-columns);
}

#become-a-member .block-link+.block-link {
    margin-top: .5em;
}

.subcategories {
    grid-column: 1 / -1;
    font-size: 20px;
    display: block;
    margin-top: 5px;
}

.member-numbers {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5%, 1fr));
    line-height: 1.1;
    margin-bottom: 2rem;
    grid-gap: 1rem 0;
}

.member-numbers:last-child {
    margin-bottom: 0;
}

.member-numbers li {
    text-align: center;
}

.member-numbers label {
    font-size: 16px;
    opacity: .95;
}

.member-numbers span {
    font-size: 30px;
    font-weight: normal;
    display: block;
    color: var(--blue);
    margin-bottom: 3px;
}

@media(max-width: 1200px) {
    .member-numbers {
        grid-template-columns: repeat(auto-fill, minmax(25%, 1fr));
    }
}

@media(max-width: 500px) {
    .member-numbers {
        grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    }
}

#subpage-main .benefits-grid {
    padding: 0;
    list-style: none;
    position: relative;
    --container-width: 1140px;
    overflow: hidden;
}

.benefits-grid>li {
    overflow: hidden;
}

.benefits-grid details {
    color: white;
    line-height: 1.2;
    padding: .5em 1ch;
    z-index: 1;
    font-size: 1rem;
    margin-bottom: 0;
    cursor: pointer;
}

.benefits-grid summary:focus {
    outline: none;
}

.benefits-grid section {
    font-size: 16px;
    font-weight: normal;
}

.benefits-grid section ul {
    list-style: disc;
    padding: 0;
}

@media (min-width: 768px) {
    .benefits-grid summary::-webkit-details-marker {
        display: none;
    }
    #subpage-main .benefits-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(2, 190px);
        grid-gap: 5px;
    }
    .benefits-grid>li {
        /* Put summary elements and images into a grid for positioning. Each row is half the height of the <summary> */
        display: grid;
        grid-template-rows: repeat(auto-fill, minmax(12px, 1fr));
        grid-template-columns: 1fr;
    }
    .benefits-grid>li {
        grid-column: span 2;
    }
    .benefits-grid>li:nth-child(2),
    .benefits-grid>li:nth-child(3) {
        grid-column: unset;
        grid-row: span 2;
    }
    .benefits-grid details {
        font-size: 1.1rem;
        font-weight: bold;
    }
    .benefits-grid details[open] {
        position: absolute;
        top: 0;
        bottom: 0;
        right: calc((var(--container-width) / 2) * -1);
        width: calc(var(--container-width) / 3);
        padding: 1.5rem;
        transform: translateX(calc(var(--container-width) * -.5));
        transition: transform .125s ease-in-out;
        z-index: 10;
        background: var(--green);
    }
    .benefits-grid details:not([open]) {
        grid-row: 1 / -1;
        grid-column: 1;
        align-self: end;
        background: rgba(0, 120, 193, .3);
        width: 100%;
        font-size: 1.15rem;
        font-weight: bold;
        line-height: calc(1em + 2px);
        transition: background .125s ease-in-out;
    }
    /* .benefits-grid li:hover details:not([open]), */
    .benefits-grid li:focus details:not([open]) {
        background: rgba(0, 136, 81, .3);
    }
    .benefits-grid details:not([open]) summary {
        filter: drop-shadow(0 1px 1px #00000080);
    }
    .benefits-grid details:not([open]) summary::before {
        /* Extend clickable area of <details> to cover entire section  */
        content: '';
        display: block;
        height: 435px;
    }
    .column>.benefits-grid [open] summary::after {
        /* ".column>" added to selector to prevent this style from showing in GPE  */
        content: '×';
        position: absolute;
        top: .5rem;
        right: 1.5rem;
        font-size: 30px;
        pointer-events: none;
    }
    #subpage-main .benefits-grid img {
        object-fit: cover;
        z-index: -1;
        width: 100% !important;
        height: 100% !important;
        /* Overwrite inline styles added by GPE  */
        grid-row: 1 / -1;
        grid-column: 1 / -1;
    }
    .benefits-grid li:nth-child(4) img,
    .benefits-grid li:nth-child(5) img {
        grid-column: span 2;
    }
    .benefits-grid [open] summary {
        margin-bottom: 10px;
        margin-top: .5rem;
    }
    .benefits-grid details:not([open]) summary::after {
        content: '' !important;
        display: inline-block;
        width: .5em;
        height: .5em;
        border-top: 2px solid currentColor;
        border-right: 2px solid currentColor;
        transform: rotate(45deg);
    }
    .benefits-grid details:not([open]) summary:hover::after,
    .benefits-grid details:not([open]) summary:focus::after {
        animation-name: move-and-fade-2;
        animation-duration: .62s;
        animation-delay: .125s;
        animation-iteration-count: infinite;
        animation-timing-function: ease-in-out;
    }
    @keyframes move-and-fade-2 {
        0% {
            transform: translateX(0) rotate(45deg);
            opacity: 1;
        }
        100% {
            transform: translateX(.75em) rotate(45deg);
            opacity: 0;
        }
    }
}

.column>.benefits-grid summary::after {
    /* ".column>" added to selector to prevent this style from showing in GPE  */
    content: '+';
    display: inline-block;
    margin-left: 0.5ch;
}

@media screen and (min-width: 768px) and (min--moz-device-pixel-ratio:0) {
    /* Firefox only styles  */
    #subpage-main .benefits-grid img {
        grid-row: 1 / -1;
        /* Image won't cover the entire list item without this style  */
    }
}

@media (max-width: 1200px) {
    #subpage-main .benefits-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(auto-fit, 190px);
        height: calc(190px * 3);
    }
}

@media (max-width: 767px) {
    #subpage-main .benefits-grid {
        display: block;
        height: unset;
    }
    .benefits-grid li {
        display: flex;
        flex-direction: column-reverse;
    }
    .benefits-grid details {
        position: relative;
        border-bottom: 1px solid white;
        margin-bottom: .5rem;
        background: var(--blue);
        padding: .75rem 1rem;
    }
    .benefits-grid summary {
        margin-bottom: 5px;
    }
    .benefits-grid details p {
        margin-top: 5px;
    }
    #subpage-main .benefits-grid img {
        position: relative;
        width: 100% !important;
        /* Overwrite automatically added width attribute from the CMS  */
        max-height: 45vh;
        object-fit: cover;
    }
}


/* I seriously hate the Grid Editor  */

#mycanvas .benefits-grid * {
    all: revert;
}

#mycanvas .benefits-grid [open] summary::after {
    /* Remove close icon on the <summary>'s in the editor */
    content: none;
}


/* Getting Started with Design & Testing (article#getting-started)*/

#getting-started #selecting-heading::before {
    content: '';
    background-image: url(https://ista.org/refresh/images/guidelines-icon.svg);
    display: inline-block;
    height: 1em;
    width: 1em;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
    margin-right: 0.5ch;
}

#getting-started #consensus-heading::before {
    content: '';
    background-image: url(https://ista.org/refresh/images/ansi-new.svg);
    display: inline-block;
    height: 1em;
    width: 1.3em;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom;
    margin-right: .5ch;
}


/* Procedures table, Recertification table  */

#procedures-table,
#certification-table {
    width: 100%;
}

#procedures-table thead [rowspan="2"] {
    font-size: 1.1em;
}

#procedures-table thead [colspan="3"] {
    font-size: 1.1em;
}

#subpage-main table#procedures-table:not([id^="gs"]):not([class^="gs"]) td,
#subpage-main table#certification-table:not([id^="gs"]):not([class^="gs"]) td {
    /* Procedures table td  */
    /* Long selector used to gain specificity over :not selectors in base style  */
    vertical-align: middle;
}

@media (max-width: 500px) {
    #procedures-table tr {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
    }
    #procedures-table thead tr:nth-of-type(2) td:nth-of-type(1) {
        grid-column: 2/2;
    }
    #procedures-table thead tr:nth-of-type(2) td:nth-of-type(2) {
        grid-column: 3/3;
    }
    #procedures-table thead tr:nth-of-type(2) td:nth-of-type(4) {
        grid-column: 4/4;
    }
    #procedures-table thead [rowspan="2"],
    #procedures-table thead [colspan="3"] {
        display: none;
    }
}


/* Distribution Environment Data Collection Program (article#get-involved)*/

#distribution-environment-data .card-grid {
    grid-template-columns: var(--auto-2-columns);
}


/* Get Involved (article#get-involved)*/

#get-involved .multi-column-list {
    columns: 2;
}

#get-involved .button-link {
    /* margin-top: 2em; */
}


/* Test Proceedures (article#test-procedures) */

#test-procedures [class*="-grid"],
#guidance-documents [class*="-grid"],
.ebook-grid {
    grid-template-columns: var(--auto-3-columns);
    grid-gap: 2rem 15px;
}

.ebook-grid {
    margin-bottom: 2rem;
}

.ebook-grid img {
    width: 230px;
    margin: auto;
}

.ebook-grid .block-link {
    white-space: normal;
}

#test-procedures #non-simulation h3::before,
#non-simulation-section .text-card ul,
#non-simulation-section+.col-md-12 .text-card ul {
    background: #EE2F3E;
}

#test-procedures #partial-simulation h3::before,
#partial-simulation-section .text-card ul,
#partial-simulation-section+.col-md-12 .text-card ul {
    background: #e0c200;
}

#test-procedures #general-simulation h3::before,
#general-simulation-section .text-card ul,
#general-simulation-section+.col-md-12 .text-card ul {
    background: #00A65F;
}

#test-procedures #enhanced-simulation h3::before,
#test-procedures #data-depot h3::before,
#enhanced-simulation-section .text-card ul,
#enhanced-simulation-section+.col-md-12 .text-card ul,
#data-depot-section+.col-md-12 .text-card ul:not(main>ul) {
    background: #F58520;
}

#test-procedures #member-performance h3::before,
#member-performance-section .text-card ul,
#member-performance-section+.col-md-12 .text-card ul {
    background: #00AEEF;
}

#test-procedures #development-tests h3::before,
#development-tests-section .text-card ul,
#development-tests-section+.col-md-12 .text-card ul {
    background: #0154A6;
}

#test-procedures .text-card ul:not(main>ul) {
    color: white;
    margin: 0 calc(var(--padding) * -1) calc(var(--padding) * -1);
    padding: var(--padding);
}

#test-procedures .text-card ul * {
    color: inherit;
}

#subpage .quick-links-grid {
    list-style: none;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    padding: 0;
}

.quick-links-grid>li {
    line-height: 1.2;
    text-align: center;
    font-size: 16px;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-gap: 5px;
    position: relative;
}

.quick-links-grid a {
    font-size: 16px;
}

.quick-links-grid a::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

.quick-links-grid img {
    margin: auto;
    max-height: 110px;
}

@media (max-width: 500px) {
    .quick-links-grid a {
        max-width: 22ch;
        display: block;
        margin: 0 auto;
    }
}


/* Certify Your Lab (article#lab-certification) */

.heading-wrapper {
    display: flex;
    gap: 1rem 15px;
}

.heading-wrapper>div:last-child {
    display: flex;
    /* gap: 1rem 15px; */
    flex-direction: column;
    align-content: center;
}

.heading-wrapper>div:last-child {
    margin-top: -2rem;
}

@media (max-width: 660px) {
    .heading-wrapper {
        display: flex;
        flex-direction: column-reverse;
    }
    .heading-wrapper>div:last-child {
        margin-top: 0;
        align-items: center;
    }
}


/* Certified Packaging Laboratory Professionals (article#certified-packaging-professionals) */

.certifications-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.certification-badge {
    background: #444;
    color: white;
    border-radius: 2em;
    text-align: center;
    line-height: 1.2;
    padding: 5px;
    padding-left: 2em;
    position: relative;
    width: 240px;
}

.certification-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: -.5em;
    bottom: -.5em;
    width: calc(4em - 2px);
    display: block;
    background: magenta;
    border-radius: 50%;
    border: 4px solid white;
}

li:nth-of-type(1) .certification-badge::before {
    background: #C1D735;
}

li:nth-of-type(2) .certification-badge::before {
    background: #00AEEF;
}

li:nth-of-type(3) .certification-badge::before {
    background: #0154A6;
}

.certification-badge::after {
    content: '✔';
    position: absolute;
    left: calc(2em - 2.3ch);
    top: calc(50% - 0.6em);
    font-size: 2em;
}

.certification-badge span {
    display: block;
}

.certification-badge span:first-child {
    font-weight: bold;
    /* padding: .5em 0; */
}

.certification-badge a {
    color: inherit;
}

#certified-packaging-professionals .card-grid {
    grid-template-columns: var(--auto-3-columns);
}

#certified-packaging-professionals .text-card h3::before {
    content: '';
    position: absolute;
    top: calc(var(--padding) * -1);
    bottom: calc(var(--padding) * -1);
    left: calc(var(--padding) * -1);
    right: calc(var(--padding) * -1);
    z-index: -1;
}


/* Certified Thermal Professionals (article#certified-thermal-professionals) */

#certified-thermal-professionals .certification-badge span:first-child {
    padding: .5em 0;
}


/* Statement on Racism & Injustice (article#racism-statement) */

@media (min-width: 990px) {
    #racism-statement .row:first-child {
        display: flex;
    }
    #racism-statement .row:first-child [class*="col-"]:nth-of-type(2) {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

#racism-statement .row:first-child img {
    width: 200px;
}


/* Calendar (article#events-page) */


/* All Events (article#all-events) */

#all-events .four-column-grid {
    justify-items: flex-start;
}

#all-events .four-column-grid img {
    max-width: 250px;
}


/* Events pages, includes TransPack, TempPack, The Omni-Channel Packaging Strategies, China Packaging Symposium, European Packaging Symposium, Asian Pacific Packaging Symposium (article#events-pages) */

#event-details {
    font-size: .7em;
}

#mms-main #event-details {
    /* I seriously hate all of the hoops I have to jump through for the Grid Editor */
    font-size: revert;
}


/* Online Community (article#online-community) and InTouch E-Newsletter (article#e-newsletter)*/

@media (max-width: 500px) {
    #online-community,
    #e-newsletter {
        margin-top: 1rem;
    }
}


/* PackSight (article#packsight) */

#packsight .col-md-12+[class*="col-md-"] {
    margin-top: 1rem;
}

#packsight [class*="-grid"] {
    grid-template-columns: var(--auto-3-columns);
    grid-gap: 2rem 15px;
}

#packsight .alternating-row {
    margin-bottom: 2.5em;
}

@media (min-width: 1201px) {
    #packsight .introduction-row:not(.gm-editing) {
        display: grid;
        grid-template-columns: 1fr max-content;
        grid-gap: 2rem 30px;
    }
    #packsight .introduction-row::before,
    #packsight .introduction-row::after {
        content: none;
    }
    #packsight .introduction-row .column {
        margin: 0;
    }
    #packsight .introduction-row .column:first-child {
        grid-column: 1/-1;
    }
}

#packsight .introduction-row .column {
    width: 100%;
}


/* Advocate Research (article#advocate-research) */

#advocate-research .card-grid,
#data-collection-analysis .card-grid,
#process-standards .card-grid {
    grid-template-columns: var(--auto-2-columns);
}


/* Process Standards (article#process-standards) */

#process-standards ul h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

#process-standards ul h4+ul {
    margin-top: 5px;
}

@media (min-width: 768px) {
    #process-standards .three-column-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.auditors-grid {
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
}


/* Guidance Documents (article#guidance-documents) */

@media (min-width: 768px) {
    #guidance-documents .text-card main {
        min-height: 250px;
    }
}


/* Leadership (article#leadership) */

#leadership .multi-column-list {
    columns: 2;
}


/* Countdown timer page */

#countdown-banner {
    position: relative;
    padding-bottom: 45px;
    background: #184F83;
}

#countdown-banner img {
    margin: 0 auto 10px;
}

#countdown-timer {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    width: 200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
}

#countdown-timer label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 14px;
    font-weight: normal;
    filter: drop-shadow(2px 2px 2px rgb(0 0 0 / 30%));
}

#countdown-timer label>span {
    display: block;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    border: 4px solid white;
    padding: 5px 0;
    width: 4ch;
    height: 4ch;
    padding-top: calc((4ch - 1em - 7px) / 2);
    font-weight: bold;
    margin-bottom: 3px;
}

@media (max-width: 1200px) {
    #countdown-banner {
        padding-bottom: 55px;
    }
}

@media (max-width: 600px) {
    #countdown-banner {
        padding-bottom: 70px;
    }
}


/* ISTA in Europe (article#ista-in-europe) */

[src="https://ista.org/images/brochure-thumb-angled.png"] {
    /* Thumbnail of brochure */
    margin: auto;
}

#ista-in-europe .member-numbers {
    grid-template-columns: repeat(auto-fill, minmax(12%, 1fr));
}

@media (max-width: 990px) {
    #ista-in-europe .member-numbers {
        grid-template-columns: repeat(auto-fill, minmax(24%, 1fr));
    }
}

.why-join-wrapper {
    display: flex;
    gap: var(--padding);
    align-items: center;
    justify-content: center;
}

.why-join-wrapper+.why-join-wrapper {
    margin-top: 1.5em;
}

.why-join-wrapper img {
    width: 140px;
    border-radius: 50%;
    background: #E6F1F9;
}

.why-join-wrapper h4 {
    font-size: 22px;
    margin-bottom: 5px;
}

@media (max-width: 767px) {
    .why-join-wrapper {
        flex-wrap: wrap;
    }
}

.european-board-list {
    margin: 0;
    padding: 0;
    columns: 5;
    gap: var(--padding);
    list-style: none;
    column-fill: balance;
}

.european-board-list li {
    page-break-inside: avoid;
}

.european-board-list li+li {
    margin-top: 10px;
}

@media (max-width: 1560px) {
    .european-board-list {
        columns: 4;
    }
}

@media (max-width: 1200px) {
    .european-board-list {
        columns: 3;
    }
}

@media (max-width: 990px) {
    .european-board-list {
        columns: 2;
    }
}

@media (max-width: 500px) {
    .european-board-list {
        columns: 1;
    }
}


/* Celebrating Our Volunteers (article#celebrating-volunteers) */

.interview-wrapper {
    display: flex;
    gap: 1rem 30px;
}

.interview-wrapper blockquote {
    border: none;
    padding: 0;
    font-size: 25px;
    font-style: italic;
    font-weight: bold;
    position: relative;
    color: var(--blue);
    line-height: 1.3;
}

.interview-wrapper blockquote::before {
    content: open-quote;
    line-height: 1;
}

@media (min-width: 1021px) {
    .interview-wrapper blockquote::before {
        position: absolute;
        left: -0.85ch;
        font-size: 1.5em;
    }
}

@media (min-width: 901px) {
    .pull-quote-author img {
        height: 140px !important;
    }
}

@media (max-width: 1560px) {
    .interview-wrapper {
        flex-direction: column-reverse;
    }
}


/* Foundation Home (main#foundation-home-main) */

.foundation-home #banner-row+section {
    margin-top: -1px;
}

.foundation-home-main .icon-card>section {
    display: flex;
}

.foundation-home-main .icon-card>section>img {
    width: 120px !important;
    min-height: unset !important;
    max-width: 100% !important;
    margin: auto;
}

#homepage-main.foundation-home-main *[class$="icon-card"]>h3 {
    /* Weird selector needed to override specificity */
    font-size: 20px;
}

#how-help-row>.column:not(#mycanvas .column) {
    display: flex;
    gap: 30px 1rem;
    align-items: center;
}

#homepage-main.foundation-home-main #supporters-section::after {
    background: url(../images/womencaps-cropped.png);
    opacity: .3;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#supporters-section h2 {
    color: inherit;
}

.foundation-home-main #supporters-row .three-column-grid,
.supporters-row .three-column-grid {
    align-items: center;
}

#supporters-row img,
#subpage-main .supporters-row img {
    max-width: 300px;
    margin: auto;
}

#supporters-row img[alt*="Johnson"],
#subpage-main .supporters-row img[alt*="Johnson"] {
    max-width: 200px;
}

.supporters {
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    letter-spacing: -1px;
    line-height: 1;
}

@media (max-width: 600px) {
    #how-help-row>.column {
        flex-direction: column;
    }
}


/*  Foundation Pages -----------
----------------------------------------
 */


/* What We Do (article#what-we-do) */

.grants-headline,
.scholarships-heading,
.contributions-heading {
    position: relative;
    max-width: -moz-fit-content;
    max-width: fit-content;
    padding-top: 90px;
    margin-top: -90px;
}

.grants-headline::after,
.scholarships-heading::after,
.contributions-heading::after {
    content: '';
    width: 1em;
    height: 1em;
    top: 90px;
    right: -2ch;
    display: block;
    background-size: cover;
    position: absolute;
}

.grants-headline::after {
    background-image: url(../photos/funding-icon2.svg);
}

.scholarships-heading::after {
    background-image: url(../photos/education-icon1.svg);
}

.contributions-heading::after {
    background-image: url(../photos/awards-icon1.svg);
}

#mycanvas .grants-headline,
#mycanvas .scholarships-heading,
#mycanvas .contributions-heading,
#mycanvas .grants-headline::after,
#mycanvas .scholarships-heading::after,
#mycanvas .contributions-heading::after {
    /* Work around the Grid Editor  */
    max-width: unset;
    content: none;
    padding-top: unset;
    margin-top: unset;
}


/* R. David LeButt Award page (article#award-page) */

#award-page .presentation-card {
    padding-bottom: 1.5rem;
}

#award-page .presentation-card img {
    object-fit: cover;
    min-height: unset !important;
}

#award-page .introduction-column img[alt*="Dave LeButt"] {
    border-radius: 50%;
}

@media (min-width: 700px) {
    #award-page .introduction-column:not(#mycanvas .introduction-column) {
        display: flex;
        gap: 30px 1rem;
        align-items: flex-start;
        flex-direction: row-reverse;
    }
}

@media (max-width: 700px) {
    #award-page .introduction-column img[alt*="Dave LeButt"] {
        float: right;
        margin-left: 1rem;
        margin-bottom: 1rem;
    }
}


/* Research Grants page (#research-grant-page)*/

.grants-grid {
    display: grid;
    padding: 0;
    list-style: none;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    margin-top: 1.5rem;
    gap: 20px !important;
    /* Overwrite gap styles for all "grids" */
}

.grants-grid li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    line-height: 1;
}

.grants-grid h3 {
    margin: 0;
    font-size: 1rem;
    min-height: 5.5em;
}

.grants-grid figure {
    text-align: center;
}

@media (min-width: 768px) {
    .grants-grid figure {
        font-size: 14px;
    }
}

.grants-grid h3+figure {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 0;
}

.grants-grid .one-photo * {
    grid-column: 1/-1;
}

.grants-grid figure+figure {
    margin-top: .5rem;
    padding-top: .75rem;
    border-top: 1px solid #bbb;
    display: flex;
    flex-direction: column-reverse;
    gap: 5px;
}

@media (max-width: 1560px) and (min-width: 1201px) {
    .grants-grid h3 {
        min-height: 8em;
    }
    .grants-grid h3+figure figcaption {
        min-height: 3em;
    }
}

@media (max-width: 990px) {
    .grants-grid h3 {
        min-height: 7em;
    }
}

@media (max-width: 901px) {
    .grants-grid h3 {
        min-height: 5.5em;
    }
}

@media (max-width: 767px) {
    .grants-grid {
        grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
    }
    .grants-grid h3+figure {
        grid-template-columns: 120px 120px;
        margin: auto;
    }
}

@media (max-width: 540px) {
    .grants-grid h3 {
        min-height: unset;
    }
}


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

#gm-canvas section[id^="section-"] {
    /* Remove padding from sections in GPE so editor page isn't so long in length */
    padding-top: unset;
    padding-bottom: unset;
}

#gm-canvas .gm-tools a {
    /* Uses hover style for normal state so that the normally blue icons can be still be seen no matter what the background color is  */
    background-color: #666;
    color: white !important;
    text-decoration: none;
}

#gm-canvas .gm-editing {
    /* Replace border styles that add extra pixels to the side of the elements */
    border: none;
    outline: solid 1px #2fa4e7;
}

@supports (display:block) {
    /* We move the display:flex from the "...-wrapper" element to the element actually wrapping the content to be flex in the GPE */
    .gm-editing [class*="-wrapper"] {
        display: block;
    }
    .gm-editing [class*="-wrapper"] .gm-content {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
}

#gm-canvas .gradient-background h1,
#gm-canvas .gradient-background h2,
#gm-canvas .gradient-background h3,
#gm-canvas .gradient-background h4,
#gm-canvas .gradient-background p {
    color: unset;
}


/*  System pages and MMS ---------------
----------------------------------------
 */

.eachvideo h3 {
    font-size: 24px;
}


/* Forms Builder automatically adds <br>'s to the markup. */

ul.forms-builder-ul br,
ul.forms-builder-ul+br {
    display: none;
}


/* Table used in custom members menu (member view) */

.members-menu-table td {
    padding: 0 10px;
}

.members-menu-table ul {
    padding-left: 1rem;
}


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

footer {
    padding-top: 10vh;
    padding-top: 5vh;
    padding-bottom: 7.5vh;
    color: white;
    background-color: #4a4a4a;
    position: relative;
    z-index: 0;
}

#homepage footer {
    /* Needed to cover #contacts-banner when page is scrolled to the end */
    z-index: 11;
}

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

footer a,
footer a:hover,
footer a:focus {
    color: inherit;
    position: relative;
    z-index: 2;
    text-decoration: none;
    filter: none;
    display: inline-block;
}

footer nav a {
    line-height: 1.1;
}

footer a::before {
    content: '';
    background: var(--blue);
    opacity: .7;
    position: absolute;
    top: 100%;
    bottom: 0;
    left: 0;
    right: 0;
    transition: top .125s ease-out;
    z-index: -1;
}

footer a:focus::before,
footer a:hover::before {
    top: 0;
}


/* footer .social-media a:focus::before,
footer .social-media a:hover::before {
    top: calc(100% - 16px);
} */

footer a.button-link::before {
    content: none;
}

footer nav>ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
    grid-gap: 30px;
}

footer nav>ul ul {
    font-size: 16px;
}

footer nav>ul>li>h2 {
    font-size: 1rem;
    font-weight: normal;
    padding-bottom: .25em;
    border-bottom: 2px solid var(--blue);
    margin-bottom: 1em;
    display: block;
}

footer nav li {
    display: block;
    margin-bottom: .75rem;
}

footer nav a[href*="tel:"] {
    display: inline-block;
}

.social-media>li {
    display: inline-block;
    margin-right: .5rem;
    margin-bottom: 0;
}

footer .wrapper:last-of-type {
    margin-top: 7.5vh;
    font-size: 16px;
}

footer address {
    /* Overwrite BS defaults */
    margin-bottom: inherit;
    font-style: inherit;
    line-height: inherit;
    margin-top: -5px;
}

footer .social-media img {
    padding-bottom: 5px;
}


/* 2-14-22 Temporary Homepage Slider pseudo content image */

#home-hero-banner h1::before {
    content: '';
    width: calc(100% - 30px);
    /* background-image: url(https://ista.org/images/ista-forum-2022.svg); */
    background-image: url(https://ista.org/images/ISTA-Forum-Rule-White.png);
    height: 196px;
    height: 100px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    max-width: 100%;
    margin-bottom: 1.25rem;
}


/* #home-hero-banner::after {
    background: none;
} */

#home-hero-banner h1::before {
    content: none;
}


/* @media (max-width: 1700px) {
    #home-hero-banner h1::before {
        height: 146px;
    }
}

@media (max-width: 1400px) {
    #home-hero-banner h1::before {
        height: 110px;
    }
} */

@media (max-width: 1240px) and (min-width: 1201px) {
    #home-hero-banner h1::before {
        /* content: none; */
        position: relative;
        top: 23px;
    }
}

@media (max-width: 1100px) and (min-width: 990px) {
    #home-hero-banner h1::before {
        /* content: none; */
        position: relative;
        top: 23px;
    }
}


/* @media (max-width: 1400px) {
    #home-hero-banner.video-test {
        height: 70vh;
    }
}

@media (max-width: 1215px) {
    #home-hero-banner.video-test {
        height: 60vh;
    }
} */


/* MMS Members Menu */

style+#member_menu_wrap_5+#member_custom_menu_wrap_5 .btn-default {
    background: var(--blue);
    font-size: 11px;
    padding: .8em 4ch;
    display: inline-block;
    color: white;
    border-radius: 2em;
    border: none;
    text-align: center;
}

@-moz-document url-prefix() {
    @media (max-width: 1400px) {
        #home-hero-banner.video-test {
            height: 60vh !important;
        }
    }
    @media (max-width: 1215px) {
        #home-hero-banner.video-test {
            height: 50vh !important;
        }
    }
}