/*************************************
Mockup #1 Approved

ADDITIONAL NOTES / REVISIONS
- "Church and School" in the logo.
- Underneath the parish news. 
- Swap FAQs with Livestream.

-------------
STUDIUS TEMPLATE
- Header / NAV: Rooftop Bar
- Rotator / ROT: Full width
- Quicklinks / QL: Buttons
- News: N/A
- Widgets: N/A
- Footer: N/A

-------------
COLORS
--primary-color-rgb: 1,46,98;        /* Deep Royal Blue (#012e62) *
--secondary-color-rgb: 252,184,19;   /* Bright Gold (#fcb813) *
--tertiary-color-rgb: 53,90,135;     /* Slate Blue (#355a87) *
--background-color-rgb: 255,255,255; /* White *
--gray-color-rgb: 239,239,239;       /* Soft Light Gray (#efefef) *

-------------
FONTS (Google)
--title-font-family: 'Crimson Text', serif;
--body-font-family: 'Noto Sans', sans-serif;

<style>
@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Noto+Sans:ital,wght@0,100..900;1,100..900&display=swap');
</style>

-------------
**************************************/
html body.site-home {
    --section-above-bg: var(--secondary-color);

    --section-header-bg: #efefef;

    --section-extension-bg: #efefef;
}

html body {
    --side-menu-bg: var(--primary-color);
    --side-menu-bg-hover: var(--secondary-color);
    --side-menu-font-size-desktop: min(1.25vw, 1.25rem);
    --side-menu-font-family: var(--body-font-family);
    --side-menu-font-weight: 400;

    --section-bottom-bg: #efefef;
}

html body #g-navigation {
    --main-menu-text-color: var(--default-black);
    --main-menu-text-color-hover: var(--default-black);
	--main-menu-bg: var(--default-white);
    --main-menu-bg-color: var(--default-white);

    --section-navigation-bg: var(--default-white);

    --navigation-floating-social-padding: min(1vw, 1rem);
}

.g-array-item-text {
    margin: 0!important;
    padding: 0!important;
}

@media only screen and (max-width: 50.99rem) {
    .side-menu-particle .g-blockcontent-subcontent-title-text {
        --side-menu-font-size-desktop: 4vw;
    }
}

/* NAVIGATION */
/*@media only screen and (min-width: 50.99rem) {
    #g-navigation > .g-container > .g-grid:has(.g-main-nav) {
        position: relative;
    }
    #g-navigation > .g-container > .g-grid:has(.g-main-nav):before {
        content: '';
        background: var(--default-white);
        height: 100%;
        width: 3000%;
        margin-left: -500%;
        margin-right: -500%;
        position: absolute;
    }
}*/

@media only screen and (min-width: 50.99rem) {
    #g-navigation {
        border-top: 1rem solid var(--primary-color);
    }

    #g-navigation .ql-toplinks-studius .g-blockcontent-subcontent {
        align-items: stretch!important;
    }
    #g-navigation .ql-toplinks-studius .g-blockcontent-subcontent-block {
        border-radius: .5rem;
        overflow: hidden;
    }
    #g-navigation .ql-toplinks-studius .g-blockcontent-subcontent-block-content {
        height: 100%;
    }
}

@media only screen and (max-width: 50.99rem) {
    #g-navigation {
        border-top: 1rem solid var(--primary-color);
    }

    #g-navigation .ql-toplinks-studius .g-blockcontent-subcontent {
        align-items: stretch!important;
    }
    #g-navigation .ql-toplinks-studius .g-blockcontent-subcontent-block {
        border-radius: .5rem;
        overflow: hidden;
    }
    #g-navigation .ql-toplinks-studius .g-blockcontent-subcontent-block-content {
        height: 100%;
    }

    #g-offcanvas .g-social-items {
        flex-wrap: wrap;
    }
}

@media only screen and (max-width: 50.99rem) {
    #g-navigation > .g-container {
        padding: 2rem 0 0 0!important;
    }
}

@media only screen and (min-width: 50.99rem) {
    .ql-toplinks-studius {
        --ql-toplinks-item-padding: min(1vw, 1rem);

        --ql-toplinks-icon-color: var(--primary-color);
        --ql-toplinks-icon-color-hover: var(--primary-color);

        --ql-toplinks-title-color: var(--default-black);
        --ql-toplinks-title-color-hover: var(--default-black);
        --ql-toplinks-title-font-weight: 700;
    }
}

@media only screen and (max-width: 50.99rem) {
    .ql-toplinks-studius {
        --ql-toplinks-item-padding-mobile: .5rem;

        --ql-toplinks-icon-color-mobile: var(--primary-color);
        --ql-toplinks-icon-color-hover-mobile: var(--primary-color);

        --ql-toplinks-title-color-mobile: var(--default-black);
        --ql-toplinks-title-color-hover-mobile: var(--default-black);
        --ql-toplinks-title-font-weight-mobile: 700;
        --ql-toplinks-title-font-size-mobile: 3vw;
    }
}

@media only screen and (min-width: 50.99rem) {
    #g-navigation .g-main-nav .g-sublevel>li>.g-menu-item-container {
        color: var(--default-white);
    }
    #g-navigation .g-main-nav .g-sublevel>li>.g-menu-item-container:hover {
        background: var(--secondary-color);
        color: var(--primary-color)!important;
    }
}

/* HEADER */
@media only screen and (min-width: 50.99rem) {
    .site-home #g-header > .g-container {
        padding: min(5vw, 5rem) min(10vw, 10rem)!important;
    }
}

@media only screen and (max-width: 50.99rem) {
    .site-home #g-header > .g-container {
        padding: 2rem 1rem!important;
    }
}

@media only screen and (min-width: 50.99rem) {
    .wel-wrapper {
        display: flex;
        flex-direction: column;
        gap: min(2vw, 2rem);
        justify-content: center;
        align-items: center;
    }
    .wel-wrapper .wel-title .g-title {
        margin: 0;
        padding: 0;
        line-height: 1;
        color: var(--primary-color);
        font-family: var(--title-font-family);
        font-weight: 700;
        border: none;
        font-size: min(3vw, 3rem);
        text-align: center;
    }
    .wel-wrapper .wel-text p {
        margin: 0;
        padding: 0;
        line-height: 1.4;
        color: var(--default-black);
        font-family: var(--body-font-family);
        font-weight: 400;
        font-size: min(1.35vw, 1.35rem);
        text-align: center;
    }
    .wel-wrapper .wel-buttons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: min(2vw, 2rem);
        width: 100%;
    }
    .wel-wrapper .wel-buttons .button {
        width: 28%;
        font-size: min(1.5vw, 1.5rem);
        padding: min(1.5vw, 1.5rem);
        line-height: 1;
        font-weight: 700;
    }

    .wel-wrapper .wel-buttons .button.button-opposite {
        border: 2px solid var(--default-black);
        background: transparent;
        color: var(--default-black);
    }

    .wel-wrapper .wel-buttons :is(.button:active, .button:focus) {
        background: var(--primary-color)!important;
        color: var(--default-white)!important;
    }

    .wel-wrapper .wel-buttons .button:hover {
        opacity: .7;
    }

    .wel-wrapper .wel-link {
        font-weight: 600;
        color: var(--default-black);
        text-decoration: underline;
        transition: .3s all ease-in-out;
    }
    .wel-wrapper .wel-link:hover {
        opacity: .5;
    }
}

@media only screen and (max-width: 50.99rem) {
    .wel-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }
    .wel-wrapper .wel-title .g-title {
        margin: 0;
        padding: 0;
        line-height: 1;
        color: var(--primary-color);
        font-family: var(--title-font-family);
        font-weight: 700;
        border: none;
        font-size: 6vw;
        text-align: center;
    }
    .wel-wrapper .wel-text p {
        margin: 0;
        padding: 0;
        line-height: 1.4;
        color: var(--default-black);
        font-family: var(--body-font-family);
        font-weight: 400;
        font-size: 4vw;
        text-align: center;
    }
    .wel-wrapper .wel-buttons {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    .wel-wrapper .wel-buttons .button {
        width: 100%;
        font-size: 4vw;
        padding: 1rem;
        line-height: 1;
        font-weight: 700;
    }

    .wel-wrapper .wel-buttons .button.button-opposite {
        border: 2px solid var(--default-black);
        background: transparent;
        color: var(--default-black);
    }

    .wel-wrapper .wel-buttons :is(.button:active, .button:focus) {
        background: var(--primary-color)!important;
        color: var(--default-white)!important;
    }

    .wel-wrapper .wel-buttons .button:hover {
        opacity: .7;
    }

    .wel-wrapper .wel-link {
        font-weight: 600;
        color: var(--default-black);
        text-decoration: underline;
        transition: .3s all ease-in-out;
    }
    .wel-wrapper .wel-link:hover {
        opacity: .5;
    }
}

/* MAIN */
@media only screen and (min-width: 50.99rem) {
    .site-home #g-container-main .g-title {
        margin: 0;
        padding: 0;
        font-size: min(3vw, 3rem);
        color: var(--primary-color);
        border-bottom: 2px solid var(--default-black);
        margin-bottom: min(2vw, 2rem);
        padding-bottom: min(1vw, 1rem);
        line-height: 1;
    }
}

@media only screen and (max-width: 50.99rem) {
    .site-home #g-container-main .g-title {
        margin: 0;
        padding: 0;
        font-size: 8vw;
        color: var(--primary-color);
        border-bottom: 2px solid var(--default-black);
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        line-height: 1;
    }
}

@media only screen and (min-width: 50.99rem) {
    .mass-schedule-container :is(h1,h2,h3,h4,h5,h6) {
        margin: 0;
        padding: 0;
        line-height: 1;
        color: var(--primary-color);
        font-weight: 700;
        font-size: min(2vw, 2rem);
        margin-bottom: min(.5vw, .5rem);
    }
    .mass-schedule-container :is(p,li) {
        margin: 0;
        padding: 0;
        line-height: 1.3;
        font-size: min(1.25vw, 1.25rem);
        color: var(--default-black);
        margin-bottom: min(.75vw, .75rem);
    }
    .mass-schedule-container .button {
        background: #CCCCCC;
        line-height: 1;
        padding: min(1vw, 1rem) min(3vw, 3rem);
        color: var(--default-black);
        font-weight: 700;
    }
}

@media only screen and (max-width: 50.99rem) {
    .mass-schedule-container :is(h1,h2,h3,h4,h5,h6) {
        margin: 0;
        padding: 0;
        line-height: 1;
        color: var(--primary-color);
        font-weight: 700;
        font-size: 6vw;
        margin-bottom: .5rem;
    }
    .mass-schedule-container :is(p,li) {
        margin: 0;
        padding: 0;
        line-height: 1.3;
        font-size: 4vw;
        color: var(--default-black);
        margin-bottom: .75rem;
    }
    .mass-schedule-container .button {
        background: #CCCCCC;
        line-height: 1;
        padding: 1rem;
        color: var(--default-black);
        font-weight: 700;
    }
}

@media only screen and (min-width: 50.99rem) {
    .site-home #grid-addpic.grid-articles {
        margin-bottom: 0!important;
        padding-bottom: min(2.5vw, 2.5rem)!important;
        border-bottom: 2px solid var(--default-black);

    }

    .news-button {
        padding-top: min(2.5vw, 2.5rem)!important;
    }
    .news-button .button {
        background: #CCCCCC!important;
        line-height: 1!important;
        padding: min(1vw, 1rem) min(3vw, 3rem)!important;
        color: var(--default-black)!important;
        font-weight: 700!important;
        text-transform: none!important;
    }
}

@media only screen and (max-width: 50.99rem) {
    .site-home #grid-addpic.grid-articles {
        margin-bottom: 0!important;
        padding-bottom: 1.5rem!important;
        border-bottom: 2px solid var(--default-black);

    }

    .news-button {
        padding-top: 1.5rem!important;
    }
    .news-button .button {
        background: #CCCCCC!important;
        line-height: 1!important;
        padding: 1rem!important;
        color: var(--default-black)!important;
        font-weight: 700!important;
        text-transform: none!important;
    }
}

/* EXPANDED */
@media only screen and (min-width: 50.99rem) {
    .site-home .grid-sideways .g-array-item {
        --grid-column-calc: 30%;
        --grid-grid-height: auto;
    }
}

@media only screen and (max-width: 50.99rem) {
    #ueContainer.grid-mobile-horizontal-scroll .g-content-array {
        padding: 1rem!important;
    }
}

@media only screen and (min-width: 50.99rem) {
    .site-home #g-expanded > .g-container > .g-grid {
        padding: min(2vw, 2rem)!important;
    }

    .site-home #ueContainer.grid-articles {
        margin-bottom: 0!important;
    }
    .site-home #ueContainer.grid-g-grid-box-shadow .g-content-array > .g-grid {
        border: 1px solid var(--default-black)
    }
    .site-home #g-expanded > .g-container > .g-grid:has(.cc-container) {
        position: relative;
    }
    .site-home #g-expanded > .g-container > .g-grid:has(.cc-container):before {
        content: '';
        position: absolute;
        background: var(--secondary-color);
        width: 3000%;
        margin-left: -1500%!important;
        margin-right: -1500%!important;
        top: 0;
        bottom: 0;
        height: 100%;
        z-index: 1;
    }

    .cc-container {
        position: relative;
        z-index: 2;
    }
}

@media only screen and (max-width: 50.99rem) {
    .site-home #g-expanded > .g-container > .g-grid:has(.cc-container) {
        position: relative;
        padding: 2rem 0!important;
    }
    .site-home #g-expanded > .g-container > .g-grid:has(.cc-container):before {
        content: '';
        position: absolute;
        background: var(--secondary-color);
        width: 3000%;
        margin-left: -1500%!important;
        margin-right: -1500%!important;
        top: 0;
        bottom: 0;
        height: 100%;
        z-index: 1;
    }

    .cc-container {
        position: relative;
        z-index: 2;
    }
}

@media only screen and (min-width: 50.99rem) {
    .cc-wrapper {
        display: flex;
        flex-direction: column;
        gap: min(2vw, 2rem);
    }
    .cc-wrapper .cc-title .g-title {
        margin: 0;
        padding: 0;
        line-height: 1;
        color: var(--primary-color);
        font-family: var(--title-font-family);
        font-weight: 700;
        border: none;
        font-size: min(3vw, 3rem);
        text-align: left;
    }
    .cc-wrapper .cc-text p {
        margin: 0;
        padding: 0;
        line-height: 1.4;
        color: var(--default-black);
        font-family: var(--body-font-family);
        font-weight: 400;
        font-size: min(1.5vw, 1.5rem);
        text-align: left;
    }
    .cc-wrapper .cc-buttons {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: min(2vw, 2rem);
        width: 100%;
    }

    .cc-wrapper .cc-buttons .button {
        width: 28%;
        font-size: min(1.5vw, 1.5rem);
        padding: min(1.5vw, 1.5rem);
        line-height: 1;
        font-weight: 700;
    }

    .cc-wrapper .cc-buttons :is(.button:active, .button:focus) {
        background: var(--primary-color)!important;
        color: var(--default-white)!important;
    }

    .cc-wrapper .cc-buttons .button.button-opposite {
        border: 2px solid var(--default-black);
        background: transparent;
        color: var(--default-black);
    }

    .cc-wrapper .cc-buttons .button:hover {
        opacity: .7;
    }
}

@media only screen and (max-width: 50.99rem) {
    .cc-wrapper {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .cc-wrapper .cc-title .g-title {
        margin: 0;
        padding: 0;
        line-height: 1;
        color: var(--primary-color);
        font-family: var(--title-font-family);
        font-weight: 700;
        border: none;
        font-size: 8vw;
        text-align: left;
    }
    .cc-wrapper .cc-text p {
        margin: 0;
        padding: 0;
        line-height: 1.4;
        color: var(--default-black);
        font-family: var(--body-font-family);
        font-weight: 400;
        font-size: 4vw;
        text-align: left;
    }
    .cc-wrapper .cc-buttons {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .cc-wrapper .cc-buttons .button {
        width: 100%;
        font-size: 4vw;
        padding: 1rem;
        line-height: 1;
        font-weight: 700;
    }

    .cc-wrapper .cc-buttons :is(.button:active, .button:focus) {
        background: var(--primary-color)!important;
        color: var(--default-white)!important;
    }

    .cc-wrapper .cc-buttons .button.button-opposite {
        border: 2px solid var(--default-black);
        background: transparent;
        color: var(--default-black);
    }

    .cc-wrapper .cc-buttons .button:hover {
        opacity: .7;
    }
}

/* EXTENSION */ 
@media only screen and (min-width: 50.99rem) {
    .widget-parthenon-alt > .g-container {
        --widget-parthenon-section-padding: min(4vw, 4rem) min(2vw, 2rem);
    }
    .site-home .widget-container .widget-wrapper .widget-title .g-title {
        --widget-title-text-align: left;
        --widget-title-color: var(--primary-color);
        --widget-title-padding: 0 min(1vw, 14.4px);
        color: var(--primary-color)!important;
    }
    .site-home .widget-container .widget-wrapper .widget-feed .widget-feed-inner-box {
        --widget-feed-inner-box-padding: 0;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: var(--default-box-shadow);
        background: var(--default-white);
    }

    .site-home .calendar-widget-wrapper iframe {
        border-radius: 0;
    }

    .latest-livestream-widget-wrapper .widget-feed-inner-box {
        padding: min(1.25vw, 1.25rem)!important;
    }
    .latest-livestream-widget-wrapper .widget-feed-inner-box {
        display: flex;
        flex-direction: column;
        gap: min(1vw, 14.4px);
    }
    .latest-livestream-widget-wrapper .widget-feed-inner-box .dr-feed-image {
        border-radius: .5rem;
        overflow: hidden;
    }
    .latest-livestream-widget-wrapper .widget-feed-inner-box .dr-feed-box p {
        margin: 0;
        padding: 0;
        line-height: 1.4;
        font-size: min(1.5vw, 1.5rem);
    }
    .daily-readings-widget-wrapper .widget-feed-inner-box {
        padding: min(1.25vw, 1.25rem)!important;
    }

    .widget-container .widget-wrapper .widget-button {
        --widget-button-box-padding: 0 min(1vw, 14.4px);
    }
    .widget-container .widget-wrapper .widget-button .button {
        --headlines-buttons-bg: #CCCCCC;
        --headlines-button-min-width: 100%;
        --headlines-buttons-color: var(--default-black);
        --headlines-buttons-text-transform: none;
    }

    .daily-readings-widget-wrapper .dr-feed-box .nested {
        display: none!important;
    }
    .widget-container.daily-readings-widget-container .dr-feed-box .newsfeed .feed-item-description {
        text-align: left;
    }
    .widget-container.daily-readings-widget-container .dr-feed-box .newsfeed > li .feed-link a {
        background: none;
        padding: 0;
        margin: 0;
        text-align: left;
        color: var(--primary-color);
        font-size: min(1.5vw, 1.5rem);
        line-height: 1.3;
        box-shadow: none;
        font-weight: 700;
        margin-bottom: min(1vw, 1rem);
    }
    .widget-container.daily-readings-widget-container .dr-feed-box .newsfeed .feed-item-description > h4 {
        margin: 0;
        padding: 0;
        line-height: 1;
        color: var(--default-black);
        font-weight: 700;
        text-align: left;
        font-size: min(1.25vw, 1.25rem);
        margin-bottom: min(1vw, 1rem);
    }
    .widget-container.daily-readings-widget-container .dr-feed-box .newsfeed .feed-item-description > .poetry p {
        margin: 0;
        padding: 0;
        text-align: left;
        color: var(--default-black);
        line-height: 1.3;
        font-size: min(1.25vw, 1.25rem);
        font-weight: 400;
    }
}

@media only screen and (max-width: 50.99rem) {
    .site-home .widget-container .widget-wrapper .widget-title .g-title {
        --widget-title-text-align: left;
        --widget-title-color: var(--primary-color);
        --widget-title-padding: 0 min(1vw, 14.4px);
        color: var(--primary-color)!important;
        text-align: center;
    }
    .site-home .widget-container .widget-wrapper .widget-feed .widget-feed-inner-box {
        --widget-feed-inner-box-padding: 0;
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: var(--default-box-shadow);
        background: var(--default-white);
    }

    .site-home .calendar-widget-wrapper iframe {
        border-radius: 0;
        height: 120vw!important;
    }

    .latest-livestream-widget-wrapper .widget-feed-inner-box {
        padding: 1rem!important;
    }
    .latest-livestream-widget-wrapper .widget-feed-inner-box {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .latest-livestream-widget-wrapper .widget-feed-inner-box .dr-feed-image {
        border-radius: .5rem;
        overflow: hidden;
    }
    .latest-livestream-widget-wrapper .widget-feed-inner-box .dr-feed-box p {
        margin: 0;
        padding: 0;
        line-height: 1.4;
        font-size: 4vw;
    }
    .daily-readings-widget-wrapper .widget-feed-inner-box {
        padding: 1rem!important;
    }

    .widget-container .widget-wrapper .widget-button {
        --widget-button-box-padding: 0 min(1vw, 14.4px);
    }
    .widget-container .widget-wrapper .widget-button .button {
        --headlines-buttons-bg: #CCCCCC;
        --headlines-button-min-width: 100%;
        --headlines-buttons-color-mobile: var(--default-black);
        --headlines-buttons-text-transform: none;
    }

    .daily-readings-widget-wrapper .dr-feed-box .nested {
        display: none!important;
    }
    .widget-container.daily-readings-widget-container .dr-feed-box .newsfeed .feed-item-description {
        text-align: left;
    }
    .widget-container.daily-readings-widget-container .dr-feed-box .newsfeed > li .feed-link a {
        background: none;
        padding: 0;
        margin: 0;
        text-align: left;
        color: var(--primary-color);
        font-size: 5vw;
        line-height: 1.3;
        box-shadow: none;
        font-weight: 700;
        margin-bottom: 1rem;
    }
    .widget-container.daily-readings-widget-container .dr-feed-box .newsfeed .feed-item-description > h4 {
        margin: 0;
        padding: 0;
        line-height: 1;
        color: var(--default-black);
        font-weight: 700;
        text-align: left;
        font-size: 4vw;
        margin-bottom: 1rem;
    }
    .widget-container.daily-readings-widget-container .dr-feed-box .newsfeed .feed-item-description > .poetry p {
        margin: 0;
        padding: 0;
        text-align: left;
        color: var(--default-black);
        line-height: 1.3;
        font-size: 4vw;
        font-weight: 400;
    }
}


/* FOOTER */
@media only screen and (min-width: 50.99rem) {
    .footer-wrapper {
        display: flex;
        flex-direction: column;
        gap: min(4vw, 4rem);
    }

    .footer-wrapper :is(h1,h2,h3,h4,h5,h6,p,a,li) {
        color: var(--default-white);
    }

    .footer-top-content {
        display: flex;
        flex-direction: row;
        gap: min(2.5vw, 2.5rem);
    }

    .footer-top-content h1 {
        margin: 0;
        padding: 0;
        line-height: 1;
        font-size: min(2.5vw, 2.5rem);
        font-weight: 700;
        font-family: var(--title-font-family);
        margin-bottom: min(1.25vw, 1.25rem);
    }

    .footer-top-content p {
        margin: 0;
        padding: 0;
        line-height: 1.5;
        font-size: min(1.25vw, 1.25rem);
        font-weight: 400;
        font-family: var(--body-font-family);
        margin-bottom: min(2vw, 2rem);
    }

    .footer-top-content .inner-footer-links {
        display: flex;
        flex-direction: column;
    }
    .footer-top-content .inner-footer-links a {
        margin: 0;
        padding: 0;
        line-height: 2;
        font-size: min(1.25vw, 1.25rem);
        font-weight: 500;
        font-family: var(--body-font-family);
        text-decoration: underline;
        text-transform: uppercase;
    }

    .footer-top-content .footer-logo {
        flex: 40;
    }
    .footer-top-content .footer-content-center {
        flex: 40;
        display: flex;
        flex-direction: row;
        gap: min(2.5vw, 2.5rem);
    }
    .footer-top-content .footer-links {
        flex: 20;
    }

    .footer-wrapper .footer-middle-buttons {
        position: relative;
        background: var(--secondary-color);
        padding: min(1vw, 1rem);
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: min(2vw, 2rem);
    }
    .footer-wrapper .footer-middle-buttons:before {
        content: '';
        position: absolute;
        background: var(--secondary-color);
        width: 3000%;
        margin-left: -1500%!important;
        margin-right: -1500%!important;
        top: 0;
        bottom: 0;
        height: 100%;
        z-index: 1;
    }
    .footer-wrapper .footer-middle-buttons .button {
        position: relative;
        z-index: 2;
        background: transparent;
        border: 2px solid var(--primary-color);
        padding: min(.75vw, .75rem) min(1.5vw, 1.5rem);
        color: var(--primary-color)!important;
        font-weight: 700;
        font-size: min(1.5vw, 1.5rem);
    }
    #g-footer .footer-wrapper .footer-middle-buttons .button:hover {
        opacity: 1;
        color: var(--primary-color)!important;
    }

    .footer-promise {
        display: flex;
        flex-direction: row;
        gap: min(2vw, 2rem);
    }
    .footer-promise-logo {
        flex: 15;
    }
    .footer-promise-text {
        flex: 45;
    }
    .footer-csa {
        flex: 40;
    }

    .footer-promise h1 {
        margin: 0;
        padding: 0;
        line-height: 1;
        font-size: min(2.5vw, 2.5rem);
        font-weight: 700;
        font-family: var(--title-font-family);
        margin-bottom: min(1.25vw, 1.25rem);
    }

    .footer-promise p {
        margin: 0;
        padding: 0;
        line-height: 1.5;
        font-size: min(1.25vw, 1.25rem);
        font-weight: 400;
        font-family: var(--body-font-family);
        margin-bottom: min(2vw, 2rem);
    }

    #g-footer .footer-promise .footer-link {
        color: var(--secondary-color)!important;
        text-decoration: underline;
    }
}

@media only screen and (max-width: 50.99rem) {
    #g-footer > .g-container {
        padding: 3rem 1rem!important;
    }

    .footer-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .footer-wrapper :is(h1,h2,h3,h4,h5,h6,p,a,li) {
        color: var(--default-white);
    }

    .footer-top-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-top-content h1 {
        margin: 0;
        padding: 0;
        line-height: 1;
        font-size: 6vw;
        font-weight: 700;
        font-family: var(--title-font-family);
        margin-bottom: 1rem;
    }

    .footer-top-content p {
        margin: 0;
        padding: 0;
        line-height: 1.5;
        font-size: 4vw;
        font-weight: 400;
        font-family: var(--body-font-family);
        margin-bottom: 1.5rem;
    }

    .footer-top-content .inner-footer-links {
        display: flex;
        flex-direction: column;
    }
    .footer-top-content .inner-footer-links a {
        margin: 0;
        padding: 0;
        line-height: 2;
        font-size: 4vw;
        font-weight: 500;
        font-family: var(--body-font-family);
        text-decoration: underline;
        text-transform: uppercase;
    }

    .footer-top-content .footer-logo {
        flex: 40;
    }
    .footer-top-content .footer-content-center {
        flex: 40;
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }
    .footer-top-content .footer-content-center > .footer-content-column {
        flex: 1;
    }
    .footer-top-content .footer-links {
        flex: 20;
    }

    .footer-wrapper .footer-middle-buttons {
        position: relative;
        background: var(--secondary-color);
        padding: 1rem;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
    }
    .footer-wrapper .footer-middle-buttons:before {
        content: '';
        position: absolute;
        background: var(--secondary-color);
        width: 3000%;
        margin-left: -1500%!important;
        margin-right: -1500%!important;
        top: 0;
        bottom: 0;
        height: 100%;
        z-index: 1;
    }
    .footer-wrapper .footer-middle-buttons .button {
        position: relative;
        z-index: 2;
        background: transparent;
        border: 2px solid var(--primary-color);
        padding: 1rem;
        color: var(--primary-color)!important;
        font-weight: 700;
        font-size: 4vw;
    }
    #g-footer .footer-wrapper .footer-middle-buttons .button:hover {
        opacity: 1;
        color: var(--primary-color)!important;
    }

    .footer-promise {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .footer-promise-logo {
        flex: 15;
        text-align: center;
    }
    .footer-promise-logo img {
        width: 40%;
    }
    .footer-promise-text {
        flex: 45;
    }
    .footer-csa {
        flex: 40;
    }

    .footer-promise h1 {
        margin: 0;
        padding: 0;
        line-height: 1;
        font-size: 6vw;
        font-weight: 700;
        font-family: var(--title-font-family);
        margin-bottom: 1rem;
    }

    .footer-promise p {
        margin: 0;
        padding: 0;
        line-height: 1.5;
        font-size: 4vw;
        font-weight: 400;
        font-family: var(--body-font-family);
        margin-bottom: 1.5rem;
    }

    #g-footer .footer-promise .footer-link {
        color: var(--secondary-color)!important;
        text-decoration: underline;
    }
}


/*BOTTOM*/
@media only screen and (min-width: 50.99rem) {
    #g-bottom {
        position: relative;
        z-index: 10;
    }
    #g-bottom > .g-container {
        padding: 2rem 0!important;
    }
    #g-bottom .admod td {
        padding-top: 0!important;
    }
}

@media only screen and (max-width: 50.99rem) {
    #g-bottom {
        position: relative;
        z-index: 10;
    }
    #g-bottom > .g-container {
        padding: 2rem 0!important;
    }
    #g-bottom .admod td {
        padding-top: 0!important;
    }
}

.search-page #searchForm .btn {
    background: var(--primary-color);
}

.grid-articles .g-array-item-text a:not(a.button) {
    color: var(--primary-color);
}
.grid-articles .g-array-item-text a {
    color: var(--primary-color);
}

@media only screen and (max-width: 50.99rem) {
    .admod.adside tbody {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: .5rem .5rem;
    }
}

@media only screen and (max-width: 50.99rem) {
    body#site-grid.newslayout #g-container-main > .g-container {
        padding: 2rem 1rem!important;
    }
    body#site-grid.newslayout #g-container-main #g-mainbar {
        margin: 0!important;
        padding: 0!important;
    }

    #site-grid.newslayout .grid-mobile-stacked .g-item-title {
        --grid-title-font-size: 3vw;
    }
}

@media only screen and (max-width: 50.99rem) {
    .koowa_media--gallery .koowa_media {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }
    .koowa_media--gallery .koowa_media > .koowa_media__item {
        flex: 1;
        min-width: calc(50% - .5rem);
        max-width: calc(50% - .5rem);
    }
}

@media only screen and (max-width: 50.99rem) {
    img[style*="float: left"],
    img[style*="float: right"] {
        max-width: 40%;
        height: auto; /* Maintains aspect ratio */
    }
}