@import url('//fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Spectral:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

/* =========================================
   THEME VARIABLES
   ========================================= */

/* DEFAULT THEME: Dark Green */
/* :root {
    --primary-color: #0c3320;
    --primary-rgb: 12, 51, 32;
    --primary-color-rgb: 12, 51, 32;
    --secondary-color: #8ca398;
    --secondary-rgb: 140, 163, 152;
    --secondary-color-rgb: 140, 163, 152;
    --tertiary-color: #f4f6f5;
    --tertiary-rgb: 244, 246, 245;
    --primary-light: #2c4d3d;
    --secondary-light: #b5c2b7;
    --surface-color: #f4f6f5;
} */

/* OPTION 1: LIGHTER GREEN THEME 
   (Uncomment the block below to override the default theme) */

:root {
    --primary-color: #43823f;
    --primary-rgb: 67, 130, 63;
    --primary-color-rgb: 67, 130, 63;
    --secondary-color: #9ab497;
    --secondary-rgb: 154, 180, 151;
    --secondary-color-rgb: 154, 180, 151;
    --tertiary-color: #f4f7f4;
    --tertiary-rgb: 244, 247, 244;
    --primary-light: #5d9e59;
    --secondary-light: #bbdeb7;
    --surface-color: #f4f7f4;
}


/* OPTION 2: BURGUNDY THEME 
   (Uncomment the block below to override the default theme) */
/*
:root {
    --primary-color: #6a1a2e;
    --primary-rgb: 106, 26, 46;
    --primary-color-rgb: 106, 26, 46;
    --secondary-color: #a97883;
    --secondary-rgb: 169, 120, 131;
    --secondary-color-rgb: 169, 120, 131;
    --tertiary-color: #f8f2f3;
    --tertiary-rgb: 248, 242, 243;
    --primary-light: #8e3047;
    --secondary-light: #d1b4bb;
    --surface-color: #f8f2f3;
}
*/

.parish-1 {
    --primary-color: #43823f;
    --secondary-color: #9ab497;

    --primary-rgb: 67, 130, 63;
    --secondary-rgb: 154, 180, 151;

    --default-white: #ffffff;
    --default-black: #000000;

    --title-font-family: 'Spectral', serif;
    --body-font-family: 'Montserrat', 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-background-color: rgba(var(--primary-rgb), .5);
    --ql-background-hover: rgba(var(--primary-rgb), .7);
    --ql-title-color: var(--default-white);

    --ph-height: calc(var(--ph-width) * 3/4);
    --ph-border-bottom: 1px solid var(--secondary-color);
    --ph-title-font-size-desktop: 1.5vw;
}

.ph-photoblocknews {
    --ph-title-color: var(--default-white);
}

.ph-no-img-1 {
    --ph-title-font-size-desktop: 1.4vw;
}

.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: 'Lato', sans-serif;
}

a {
    color: #1a9559;
}

#g-navigation .g-toplevel>li:has(.g-logo > img) {
    display: none !important;
}

#g-offcanvas .g-toplevel>li:has(.g-logo > img) {
    display: none !important;
}

/*************** HOMELAYOUT ***************/
/*************** OFFCANVAS ****************/
.g-offcanvas-toggle {
    color: var(--default-white);
}

.g-offcanvas-toggle .fa-fw {
    text-shadow: none;
}


/* Navigation & Header Overrides */

#g-navigation {
    padding: 1rem 1rem 0 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: var(--primary-color);
}

#g-footer {
    background-color: var(--primary-color);
}

#g-footer .g-content {
    padding: 0;
    margin: 0;
}

#g-footer .g-array-item-text {
    padding: 0;
    margin: 0;
}

#g-copyright {
    background-color: var(--primary-color);
}

#g-copyright .g-content {
    padding: 0;
    margin: 0;
}

.g-main-nav {
    background-color: var(--primary-color);
}

#g-navigation .g-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Row alignment */
#g-navigation .g-grid {
    align-items: center !important;
}

/* Logo Adjustments */
#g-navigation .g-logo img,
#g-navigation .g-mobilelogo img {
    max-height: 65px;
    width: auto !important;
}

/* Contact Info (Top Right) */
#g-navigation .g-array-item-text p {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    color: var(--secondary-light) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: left;
}

#g-navigation.g-array-item-text a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
}


/* Mobile Optimizations */
@media (max-width: 50.99rem) {
    #g-navigation {
        padding: 15px 0;
    }

    #g-navigation .logo-text {
        text-align: center;
        flex-basis: 100% !important;
    }

    #g-navigation .g-array-item-text p {
        text-align: center !important;
        font-size: 13px !important;
    }
}

@media (min-width: 50.99rem) {

    #g-navigation>div>div:nth-child(2) {
        padding: 1rem 0 !important;
    }

}

/*  */

/* Dropdown Menu: prevent text overflow */
#g-navigation .g-dropdown-menu,
#g-navigation .g-dropdown-menu ul,
#g-navigation ul.g-dropdown {
    width: max-content !important;
    min-width: 200px;
}

#g-navigation .g-dropdown-menu li a,
#g-navigation ul.g-dropdown li a,
#g-navigation .g-dropdown-menu li span {
    white-space: nowrap !important;
}

/*  */

/*************** BOTTOM *******************/
.parish-home #g-bottom {
    background: url('/images/template/paralax2.jpg') 0% 0% no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

.parish-home #g-bottom>.g-container {
    background: rgba(241, 241, 241, .5);
    padding: 2vw 10% !important;
}

.parish-home .circle-links {
    margin-bottom: 4vw;
}

@media only screen and (min-width: 50.99rem) {
    .parish-home .circle-links .g-blockcontent-subcontent-block-content {
        box-shadow: var(--default-box-shadow);
    }
}

@media only screen and (max-width: 50.99rem) {
    .parish-home #g-bottom {
        background-attachment: initial;
    }

    .parish-home #g-bottom>.g-container {
        padding: 2vw 5% !important;
    }
}

/*  */

.g-content-array {
    padding: 0 !important;
    margin: 0 !important;
}

/*  */

/* 1. Establish the Aspect Ratio on the Container */
.studius-swiper .g-swiper {
    --swiper-aspect-ratio: 16 / 9;
    /* 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;
    width: 100% !important;
}

/*  */

/* Desktop: Scoped layout to match sibling height */
.j-mass-times {
    display: flex !important;
    flex-direction: column;
}

.j-mass-times .g-particle {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100% !important;
    min-height: 0;
    position: relative;
}

/* Scrollable container */
.j-mass-times .g-content-array {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    padding: 1.5rem !important;
    background: rgba(var(--secondary-color-rgb), 0.15);
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--primary-color-rgb)) transparent;
    display: grid;
    align-items: center;
}

/* Remove margin from the text container */
.j-mass-times .g-array-item-text {
    margin-top: 0 !important;
}

/* Content styling */
.j-mass-times h3 {
    color: rgb(var(--primary-color-rgb));
    margin-top: 0;
}

.j-mass-times p {
    color: rgb(var(--primary-color-rgb));
}

/* Scrollbar styling */
.j-mass-times .g-content-array::-webkit-scrollbar {
    width: 6px;
}

.j-mass-times .g-content-array::-webkit-scrollbar-thumb {
    background: rgb(var(--primary-color-rgb));
    border-radius: 10px;
}

/* Mobile: Expand to fit all content */
@media (max-width: 50.99rem) {
    .j-mass-times .g-particle {
        height: auto !important;
        max-height: none !important;
    }

    .j-mass-times .g-content-array {
        position: relative;
        overflow-y: visible;
        height: auto !important;
        padding: 1rem 0;
    }
}

/*  */

.square-quicklinks .g-content.g-particle,
.square-quicklinks .g-particle>div,
.square-quicklinks .g-blockcontent {
    width: 100%;
    max-width: 100%;
    height: auto;
    block-size: auto;
    inline-size: auto;
    margin: 0;
    padding: 0;
}

.square-quicklinks .g-grid.g-blockcontent-subcontent {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

.square-quicklinks .g-block.g-blockcontent-subcontent-block {
    flex: 0 1 clamp(150px, 16vw, 195px);
    min-width: 150px;
    max-width: 195px;
    aspect-ratio: 1 / 1;
    width: 100%;
    height: auto;
    block-size: auto;
    inline-size: auto;
    margin: 0;
    padding: 0;
    border-radius: 2px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* New Hover Effect: Slight lift and shadow */
.square-quicklinks .g-block.g-blockcontent-subcontent-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.square-quicklinks .g-content.g-blockcontent-subcontent-block-content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    block-size: 100%;
    inline-size: 100%;
    padding: 1.5rem;
    margin: 0;
    box-sizing: border-box;
}

.square-quicklinks img.g-blockcontent-subcontent-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    block-size: 100%;
    inline-size: 100%;
    object-fit: cover;
    z-index: 0;
    margin: 0;
    padding: 0;
    border-radius: 0;
    transition: transform 0.5s ease;
}

/* New Hover Effect: Background image zoom */
.square-quicklinks .g-block.g-blockcontent-subcontent-block:hover img.g-blockcontent-subcontent-img {
    transform: scale(1.1);
}

/* Static Overlay Overlay */
.square-quicklinks .g-content.g-blockcontent-subcontent-block-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(var(--primary-color-rgb), 0.75);
    z-index: 1;
    pointer-events: none;
}

.square-quicklinks h4.g-blockcontent-subcontent-title,
.square-quicklinks span.g-blockcontent-subcontent-title-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    block-size: auto;
    inline-size: auto;
    font-size: 1.5rem;
    line-height: 1.2;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.square-quicklinks p.g-blockcontent-buttons {
    position: static;
    margin: 0;
    padding: 0;
    height: 0;
    block-size: 0;
}

.square-quicklinks a.button {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    width: auto;
    height: auto;
}

.square-quicklinks a.button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: pointer;
}

@media (max-width: 50.99rem) {
    .square-quicklinks .g-block.g-blockcontent-subcontent-block {
        flex: 0 0 calc(50% - 1rem);
        min-width: 140px;
        max-width: 220px;
    }
}

/*  */

#g-header {
    padding: 2rem;
}

/*  */

.modern-dots .g-swiper.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet,
.g-swiper.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0;
}

.modern-dots .g-swiper.swiper-container-horizontal>.swiper-pagination-bullets {
    gap: 1rem;
    padding: 1rem;
}

.modern-dots .g-swiper.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet::after,
.g-swiper.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet::after {
    width: 12px;
    height: 12px;
    background-color: transparent;
}

.modern-dots .g-swiper.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet-active::after,
.g-swiper.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet-active::after {
    width: 12px;
    height: 12px;
    background-color: white;
}

.modern-dots .g-swiper.swiper-container-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet-active,
.g-swiper.swiper-container-vertical>.swiper-pagination-bullets .swiper-pagination-bullet-active {
    background: transparent;
}

/*  */

.round-swiper-buttons .swiper-navigation>div[class*="swiper-button"] {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.round-swiper-buttons .swiper-navigation>div[class*="swiper-button"]:hover {
    background-color: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.75);
    transition: all 0.5s ease;
}

.round-swiper-buttons .swiper-navigation>div[class*="swiper-button"]>i {
    color: white;
    font-size: 24px;
    line-height: 1;
    display: block;
    text-align: center;
}

/*  */

#g-mainbar {
    padding: 2rem;
}

@media (max-width: 50.99rem) {
    #g-mainbar {
        padding: 0;
    }
}

/*  */

.square-rows {
    --img-w: 280px;
}

/* Ensure the container height matches the image width to maintain 1:1 */
.square-rows .g-array-item {
    position: relative;
    display: grid;
    grid-template-columns: var(--img-w) 1fr;
    grid-template-rows: auto 1fr auto;
    height: var(--img-w) !important;
    background: var(--surface-color);
    border: 1px solid rgba(var(--primary-color-rgb), 0.12);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.square-rows .g-array-item:hover {
    box-shadow: 0 6px 18px rgba(var(--primary-color-rgb), 0.18);
    transform: translateY(-2px);
}

/* Strict 1:1 Aspect Ratio for Image */
.square-rows .g-array-item-image {
    grid-column: 1;
    grid-row: 1 / 4;
    height: 100% !important;
}

.square-rows .g-array-item-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
}

/* Scrollable Text Area */
.square-rows .g-array-item-text {
    position: relative;
    z-index: 30;
    grid-column: 2;
    padding: 0.5rem 1.5rem;
    overflow-y: auto;
    color: var(--primary-color);
    font-size: 0.95rem;
    line-height: 1.5;
    scrollbar-width: thin;
    scrollbar-color: rgba(var(--primary-color-rgb), 0.3) transparent;
}

@media (min-width: 50.99rem) {
    .square-rows .g-array-item-text {
        pointer-events: none;
    }
}

/* Webkit scrollbar styling for Chrome/Edge/Safari */
.square-rows .g-array-item-text::-webkit-scrollbar {
    width: 6px;
}

.square-rows .g-array-item-text::-webkit-scrollbar-thumb {
    background-color: rgba(var(--primary-color-rgb), 0.2);
    border-radius: 10px;
}

/* Padding and spacing for Title/Button */
.square-rows .g-array-item-title {
    grid-column: 2;
    padding: 1.25rem 1.5rem 0.25rem;
}

.square-rows .g-array-item-title a {
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.square-rows .g-array-item-title a:hover {
    opacity: 0.8;
}

.square-rows .g-array-item-read-more {
    grid-column: 2;
    padding: 0.5rem 1.5rem 1.25rem;
    text-align: right;
    background: var(--surface-color);
    z-index: 10;
}

/* Primary color button */
.square-rows .g-array-item-read-more a.button {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}

.square-rows .g-array-item-read-more a.button:hover {
    opacity: 0.85;
}

/* Make the entire card clickable via the read-more link */
.square-rows .g-array-item-read-more a.button::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 40;
    cursor: pointer;
}

/* Mobile: Horizontal scroll-snap carousel */
@media (max-width: 50.99rem) {

    /* Scroll container — the Gantry .g-content-array wraps all .g-grid items */
    .square-rows .g-content-array {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-left: 2rem !important;
        padding-right: 2rem !important;
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        /* hide scrollbar but keep swipe */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .square-rows .g-content-array::-webkit-scrollbar {
        display: none;
    }

    /* Each .g-grid wraps one news item — make it a snap card at ~80vw
       so the next card peeks in and signals swipe-ability */
    .square-rows .g-content-array>.g-grid {
        flex: 0 0 80vw;
        max-width: 360px;
        scroll-snap-align: center;
        scroll-snap-stop: always;
    }

    /* Reset inner wrappers so the card fills properly */
    .square-rows .g-grid>.g-block,
    .square-rows .g-grid>.g-block>.g-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    /* Card layout: image on top, content below */
    .square-rows .g-array-item {
        display: flex;
        flex-direction: column;
        height: auto !important;
        border-radius: 4px;
        overflow: hidden;
    }

    /* Square image on top */
    .square-rows .g-array-item-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        flex-shrink: 0;
    }

    .square-rows .g-array-item-image img {
        aspect-ratio: 1 / 1 !important;
        width: 100% !important;
        height: 100% !important;
    }

    .square-rows .g-array-item-title {
        padding: 1rem 1rem 0.25rem;
    }

    .square-rows .g-array-item-title a {
        font-size: 1.5rem;
    }

    /* Scrollable excerpt inside the card */
    .square-rows .g-array-item-text {
        padding: 0.25rem 1rem;
        max-height: 120px;
        overflow-y: auto;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .square-rows .g-array-item-read-more {
        padding: 0.5rem 1rem 1rem;
    }
}

/*  */

.side-ads {
    display: grid;
    align-items: center;
}

.all-news {
    padding-top: 2rem;
}

.all-news a {
    background-color: var(--primary-color);
}

/*  */

.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 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%;
}

.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%;
}

.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);
}

@media (max-width: 50.99rem) {
    .j-banners {
        padding: 1rem 0;
    }

    .j-banners tr {
        flex-direction: column;
        gap: 1.5rem;
    }

    .j-banners div[style*="width: 330px"] {
        max-width: 66% !important;
    }
}

/*  */

.footer-box {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 0;
    padding: 4rem 2rem;
    background-color: rgb(var(--primary-color-rgb));
    color: #ffffff;
}

.footer-box h1,
.footer-box h5,
.footer-box p,
.footer-box span {
    color: #ffffff !important;
}

.footer-box h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem) !important;
}

@media (max-width: 50.99rem) {
    .footer-box {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 2.5rem 1.5rem;
    }
}

.footer-box>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.footer-box>div:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

@media (max-width: 50.99rem) {
    .footer-box>div {
        padding: 2.5rem 0;
    }

    .footer-box>div:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-box>div:first-child {
        padding-top: 0;
    }

    .footer-box>div:last-child {
        padding-bottom: 0;
    }
}

.footer-box a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.footer-box a:hover {
    color: rgb(var(--tertiary-color-rgb)) !important;
    opacity: 0.8 !important;
}

.footer-box img.bordered {
    border-radius: 4px;
    max-width: 400px;
    width: 100%;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.footer-box img.bordered:hover {
    opacity: 1;
    transform: scale(1.02);
}

.footer-box .g-social-items {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.footer-box .g-social-items a {
    color: #ffffff !important;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.footer-box .g-social-items a:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    transform: translateY(-3px);
}

.footer-box .weblinks {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.footer-box .weblinks li {
    margin: 0.85rem 0;
}

.footer-box .weblinks a {
    color: #ffffff !important;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-bottom: 2px;
    display: inline-block;
}

.footer-box .weblinks a:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

.footer-box .weblinks a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}

.footer-box .weblinks a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/*  */

.g-main-nav .g-toplevel {
    justify-content: space-between;
}

.latest-news-title h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

@media (max-width: 50.99rem) {
    .latest-news-title h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
}

/*************** COPYRIGHT ****************/

#g-footer .g-grid {
    z-index: 0;
}

/*************** MODULES ******************/
.moduletable .nav.menu,
.moduletable .unstyled {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.moduletable .nav.menu li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 !important;
    padding: 0 !important;
}

.moduletable .nav.menu li:last-child {
    border-bottom: none;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.moduletable .nav.menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    color: #ffffff;
    text-decoration: none;
    font-family: var(--body-font-family, 'Montserrat', sans-serif);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.3px;
    position: relative;
    transition: all 0.3s ease;
    background: transparent;
    border: none;
}

.moduletable .nav.menu li a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--secondary-light);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.moduletable .nav.menu li a::after {
    content: '\f105';
    font-family: var(--fa-style-family-classic, "Font Awesome 6 Free");
    font-weight: 900;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.moduletable .nav.menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 26px;
    color: #ffffff;
}

.moduletable .nav.menu li a:hover::before {
    transform: scaleY(1);
}

.moduletable .nav.menu li a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.moduletable .nav.menu li.current.active a {
    color: var(--primary-color);
    background: var(--secondary-color);
    font-weight: 600;
    padding-left: 26px;
}

.moduletable .nav.menu li.current.active a::before {
    background-color: var(--primary-color);
    transform: scaleY(1);
    width: 4px;
}

.moduletable .nav.menu li.current.active a::after {
    opacity: 1;
    transform: translateX(0);
    color: var(--primary-color);
}

/*************** SECTIONS *****************/

.parish-home #g-container-main .page-header h2 {
    font-size: 1.75rem;
    font-family: var(--body-font-family);
}



#g-expanded {
    padding: 1% 7%;
}

.homelayout #g-expanded .sprocket-lists-portrait-container li:first-child,
.homelayout #g-expanded .sprocket-lists-portrait-container li:nth-child(2),
.homelayout #g-expanded .sprocket-lists-portrait-container li:nth-child(3),
.homelayout #g-expanded .sprocket-lists-portrait-container li:nth-child(4) {
    display: none;
}

.homelayout #g-expanded .sprocket-lists-portrait-container li {
    border-bottom: 1px solid var(--secondary-color);
    padding: 5px 0;
}

.parish-home #g-expanded .sprocket-lists-portrait-title {
    padding-left: 2vw;
}

.zoompics .sprocket-lists-portrait-container>li.active h4 {
    font-weight: 500;
}

.homelayout #g-expanded h3.g-title {
    border-bottom: 1px solid var(--secondary-color);
    padding-left: 2vw;
    font-size: 2.5rem;
    font-weight: 500;
    font-variant-caps: normal;
}

#g-expanded .portrait-text {
    display: none;
}

#g-expanded .sprocket-lists-portrait-container>li .sprocket-lists-portrait-item>a span {
    display: none;
}

/*************** MOBILE *******************/
/*************** ADS **********************/

.site-1-sub #g-bottom {
    background-color: white;
}

@media (max-width: 50.99rem) {
    a.button {
        max-width: 305px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}