/*FONTS ex: @import url('... */

/******* SITE DEFAULTS *************/
html body {
    --primary-color-rgb: 34, 68, 102;
    --secondary-color-rgb: 47, 78, 133;
    --tertiary-color-rgb: 232, 240, 251;
    --default-white-rgb: 247, 244, 239;
    --accent-color-rgb: 212, 175, 55;
    --default-black-rgb: 0, 0, 0;

    --title-font-family: 'EB Garamond', serif;
    --body-font-family: 'Lato', sans-serif;

    --last-break-point: 50.99rem;
    --site-max-width: 1920px;
    --site-container-max-width: 1600px;
}

html body.site-home {
    --section-above-bg: var(--secondary-color);
}

h6 {
    color: rgb(var(--accent-color-rgb));
}

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;
}

/* NAVIGATION HEADER */
html body #g-navigation {
    background-color: #ffffff !important;
    /* height: 90px; */
    /* padding: 0 1rem !important; */
    --main-menu-text-color: rgb(var(--secondary-color-rgb));
    --main-menu-text-color-hover: rgb(var(--primary-color-rgb));
    --main-menu-bg: transparent;
    --navigation-floating-social-padding: min(1vw, 1rem);
}

.button a:hover {
    color: white !important;
}

#g-navigation .g-container,
#g-navigation .g-grid {
    height: 100%;
    background-color: transparent !important;
}

/* Reset ::before backgrounds from base styles */
@media only screen and (min-width: 50.99rem) {
    #g-navigation>.g-container>.g-grid:has(.g-main-nav):before {
        display: none !important;
    }
}

/* Nav typography and spacing */
#g-navigation .g-main-nav {
    font-family: var(--body-font-family), sans-serif !important;
    font-size: 16px !important;
}

#g-navigation .g-toplevel {
    display: flex;
    justify-content: space-evenly !important;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

#g-navigation .g-menu-item {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Menu Links */
#g-navigation .g-menu-item-container {
    color: rgb(var(--secondary-color-rgb)) !important;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none !important;
    padding: 10px 15px !important;
    background: transparent !important;
    border: none !important;
    position: relative;
    transition: color 0.3s ease;
}

#g-navigation .g-menu-item-container .g-menu-item-content {
    background: transparent !important;
}

/* Hover Effect: Accent Underline — grows from center */
#g-navigation .g-menu-item-container:after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    right: 50%;
    height: 2px;
    background-color: rgb(var(--accent-color-rgb));
    opacity: 0;
    transition: left 0.3s ease, right 0.3s ease, opacity 0.3s ease;
}

#g-navigation .g-menu-item:hover .g-menu-item-container:after,
#g-navigation .g-menu-item.active .g-menu-item-container:after {
    left: 15px;
    right: 15px;
    opacity: 1;
}

#g-navigation .g-menu-item:hover .g-menu-item-container {
    color: rgb(var(--primary-color-rgb)) !important;
}

/* Dropdown: unified background on the container */
@media only screen and (min-width: 50.99rem) {
    #g-navigation .g-main-nav .g-dropdown {
        background: rgb(var(--secondary-color-rgb)) !important;
        border-top: 3px solid rgb(var(--accent-color-rgb)) !important;
        padding: 6px 0 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
    }

    #g-navigation .g-main-nav .g-sublevel>li>.g-menu-item-container {
        color: rgb(var(--default-white-rgb)) !important;
        background: transparent !important;
        border-left: 3px solid transparent;
        padding-left: 12px !important;
        transition: background 0.2s ease, border-color 0.2s ease;
        white-space: nowrap;
    }

    /* Suppress top-level underline on dropdown items */
    #g-navigation .g-main-nav .g-sublevel>li>.g-menu-item-container:after {
        display: none !important;
    }

    #g-navigation .g-main-nav .g-sublevel>li>.g-menu-item-container:hover {
        background: rgba(0, 0, 0, 0.18) !important;
        color: rgb(var(--default-white-rgb)) !important;
        border-left-color: rgb(var(--accent-color-rgb)) !important;
    }
}

.g-array-item-text {
    margin: 0 !important;
    padding: 0 !important;
}

/*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) {
    body .side-menu-particle .g-blockcontent-subcontent-title-text {
        --side-menu-font-size-desktop: 4vw;
    }
}

/*  */

@media (max-width: 50.99rem) {
    .g-offcanvas-toggle {
        top: 0;
        left: 0;
        border-radius: 0 0 50% 0
    }
}

/*  */

/* 1. Establish the Aspect Ratio on the Container */
.studius-swiper .g-swiper {
    --swiper-aspect-ratio: 16 / 9.8;
    /* Adjust this ratio as needed */
    width: 100% !important;
    max-width: 100%;
}

/* 2. Force the Wrapper to respect the ratio and stop growing */
.studius-swiper .swiper-wrapper {
    height: auto !important;
    /* Overrides the inline VW height */
    aspect-ratio: var(--swiper-aspect-ratio);
    max-height: 80vh;
    /* Keeps it from swallowing the screen on ultrawide monitors */
}

/* 3. Center and Cover the Images */
.studius-swiper .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* Crops image to fill area without distortion */
    object-position: center !important;
    /* Centers the crop */
    display: block;
}

/* 4. Fix Navigation Button Alignment */
/* We target Gantry's specific navigation classes */
.studius-swiper [class^="swiper-button-next-"],
.studius-swiper [class^="swiper-button-prev-"] {
    top: 50% !important;
    transform: translateY(-50%) !important;
    bottom: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 5. Cleanup slide internal wrappers */
.studius-swiper .swiper-slide,
.studius-swiper .slide,
.studius-swiper .slide-content-wrapper {
    height: 100% !important;
}

/*  */

/* */

/* MASS TIMES BLOCK - .site-home #g-slideshow .j-mass-times */
.site-home #g-slideshow .g-grid {
    display: flex;
    align-items: stretch;
}

.site-home #g-slideshow .j-mass-times {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
}

@media (max-width: 50.99rem) {
    .site-home #g-slideshow .j-mass-times,
    .site-home #g-slideshow .studius-swiper {
        width: 100% !important;
    }

    .site-home #g-page-surround #g-extension > .g-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.site-home #g-slideshow .j-mass-times .g-particle {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    position: relative;
    height: 100% !important;
    min-height: 0;
    background-color: rgb(var(--primary-color-rgb));
}

/* Scrollable container */
.site-home #g-slideshow .j-mass-times .g-content-array {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 2.5rem 2.5rem !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Scrollbar styling for webkit */
.site-home #g-slideshow .j-mass-times .g-content-array::-webkit-scrollbar {
    width: 6px;
}

.site-home #g-slideshow .j-mass-times .g-content-array::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* Text Container & Typography resets */
.site-home #g-slideshow .j-mass-times .g-array-item-text {
    margin-top: 0 !important;
    color: #ffffff;
}

.site-home #g-slideshow .j-mass-times h1,
.site-home #g-slideshow .j-mass-times h2,
.site-home #g-slideshow .j-mass-times h3 {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    text-transform: none;
    font-weight: 400;
    text-align: center;
}

.site-home #g-slideshow .j-mass-times h1 {
    font-family: var(--title-font-family);
    font-size: 2.2rem !important;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
}

.site-home #g-slideshow .j-mass-times h2 {
    font-family: var(--title-font-family);
    font-size: 1.8rem !important;
    color: #ffffff !important;
    margin-bottom: 1.25rem;
}

.site-home #g-slideshow .j-mass-times h3 {
    font-family: var(--title-font-family);
    font-size: 1.6rem !important;
    color: #ffffff !important;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.3);
    border-bottom: none;
}

.site-home #g-slideshow .j-mass-times .schedule-entry {
    margin-bottom: 1.5rem;
}

.site-home #g-slideshow .j-mass-times .time-row {
    font-size: 1rem;
    line-height: 1.6;
    color: #ffffff;
    text-align: center;
    margin-bottom: 0.25rem;
}

.site-home #g-slideshow .j-mass-times p,
.site-home #g-slideshow .j-mass-times ul,
.site-home #g-slideshow .j-mass-times li,
.site-home #g-slideshow .j-mass-times address {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
}

.site-home #g-slideshow .j-mass-times address {
    text-align: center;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.site-home #g-slideshow .j-mass-times p {
    margin-bottom: 0.75rem;
    text-align: center;
}

.site-home #g-slideshow .j-mass-times ul {
    margin: 0 0 1.5rem 0;
    padding-left: 0;
    list-style: none;
    text-align: center;
}

.site-home #g-slideshow .j-mass-times ul li {
    margin-bottom: 0.35rem;
}

/* Highlights */
.site-home #g-slideshow .j-mass-times strong {
    font-weight: 600;
    color: #ffffff;
    margin-right: 0.25rem;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

.site-home #g-slideshow .j-mass-times hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 1.75rem 0;
}

/* Blockquote */
.site-home #g-slideshow .j-mass-times blockquote {
    border: none;
    background: transparent;
    padding: 0;
    margin: 2.5rem 0 0 0;
    text-align: center;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.site-home #g-slideshow .j-mass-times blockquote p {
    font-size: 0.95rem;
}

/* Tablet Adjustments */
@media (min-width: 50.99rem) and (max-width: 90rem) {
    .site-home #g-slideshow .mass-times-nav {
        flex-wrap: wrap;
        gap: 0.2rem;
        margin-bottom: 1.25rem;
    }

    .site-home #g-slideshow .mass-tab-btn {
        font-size: 0.6rem !important;
        padding: 5px 7px !important;
        letter-spacing: 0;
    }
}

/* Compact mass schedule text on smaller screens */
@media (max-width: 90rem) {
    .site-home #g-slideshow .j-mass-times .g-content-array {
        padding: 1.5rem 1.75rem !important;
    }

    .site-home #g-slideshow .j-mass-times h1 {
        font-size: 1.7rem !important;
        margin-bottom: 0.85rem;
    }

    .site-home #g-slideshow .j-mass-times h2 {
        font-size: 1.35rem !important;
        margin-bottom: 0.75rem;
    }

    .site-home #g-slideshow .j-mass-times h3 {
        font-size: 1.5rem !important;
        margin-bottom: 0.35rem;
        margin-top: 0.75rem;
    }

    .site-home #g-slideshow .j-mass-times .schedule-entry {
        margin-bottom: 0.75rem;
    }

    .site-home #g-slideshow .j-mass-times .time-row {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 0.25rem;
    }

    .site-home #g-slideshow .j-mass-times p,
    .site-home #g-slideshow .j-mass-times ul,
    .site-home #g-slideshow .j-mass-times li,
    .site-home #g-slideshow .j-mass-times address {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .site-home #g-slideshow .j-mass-times address {
        margin-bottom: 0.75rem;
    }

    .site-home #g-slideshow .j-mass-times p {
        margin-bottom: 0.4rem;
    }

    .site-home #g-slideshow .j-mass-times ul {
        margin-bottom: 0.75rem;
    }

    .site-home #g-slideshow .j-mass-times ul li {
        margin-bottom: 0.2rem;
    }

    .site-home #g-slideshow .j-mass-times blockquote {
        margin-top: 1rem;
    }
}

/* Mobile Adjustments */
@media (max-width: 50.99rem) {
    .site-home #g-slideshow .g-grid {
        flex-direction: column;
    }

    .site-home #g-slideshow .j-mass-times .g-particle {
        height: auto !important;
        max-height: none !important;
    }

    .site-home #g-slideshow .j-mass-times .g-content-array {
        position: relative;
        height: auto !important;
        padding: 2.5rem 1.5rem !important;
        overflow-y: visible;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* */
/* MASS TIMES TAB SYSTEM */
.site-home #g-slideshow .mass-times-nav {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.site-home #g-slideshow .mass-tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-family: var(--body-font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0;
    outline: none;
    white-space: nowrap;
}

.site-home #g-slideshow .mass-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-home #g-slideshow .mass-tab-btn.active {
    background: #ffffff;
    color: rgb(var(--secondary-color-rgb));
    border-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.site-home #g-slideshow .mass-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.site-home #g-slideshow .mass-tab-pane.active {
    display: block;
}

.site-home #g-slideshow .mass-disclaimer {
    margin-top: 1rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* HEADER & EXPANDED BORDERS */
.site-home #g-header,
.site-home #g-expanded {
    position: relative;
    background-color: #f1f2f3;
}

/* STAINED GLASS COMPONENT (#g-header) */

.site-home #g-header .j-stained-glass {
    position: relative;
    z-index: 5;
    padding: 4rem 3rem;
    /* background-image: url('/images/template/background-2.jpg'); */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.site-home #g-header .j-stained-glass .g-blockcontent-subcontent {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
align-items: start;
    /* Align to the bottom so windows sit on same line */
    gap: 30px;
    /* Increased padding between blocks */
    margin: 0;
    padding: 0;
}

.site-home #g-header .j-stained-glass .g-blockcontent-subcontent-block {
    position: relative;
    flex: 1 1 0;
    max-width: 215px;
    /* Reduced the size of the quicklinks */
    transition: transform 0.3s ease;
}

.site-home #g-header .j-stained-glass .g-blockcontent-subcontent-block:hover {
    transform: translateY(-8px);
}

.site-home #g-header .j-stained-glass .g-blockcontent-subcontent-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 1000px 1000px 0 0;
    border: 4px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Text Content Area */
.site-home #g-header .j-stained-glass .g-blockcontent-subcontent-block-content {
    padding: 0 5px;
    /* Slight horizontal padding for text */
}

/* Hide the static title element and use the link as the single label */
.site-home #g-header .j-stained-glass .g-blockcontent-subcontent-title {
    display: none;
}

/* Centered, single larger link Label */
.site-home #g-header .j-stained-glass .g-blockcontent-buttons {
    text-align: center;
    margin: 1.25rem 0 0 0;
    padding: 0;
    text-decoration: none !important;
}

.site-home #g-header .j-stained-glass .g-blockcontent-buttons a {
    font-family: var(--body-font-family);
    font-size: 1.35rem;
    font-weight: 700;
    color: rgb(var(--primary-color-rgb));
    text-decoration: none !important;
    transition: color 0.3s ease;
    display: block;
}

/* Full Area Hover Effect Link */
.site-home #g-header .j-stained-glass .g-blockcontent-buttons a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
}

/* Hover effects */
.site-home #g-header .j-stained-glass .g-blockcontent-subcontent-block:hover .g-blockcontent-buttons a {
    color: rgb(var(--secondary-color-rgb));
}

/* Mobile Breakpoint Adjustment */
@media (max-width: 50.99rem) {
    .site-home #g-header .j-stained-glass .g-blockcontent-subcontent {
        flex-wrap: wrap;
        gap: 1.5rem 1rem;
    }

    .site-home #g-header .j-stained-glass .g-blockcontent-subcontent-block {
        flex: 1 1 calc(33.333% - 1rem);
        /* 3 columns on tablets/larger mobile */
        min-width: 120px;
    }
}

@media (max-width: 35rem) {
    .site-home #g-header .j-stained-glass .g-blockcontent-subcontent-block {
        flex: 1 1 calc(50% - 1rem);
        /* 2 columns on small screens */
    }
}

/* Container and Layout */
.j-banners {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0;
}

.j-banners table {
    width: 100% !important;
    border: none !important;
    margin: 0 auto;
}

.j-banners .g-content {
    padding: 0;
    margin: 0;
}

.j-banners tbody {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.j-banners tr {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    row-gap: 1rem;
    width: 100%;
}

/* Cell and Link Styling */
.j-banners td {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
    max-width: 100% !important;
}

.j-banners td>div,
.j-banners td>div>div {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto;
}

.j-banners td>div>div {
    display: grid !important;
}

.j-banners a {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
}

/* Image and Effects */
.j-banners img {
    position: relative !important;
    display: block;
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    margin: 0 auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
    border-radius: 4px;
}

.j-banners a:hover img {
    transform: translateY(-4px) translateZ(0);
    box-shadow: 0 4px 15px rgba(var(--primary-color-rgb), 0.3);
}

/* Mobile Responsive Styles */
@media (max-width: 50.99rem) {
    .j-banners {
        padding: 0;
    }

    .j-banners table {
        display: block !important;
        width: 100% !important;
    }

    .j-banners tbody {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
        width: 100%;
    }

    .j-banners tr {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        width: fit-content !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .j-banners td {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .j-banners div[style*="width: 330px"] {
        max-width: 100% !important;
    }
}

.j-center {
    display: grid;
    align-items: center;
    justify-content: center;
    padding-left: 2rem;
}

/* MAIN CONTAINER STYLING */
.site-home #g-container-main {
    height: auto !important;
    min-height: 600px;
    padding: 4rem 2rem !important;
    background-color: #224466 !important;
    display: block !important;
}



.site-home #g-container-main .g-container {
    max-width: var(--site-container-max-width) !important;
    margin: 0 auto;
}

/* Resetting hardcoded dimensions from base styles */
.site-home #g-container-main .g-block,
.site-home #g-container-main .g-content,
.site-home #g-container-main .g-particle,
.site-home #g-container-main .g-grid {
    height: auto !important;
    block-size: auto !important;
    transform: none !important;
    perspective: none !important;
}

.site-home #g-container-main .g-block {
    flex: 1 1 auto;
}

.site-home #g-container-main .g-block.size-83 {
    flex-basis: 83%;
}

.site-home #g-container-main .g-block.size-17 {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center;
    padding-left: 3rem;
}

/* Sidebar Ads/Banners refinement */
.site-home #g-container-main #g-aside {
    width: 100% !important;
}

.site-home #g-container-main .j-banners {
    padding: 0 !important;
}

@media (max-width: 50.99rem) {


.site-home #g-container-main .g-block,
.site-home #g-container-main .g-content,
.site-home #g-container-main .g-particle,
.site-home #g-container-main .g-grid {
        display: flex;
    justify-content: center;
    flex-direction: column;
}

.j-calendar {
    padding-bottom: 2rem !important;
}

    .site-home #g-container-main {
        padding: 4rem 0 !important;
    }

    .site-home #g-container-main .g-grid {
        flex-direction: column !important;
    }

    .site-home #g-container-main .g-block {
        flex-basis: 100% !important;
        width: 100% !important;
    }

    .site-home #g-container-main .g-block.size-17 {
        padding-left: 0;
        padding-top: 4rem;
        border-left: none;
        border-top: 1px solid rgba(var(--primary-color-rgb), 0.08);
        align-items: center !important;
    }
}

/* DARK BACKGROUND OVERRIDES — scoped to the navy #g-container-main */

/* Section headings */
.site-home #g-container-main .headlines-title h2,
.site-home #g-container-main .j-calendar h2 {
    color: #ffffff !important;
}

/* Article titles */
.site-home #g-container-main .j-headlines .g-item-title a {
    color: #ffffff !important;
}

.site-home #g-container-main .j-headlines .g-item-title a:hover {
    color: rgb(var(--accent-color-rgb)) !important;
}

/* Article excerpt text */
.site-home #g-container-main .j-headlines .g-array-item-text {
    color: rgba(255, 255, 255, 0.72) !important;
}

/* Read More inline links */
.site-home #g-container-main .j-headlines .g-array-item-read-more a {
    color: rgb(var(--accent-color-rgb)) !important;
    font-weight: 700 !important;
}

.site-home #g-container-main {
    display: flex !important;
}

.site-home #g-container-main .j-headlines .g-array-item-read-more a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Article divider line */
.site-home #g-container-main .j-headlines > .g-grid:nth-child(2) {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* Buttons — gold accent pops against navy */
.site-home #g-container-main .j-news-button {
    background-color: rgb(var(--accent-color-rgb)) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.site-home #g-container-main .j-news-button:hover {
    background-color: #ffffff !important;
    color: rgb(var(--primary-color-rgb)) !important;
    box-shadow: none !important;
    transform: translateY(-2px) !important;
}

.headlines-title h2 {
    text-align: center;
    font-family: var(--title-font-family);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: white !important;
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    position: relative;
    font-weight: 400;
}

.headlines-title h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: rgb(var(--accent-color-rgb));
    margin: 1.25rem auto 0;
}

/* NEWS BUTTON (.j-news-button) */
.j-news-button {
    display: block !important;
    width: fit-content !important;
    background-color: white !important;
    color: #224466 !important;
    font-family: var(--body-font-family), sans-serif;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 14px 44px !important;
    border-radius: 60px !important;
    text-decoration: none !important;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1) !important;
    box-shadow: none;
    border: none !important;
    /* margin: 3rem auto !important; */
    margin-bottom: 0 !important;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.j-news-button:hover {
    background-color: white !important;
    color: rgb(var(--primary-color-rgb)) !important;
    box-shadow: none;
    transform: translateY(-5px);
}

.j-news-button:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--secondary-color-rgb), 0.2);
}

/* Centering Help */
.g-block:has(> .j-news-button) {
    display: flex !important;
    justify-content: center !important;
    flex-basis: 100% !important;
    width: 100% !important;
}

/*
/* HORIZONTAL CALENDAR (.j-calendar) * /
.j-calendar {
    width: 100% !important;
    padding: 5rem 0 !important;
    background-color: rgb(var(--tertiary-color-rgb)) !important;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    /* Contain the edge fade * /
}

/* Section Title styling - matching j-cards * /
.j-calendar h2 {
    text-align: center;
    font-family: var(--title-font-family);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: rgb(var(--secondary-color-rgb));
    margin-top: 0 !important;
    margin-bottom: 2rem !important;
    position: relative;
    font-weight: 400;
}

.j-calendar h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: rgb(var(--accent-color-rgb));
    margin: 1.25rem auto 0;
}

.j-calendar div,
.j-calendar span {
    height: auto !important;
    block-size: auto !important;
    transform: none !important;
    perspective: none !important;
    transform-origin: unset !important;
}

.j-calendar .gcaltohtml {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    gap: 2.5rem;
    padding: 1.5rem 5% 4rem !important;
    /* Lead-in/out padding * /
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--primary-color-rgb)) transparent;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 5%;
    /* Align snap with padding * /
}

/* Edge Fade Gradients - for horizontal scrolling elegance * /
.j-calendar::before,
.j-calendar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 6vw;
    max-width: 150px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.j-calendar::before {
    left: 0;
    background: linear-gradient(to left, transparent, rgb(var(--tertiary-color-rgb)));
}

.j-calendar::after {
    right: 0;
    background: linear-gradient(to right, transparent, rgb(var(--tertiary-color-rgb)));
}

/* Custom Scrollbar for Webkit * /
.j-calendar .gcaltohtml::-webkit-scrollbar {
    height: 8px;
}

.j-calendar .gcaltohtml::-webkit-scrollbar-track {
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 10px;
}

.j-calendar .gcaltohtml::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-color-rgb), 0.3);
    border-radius: 10px;
}

/* /* Date-Event Card * /
.j-calendar .cc-date-event-container {
    flex: 0 0 325px !important;
    /* Slightly wider to accommodate scrollbar * /
    display: flex !important;
    flex-direction: column !important;
    background: #ffffff !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 45px rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(var(--primary-color-rgb), 0.08) !important;
    overflow: hidden !important;
    transition: all 0.5s cubic-bezier(0.2, 1, 0.3, 1) !important;
    scroll-snap-align: start;
    margin: 0 !important;
    position: relative;
    z-index: 1;
    height: 400px !important;
    /* Reduced from 480px to fix white space * /
}

.j-calendar .cc-date-event-container:hover {
    transform: translateY(-12px);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.1) !important;
    border-color: rgb(var(--accent-color-rgb)) !important;
}

/* Date Block (Top Section) * /
.j-calendar .cc-dateblockformat {
    background: linear-gradient(135deg, rgb(var(--secondary-color-rgb)), rgb(var(--primary-color-rgb))) !important;
    color: #ffffff !important;
    padding: 1.5rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    border-bottom: 5px solid rgb(var(--accent-color-rgb)) !important;
    flex-shrink: 0;
}

.j-calendar .cc-monthformat {
    font-family: var(--body-font-family) !important;
    font-size: 1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 4px !important;
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.j-calendar .cc-dayformat {
    font-family: var(--title-font-family) !important;
    font-size: 3.2rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    color: #ffffff !important;
}

/* Event Block (Bottom Section) * /
.j-calendar .cc-eventblock {
    padding: 1.25rem 1.25rem 1.25rem 2rem !important;
    /* Tighter padding to reduce white space * /
    flex-grow: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    /* Standardized scrollable area * /
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-color-rgb), 0.2) transparent;
}

/* Internal scrollbar styling * /
.j-calendar .cc-eventblock::-webkit-scrollbar {
    width: 5px;
}

.j-calendar .cc-eventblock::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-color-rgb), 0.2);
    border-radius: 10px;
}

.j-calendar .event {
    font-family: var(--body-font-family) !important;
    font-size: 1.05rem !important;
    line-height: 1.4 !important;
    color: rgb(var(--secondary-color-rgb)) !important;
    font-weight: 500 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(var(--primary-color-rgb), 0.08);
    position: relative;
    padding-left: 20px;
    /* Space for bullet * /
}

.j-calendar .event:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Space out the Time/Label from the Title * /
.j-calendar .event span:first-child,
.j-calendar .event b:first-child {
    min-width: 0;
    margin-right: 0;
    font-weight: 700;
    color: rgb(var(--primary-color-rgb));
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.j-calendar .event::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    display: inline-block;
    flex: 0 0 8px;
    height: 8px;
    width: 8px;
    background: rgb(var(--accent-color-rgb));
    border-radius: 50%;
}

/* Empty state handling * /
.j-calendar .gcaltohtml:empty::after {
    content: 'Gathering upcoming parish events...';
    padding: 3rem;
    font-style: italic;
    color: rgba(var(--secondary-color-rgb), 0.5);
    font-family: var(--body-font-family);
    text-align: center;
    width: 100%;
}

/* Responsiveness * /
@media (max-width: 50.99rem) {
    .j-calendar {
        padding: 3.5rem 0 !important;
    }

    .j-calendar .cc-date-event-container {
        flex: 0 0 340px !important;
        height: 380px !important;
    }
}

@media (max-width: 35rem) {
    .j-calendar .cc-date-event-container {
        flex: 0 0 88% !important;
    }

    .j-calendar .gcaltohtml {
        gap: 1.5rem;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        scroll-padding-left: 1.5rem;
    }

    .j-calendar::after {
        width: 15%;
    }
}
*/


/* --- CALENDAR (.j-calendar) --- */
/* Reset page builder fixed dimensions inside calendar */
.j-calendar,
.j-calendar div,
.j-calendar h2,
.j-calendar script,
.j-calendar a {
    height: auto !important;
    block-size: auto !important;
    perspective-origin: unset !important;
    transform-origin: unset !important;
}

/* Section Title */
.j-calendar h2 {
    font-family: var(--title-font-family) !important;
    font-size: clamp(2.2rem, 5vw, 3.2rem) !important;
    font-weight: 400 !important;
    color: rgb(var(--primary-color-rgb)) !important;
    text-align: center !important;
    margin: 0 0 0 0 !important;
    text-transform: none !important;
    font-variant: normal !important;
    line-height: 1.2 !important;
    border: none !important;
    outline: none !important;
}

.j-calendar h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 2px;
    background: rgb(var(--accent-color-rgb));
    margin: 1.25rem auto 2rem;
}

/* Unified card: all day rows share one white surface */
.j-calendar .gcaltohtml {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 1.5rem !important;
    background: #ffffff !important;
    border-radius: 1rem !important;
    overflow: hidden !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(var(--secondary-color-rgb), 0.08) !important;
}

/* Show first 3 day containers; hide any beyond that */
.j-calendar .gcaltohtml > .cc-date-event-container:nth-child(n+4) {
    display: none !important;
}

/* Day row */
.j-calendar .cc-date-event-container {
    background: transparent !important;
    padding: 1.5rem 1.75rem !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(var(--secondary-color-rgb), 0.07) !important;
    transition: background-color 0.2s ease !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
}

/* Remove divider from last visible row */
.j-calendar .gcaltohtml > .cc-date-event-container:nth-child(3) {
    border-bottom: none !important;
}

/* Row hover: tint instead of lift */
.j-calendar .cc-date-event-container:hover {
    background-color: rgba(var(--tertiary-color-rgb), 0.55) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Date box */
.j-calendar .cc-dateblockformat {
    width: 72px !important;
    min-width: 72px !important;
    height: 76px !important;
    border-radius: 0.6rem !important;
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: 0 3px 10px rgba(var(--secondary-color-rgb), 0.12) !important;
    border: 1px solid rgba(var(--secondary-color-rgb), 0.08) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

/* Month strip */
.j-calendar .cc-monthformat {
    order: 1 !important;
    background: rgb(var(--secondary-color-rgb)) !important;
    color: #ffffff !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0.35rem 0 !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    height: auto !important;
    line-height: 1 !important;
}

/* Day number */
.j-calendar .cc-dayformat {
    order: 2 !important;
    color: rgb(var(--secondary-color-rgb)) !important;
    font-size: 1.85rem !important;
    font-weight: 800 !important;
    margin: auto 0 !important;
    text-align: center !important;
    line-height: 1 !important;
}

/* Events column */
.j-calendar .cc-eventblock {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.85rem !important;
    flex: 1 !important;
    padding: 0 !important;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: none;
    transition: scrollbar-width 0.3s ease, scrollbar-color 0.3s ease;
}

.j-calendar .cc-eventblock:hover {
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--secondary-color-rgb), 0.2) transparent;
}

.j-calendar .cc-eventblock::-webkit-scrollbar { width: 4px; }
.j-calendar .cc-eventblock::-webkit-scrollbar-track { background: transparent; }
.j-calendar .cc-eventblock::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 10px;
}
.j-calendar .cc-eventblock:hover::-webkit-scrollbar-thumb {
    background-color: rgba(var(--secondary-color-rgb), 0.15);
}
.j-calendar .cc-eventblock::-webkit-scrollbar-thumb:hover {
    background-color: rgba(var(--secondary-color-rgb), 0.4);
}

/* Individual event */
.j-calendar .event {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.15rem !important;
}

/* Event title */
.j-calendar .cc-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: rgb(var(--secondary-color-rgb)) !important;
    line-height: 1.3 !important;
    order: 1 !important;
}

/* Event time */
.j-calendar .cc-timeofday {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    color: rgb(var(--accent-color-rgb)) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    order: 2 !important;
    line-height: 1.4 !important;
}

/* View All Events Button */
.j-calendar .j-news-button {
    color: rgb(var(--default-white-rgb)) !important;
    background-color: rgb(var(--secondary-color-rgb)) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 14px 32px !important;
    border-radius: 4px !important;
    border: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(31, 47, 74, 0.2) !important;
    margin-top: 1rem !important;
}

.j-calendar .j-news-button:hover {
    background-color: rgb(var(--primary-color-rgb)) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(58, 111, 176, 0.3) !important;
}

/* Mobile */
@media (max-width: 50.99rem) {
    .j-calendar .cc-date-event-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        padding: 1.25rem !important;
    }

    .j-calendar .cc-dateblockformat {
        min-width: 60px !important;
        width: 60px !important;
        height: 64px !important;
    }

    .j-calendar .cc-dayformat {
        font-size: 1.5rem !important;
    }

    .j-calendar .cc-monthformat {
        font-size: 0.6rem !important;
    }

    .j-calendar .cc-eventblock {
        gap: 0.75rem !important;
    }

    .j-calendar h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1.5rem !important;
    }
}

.site-home #g-expanded .j-news-button {
    margin: 2rem auto !important;
    display: grid !important;
    max-width: 300px;
}


/* --- Digital Cathedral Styles (.j-formed) --- */

.j-formed .sd-media-section {
    /* padding: 60px 0; */
    background-color: transparent !important;
    border: none !important;
}

.j-formed .sd-container {
    max-width: 1200px;
    margin: 0 auto !important;
    height: auto !important;
}

.sd-section-header {
    margin-bottom: 50px;
}

.sd-section-header h2 {
    color: #30568b;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-variant: normal !important;
    text-transform: none !important;
}

.sd-section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 65px;
    height: 2px;
    background-color: rgb(var(--accent-color-rgb));
}

.sd-section-header p {
    color: #666;
    font-size: 1.15rem;
    margin-top: 25px;
    margin-bottom: 0;
}

/* Layout Grid */
.j-formed .sd-media-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    height: auto !important;
}

/* Feature Card */
.j-formed .sd-feature-card {
    width: 100% !important;
    min-height: 440px !important;
    border-radius: 20px !important;
    background-image: linear-gradient(90deg, #1e4479 0%, rgba(30, 68, 121, 0.8) 100%), url('/images/template/formed-background.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: center !important;
    padding: 50px !important;
    color: #ffffff !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: none !important;
}

.j-formed .sd-brand-area {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.j-formed .sd-brand-badge {
    background: #ffffff;
    color: #1e4479;
    padding: 8px 18px;
    font-weight: 900;
    border-radius: 4px;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
}

.j-formed .sd-access-text {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card Content Text */
.j-formed .sd-card-content h3 {
    font-size: 2.8rem;
    line-height: 1.15;
    margin-bottom: 25px;
    font-weight: 500;
    max-width: 500px;
    color: white;
}

.j-formed .sd-card-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 35px;
    opacity: 0.85;
    max-width: 480px;
}

/* Buttons */
.j-formed .sd-button-group {
    display: flex;
    gap: 15px;
}

.j-formed .sd-btn-primary {
    background: #916B25;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.j-formed .sd-btn-primary:hover {
    background: #7a5a1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.j-formed .sd-btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.j-formed .sd-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Sidebar Links (3-column layout) */
.j-formed .sd-sidebar-links {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
    height: auto !important;
}

.j-formed .sd-sidebar-item {
    background-color: white;
    padding: 25px;
    border-radius: 15px;
    text-decoration: none;
    color: inherit;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.j-formed .sd-sidebar-item:hover {
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: #30568b;
    transform: translateY(-4px);
}

.j-formed .sd-item-left {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.j-formed .sd-icon-box {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: #e9eff7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #30568b;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.j-formed .sd-sidebar-item:hover .sd-icon-box {
    background: #30568b;
    color: #ffffff;
}

.j-formed .sd-item-text h4 {
    color: #30568b;
    font-size: 1.2rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.j-formed .sd-item-text p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}

.j-formed .sd-item-arrow {
    color: #cbd3da;
    transition: transform 0.3s ease;
    margin-left: 10px;
    font-size: 0.8rem;
}

.j-formed .sd-sidebar-item:hover .sd-item-arrow {
    transform: translateX(5px);
    color: #30568b;
}

/* Mobile Breakpoint Adjustment */
@media (max-width: 75rem) {
    .j-formed .sd-sidebar-links {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 50.99rem) {
    .j-formed .sd-sidebar-links {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .j-formed .sd-feature-card {
        padding: 35px 25px !important;
        min-height: auto !important;
    }

    .j-formed .sd-card-content h3 {
        font-size: 2rem;
    }

    .j-formed .sd-section-header h2 {
        font-size: 2.1rem;
    }
}

/* --- Facebook Widget Styling (.j-facebook) --- */

.site-home #g-extension .j-facebook {
    padding-left: 3.5rem !important;
    display: flex !important;
    flex-direction: column !important;
}

.site-home #g-extension .j-facebook .g-particle {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Header Text - Digital Cathedral */
.site-home #g-extension .j-facebook .sd-section-header {
    height: auto !important;
    margin-bottom: 50px;
    padding: 0 !important;
}

/* Resetting layout constraints for the extension section */
.site-home #g-extension,
.site-home #g-extension .g-container,
.site-home #g-extension .g-grid,
.site-home #g-extension .g-block,
.site-home #g-extension .g-particle {
    height: auto !important;
    block-size: auto !important;
    transform: none !important;
    perspective: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 50.99rem) {
    .site-home #g-extension .j-facebook {
        padding-left: 0 !important;
        padding-top: 4rem !important;
    }

    .site-home #g-extension .j-facebook .sd-section-header::before {
        text-align: center;
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

}

.site-home #g-extension {
    position: relative;
    padding: 4rem 2rem !important;
}


/* --- Footer Styles (.j-footer) --- */


.j-footer .g-content-array {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

/* Make the entire headline card clickable */
.j-headlines .g-array-item {
    position: relative;
}

.j-headlines .g-item-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}

.j-headlines .g-array-item-image,
.j-headlines .g-array-item-read-more {
    position: relative;
    z-index: 2;
}

.btn-mass {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: #D4AF37 !important;
    /* Gold Accent */
    color: #ffffff !important;
    padding: 8px 30px !important;
    border-radius: 50rem !important;
    font-family: var(--body-font-family), sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    border: none !important;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.15);
    white-space: nowrap;
    max-width: 300px;
    width: fit-content !important;
}

.btn-mass:hover {
    background-color: #ffffff !important;
    color: #1e4479 !important;
    /* Primary Navy */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
    transform: translateY(-3px) !important;
}

.btn-mass:active {
    transform: translateY(-1px);
}



#g-navigation {
    padding: 0 !important;
    display: block !important;
}

#g-navigation>.g-container {
    width: 100% !important;
    max-width: 100% !important;
}

#g-navigation>.g-container>.g-grid:first-child {
    background-color: rgb(var(--primary-color-rgb)) !important;
    width: 100%;
}

.j-top-links {
    /* max-width: 1600px; */
    margin: 0 auto;
    padding: 0 16px;
}

@media (max-width: 50.99rem) {
    .j-top-links {
        padding-left: 52px;
    }
}

.g-content-array .g-grid {
    margin-bottom: 0;
    width: 100%;
}

#g-navigation>.g-container>.g-grid:nth-child(2) {
    max-width: 1600px;
    margin: 0 auto;
    /* padding: 0 16px; */
    background-color: #ffffff;
}

.j-top-links .j-contact-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.35rem 1rem;
    padding: 0.4rem 0;
}

@media (min-width: 50.99rem) {
    .j-top-links .j-contact-group {
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 1.5rem;
        padding: 0.5rem 0;
    }
}

.j-top-links .j-contact-link {
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    transition: opacity 0.3s ease;
    opacity: 0.85;
}

.j-top-links .j-contact-link:hover {
    opacity: 1;
}

.j-top-links .j-contact-link i {
    font-size: 1rem;
    color: rgb(var(--accent-color-rgb)) !important;
}

.j-top-links .j-contact-group .j-contact-link:nth-child(1) { order: 2; }
.j-top-links .j-contact-group .j-contact-link:nth-child(2) { order: 1; }
.j-top-links .j-contact-group .j-contact-link:nth-child(3) { order: 3; }

@media (min-width: 50.99rem) {
    #g-navigation .g-logo img {
    width: 473px;
    margin-top: -25px;
    margin-bottom: -25px;
    }
}

/* --- PARISH HEADLINES --- */
.j-headlines {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: end !important;
    gap: 1.5rem !important;
    padding: 40px 0 !important;
    padding-right: 2rem !important;
}

.j-headlines>.g-grid {
    block-size: auto !important;
    height: auto !important;
    perspective-origin: unset !important;
    transform-origin: unset !important;
    margin: 0 !important;
}

.j-headlines>.g-grid:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.j-headlines>.g-grid:nth-child(3) {
    grid-column: 1 / span 2;
    grid-row: 3;
    display: flex;
    justify-content: flex-start;
    padding-top: 24px;
}

.j-headlines>.g-grid:nth-child(2) {
    grid-column: 1 / span 2;
    grid-row: 2;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 24px;
    margin-top: 0 !important;
}

.j-headlines .headlines-title h2 {
    color: rgb(var(--primary-color-rgb)) !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    text-transform: none !important;
    font-variant: normal !important;
    line-height: 1.2 !important;
    border: none !important;
    outline: none !important;
}

.j-news-button {
    color: rgb(var(--default-white-rgb)) !important;
    background-color: rgb(var(--secondary-color-rgb)) !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 14px 32px !important;
    border-radius: 4px !important;
    border: none !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease !important;
    cursor: pointer !important;
    box-shadow: none !important;
}

.j-news-button:hover {
    background-color: rgb(var(--primary-color-rgb)) !important;
    transform: translateY(-2px) !important;
    box-shadow: none !important;
}

.j-headlines .g-joomla-articles {
    display: flex !important;
    flex-direction: column !important;
    gap: 34px !important;
}

.j-headlines .g-array-item {
    display: grid !important;
    grid-template-columns: 35% 1fr !important;
    grid-template-rows: auto auto auto !important;
    gap: 0 48px !important;
    align-items: start !important;
}

.j-headlines .g-array-item-image {
    grid-row: 1 / span 3 !important;
    grid-column: 1 !important;
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    margin: 0 !important;
    align-self: center !important;
}

.j-headlines .g-array-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.j-headlines .g-array-item-image a:hover img {
    transform: scale(1.03) !important;
}

.j-headlines .g-array-item-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: auto !important;
    margin-bottom: 10px !important;
}

.j-headlines .g-item-title {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.j-headlines .g-item-title a {
    color: #1D1D1F !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.j-headlines .g-item-title a:hover {
    color: #3A6FB0 !important;
}

.j-headlines .g-array-item-text {
    grid-column: 2 !important;
    grid-row: 2 !important;
    color: #515154 !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    height: auto !important;
    margin-bottom: 20px !important;
    overflow: visible !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.j-headlines .g-array-item-read-more {
    grid-column: 2 !important;
    grid-row: 3 !important;
    height: auto !important;
    margin: 0 !important;
}

.j-headlines .g-array-item-read-more a {
    background: transparent !important;
    color: #3A6FB0 !important;
    padding: 0 !important;
    width: auto !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.j-headlines .g-array-item-read-more a:hover {
    color: #1F2F4A !important;
    text-decoration: underline !important;
}

@media (max-width: 50.99rem) {
    .j-headlines {
        grid-template-columns: 1fr !important;
        padding: 30px 15px !important;
        gap: 0.5rem !important;
    }

    .j-headlines>.g-grid:nth-child(1) {
        order: 1;
    }

    .j-headlines>.g-grid:nth-child(2) {
        order: 2;
        padding-top: 24px;
    }

    .j-headlines>.g-grid:nth-child(3) {
        order: 3;
        justify-content: center;
        padding-top: 20px;
        margin-top: 20px !important;
        border-top: 1px solid rgba(0, 0, 0, 0.06);
    }

    .j-headlines>.g-grid:nth-child(3) .g-block {
        display: flex !important;
        justify-content: center !important;
        align-items: center;
    }

    .j-headlines .g-array-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
    }

    .j-headlines .g-array-item-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .j-headlines .g-array-item-title,
    .j-headlines .g-array-item-text,
    .j-headlines .g-array-item-read-more {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .j-headlines .headlines-title h2 {
        font-size: 26px !important;
        margin-bottom: 24px !important;
    }

    .j-headlines .g-item-title a {
        font-size: 22px !important;
    }
}

/* Footer Scoped Styles */
#g-footer {
    position: relative;
    color: var(--default-white, #FFFFFF);
    overflow: hidden;
    padding: 4rem 4rem !important;
    background-image: linear-gradient(rgba(var(--primary-color-rgb, 34, 68, 102), 0.9), rgba(var(--primary-color-rgb, 34, 68, 102), 0.9)), url('/images/template/background-2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#g-footer .footer-container {
    display: grid;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Info Section (Left Column) */
#g-footer .footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 380px;
}

#g-footer .footer-logo {
    color: var(--accent-color, #DDBB77) !important;
    font-size: 1.85rem !important;
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#g-footer .footer-logo a {
    color: inherit !important;
    text-decoration: none !important;
}

#g-footer .footer-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-style: normal !important;
    font-size: 0.95rem;
    opacity: 0.9;
}

#g-footer .footer-contact a {
    color: var(--default-white, #FFFFFF) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

#g-footer .footer-contact a:hover {
    color: var(--accent-color, #DDBB77) !important;
}

#g-footer .footer-contact .sep {
    color: var(--secondary-color, #6688BB) !important;
    margin: 0 0.25rem;
}

/* Brand Section (Center Column) */
#g-footer .footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
}

#g-footer .footer-logo-img {
    max-width: 13rem;
    height: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#g-footer .footer-logo-img:hover {
    transform: scale(1.08);
}

/* Actions Section (Right Column) */
#g-footer .footer-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
    max-width: 380px;
    margin-left: auto;
}

#g-footer .btn-mass {
    display: inline-block;
    background: var(--accent-color, #DDBB77) !important;
    color: var(--primary-color, rgb(34, 68, 102)) !important;
    padding: 0.85rem 1.75rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

#g-footer .btn-mass:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    background: #FFFFFF !important;
}

#g-footer .footer-social-module {
    display: flex;
    gap: 0.85rem;
}

#g-footer .footer-social-module a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--default-white, #FFFFFF) !important;
    border-radius: 50%;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#g-footer .footer-social-module a i {
    font-size: 1.2rem;
    margin-right: -6px !important;
}

#g-footer .footer-social-module a:hover {
    background: var(--accent-color, #DDBB77) !important;
    color: var(--primary-color, rgb(34, 68, 102)) !important;
    transform: translateY(-4px);
    border-color: var(--accent-color, #DDBB77) !important;
    box-shadow: 0 5px 15px rgba(221, 187, 119, 0.3);
}

/* Responsive Layouts */
@media (min-width: 64rem) {
    #g-footer .footer-container {
        grid-template-columns: 1.5fr 1fr 1.5fr;
        align-items: center;
    }
}

@media (max-width: 63.99rem) and (min-width: 48rem) {
    #g-footer .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem 2rem;
    }

    #g-footer .footer-brand {
        grid-column: span 2;
        order: -1;
    }

    #g-footer .footer-info {
        align-items: flex-start;
    }

    #g-footer .footer-actions {
        align-items: flex-end;
    }
}

@media (max-width: 47.99rem) {
    #g-footer {
        padding: 3rem 1rem !important;
    }

    #g-footer .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    #g-footer .footer-brand {
        order: -1;
    }

    #g-footer .footer-info,
    #g-footer .footer-actions,
    #g-footer .footer-contact,
    #g-footer .footer-social-module {
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: auto;
    }

    #g-footer .footer-contact {
        flex-direction: column;
        gap: 0.5rem;
    }

    #g-footer .footer-contact .sep {
        display: none;
    }
}

/*  */

/* --- STAINED GLASS QUICKLINKS — RESPONSIVE FIX --- */

/* Reset the fixed pixel width the page builder injects on the particle wrapper */
.j-stained-glass .g-particle {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    block-size: auto !important;
    inline-size: auto !important;
}

/* Tablet / large mobile: 3-column grid */
@media (max-width: 50.99rem) {
    .j-stained-glass .g-blockcontent-subcontent {
        flex-wrap: wrap !important;
        gap: 1.5rem 1rem !important;
    }

    .j-stained-glass .g-blockcontent-subcontent-block {
        flex: 1 1 calc(33.333% - 1rem) !important;
        min-width: 100px !important;
        width: auto !important;
        inline-size: auto !important;
    }
}

/* Small mobile: 2-column grid */
@media (max-width: 35rem) {
    .j-stained-glass .g-blockcontent-subcontent-block {
        flex: 1 1 calc(50% - 1rem) !important;
    }
}

/* --- FULL-WIDTH MOBILE LAYOUT FIX --- */
@media (max-width: 50.99rem) {
    /* flex-direction:column + flex-wrap:wrap + flex-basis:100% causes each block to
       overflow into its own column. Switch to row-wrap so blocks stack normally. */
    #g-container-main .g-grid {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    #g-container-main .g-block {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Reduce the 40px horizontal container padding that eats ~20% of narrow viewports */
    #g-container-main .g-container,
    #g-extension .g-container,
    #g-bottom .g-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        padding-inline: 1rem !important;
    }

    /* Reset j-center: display:grid with a fixed 373px column overflows on mobile */
    .j-center {
        display: flex !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-inline-start: 0 !important;
    }

    .j-center #g-aside {
        width: 100% !important;
        inline-size: auto !important;
        max-width: 100% !important;
    }
}

@media (min-width: 50.99rem) {
    .site-home #g-container-main,
    .site-home #g-extension {
        padding: 4rem !important;
    }

    .site-home #g-extension {
        padding-bottom: 0 !important;
    }
}

@media (max-width: 50.99rem) {
    .j-calendar {
        padding-top: 4rem;
    }

    .j-news-button {
        margin: auto !important;
    }

    .site-home #g-extension {
        padding-bottom: 0 !important;
    }

    .site-home #g-container-main .g-content-array .g-grid:not(:first-child) .g-content {
        padding-top: 0 !important;
    }
}

#module-contentarray-1127-particle .g-array-item-image {
    display: none !important;
}

/* Stack main columns sooner — before content starts overlapping */
@media (max-width: 75rem) {
    .site-home #g-container-main .g-grid {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .site-home #g-container-main .g-block.size-55,
    .site-home #g-container-main .g-block.size-30,
    .site-home #g-container-main .g-block.size-15 {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .site-home #g-container-main .g-block.size-15 {
        padding-left: 0 !important;
        padding-top: 2rem !important;
    }

    .j-headlines .g-array-item {
        gap: 0 28px !important;
    }

    .site-home #g-extension .g-grid {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .site-home #g-extension .g-block.size-67,
    .site-home #g-extension .g-block.size-33 {
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .site-home #g-extension .j-facebook {
        padding-left: 0 !important;
        padding-top: 3rem !important;
    }
}