/************ TEMPLATE  ************

************/

.site-1 {
    --primary-color: #3d4e63;
    --secondary-color: #807755;
    --tertiary-color: #f2f2f2;

    --primary-rgb: 61, 78, 99;
    --secondary-rgb: 128, 119, 85;
    --tertiary-rgb: 240, 240, 240;

    --default-white: #ffffff;
    --default-black: #000000;

    --title-font-family: 'Cinzel', serif;
    --body-font-family: 'Raleway', sans-serif;

    --heading-color: var(--primary-color);
    --heading-font-family: var(--title-font-family);

    --title-border-bottom: 1px solid var(--secondary-color);

    --home-title-font: var(--title-font-family);

    --transparent: rgba(255,255,255,0);

    --default-box-shadow: 0px 0px 10px rgba(0,0,0,.5);

    --swiper-box-shadow: var(--default-box-shadow);

    --ql-title-color: var(--default-white);

    --hero-title-left-position: 5%;

    --mt-background-color: rgba(var(--primary-rgb), 1);
}

:is(.site-1, .site-2, .site-3, .site-4, .site-5, .site-6, .site-7, .site-8, .site-9, .site-10).sponsorshippage .buy-page {
    --primary-color: #192e72;
    --secondary-color: #c9b8a0;
    --tertiary-color: #f7d000;

    --primary-rgb: 25,46,114;
    --secondary-rgb: 201,184,160;
    --tertiary-rgb: 247, 208, 0;

    --default-white: #ffffff;
    --default-black: #000000;
}

.site-1 .ql-fa-toplinks {
    --ql-icon-color: var(--primary-color);
    --ql-title-color: var(--primary-color);
}

.readon, .button, .btn, p.readmore .btn, .sprocket-lists-portrait-container > li .sprocket-lists-portrait-item > a span, .listentobutton.moduletable a {
    background: var(--primary-color);
    font-family: var(--body-font-family);
}

/*************** ALL SITE *****************/

.site-1-home .button {
    background-color: var(--secondary-color);
    border-radius: 10rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,.5);
    letter-spacing: 2px;
    font-size: clamp(1.25rem, 1.3vw, 2rem);
}

.item-image {display: none;}

.g-container {
    width: 100%;
}

#g-mainbar .moduletable {
    margin: 0;
}

:is(.site-1-home, .site-2-home, .site-3-home) #g-page-surround .g-content {
    padding: 0;
}

:is(.site-1-home, .site-2-home, .site-3-home) #g-page-surround .g-array-item-text {
    margin: 0;
}

:is(.site-1-sub, .site-2-sub, .site-3-sub) section:not(#g-navigation, #g-container-footer, #g-copyright) .g-content:not(.g-blockcontent-subcontent-block-content) {
    margin: 0.625rem !important;
    padding: 1.5rem !important;
}

:is(.site-1-sub, .site-2-sub, .site-3-sub) section:not(#g-navigation, #g-container-footer, #g-copyright) #grid-addpic .g-content {
    padding: 0 !important;
    margin: 0 !important;
}

:is(.site-1-sub, .site-2-sub, .site-3-sub) section#g-container-main #g-aside .g-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (min-width: 50.99rem) {
    :is(.site-1-home, .site-2-home) #g-top .modern-alert .g-joomla-articles {
        padding: 0 3% !important;
    }
}

/*SUB-PAGE GRIDS TEXT SPACING*/

@media (min-width: 50.99rem) {
    /* #site-grid.site-1-sub #g-mainbar > .g-grid:has([itemprop="articleBody"]) {
        padding: 2vw 0!important;
    } */
    #site-grid.site-1-sub #g-mainbar > .g-grid:has([itemprop="articleBody"]) p {
        font-size: 1.25vw;
        font-family: var(--body-font-family);
    }
}

@media only screen and (max-width: 50.99rem) {
    #site-grid.site-1-sub #g-mainbar > .g-grid:has([itemprop="articleBody"]) {
        padding: 2rem 0!important;
    }
}

/*****************************/

/*************** HOMELAYOUT ***************/
/*************** OFFCANVAS ****************/

.g-offcanvas-toggle {color: var(--primary-color);} 
.g-offcanvas-toggle .fa-fw {text-shadow: none;}

@media only screen and (max-width: 50.99rem) {
    .site-1 #g-offcanvas .g-social-items {
        display: flex;
        flex-direction: row;
        gap: 2rem;
        align-items: center;
        justify-content: center;
    }
    .site-1 #g-offcanvas .g-social-items a {
        color: var(--secondary-color);
    }
    .site-1 #g-offcanvas .g-social-items a:hover {
        color: var(--tertiary-color);
    }
}

/*************** TOP **********************/
/*************** NAVIGATION ***************/

.site-1 .menu-block .g-toplevel {
    padding: 0.5vw 0;
}

@media (min-width: 50.99rem) {

    .site-1 .logo-text img {
        margin: 2rem 0;
    }

    .site-1 #g-navigation {
        position: relative;
    }

    .site-1 .g-grid:has(.menu-block) {
        z-index: 99;
        position: relative;
    }

    .site-1 #g-navigation::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 20%;
        height: 100%;
        background-image: url('/images/template/church-2.svg');
        background-repeat: no-repeat;
        background-position: 33px 127%;
        z-index: 1;
        background-size: 77%;
    }
    
    .site-1 #g-navigation::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 21%;
        height: 100%;
        background-image: url('/images/template/st-martin.svg');
        background-repeat: no-repeat;
        background-position: center;
        z-index: 1;
        background-size: 100%;
    }

    .site-1 #g-navigation .logo-text img {
        width: 57%;
    }

    .site-1 #g-navigation .left-img img {
        width: 100%;
    }

    .site-1 #g-navigation .right-img img {
        width: 100%;
    }

    .site-1 #g-navigation .g-container > .g-grid:nth-child(3) {
        background-color: var(--primary-color);
    }

    .style-306 .mass-times-306 h1 {
        font-size: 2vw;
        border-bottom: 1px solid var(--secondary-color);
        margin-top: 0;
    }  


    .style-306 .mass-times-306 h6 {
        font-size: 1.5vw;
        margin-top: 0;
    }


    .style-306 :is(section:not(#g-top), #g-footer, #g-header):has([class*="swiper-306"]) > .g-container > .g-grid:has(.mass-times-306) {
        width: 30%;
        background-color: rgba(var(--primary-rgb), 0.75);
        position: absolute;
        top: 5%;
        bottom: 0;
        right: 2%;
        left: initial;
        height: 90%;
        width: 27%;
        z-index: 9;
    }

    .style-306 .mass-times-306 p {
        font-size: 1.3vw;
    }

    .mass-times-306 {
        height: 100%;
    }

    .style-306 .swiper-306 .g-swiper.swiper-container-horizontal>.swiper-pagination-bullets {
        left: 2%;
        right: initial;
        bottom: 4%;
    }

    .site-1 #g-navigation .g-grid:has(.logo-text) {
        position: relative;
        z-index: 99 !important;
    }

}

:is(.site-1-sub, .site-2-sub, .site-3-sub) section#g-container-main #g-aside .grid-portrait .g-content {
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 50.99rem) {

    .site-1-sub #g-navigation {
        border-bottom: 10px solid var(--secondary-color);
        box-shadow: var(--default-box-shadow);
    }

}

/*  */

.site-1 .g-toplevel {
    padding: 0.5vw 2% !important;
}

@media only screen and (min-width: 50.99rem) {
    .g-main-nav .g-toplevel>li>.g-menu-item-container>.g-menu-item-content {
        font-size: clamp(1.1rem, 1.1vw, 2rem);
        font-family: var(--body-font-family);
    }
    .g-main-nav .g-sublevel>li>.g-menu-item-container>.g-menu-item-content>.g-menu-item-title {
        font-size: clamp(1.1rem, 1.1vw, 2rem);
        font-family: var(--body-font-family);
    }

    .site-1 #g-navigation .g-social-items {
        display: flex;
        flex-direction: row;
        gap: 2vw;
        align-items: center;
    }
    .site-1 #g-navigation .g-social-items a {
        color: white;
        font-size: clamp(1.25rem, 1.25vw, 2rem);
    }
    .site-1 #g-navigation .g-social-items a:hover {
        color: var(--tertiary-color); 
    }
}

@media only screen and (max-width: 50.99rem) {
    #g-navigation .g-logo {
        max-width: 80%;
        margin: 2rem 0 2rem 15%;
    }
}

/*************** SLIDESHOW ****************/

.mass-times-block h6 {
    font-size: clamp(1.25rem, 1.5vw, 2rem);
}

.mass-times-block h1 {
    font-weight: bold;
}

.style-901 .ph-headlines-901 {
    padding: 0 !important;
}

.site-1-home #g-slideshow #rotate-addpic {
    padding: 2.25% 1% 0 2.25%;
}

.site-1-home #g-slideshow #rotate-addpic > div {
    border-radius: 1rem;
    overflow: hidden;
}

/*************** HEADER *******************/

@media (min-width: 50.99rem) {
    .site-1-home #g-header {
        padding: 2.25% 2.25% !important;
    }

    .style-504 .quicklinks-504 .g-blockcontent-subcontent-title-icon {
        font-size: 3vw;
    }

    .style-504 .quicklinks-504 .g-blockcontent-subcontent-title-text {
        font-size: 1.5vw;
    }
}

.ql-window-title {
    --ql-border-radius: 1rem;
}

@media only screen and (min-width: 50.99rem) {
    .ql-window-title {
        margin: 0;
        padding: 0;
    }
    .ql-window-title > .g-content {
        margin: 0;
        padding: 0;
    }
    .ql-window-title > .g-content > div {
        margin: 0;
        padding: 0;
    }
    .ql-window-title .g-blockcontent {
        margin: 0;
        padding: 0;
    }
    .ql-window-title .g-blockcontent-subcontent {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        gap: 2vw;
    }
    .ql-window-title .g-blockcontent-sbucontent-block {
        margin: 0;
        padding: 0;
    }
    .ql-window-title .g-blockcontent-subcontent-block-content {
        margin: 0;
        padding: 0;
        position: relative;
        padding: 0.5vw !important;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: var(--ql-border-radius);
        box-shadow: var(--default-box-shadow);
        transition: .2s all ease-in-out;
    }
    .ql-window-title .g-blockcontent-subcontent-block-content:before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        /*aspect-ratio: 4 / 3;*/
        background: white;
        border-radius: var(--ql-border-radius);
        z-index: 1;
    }
    .ql-window-title .g-blockcontent-subcontent-block-content:after {
        content: "";
        position: absolute;
        top: 0.5vw;
        bottom: 0.5vw;
        left: 0.5vw;
        right: 0.5vw;
        height: auto;
        aspect-ratio: 1/1;
        border-radius: var(--ql-border-radius);
        box-shadow: inset var(--default-box-shadow);
        border-collapse: separate;
        z-index: 3;
    }
    .ql-window-title .g-blockcontent-subcontent-img {
        margin: 0;
        padding: 0;
        border-radius: var(--ql-border-radius);
        aspect-ratio: 1/1;
        width: 100%;
        height: auto;
        object-position: center;
        object-fit: cover;
        position: relative;
        z-index: 2;
        box-shadow: inset var(--default-box-shadow);
        transition: .2s all ease-in-out;
    }
    .ql-window-title .g-blockcontent-subcontent-block-content:hover {
        transform: scale(1.10);
        box-shadow: var(--default-box-shadow-hover);
    }
    .ql-window-title .g-blockcontent-subcontent-title {
        margin: 0;
        padding: 0;
        position: absolute;
        bottom: -1vw;
        left: .75vw;
        right: .75vw;
        width: calc(100% - 1.5vw);
        height: 3.5vw;
        max-height: 3vw;
        background: var(--secondary-color);
        z-index: 4;
        border-radius: .5vw;
        box-shadow: var(--default-box-shadow);
        padding: .5vw;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1vw; 
        line-height: 1.25vw;
    }
    .ql-window-title .g-blockcontent-subcontent-title-text {
        margin: 0;
        padding: 0;
        font-size: 1vw;
        line-height: 1vw;
        text-align: center;
        color: var(--default-white);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
    }
    .ql-window-title .g-blockcontent-buttons {
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 0;
        z-index: 5;
    }
    .ql-window-title .g-blockcontent-buttons a {
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 0;
        z-index: 5;
    }
}

/*************** ABOVE ********************/
/*************** SHOWCASE *****************/

@media (min-width: 50.99rem) {

    .site-1-home #g-showcase :is(h1,h2,h3,h4,h5,h6) {
        color: white;
    }

    .site-1-home #g-showcase > .g-container {
        padding: 2.5% 5% !important;
    }

    .site-1-home #g-showcase h1 {
        margin: 0;
        margin-bottom: 2rem;
    }

    .live-mass {
        padding-right: 1.5rem;
    }

    .podcast {
        padding-left: 1.5rem;
    }

    .site-1-home #g-showcase {
        position: relative;
        overflow: hidden; /* Ensures the off-screen images do not affect layout */
    }

    .site-1-home #g-showcase .g-grid {
        position: relative;
        z-index: 5;
    }
    
    #g-showcase .g-container::before,
    #g-showcase .g-container::after {
        content: '';
        position: absolute;
        bottom: 0;
        width: 40%; /* Adjust the size of the images */
        height: 100%; /* Adjust as needed */
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.07; /* Set the semi-transparency */
        z-index: 1;
    }
    
    #g-showcase .g-container::after {
        background-image: url('/images/template/st-leo-icon.png');
        left: -10%; /* Position the image 30% off the screen to the left */
    }
    
    #g-showcase .g-container::before {
        background-image: url('/images/template/st-martin-icon.png');
        right: -10%; /* Position the image 30% off the screen to the right */
    }
    
    #g-showcase .g-container {
        position: relative;
        z-index: 2; /* Ensures the content is above the background images */
    }

}

@media (max-width: 50.99rem) {

    .site-1-home #g-showcase :is(h1,h2,h3,h4,h5,h6) {
        color: white;
    }

    .site-1-home #g-showcase {
        padding: 5% !important;
    }

    #custom-5676-particle > h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .style-901 :is(section:not(#g-top), #g-footer, #g-header):has([class*="-901"]) {
        padding: 5% 5% !important;
    }

    #custom-3428-particle > h3 {
        margin-top: 2rem;
    }

}

/*************** UTILITY ******************/
/*************** FEATURE ******************/

@media (min-width: 50.99rem) {

    .style-902 :is(section:not(#g-top), #g-footer, #g-header):has([class*="-902"]) {
        padding: 2.5% 2% 2.5% 5% !important;
    }

    .ph-title-901 {
        margin-bottom: 1rem;
    }

    .all-news-901 {
        margin-top: 1.5rem;
    }

    .site-1-home #g-feature {
        position: relative;
        /* background: url('/images/stories/template/stained-glass.png') 50% 50% no-repeat;  */
    }

    .site-1-home #g-feature > .g-container > .g-grid {
        position: relative;
        z-index: 10;
    }

    .site-1-home #g-feature::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255,255,255,.93);
        backdrop-filter: blur(5px);
    }

    .site-1-home #g-feature a.button {
        border-radius: 10rem;
        padding: 1rem 2rem;
    }

}

@media (max-width: 50.99rem) {

    .ph-sidebyside-mobile .g-content-array > .g-grid {
        border-radius: 1rem;
        overflow: hidden;
    }

}

/*  */

.ph-rounded-square {
    --ph-g-title-size-desktop: 6vw;
    --ph-g-title-margin: 0 0 2vw 0;

    --ph-num-cols: 3;
    --ph-gap: 2vw;
    --ph-num-cols-gaps: calc(var(--ph-num-cols) - 1);
    --ph-num-cols-gaps-total: calc(var(--ph-num-cols-gaps) * var(--ph-gap));
    --ph-num-cols-gaps-quotient: calc(var(--ph-num-cols-gaps-total) / var(--ph-num-cols));
    --ph-flex: calc(100% / var(--ph-num-cols));
    --ph-vertical-flex: 1;
    --ph-flex-gap: calc(var(--ph-flex) - var(--ph-num-cols-gaps-quotient));

    --ph-border-radius: 1rem;

    --ph-background-color: white;

    --ph-title-padding: 1vw 2vw;

    --ph-title-font-size-desktop: 1.75vw;
    --ph-title-min-height: calc(var(--ph-title-font-size-desktop) * 4);
    --ph-title-border-top: 4px solid var(--secondary-color);
    --ph-title-color: black;
    --ph-title-font: var(--body-font-family);
    --ph-title-weight: 700;
}

@media only screen and (max-width: 50.99rem) {
    .site-1 .ph-rounded-square-mobile {
        --ph-g-title-size-mobile: 8vw;

        --ph-num-cols: 1;
        --ph-gap: 1rem;
    }

    .site-2 .ph-rounded-square-mobile {
        --ph-g-title-size-mobile: 8vw;

        --ph-num-cols: 1;
        --ph-gap: 1rem;
        --ph-g-title-color: var(--primary-color);
    }
}

@media only screen and (min-width: 50.99rem) {
    .ph-rounded-square {
        margin: 0;
        padding: 0;
    }
    .ph-rounded-square > .g-content {
        margin: 0;
        padding: 0;
    }
    .ph-rounded-square .g-title {
        margin: var(--ph-g-title-margin);
        padding: 0;
        color: var(--ph-g-title-color);
        font-family: var(--ph-g-title-font);
        font-size: var(--ph-g-title-size-desktop);
        font-weight: var(--ph-g-title-weight);
        text-transform: var(--ph-g-title-text-transform);
        font-variant-caps: var(--ph-g-title-variant-caps);
    }
    .ph-rounded-square .g-content-array {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: var(--ph-gap);
    }
    .ph-rounded-square .g-content-array > .g-grid {
        margin: 0;
        padding: 0;
        flex: var(--ph-flex-gap);
        max-width: var(--ph-flex-gap);
        border-radius: var(--ph-border-radius);
        overflow: hidden;
        background: var(--ph-background-color);
        box-shadow: var(--ph-box-shadow);
    }
    .ph-rounded-square .g-content-array > .g-grid > .g-block {
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        border-radius: var(--ph-border-radius);
    }
    .ph-rounded-square .g-content-array > .g-grid > .g-block > .g-content {
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        border-radius: var(--ph-border-radius);
    }
    .ph-rounded-square .g-array-item {
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        position: relative;
        border-radius: var(--ph-border-radius);
    }
    .ph-rounded-square .g-array-item-image {
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    .ph-rounded-square .g-array-item-image img {
        margin: 0;
        padding: 0;
        width: 100%;
        object-position: center;
        object-fit: cover;
        transition: .3s all ease-in-out;
    }
    .ph-rounded-square.ph-uw .g-array-item-image img {
        width: 100%;
        aspect-ratio: 3.6 / 1;
    }
    .ph-rounded-square.ph-sw .g-array-item-image img {
        width: 100%;
        aspect-ratio: 2.39 / 1;
    }
    .ph-rounded-square.ph-wide .g-array-item-image img {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .ph-rounded-square.ph-standard .g-array-item-image img {
        width: 100%;
        aspect-ratio: 4 / 3;
    }
    .ph-rounded-square.ph-square .g-array-item-image img {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    .ph-rounded-square.ph-portrait .g-array-item-image img {
        width: 100%;
        aspect-ratio: 3 / 4;
    }
    .ph-rounded-square .g-array-item:hover .g-array-item-image img {
        transform: scale(1.10);
    }
    .ph-rounded-square .g-array-item-title {
        margin: 0;
        padding: var(--ph-title-padding);
        display: flex;
        justify-content: flex-start;
        align-items: center;
        min-height: var(--ph-title-min-height);
        /*border-top: var(--ph-title-border-top);*/
        position: relative;
    }
    .ph-rounded-square .g-item-title {
        margin: 0;
        padding: 0;
        height: 100%;
        border: none;
        font-size: var(--ph-title-font-size-desktop);
        color: var(--ph-title-color);
        font-family: var(--ph-title-font);
        font-weight: var(--ph-title-weight);
    }
    .ph-rounded-square .g-array-item-title:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 4px;
        width: 25%;
        transition: .3s all ease-in-out;
        background: var(--secondary-color);
    }
    .ph-rounded-square .g-array-item:hover .g-array-item-title:before {
        width: 100%;
    }
    .ph-rounded-square .g-item-title a {
        margin: 0;
        padding: 0;
        font-size: var(--ph-title-font-size-desktop);
        color: var(--ph-title-color);
        font-family: var(--ph-title-font);
        font-weight: var(--ph-title-weight);
    }
    .ph-rounded-square .g-array-item-read-more {
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 0;
    }
    .ph-rounded-square .g-array-item-read-more a {
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 0;
    }
}

@media only screen and (max-width: 50.99rem) {
    .ph-rounded-square-mobile {
        margin: 0;
        padding: 0;
    }
    .ph-rounded-square-mobile > .g-content {
        margin: 0;
        padding: 0;
        max-width: 100%;
        /*overflow-x: scroll;
        scroll-snap-type: x mandatory;*/
    }
    .ph-rounded-square-mobile .g-title {
        margin: var(--ph-g-title-margin);
        padding: 0;
        color: var(--ph-g-title-color);
        font-family: var(--ph-g-title-font);
        font-size: var(--ph-g-title-size-mobile);
        font-weight: var(--ph-g-title-weight);
        text-transform: var(--ph-g-title-text-transform);
        font-variant-caps: var(--ph-g-title-variant-caps);
    }
    .ph-rounded-square-mobile .g-content-array {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        /*flex-wrap: nowrap;*/
        /*justify-content: center;*/
        align-items: stretch;
        gap: var(--ph-gap);
        width: 100%;
        /*max-width: calc(480vw + var(--ph-gap));*/
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        padding: 1rem 15vw;
    }
    .ph-rounded-square-mobile .g-content-array > .g-grid {
        margin: 0;
        padding: 0;
        flex: var(--ph-flex-gap);
        width: 80vw;
        max-width: var(--ph-flex-gap);
        border-radius: var(--ph-border-radius);
        /*overflow: hidden;*/
        background: var(--ph-background-color);
        box-shadow: var(--ph-box-shadow);
        scroll-snap-align: center;
    }
    .ph-rounded-square-mobile .g-content-array > .g-grid > .g-block {
        margin: 0;
        padding: 0;
        height: 100%;
        width: 80vw;
        border-radius: var(--ph-border-radius);
    }
    .ph-rounded-square-mobile .g-content-array > .g-grid > .g-block > .g-content {
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        border-radius: var(--ph-border-radius);
    }
    .ph-rounded-square-mobile .g-array-item {
        margin: 0;
        padding: 0;
        height: 100%;
        width: 100%;
        position: relative;
        overflow: hidden;
        border-radius: var(--ph-border-radius);
    }
    .ph-rounded-square-mobile .g-array-item-image {
        margin: 0;
        padding: 0;
        overflow: hidden;
        width: 100%;
    }
    .ph-rounded-square-mobile .g-array-item-image img {
        margin: 0;
        padding: 0;
        width: 100%;
        object-position: center;
        object-fit: cover;
        transition: .3s all ease-in-out;
    }
    .ph-rounded-square-mobile.ph-uw .g-array-item-image img {
        width: 80vw;
        aspect-ratio: 3.6 / 1;
    }
    .ph-rounded-square-mobile.ph-sw .g-array-item-image img {
        width: 80vw;
        aspect-ratio: 2.39 / 1;
    }
    .ph-rounded-square-mobile.ph-wide .g-array-item-image img {
        width: 80vw;
        aspect-ratio: 16 / 9;
    }
    .ph-rounded-square-mobile.ph-standard .g-array-item-image img {
        width: 80vw;
        aspect-ratio: 4 / 3;
    }
    .ph-rounded-square-mobile.ph-square .g-array-item-image img {
        width: 80vw;
        aspect-ratio: 1 / 1;
    }
    .ph-rounded-square-mobile.ph-portrait .g-array-item-image img {
        width: 80vw;
        aspect-ratio: 3 / 4;
    }
    .ph-rounded-square-mobile .g-array-item:hover .g-array-item-image img {
        transform: scale(1.10);
    }
    .ph-rounded-square-mobile .g-array-item-title {
        margin: 0;
        padding: var(--ph-title-padding);
        display: flex;
        justify-content: flex-start;
        align-items: center;
        min-height: var(--ph-title-min-height);
        /*border-top: var(--ph-title-border-top);*/
        position: relative;
    }
    .ph-rounded-square-mobile .g-item-title {
        margin: 0;
        padding: 0;
        height: 100%;
        border: none;
        font-size: var(--ph-title-font-size-mobile);
        color: var(--ph-title-color);
        font-family: var(--ph-title-font);
        font-weight: var(--ph-title-weight);
    }
    .ph-rounded-square-mobile .g-array-item-title:before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 4px;
        width: 25%;
        transition: .3s all ease-in-out;
        background: var(--secondary-color);
    }
    .ph-rounded-square-mobile .g-array-item:hover .g-array-item-title:before {
        width: 100%;
    }
    .ph-rounded-square-mobile .g-item-title a {
        margin: 0;
        padding: 0;
        font-size: var(--ph-title-font-size-mobile);
        color: var(--ph-title-color);
        font-family: var(--ph-title-font);
        font-weight: var(--ph-title-weight);
    }
    .ph-rounded-square-mobile .g-array-item-read-more {
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 0;
    }
    .ph-rounded-square-mobile .g-array-item-read-more a {
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 0;
    }
}

/*************** MAIN *********************/

@media (min-width: 50.99rem) {

    .site-1-home #g-container-main {
        padding: 3% 5% 3% 5% !important;
        position: relative;
        /* background: url('/images/stories/template/stained-glass.png') 50% 50% no-repeat; */
    }

    .site-1-home #g-container-main .middle-container {
        padding: 0 3% !important;
    }

    .site-1-home .side-container img {
        width: 100%;
    }

    .site-1-home .side-container a {
        width: 100%;
        padding: 1rem 2rem;
        margin-top: 0;
    }

    .site-1-home .sign-up .button {
        background-color: var(--secondary-color);
        border-radius: 10rem;
        padding: 1rem 2rem;
        margin-top: 0.5rem;
        font-weight: bold;
        text-shadow: 1px 1px 1px rgba(0,0,0,.5);
        letter-spacing: 2px;
        font-size: clamp(1.1rem, 1.2vw, 2rem);
    }

    .site-1-home #g-container-main > .g-container > .g-grid {
        position: relative;
        z-index: 10;
    }

}

@media (max-width: 50.99rem) {

    .site-1-home #g-container-main {
        padding: 5% !important;
    }

    .site-1-home #g-sidebar > div:nth-child(2) > div > div > div > div {
        margin: 2rem 0;
    }

}

/*  */

@media only screen and (min-width: 50.99rem) {
    .site-1-sub #g-mainbar {
        min-height: 30vh;
    }
}

@media only screen and (max-width: 50.99rem) {
    :is(.site-1-sub, .site-2-sub) #g-mainbar > .g-grid > .g-block > .g-content {
        margin: 0;
        padding: 0;
    }
}

/*************** EXPANDED *****************/

.rok-mini-1003 .rme-time,
.rok-mini-1003 .rme-title {
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,.5);
}

.rok-mini-1003 .rme-arrow {
    color: white;
}

.events-title-1001 h1 {
    color: white;
    margin-top: 0;
}

.events-button-1001 a {
    background-color: var(--secondary-color);
    border-radius: 10rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0,0,0,.5);
    letter-spacing: 2px;
    font-size: clamp(1.25rem, 1.3vw, 2rem);
}

#ph-addpic .g-content-array .g-array-item-image {
    border-radius: 1rem;
    overflow: hidden;
}

@media (min-width: 50.99rem) {

    .rok-mini-1003 .rme-badge {
        background-color: white;
        color: var(--primary-color);
    }

    .site-1-home #g-expanded > div.g-container {
        padding: 3vw 5% 6vw 5%!important; /* adjust the padding here */
    }

    .site-1-home #g-sidebar > div:nth-child(2) > div > div > div > div > h3 {
        margin-top: 2rem;
    }

}

@media (max-width: 50.99rem) {

    .site-1-home #g-expanded > div.g-container {
        padding: 5% !important;
    }

    #custom-7139-particle > div > a {
        margin-top: 0;
    }

}

/*  */

.site-1-home #g-expanded {
    background: url('/images/template/paralax2.jpg') 50% 50% no-repeat;
    background-size: 125% auto;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center;
}

.style-1002 :is(section:not(#g-top), #g-footer, #g-header):has([class*="-1002"]) {
    padding: 0 !important;
}

.site-1-home.tablet-screen #g-expanded {
    background: url('/images/template/paralax2.jpg') 50% 50% no-repeat;
    background-size: cover;
    background-attachment: unset !important;
}

.site-1-home #g-expanded > div.g-container {
    background: rgba(var(--primary-rgb),.7); /* You can change the color here */
    backdrop-filter: blur(5px);
}

@media (max-width: 50.99rem) {

  .site-1-home #g-expanded {
      background: url('/images/template/paralax2.jpg') 50% 50% no-repeat;
      background-size: cover;
  }

}

/*************** EXTENSION ****************/

@media (min-width: 50.99rem) {

    .site-1-home #g-extension {
        padding: 3% 5% !important;
    }

}

/*  */

.site-1 .ql-icon-bg {
    --ql-num-cols: 3;
    --ql-gap: 2vw;
    --ql-num-cols-gaps: calc(var(--ql-num-cols) - 1);
    --ql-num-cols-gaps-total: calc(var(--ql-num-cols-gaps) * var(--ql-gap));
    --ql-num-cols-gaps-quotient: calc(var(--ql-num-cols-gaps-total) / var(--ql-num-cols));
    --ql-flex: calc(100% / var(--ql-num-cols));
    --ql-flex-gap-total: calc(var(--ql-flex) - var(--ql-num-cols-gaps-quotient));
}

@media only screen and (max-width: 50.99rem) {
    .site-1 .ql-icon-bg-mobile {
        --ql-num-cols: 2;
        --ql-gap: 5vw;
    }
}

@media only screen and (min-width: 50.99rem) {
    .site-1 .ql-icon-bg {
        /*--ql-flex-gap: 2vw;*/
        --ql-font-size-desktop: 1.6vw;
    }

    .site-2 .ql-icon-bg {
        --ql-flex-gap: 2vw;
        --ql-font-size-desktop: 2.5vw;
    }

    .ql-icon-bg .g-blockcontent-subcontent {
        flex-wrap: wrap;
        gap: 3vw var(--ql-gap);
    }
    .ql-icon-bg .g-blockcontent-subcontent-block {
        /*min-width: 27%;*/
        max-width: var(--ql-flex-gap-total);
        flex: var(--ql-flex-gap-total);
        border-radius: .75rem;
        /*overflow: hidden;*/
        width: unset;
        height: unset;
        aspect-ratio: 1/1;
        box-shadow: 0px 0px 15px rgba(0,0,0,.5);
        transition: .3s all ease-in-out;
    }
    .ql-icon-bg .g-blockcontent-subcontent-block:hover {
        transform: scale(1.10);
    }
    .ql-icon-bg .g-blockcontent-subcontent-img {
        width: 100%;
        height: unset;
        aspect-ratio: 1/1;
        position: unset;
        border-radius: .75rem;
    }
    .ql-icon-bg .g-blockcontent-subcontent-block-content:before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        background: rgba(var(--primary-rgb),.5);
        border-radius: .75rem;
    }
    .ql-icon-bg .g-blockcontent-subcontent-desc {
        position: absolute;
        top: 0;
        bottom: 50%;
        left: 0;
        right: 0;
        width: 100%;
        height: 50%;
        z-index: 5;
        color: var(--ql-title-color);
        font-size: var(--ql-icon-size-desktop);
        display: flex;
        justify-content: center;
        align-items: flex-end;
        transition: var(--default-transition);
    }
    .ql-icon-bg .g-blockcontent-subcontent-desc img {
        height: 5vw;
        width: 5vw;
        margin-bottom: .25vw!important;
    }
    .ql-icon-bg .g-blockcontent-subcontent-title-icon {
        bottom: 50%;
        height: 50%;
        text-shadow: 2px 2px 15px rgba(0,0,0,.5);
    }
    .ql-icon-bg .g-blockcontent-subcontent-title {
        top: 50%;
        bottom: 1.25vw;
        height: calc(50% - 1.25vw);
        padding: 1vw 2vw;
    }
    .ql-icon-bg .g-blockcontent-subcontent-title {
        text-shadow: 2px 2px 15px rgba(0,0,0,.5);
    }
    .ql-icon-bg .g-blockcontent-subcontent-subtitle {
        margin: 0;
        padding: 0;
        position: absolute;
        bottom: -1.25vw;
        left: 7.5%;
        right: 7.5%;
        width: 85%;
        height: fit-content;
        text-align: center;
        font-size: 1.25vw;
        font-weight: 400;
        font-family: var(--body-font-family);
        color: var(--default-black);
        background: #E2E2E2;
        padding: .5vw;
        box-shadow: 0px 0px 10px rgba(0,0,0,.5);
        border-radius: .75rem;
        z-index: 1;
        overflow: hidden;
    }
    .ql-icon-bg .g-blockcontent-subcontent-subtitle:before {
        position: absolute;
        content: '';
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 0%;
        height: 6vw;
        z-index: -1;
        border-radius: .75rem;
        transition: .3s all ease-in-out;

        background: radial-gradient(circle, #e31b23, #ff9aa2);
        background-color: var(--secondary-color);
        background-size: 300% 300%;

        -webkit-animation: moveGradient 35s linear infinite;
        -moz-animation: moveGradient 35s linear infinite;
        animation: moveGradient 35s linear infinite;
    }
    .ql-icon-bg .g-blockcontent-subcontent-block:hover .g-blockcontent-subcontent-subtitle:before {
        width: 100%;
    }
    .ql-icon-bg .g-blockcontent-subcontent-block:hover .g-blockcontent-subcontent-subtitle {
        color: var(--default-white);
    }
    .ql-icon-bg .g-blockcontent-subcontent-subtitle>* {
        z-index: 1;
        position: relative;
    }
}

@media only screen and (max-width: 50.99rem) {
    .ql-icon-bg-mobile .g-blockcontent-subcontent {
        flex-wrap: wrap;
        gap: 5vw var(--ql-gap);
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-block {
        /*min-width: 27%;*/
        max-width: var(--ql-flex-gap-total);
        flex: var(--ql-flex-gap-total);
        border-radius: .75rem;
        /*overflow: hidden;*/
        width: unset;
        height: unset;
        aspect-ratio: 4 / 3;
        box-shadow: 0px 0px 15px rgba(0,0,0,.5);
        transition: .3s all ease-in-out;
    }
    /*.ql-icon-bg-mobile .g-blockcontent-subcontent-block:hover .g-blockcontent-subcontent-img {
        transform: scale(1.10);
    }*/
    .ql-icon-bg-mobile .g-blockcontent-subcontent-img {
        width: 100%;
        height: unset;
        aspect-ratio: 4 / 3;
        position: unset;
        border-radius: .75rem;
        transition: .3s all ease-in-out;
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-block-content:before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        background: rgba(var(--primary-rgb),.5);
        border-radius: .75rem;
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-desc {
        position: absolute;
        top: 0;
        bottom: 40%;
        left: 0;
        right: 0;
        width: 100%;
        height: 60%;
        z-index: 5;
        color: var(--ql-title-color);
        font-size: var(--ql-icon-size-desktop);
        display: flex;
        justify-content: center;
        align-items: flex-end;
        transition: var(--default-transition);
        display: none!important;
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-desc img {
        height: 5vw;
        width: 5vw;
        margin-bottom: .25vw!important;
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-title-icon {
        bottom: 40%;
        height: 60%;
        text-shadow: 2px 2px 15px rgba(0,0,0,.5);
        display: none!important;
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-title {
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        padding: 1vw 2vw;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-title {
        text-shadow: 2px 2px 15px rgba(0,0,0,.5);
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-subtitle {
        margin: 0;
        padding: 0;
        position: absolute;
        bottom: -2.25vw;
        left: 7.5%;
        right: 7.5%;
        width: 85%;
        height: fit-content;
        text-align: center;
        font-size: 3vw;
        font-weight: 700;
        font-family: var(--body-font-family);
        color: var(--default-black);
        background: #E2E2E2;
        padding: 1vw;
        box-shadow: 0px 0px 10px rgba(0,0,0,.5);
        border-radius: .75rem;
        z-index: 1;
        overflow: hidden;
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-subtitle:before {
        position: absolute;
        content: '';
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        width: 0%;
        height: 6vw;
        z-index: -1;
        border-radius: .75rem;
        transition: .3s all ease-in-out;

        background: radial-gradient(circle, #e31b23, #ff9aa2);
        background-color: var(--secondary-color);
        background-size: 300% 300%;

        -webkit-animation: moveGradient 35s linear infinite;
        -moz-animation: moveGradient 35s linear infinite;
        animation: moveGradient 35s linear infinite;
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-block:hover .g-blockcontent-subcontent-subtitle:before {
        width: 100%;
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-block:hover .g-blockcontent-subcontent-subtitle {
        color: var(--default-white);
    }
    .ql-icon-bg-mobile .g-blockcontent-subcontent-subtitle>* {
        z-index: 1;
        position: relative;
    }
}

@media only screen and (max-width: 50.99rem) {
    .ql-icon-bg.ql-dm .g-blockcontent-subcontent-subtitle {
        display: none!important;
    }
}


/*************** BOTTOM *******************/

@media only screen and (min-width: 50.99rem) {
    .site-1-home #g-bottom {
        padding: 2vw 0!important;
    }
    .site-1 #g-bottom .admod td {
        padding: 0;
    }
}

@media (max-width: 50.99rem) {

    .site-1-home #g-bottom {
        padding: 5% 0 !important;
    }

}

/*************** FOOTER *******************/

.site-1-home #g-container-footer {
    position: relative;
    overflow: hidden; /* Ensures the off-screen images do not affect layout */
}

.site-1-home #g-container-footer .g-grid {
    position: relative;
    z-index: 5;
}

#g-container-footer > .g-container {
    position: relative;
    z-index: 2; /* Ensures the content is above the background images */
}

.site-1 #g-footer h1 {
    color: white;
}

@media (min-width: 50.99rem) {

    .site-1-home #g-footer {
        position: relative;
        overflow: hidden;
    }


}

@media (max-width: 50.99rem) {

 .site-1 #g-footer .footer-center-1303 {
        padding: 2rem 0;
    }

}

/*  */
#g-footer .g-content-array {margin: 0;}
#g-footer a {color: var(--default-white); transition: .3s all ease-in-out;} 
#g-footer a:hover {opacity: .5;}

/*************** COPYRIGHT ****************/ 
@media only screen and (max-width: 50.99rem) {
    .web-policy {
        justify-content: flex-end;
        padding-right: 10px;
    }
    .site-1 .adminfootericon {
        bottom: 10px
    }

    .site-2 .adminfootericon {
        bottom: 40px
    }
}

/*************** MODULES ******************/
.moduletable .nav.menu, .moduletable .unstyled {background: var(--primary-color);} 
.moduletable .nav.menu li.current.active a, .moduletable .nav.menu li a:hover {    
    color: var(--default-white); 
    background: var(--secondary-color);
} 
/*************** SECTIONS *****************/
/*************** MOBILE *******************/

.g-offcanvas-toggle {
  background: var(--default-white);
  display: grid;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: var(--default-box-shadow);
}

/*************** ADS **********************/

@media only screen and (min-width: 50.99rem) {
    #site-grid #g-container-main {
        padding-bottom: 3vw;
    }
}

@media only screen and (max-width: 50.99rem) {
    .grid.ph-sidebyside-mobile .g-array-item-read-more {
        opacity: 0;
    }
    .grid.ph-sidebyside-mobile .g-array-item-title {
        padding: 1rem;
    }
}

@media only screen and (min-width: 50.99rem) {
    .search-page button.btn {
        background: var(--primary-color)!important;
    }
    .search-page button.btn:hover {
        background: var(--secondary-color)!important;
    }
}

@media only screen and (max-width: 50.99rem) {
    .search-page button.btn {
        background: var(--primary-color)!important;
    }
    .search-page button.btn:hover {
        background: var(--secondary-color)!important;
    }
}

@media only screen and (max-width: 50.99rem) {
    .ph-sidebyside-mobile .g-array-item-read-more {
        opacity: 0;
    }
    .ph-sidebyside-mobile .g-array-item-title {
        padding: 1rem;
    }
}

@media only screen and (min-width: 50.99rem) {
    .bilingual {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 2vw;
    }
    .bilingual .englishtext {
        flex: 1;
    }
    .bilingual .spanishtext {
        flex: 1;
        font-style: italic;
    }
}

@media only screen and (max-width: 50.99rem) {
    .bilingual {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .bilingual .englishtext {
        flex: 1;
    }
    .bilingual .spanishtext {
        flex: 1;
        font-style: italic;
    }
}

@media only screen and (min-width: 50.99rem) {
    .bulletin-page #g-mainbar > .g-grid:nth-child(1) {
        display: none!important;
    }
    .bulletin-page .docman_category {
        display: none!important;
    }
}

@media only screen and (max-width: 50.99rem) {
    .bulletin-page #g-mainbar > .g-grid:nth-child(1) {
        display: none!important;
    }
    .bulletin-page .docman_category {
        display: none!important;
    }
}

/* Image Paths for Particle Template */
/* All images used in the particle template need to be updated here */

.style-1303 #g-footer:has([class*="-1303"]) {background-image: url('/images/template/parallax1.jpg'); background-size: cover; background-position: center; background-repeat: no-repeat;}

@media (min-width: 50.99rem) {
  .style-201 .g-container:has([class*="-201"]) {background-image: url('/images/template/header-church-transparent-background.png'); background-position: center; background-size: cover; background-repeat: no-repeat;}
  .style-202 .g-container:has([class*="-202"]) {background-image: url("/images/template/header-church-transparent-background.png"); background-position: center; background-size: cover; background-repeat: no-repeat;}
  .style-301 .mass-times-301 {background: url('/images/template/masstimes.jpg') 0% no-repeat; background-size: cover; background-position: center;}
  .style-303 .mass-times-303 {background: url('/images/template/masstimes.jpg') 0% no-repeat; background-size: cover; background-position: center;}
  .style-304 .mass-times-304 {background: url('/images/template/masstimes.jpg') 0% no-repeat; background-size: cover; background-position: center;}
  .style-305 .mass-times-305 {background: url('/images/template/masstimes.jpg') 0% no-repeat; background-size: cover; background-position: center;}
  .style-1001 :is(#g-navigation, #g-slideshow, #g-header, #g-above, #g-feature, #g-showcase, #g-utility, #g-container-main, #g-expanded, #g-extension, #g-bottom, #g-footer, #g-copyright):has([class*="-1001"]) {background: url('/images/template/parallax1.jpg') 50% 50% no-repeat;}
  .mockup-ads.particle-template .g-block:has(div.adside) .adside {background-image: url("/images/template/side-ads.png");}
  .mockup-ads.particle-template .adhorizontal {background-image: url("/images/template/horizontal-ads.png");}
}

@media (max-width: 50.99rem) {
   .mockup-ads.particle-template .g-block:has(div.adside) .adside {background-image: url("/images/template/side-ads.png");}
   .mockup-ads.particle-template .adhorizontal {background-image: url("/images/template/horizontal-ads-mobile.png");}
}

@media only screen and (min-width: 50.99rem) {
    body[class*="-sub"]:not(.sponsorshippage) #g-mainbar.section-padding-5 > .g-grid > .g-block > .g-content {
        margin: 0!important;
        padding: 0!important;
    }
    body[class*="-sub"]:not(.sponsorshippage) #g-mainbar.section-padding-5:has(.page-header) > .g-grid > .g-block > .g-content {
        margin: .625rem 0!important;
        padding: 1.5rem 0!important;
    }
    body[class*="-sub"]:not(.sponsorshippage) #g-container-main:has(#g-mainbar.section-padding-5, #g-aside) {
        margin: 0!important;
        padding: 0 5%!important;
    }
    body[class*="-sub"]:not(.sponsorshippage) #g-container-main:has(#g-mainbar.section-padding-5, #g-aside) #g-mainbar.section-padding-5 {
        margin: 0!important;
        padding: 0!important
    }
    body[class*="-sub"]:not(.sponsorshippage) #g-container-main:has(#g-mainbar.section-padding-5, #g-aside) #g-mainbar.section-padding-5 > .g-grid > .g-block > .g-content {
        margin: 0!important;
        padding: 0 5% 0 0!important;
    }
    body[class*="-sub"]:not(.sponsorshippage) #g-container-main:has(#g-mainbar.section-padding-5, #g-aside) #g-mainbar.section-padding-5:has(.page-header) > .g-grid > .g-block > .g-content {
        margin: .625rem 0!important;
        padding: 1.5rem 5% 1.5rem 0!important;
    }
    body[class*="-sub"]:not(.sponsorshippage) #g-page-surround #g-container-main:has(.bulletin-page) #g-mainbar {
        padding-top: 2rem !important;
    }
}

@media only screen and (max-width: 50.99rem) {
    body[class*="-sub"] #g-mainbar.section-padding-5 > .g-grid > .g-block > .g-content {
        margin: 0!important;
        padding: 0!important;
    }
}

/*  */

@media only screen and (min-width: 50.99rem) {
    #g-top-nav {
        display: none!important;
    }
    #g-mobile-fixed-nav {
        display: none!important;
    }
    body[class*="-sub"]:not(.sponsorshippage) #g-page-surround #g-container-main:has(.k-ui-namespace.com_docman) {
        padding-top: 3% !important;
      }
}

@media only screen and (max-width: 50.99rem) {
    #g-top-nav {
        display: none!important;
    }
    #g-mobile-fixed-nav {
        display: none!important;
    }
}

body {background-color: var(--primary-color);}
@media only screen and (max-width: 50.99rem) {
@media (display-mode: standalone) {
    #g-top-nav {
        display: flex!important;
    }
    #g-mobile-fixed-nav {
        display: flex!important;
    }
    #g-top.modern-alert-padding {
        padding: 2rem 5%!important;
    }
    body {background-color: var(--primary-color);}
    #g-offcanvas {height: calc(100% - 120pt); top: 40pt; bottom: 80pt;}
    #g-top {margin-top: 40pt!important;}
    #g-navigation .g-logo {display: none;}
    #g-top-nav .g-particle:has(.g-logo) {width: 100%;}
    #g-top-nav .g-logo {text-align: center; display: flex; align-items: center; justify-content: center; width: 100%; height: 40pt;}
    #g-top-nav .g-logo img {height: 80%; width: auto;}
    #g-page-surround .g-offcanvas-toggle {display: none;}
    #g-page-surround {background: var(--primary-color);}
    #g-top-nav {display: flex; position: fixed; top: 0; left: 0; right: 0; width: 100%; height: 40pt; background: var(--primary-color); z-index: 100; box-shadow: var(--default-box-shadow);}
    .g-offcanvas-toggle {position: fixed!important; z-index: 101; top: 0; left: 10pt; height: 40pt; font-size: 23pt; display: flex; justify-content: center; align-items: center; background: none!important; border-radius: unset; box-shadow: unset;}
    .g-offcanvas-toggle {color: var(--default-white);} 
    .g-offcanvas-toggle .fa-fw {text-shadow: none;}
    #g-container-footer {padding-bottom: 80pt!important;}
    #g-mobile-fixed-nav {display: flex; height: 80pt; background: var(--primary-color); color: var(--default-white); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 100; position: fixed; bottom: 0; left: 0; right: 0; width: 100%; box-shadow: var(--default-box-shadow)}
    .mobile-nav-link {color: var(--default-white); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; height: 60pt;}
    .mobile-nav-link:hover {color: var(--secondary-color);}
    .mobile-fixed-nav {width: 100%; height: 60pt;}

    .mobile-fixed-nav {
        margin: 0;
        padding: 0;
        display: flex;
        width: 100%;
        align-items: center;
        overflow: hidden;
    }
    .mobile-fixed-nav .g-particle {
        margin: 0;
        padding: 0;
        width: 100%;
    }
    .mobile-fixed-nav .g-particle > div {
        margin: 0;
        padding: 0;
    }
    .mobile-fixed-nav .g-blockcontent {
        margin: 0;
        padding: 0;
    }
    .mobile-fixed-nav .g-blockcontent-subcontent {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 1pt;
    }
    .mobile-fixed-nav .g-blockcontent-subcontent-block {
        margin: 0;
        padding: 0;
        flex: 1;
        position: relative;
    }
    .mobile-fixed-nav .g-blockcontent-subcontent-block-content {
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .mobile-fixed-nav .g-blockcontent-subcontent-title-icon {
        margin: 0;
        padding: 0;
        order: 1;
        color: var(--default-white);
        font-size: 5vw;
    }
    .mobile-fixed-nav .g-blockcontent-subcontent-title {
        margin: 0;
        padding: 0;
        order: 2;
    }
    .mobile-fixed-nav .g-blockcontent-subcontent-title-text {
        margin: 0;
        padding: 0;
        color: var(--default-white);
        font-size: 4vw;
        font-family: var(--body-font-family);
    }
    .mobile-fixed-nav .g-blockcontent-buttons {
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 0;
    }
    .mobile-fixed-nav .g-blockcontent-buttons a {
        margin: 0;
        padding: 0;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100%;
        width: 100%;
        opacity: 0;
    }
}
}