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

:root {
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    --green: #4c8f76;
    --gray: #555;
    --text: rgb(66, 62, 62);
    --header-padding: 12px;
    --row-padding: 3rem;
    --container-width: 100%;
    /* --scrollbar-width: calc(100vw - 100%); */
    --scrollbar-width: 17px;
    --full-width: calc(100vw + var(--scrollbar-width));
    --side-margin: calc((var(--full-width) - var(--container-width)) / -2);
}

@media (min-width:768px) {
     :root {
        --container-width: 750px;
    }
}

@media (min-width:991px) {
     :root {
        --container-width: 970px;
    }
}

@media (min-width:1201px) {
     :root {
        --container-width: 1170px;
    }
}

body {
    font-size: inherit !important;
    font-family: inherit !important;
    overflow-x: hidden;
    color: var(--text);
}

@media (max-width: 767px) {
     :root {
        --row-padding: 2rem;
        --scrollbar-width: 0px;
        --side-margin: 0px;
    }
}


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

body {
    color: var(--purple);
    font-size: inherit !important;
    font-family: inherit !important;
}

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

p:empty {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    margin-bottom: .75em;
    padding: 0;
    font-weight: bold;
    color: var(--purple);
}

h1 {
    font-size: 60px;
}

h2 {
    font-size: 37px;
}

h3 {
    font-size: 32px;
}

h4 {
    font-size: 27px;
}

h5 {
    font-size: 23px;
}

h6 {
    font-size: 20px;
}


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

 */

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

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

.button-link,
input[type="submit"]:not(#mms-main input),
.mobile-login button {
    background: var(--yellow);
    padding: 0.9em 2ch;
    display: inline-block;
    border-radius: 2em;
    position: relative;
    text-align: center;
    text-shadow: none;
    text-transform: capitalize;
    font-weight: bold;
    font-size: inherit;
    border: 2px solid currentColor;
    transition: .125s background ease-in-out, .125s border-color ease-in-out, .125s color;
    line-height: 1;
}

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

.button-link:hover,
.button-link:focus {
    text-decoration: none;
    background: var(--gray);
    border-color: var(--gray);
    color: white;
}

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

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

.arrow-link {
    position: relative;
    display: block;
    width: fit-content;
}

.arrow-link:not(:first-child) {
    margin-top: 1em;
}

.arrow-link:not(:last-child) {
    margin-bottom: 1em;
}

.arrow-link::before {
    /* Underline under link */
    content: '';
    left: 0;
    right: 100%;
    border-bottom: 2px solid white;
    bottom: -0.25em;
    position: absolute;
    transition: .125s right ease-in-out;
}

.arrow-link:hover::before,
.arrow-link:focus::before {
    /* Underline under link */
    right: 0;
}

.arrow-link::after {
    /* Adds the arrow following link text */
    content: '';
    width: 0.5em;
    height: 0.5em;
    border: 2px solid currentColor;
    border-top: none;
    border-left: none;
    transform: rotate(-45deg);
    display: inline-block;
    margin-left: 0.5ch;
    position: relative;
    top: -1px;
}


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

.wrapper {
    /* .wrapper acts as a more symantic stand-in for <container><row><col-md-12></col-md-12></row></container> in sections of this build that don't require stacking columns  */
    margin-right: auto;
    margin-left: auto;
    max-width: 100%;
    position: relative;
    height: inherit;
    /* padding-left: 15px;
    padding-right: 15px; */
    width: calc(var(--container-width) - 30px);
}

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

.full-width {
    /* Make an element span the width of the viewport */
    /* 13px to compensate for width of scrollbar */
    position: relative;
    left: var(--side-margin);
    right: var(--side-margin);
    width: calc(100vw + 13px);
    width: var(--full-width);
}

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

.background-row:not(#mycanvas .background-row) {
    background: url(../images/pattern.webp);
    background-size: cover;
    padding: 1rem;
    position: relative;
    left: var(--side-margin);
    right: var(--side-margin);
    width: calc(100vw + 13px);
    display: flex;
}

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

#subpage-main:has(.background-row:last-child) {
    /* If .background-row is the last row, don't include a gap between main and footer */
    margin-bottom: 0;
    padding-bottom: 0;
}

#subpage-main>.background-row:last-child {
    /* If .background-row is the last row, don't include a gap between main and footer */
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .background-row:not(#mycanvas .background-row)>.column {
        font-size: 22px;
        width: 550px;
        max-width: 100%;
        transform: translateX(-15px);
    }
}

.row-background:not(#mycanvas .row-background) {
    position: relative;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    padding-left: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 30px;
}

.row-background:not(#mycanvas .row-background):last-child {
    padding-top: 3.5rem;
    padding-bottom: 4.5rem;
}

.row-background:not(#mycanvas .row-background)::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -666vw;
    right: -666vw;
    display: block;
    background-color: var(--gray);
    opacity: .25;
}

.row-background:not(#mycanvas .row-background)>.column {
    background: white;
    padding: 1.5rem 30px;
    border-radius: 5px;
}

@media (min-width: 992px) {
    .row-background:not(#mycanvas .row-background)>.col-md-9 {
        width: calc(75% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-8 {
        width: calc(66.7% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-7 {
        width: calc(58.3% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-6 {
        width: calc(50% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-5 {
        width: calc(41.7% - 15px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-4 {
        width: calc(33.3% - 20px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-3 {
        width: calc(25% - 20px);
    }
    .row-background:not(#mycanvas .row-background)>.col-md-2 {
        width: calc(20% - 20px);
    }
}

@media (max-width: 990px) {
    .container,
    .wrapper {
        /* Extra wiggle room at a breakpoint that needs it  */
        width: 100%;
    }
    .full-width,
    .background-row {
        --side-margin: -15px;
        left: var(--side-margin);
        right: var(--side-margin);
        width: calc(100vw + 30px);
    }
    .row-background:not(#mycanvas .row-background) {
        padding-right: 15px;
    }
    .row-background::before {
        left: 0;
        right: 0;
    }
}

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

.offscreen {
    /* This class allows an element to be read by a screenreader without appearing in the viewport  */
    position: absolute;
    left: -666vw;
}

@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(--secondary);
}

blockquote p {
    font-size: 1.05em;
}


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

#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-top: none;
}

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

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

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

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

.centered-row .column {
    text-align: center;
}


/* Feed items */

.feed-item {
    padding: .25rem 20px;
    border-radius: 5px;
}

.feed-item h3 {
    font-size: 1.1rem;
}

.feed-item *:not(:last-child) {
    margin-bottom: .5rem;
}


/* Slideshow defaults */

.carousel {
    font-size: 20px;
}

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

.caption-text {
    font-size: 28px;
    font-weight: bold;
    display: block;
    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: "›";
}


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


/*  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;
    right: -120%;
    width: 300px;
    background-color: white;
    transition: right 300ms cubic-bezier(1.000, 0.010, 0.0, 1.000);
    color: #444;
}

#mobileMenuWrapper.open {
    right: 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;
}

#mobile-menu>li+li,
#mobile-menu .top-links>li:not(:last-child) {
    border-bottom: 1px solid lightgray;
    width: 100%;
}

#mobileMenuWrapper #mobile-menu a,
#mobileMenuWrapper .top-links a,
#mobileMenuWrapper .top-links button {
    display: inline-block;
    width: 100%;
    color: var(--gray);
    font-size: 20px;
    font-weight: normal;
    margin: 0.75em 0;
}

#mobileMenuWrapper .mDropdown {
    display: none;
    list-style: none;
    padding: 0;
    background: none;
    margin-bottom: .75em;
}

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

#mobileMenuWrapper #mobile-menu .mDropdown a {
    font-size: 16px;
    padding-left: 2ch;
}

#mobile-menu .top-links {
    flex-direction: column;
    align-items: flex-start;
    justify-content: unset;
    gap: 0.5rem;
    padding: 0;
}

#mobileMenuWrapper #mobile-menu .top-links .button-link,
#mobile-menu .top-links li:has(.button-link) {
    display: none;
}

#mobileMenuWrapper #mobile-menu .login-link {
    padding: 0;
    text-align: left;
}

#mobile-menu .social-list {
    gap: 1em 2ch;
}


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


/* Top links */

.top-links {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    gap: 1rem 30px;
    align-items: center;
    list-style: none;
    padding-top: 5px;
    padding-bottom: 5px;
    font-weight: 500;
    margin-bottom: 0;
}

.top-links a {
    color: var(--gray);
}

.top-links a:hover,
.top-links a:focus {
    color: var(--green);
}

.top-links .button-link {
    border-color: currentColor;
    background: white;
    border-width: 1px;
}

.login-link {
    appearance: none;
    background: none;
    border: none;
    color: var(--gray);
    transition: .125s ease-in-out color;
}

.login-link:hover,
.login-link:focus {
    color: var(--green);
}

.top-links a.button-link {
    font-weight: 500;
}

.top-links a.button-link::after {
    content: '';
    width: 0.5em;
    height: 0.5em;
    border: 2px solid currentColor;
    border-top: none;
    border-left: none;
    transform: rotate(-45deg);
    display: inline-block;
    margin-left: 0.5ch;
    position: relative;
    top: -1px;
}

.top-links a[href^="tel"] {
    position: relative;
    line-height: 1;
}

.top-links a[href^="tel"]::before {
    content: url(../images/phone-icon.svg);
    display: inline-block;
    margin-right: 0.5ch;
    position: relative;
    bottom: -3px;
}

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


/* Social list */

.social-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1em 1ch;
    padding: 0;
    margin: 0;
}


/* Header */

header.wrapper {
    display: flex;
    gap: 1rem 30px;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 101;
    padding-top: var(--header-padding);
    padding-bottom: var(--header-padding);
}

header.wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    opacity: .9;
    background: white;
    z-index: -1;
    transition: .125s opacity ease-in-out;
}

header.scrolled {
    position: fixed;
    left: calc(var(--side-margin) * -1);
}

header.scrolled::before {
    opacity: 1;
}

header img {
    width: 230px;
    max-width: 100%;
    height: auto;
    display: block;
    /* transition: .0125s width linear; */
    transition: .125s width ease-in-out;
}

header.scrolled img {
    width: 152px;
}


/* Desktop menu  */

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

#nav_menu>ul {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem 3ch;
}

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

#nav_menu li {
    position: relative;
}

#nav_menu>ul>li>a {
    transition: color .125s ease-in-out;
    position: relative;
    text-transform: capitalize;
    font-size: 20px;
    color: var(--green);
    font-weight: 500;
    padding: 0;
}

#nav_menu>ul>li>a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 100%;
    transition: .125s right ease-in-out;
    height: 3px;
    background: var(--yellow);
}

#nav_menu>ul>li>a:hover::before,
#nav_menu>ul>li>a:focus::before {
    right: 0;
}

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

#nav_menu a:hover,
#nav_menu a:focus,
#nav_menu .nav .open>a,
#nav_menu .nav .open>a:focus,
#nav_menu .nav .open>a:hover {
    background: transparent;
}

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

#nav_menu .dropdown-menu {
    /* Dropdown menu  */
    --offset: 30px;
    padding: 0.5em 1ch 1em;
    border: none;
    border-radius: 0;
    top: var(--offset);
    box-shadow: none;
    font-size: 1rem;
}

#nav_menu .dropdown-menu::before {
    /* Extend "hitbox" of menu into hover area for the menu item that will trigger it */
    content: '';
    position: absolute;
    top: calc(var(--offset) * -1);
    bottom: 100%;
    left: 0;
    right: 0;
    background: transparent;
    z-index: -1;
    cursor: pointer;
}

#nav_menu .dropdown-menu::after {
    /* Add back box-shadow that was removed from .dropdown-menu to avoid showing the extended hitbox */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    z-index: -1;
}

#nav_menu .dropdown-menu:hover,
#nav_menu .dropdown-menu:focus {
    display: block;
}

#nav_menu .dropdown-menu a {
    text-decoration: none;
    background: transparent;
    transition: .125s color ease-in-out;
    padding: .5em 1ch;
}

#nav_menu .dropdown-menu a:hover,
#nav_menu .dropdown-menu a:focus {
    color: var(--green);
}

@media (max-width: 990px) {
    #nav_menu>ul {
        gap: 0 2ch;
    }
    #nav_menu>ul>li>a {
        font-size: 18px;
    }
}

@media (max-width: 850px) {
    #nav_menu>ul {
        gap: 0 1.5ch;
    }
    #nav_menu>ul>li>a {
        font-size: 1rem;
    }
}


/* Mobile menu trigger  */

.mobileMenuTrigger:not(.triggerClose) {
    border: none;
    padding: 10px 5px;
    color: var(--green);
    transition: color .125s ease-in-out;
    display: inline-flex;
    border-radius: 5px;
    background: transparent;
}

.mobileMenuTrigger:not(.triggerClose):hover,
.mobileMenuTrigger:not(.triggerClose):focus {
    color: var(--gray);
    outline: none;
}

.mobileMenuTrigger label {
    position: absolute;
    left: -666vw;
}

.mobileMenuTrigger button {
    font-size: 150%;
}

.menu-trigger {
    width: 30px;
}

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


/* Login modal */

.modal-open .modal {
    display: flex;
}

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

.modal-content {
    margin-top: 20px;
    border-radius: 0;
}

.modal-header,
.modal-body {
    padding: .5rem 1rem;
}

.modal-header .close {
    opacity: 1;
    z-index: 1;
    position: relative;
}

.modal h2 {
    font-size: 24px;
    margin-top: 0;
}

.modal-header,
.modal-body {
    padding: 1em 2ch;
}

.modal input[name="Username"],
.modal input[name="Password"] {
    width: 100%;
    padding-left: .25em;
    padding-right: .25em;
    margin-bottom: 0.5em;
    height: 2em;
    border: 1px solid rgba(68, 68, 68, .5);
}

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


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

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

#subpage-main,
#mms-main {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

main .row {
    position: relative;
}

#subpage-main .row,
#homepage-main .row {
    padding-top: var(--row-padding);
    padding-bottom: var(--row-padding);
}


/* Slideshow row */

#homepage-main #slideshow-row {
    margin-top: calc(-74px - (var(--header-padding) * 2));
    padding-top: 0;
    padding-bottom: 0;
}

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

#slideshow-row .carousel-indicators {
    text-align: right;
    bottom: 0;
    top: unset;
}

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

#homepage-main .carousel-caption {
    padding: 30px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

#homepage-main .carousel-caption::before {
    content: '';
    position: absolute;
    background: black;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: .2;
}

#homepage-main .caption-wrapper {
    position: absolute;
    left: 0;
    top: 30%;
    right: 0;
    text-align: center;
    color: white;
    font-size: 27px;
    font-size: clamp(16px, calc(1vw + 12px), 27px);
    max-width: 815px;
    margin: 0 auto;
}

#homepage-main .caption-wrapper h2 {
    font-size: 50px;
    font-size: clamp(25px, calc(2vw + 12px), 50px);
    color: var(--green);
    font-family: 'IBM Plex Serif', serif;
    font-weight: normal;
    line-height: 1;
}

#homepage-main .caption-wrapper h2 span {
    font-size: 100px;
    font-size: clamp(25px, calc(4vw + 12px), 100px);
    color: white;
    display: block;
}

#slideshow-row p+p:not(:empty) {
    margin-top: 1rem;
}

#slideshow-row p {
    max-width: calc(100% - 50px);
}

#slideshow-row .button-link {
    color: white;
    border-color: var(--green);
    border-width: 2px;
}

#slideshow-row .button-link:hover,
#slideshow-row .button-link:focus {
    background: transparent;
    border-color: white;
}

@media (max-width: 990px) {
    #slideshow-row .caption-wrapper {
        font-size: 1rem;
    }
    #slideshow-row *+.button-link {
        margin-top: .5em;
    }
}

@media (max-width: 767px) {
    #homepage-main #slideshow-row {
        margin-top: 0;
    }
    #slideshow-row .caption-wrapper {
        top: 20%;
    }
    #slideshow-row .carousel-indicators {
        top: 0;
        bottom: unset;
    }
}

@media (max-width: 650px) {
    #slideshow-row .caption-wrapper {
        top: 0;
    }
}


/* Welcome row */

#welcome-row::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    background-image: url(../images/white.jpg);
    z-index: -1;
    display: block;
    background-size: 150%;
    background-position: center;
}

#welcome-row h2 {
    font-family: 'IBM Plex Serif', serif;
    color: var(--green);
    font-weight: 200;
}

#welcome-row h2 span {
    color: #808080;
}


/* Home About row */

#home-about-row::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
    background: url('../images/dark-1.jpg');
    background-size: cover;
    z-index: -1;
}

#homepage-main #home-about-row {
    padding-top: calc(var(--row-padding) * 1.5);
    padding-bottom: calc(var(--row-padding) * 1.5);
}

#homepage-main #home-about-row .column {
    color: white;
}

#home-about-row h2 {
    font-weight: 200;
}


/* Testimonial row */

#testimonials-row::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--side-margin);
    right: var(--side-margin);
    display: block;
    background: var(--green);
    z-index: -1;
}

#homepage-main #testimonials-row .column {
    color: white;
    /* padding: 0; */
}

#testimonials-row h2 {
    font-family: 'IBM Plex Serif';
    font-weight: normal;
    position: relative;
    margin: 0 auto 1.5em;
    width: fit-content;
}

#testimonials-row h2::after {
    content: '';
    position: absolute;
    border-top: 1px solid;
    bottom: -.75em;
    left: 2ch;
    right: 2ch;
}

#testimonials-row blockquote {
    font-size: 35px;
    font-weight: 200;
    border: none;
    padding: 0;
}

#testimonials-row blockquote::before {
    content: '“';
}

#testimonials-row blockquote::after {
    content: '”';
}

#testimonials-row blockquote+p {
    font-weight: bold;
    font-style: italic;
}

#testimonials-row .arrow-link {
    font-size: 27px;
    color: white;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 990px) {
    #testimonials-row blockquote {
        font-size: 25px;
    }
    #testimonials-row .arrow-link {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    #testimonials-row blockquote {
        font-size: 18px;
    }
    #testimonials-row .arrow-link {
        font-size: 1rem;
    }
}


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

#page-title {
    background: lightgray;
    min-height: 150px;
    position: relative;
}

.title-wrapper {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
}

#page-title h1 {
    margin: auto;
    width: fit-content;
    font-size: 40px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

#page-title:has(.background-img) h1 {
    color: white;
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.8);
}

#page-title .background-img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    max-height: 40vh;
}


/* Page titles */


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


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

footer {
    display: grid;
    grid-template-columns: 3fr 1fr;
    padding-top: var(--row-padding);
    padding-bottom: var(--row-padding);
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 3;
}

footer+section {
    padding: 1em;
    padding-top: 0;
    text-align: center;
}

@media (min-width: 768px) {
    footer+section {
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    footer {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    footer img[alt="IACI"] {
        width: 200px;
        margin: 0 auto;
    }
}


/* Parallax scrolling */