 /* =========================================================
           CHURCH RUNNING GALLERY — SCOPED STYLES
        ========================================================= */

        .church-running-gallery {
            --crg-gold: #f4c85a;
            --crg-gold-light: #ffe49a;
            --crg-navy: #050b18;
            --crg-card-width: clamp(260px, 23vw, 390px);
            --crg-card-gap: 22px;
            --crg-radius: 10px;

            position: relative;
            width: 100%;
            min-height: 700px;
            padding: clamp(70px, 8vw, 120px) 0;
            overflow: hidden;
            isolation: isolate;
            color: #ffffff;
            background-color: var(--crg-navy);
            font-family: "Inter", sans-serif;
        }

        /* Normal img tag used as the section background */
        .church-running-gallery__background {
            position: absolute;
            inset: 0;
            z-index: -4;
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            pointer-events: none;
            transform: scale(1.02);
        }

        .church-running-gallery__overlay {
            position: absolute;
            inset: 0;
            z-index: -3;
            pointer-events: none;
            background:
                linear-gradient(
                    180deg,
                    rgba(2, 7, 17, 0.87) 0%,
                    rgba(4, 12, 29, 0.82) 48%,
                    rgba(2, 6, 15, 0.93) 100%
                ),
                radial-gradient(
                    circle at 50% 35%,
                    rgba(244, 200, 90, 0.13),
                    transparent 36%
                );
        }

        .church-running-gallery__texture {
            position: absolute;
            inset: 0;
            z-index: -2;
            opacity: 0.24;
            pointer-events: none;
            background-image:
                linear-gradient(
                    90deg,
                    transparent 49.8%,
                    rgba(244, 200, 90, 0.08) 50%,
                    transparent 50.2%
                ),
                linear-gradient(
                    rgba(255, 255, 255, 0.025) 1px,
                    transparent 1px
                );
            background-size: 160px 100%, 100% 42px;
        }

        .church-running-gallery__glow {
            position: absolute;
            z-index: -1;
            width: 360px;
            height: 360px;
            border-radius: 50%;
            filter: blur(100px);
            opacity: 0.18;
            pointer-events: none;
            background: var(--crg-gold);
        }

        .church-running-gallery__glow--left {
            top: 15%;
            left: -180px;
        }

        .church-running-gallery__glow--right {
            right: -200px;
            bottom: 4%;
        }

        .church-running-gallery__content {
            position: relative;
            width: 100%;
            z-index: 2;
        }

        /* Heading */
        .church-running-gallery__heading {
            width: min(920px, calc(100% - 32px));
            margin: 0 auto clamp(42px, 5vw, 70px);
            text-align: center;
        }

        .church-running-gallery__eyebrow {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            margin-bottom: 16px;
            color: var(--crg-gold-light);
            font-size: 0.78rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }

        .church-running-gallery__eyebrow-icon {
            display: inline-grid;
            width: 36px;
            height: 36px;
            place-items: center;
            border: 1px solid rgba(244, 200, 90, 0.65);
            border-radius: 50%;
            background: rgba(244, 200, 90, 0.08);
            box-shadow:
                0 0 22px rgba(244, 200, 90, 0.18),
                inset 0 0 14px rgba(244, 200, 90, 0.08);
        }

        .church-running-gallery__title {
            margin: 0;
            color: #ffffff;
            font-family: "Archivo Black", sans-serif;
            font-size: clamp(2.25rem, 5vw, 4.8rem);
            font-weight: 400;
            line-height: 1.05;
            letter-spacing: -0.035em;
            text-wrap: balance;
            text-shadow: 0 10px 35px rgba(0, 0, 0, 0.42);
        }

        .church-running-gallery__title-accent {
            color: var(--crg-gold);
            text-shadow:
                0 0 24px rgba(244, 200, 90, 0.25),
                0 10px 35px rgba(0, 0, 0, 0.42);
        }

        .church-running-gallery__divider {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            width: min(280px, 70%);
            margin: 24px auto 20px;
        }

        .church-running-gallery__divider::before,
        .church-running-gallery__divider::after {
            content: "";
            width: 95px;
            height: 1px;
            background: linear-gradient(
                90deg,
                transparent,
                var(--crg-gold)
            );
        }

        .church-running-gallery__divider::after {
            background: linear-gradient(
                90deg,
                var(--crg-gold),
                transparent
            );
        }

        .church-running-gallery__divider i {
            color: var(--crg-gold);
            font-size: 0.8rem;
            filter: drop-shadow(0 0 8px rgba(244, 200, 90, 0.6));
        }

        .church-running-gallery__subtitle {
            max-width: 790px;
            margin: 0 auto;
            color: rgba(255, 255, 255, 0.76);
            font-size: clamp(0.96rem, 1.4vw, 1.12rem);
            line-height: 1.8;
            text-wrap: balance;
        }

        /* Gallery viewport */
        .church-running-gallery__viewport {
            position: relative;
            width: 100%;
            padding: 16px 0 26px;
            overflow: hidden;
            touch-action: pan-y;
        }

        .church-running-gallery__viewport::before,
        .church-running-gallery__viewport::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            z-index: 4;
            width: clamp(55px, 8vw, 150px);
            pointer-events: none;
        }

        .church-running-gallery__viewport::before {
            left: 0;
            background: linear-gradient(
                90deg,
                rgba(3, 8, 19, 0.96),
                rgba(3, 8, 19, 0.62) 38%,
                transparent
            );
        }

        .church-running-gallery__viewport::after {
            right: 0;
            background: linear-gradient(
                270deg,
                rgba(3, 8, 19, 0.96),
                rgba(3, 8, 19, 0.62) 38%,
                transparent
            );
        }

        .church-running-gallery__track {
            display: flex;
            align-items: stretch;
            gap: var(--crg-card-gap);
            width: max-content;
            padding-inline: var(--crg-card-gap);
            will-change: transform;
            transform: translate3d(0, 0, 0);
        }

        .church-running-gallery__item {
            position: relative;
            flex: 0 0 var(--crg-card-width);
            aspect-ratio: 4 / 3;
            overflow: hidden;
            border: 1px solid rgba(244, 200, 90, 0.65);
            border-radius: var(--crg-radius);
            background: #071020;
            box-shadow:
                0 18px 45px rgba(0, 0, 0, 0.42),
                0 0 0 1px rgba(255, 255, 255, 0.05) inset,
                0 0 24px rgba(244, 200, 90, 0.08);
            cursor: zoom-in;
            outline: none;
            transform: translateZ(0);
        }

        .church-running-gallery__item::before {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 2;
            border-radius: inherit;
            background:
                linear-gradient(
                    180deg,
                    transparent 35%,
                    rgba(1, 5, 13, 0.82) 100%
                );
            transition: background 0.4s ease;
            pointer-events: none;
        }

        .church-running-gallery__item::after {
            content: "";
            position: absolute;
            inset: 0;
            z-index: 3;
            border-radius: inherit;
            border: 1px solid transparent;
            transition:
                border-color 0.35s ease,
                box-shadow 0.35s ease;
            pointer-events: none;
        }

        .church-running-gallery__image {
            display: block;
            width: 100%;
            height: 100%;
            aspect-ratio: 4 / 3;
            object-fit: cover;
            transition:
                transform 0.75s cubic-bezier(0.2, 0.75, 0.25, 1),
                filter 0.45s ease;
            transform: scale(1.001);
        }

        .church-running-gallery__label {
            position: absolute;
            left: 16px;
            bottom: 15px;
            z-index: 4;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            max-width: calc(100% - 32px);
            padding: 8px 12px;
            overflow: hidden;
            color: #ffffff;
            border: 1px solid rgba(244, 200, 90, 0.48);
            border-radius: 999px;
            background: rgba(3, 8, 19, 0.68);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            font-size: 0.74rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            white-space: nowrap;
            text-overflow: ellipsis;
            transition:
                transform 0.35s ease,
                background-color 0.35s ease;
        }

        .church-running-gallery__label i {
            color: var(--crg-gold);
        }

        .church-running-gallery__zoom-icon {
            position: absolute;
            top: 15px;
            right: 15px;
            z-index: 4;
            display: grid;
            width: 42px;
            height: 42px;
            place-items: center;
            color: var(--crg-gold-light);
            border: 1px solid rgba(244, 200, 90, 0.5);
            border-radius: 50%;
            background: rgba(3, 8, 19, 0.68);
            opacity: 0;
            transform: scale(0.75) rotate(-8deg);
            transition:
                opacity 0.35s ease,
                transform 0.35s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .church-running-gallery__item:hover .church-running-gallery__image,
        .church-running-gallery__item:focus-visible .church-running-gallery__image {
            transform: scale(1.095);
            filter: brightness(0.76);
        }

        .church-running-gallery__item:hover::before,
        .church-running-gallery__item:focus-visible::before {
            background:
                linear-gradient(
                    180deg,
                    rgba(1, 5, 13, 0.18),
                    rgba(1, 5, 13, 0.92)
                );
        }

        .church-running-gallery__item:hover::after,
        .church-running-gallery__item:focus-visible::after {
            border-color: var(--crg-gold);
            box-shadow:
                inset 0 0 25px rgba(244, 200, 90, 0.13),
                0 0 22px rgba(244, 200, 90, 0.2);
        }

        .church-running-gallery__item:hover .church-running-gallery__label,
        .church-running-gallery__item:focus-visible .church-running-gallery__label {
            background: rgba(3, 8, 19, 0.88);
            transform: translateY(-3px);
        }

        .church-running-gallery__item:hover .church-running-gallery__zoom-icon,
        .church-running-gallery__item:focus-visible .church-running-gallery__zoom-icon {
            opacity: 1;
            transform: scale(1) rotate(0);
        }

        .church-running-gallery__item:focus-visible {
            box-shadow:
                0 0 0 3px rgba(244, 200, 90, 0.42),
                0 18px 45px rgba(0, 0, 0, 0.42);
        }

        /* Manual gallery arrows */
        .church-running-gallery__control {
            position: absolute;
            top: 50%;
            z-index: 7;
            display: grid;
            width: clamp(46px, 5vw, 58px);
            height: clamp(46px, 5vw, 58px);
            place-items: center;
            padding: 0;
            color: #ffffff;
            border: 1px solid rgba(244, 200, 90, 0.72);
            border-radius: 50%;
            background: rgba(3, 8, 19, 0.7);
            box-shadow:
                0 12px 32px rgba(0, 0, 0, 0.38),
                0 0 20px rgba(244, 200, 90, 0.12);
            transform: translateY(-50%);
            transition:
                color 0.3s ease,
                background-color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease;
            backdrop-filter: blur(14px);
            -webkit-backdrop-filter: blur(14px);
            cursor: pointer;
        }

        .church-running-gallery__control--previous {
            left: clamp(12px, 2.5vw, 44px);
        }

        .church-running-gallery__control--next {
            right: clamp(12px, 2.5vw, 44px);
        }

        .church-running-gallery__control:hover {
            color: var(--crg-navy);
            border-color: var(--crg-gold-light);
            background: var(--crg-gold);
            box-shadow:
                0 12px 35px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(244, 200, 90, 0.35);
            transform: translateY(-50%) scale(1.08);
        }

        .church-running-gallery__control:active {
            transform: translateY(-50%) scale(0.96);
        }

        .church-running-gallery__control:focus-visible {
            outline: 3px solid rgba(255, 255, 255, 0.72);
            outline-offset: 3px;
        }

        /* Pause indicator */
        .church-running-gallery__status {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            min-height: 26px;
            margin-top: 16px;
            color: rgba(255, 255, 255, 0.58);
            font-size: 0.74rem;
            font-weight: 600;
            letter-spacing: 0.07em;
            text-transform: uppercase;
        }

        .church-running-gallery__status-dot {
            width: 7px;
            height: 7px;
            border-radius: 50%;
            background: var(--crg-gold);
            box-shadow: 0 0 10px rgba(244, 200, 90, 0.75);
        }

        /* =========================================================
           CUSTOM LIGHTBOX
        ========================================================= */

        .church-running-gallery__lightbox {
            position: fixed;
            inset: 0;
            z-index: 1085;
            display: flex;
            align-items: center;
            justify-content: center;
            padding:
                max(24px, env(safe-area-inset-top))
                max(70px, env(safe-area-inset-right))
                max(24px, env(safe-area-inset-bottom))
                max(70px, env(safe-area-inset-left));
            visibility: hidden;
            opacity: 0;
            background: rgba(1, 4, 11, 0.96);
            transition:
                opacity 0.28s ease,
                visibility 0.28s ease;
            overscroll-behavior: contain;
        }

        .church-running-gallery__lightbox.is-open {
            visibility: visible;
            opacity: 1;
        }

        .church-running-gallery__lightbox-dialog {
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            width: min(1180px, 100%);
            max-height: calc(100vh - 48px);
            max-height: calc(100dvh - 48px);
            outline: none;
        }

        .church-running-gallery__lightbox-image-wrap {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            min-height: 0;
            overflow: hidden;
            border: 1px solid rgba(244, 200, 90, 0.42);
            border-radius: 10px;
            background: rgba(255, 255, 255, 0.025);
            box-shadow:
                0 30px 90px rgba(0, 0, 0, 0.65),
                0 0 45px rgba(244, 200, 90, 0.1);
            transform: scale(0.94);
            transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.25, 1);
        }

        .church-running-gallery__lightbox.is-open
        .church-running-gallery__lightbox-image-wrap {
            transform: scale(1);
        }

        .church-running-gallery__lightbox-image {
            display: block;
            width: 100%;
            max-width: 100%;
            height: min(74vh, 800px);
            height: min(74dvh, 800px);
            object-fit: contain;
            user-select: none;
            -webkit-user-drag: none;
        }

        .church-running-gallery__lightbox-info {
            display: grid;
            grid-template-columns: 1fr auto;
            gap: 18px;
            align-items: center;
            width: 100%;
            padding: 17px 4px 0;
        }

        .church-running-gallery__lightbox-caption {
            margin: 0;
            color: #ffffff;
            font-size: clamp(0.92rem, 1.8vw, 1.1rem);
            line-height: 1.5;
        }

        .church-running-gallery__lightbox-counter {
            margin: 0;
            color: var(--crg-gold-light);
            font-size: 0.85rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            white-space: nowrap;
        }

        .church-running-gallery__lightbox-close,
        .church-running-gallery__lightbox-arrow {
            display: grid;
            place-items: center;
            padding: 0;
            color: #ffffff;
            border: 1px solid rgba(244, 200, 90, 0.58);
            border-radius: 50%;
            background: rgba(6, 12, 26, 0.78);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.42);
            transition:
                color 0.25s ease,
                background-color 0.25s ease,
                transform 0.25s ease;
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            cursor: pointer;
        }

        .church-running-gallery__lightbox-close {
            position: fixed;
            top: max(18px, env(safe-area-inset-top));
            right: max(18px, env(safe-area-inset-right));
            z-index: 3;
            width: 52px;
            height: 52px;
            font-size: 1.15rem;
        }

        .church-running-gallery__lightbox-arrow {
            position: fixed;
            top: 50%;
            z-index: 3;
            width: clamp(48px, 5vw, 62px);
            height: clamp(48px, 5vw, 62px);
            font-size: 1.05rem;
            transform: translateY(-50%);
        }

        .church-running-gallery__lightbox-arrow--previous {
            left: max(14px, env(safe-area-inset-left));
        }

        .church-running-gallery__lightbox-arrow--next {
            right: max(14px, env(safe-area-inset-right));
        }

        .church-running-gallery__lightbox-close:hover,
        .church-running-gallery__lightbox-arrow:hover {
            color: var(--crg-navy);
            background: var(--crg-gold);
        }

        .church-running-gallery__lightbox-close:hover {
            transform: rotate(90deg);
        }

        .church-running-gallery__lightbox-arrow:hover {
            transform: translateY(-50%) scale(1.08);
        }

        .church-running-gallery__lightbox-close:focus-visible,
        .church-running-gallery__lightbox-arrow:focus-visible {
            outline: 3px solid #ffffff;
            outline-offset: 3px;
        }

        body.church-running-gallery-lightbox-open {
            overflow: hidden;
            touch-action: none;
        }

        /* Tablet */
        @media (max-width: 991.98px) {
            .church-running-gallery {
                --crg-card-width: clamp(285px, 42vw, 370px);
                --crg-card-gap: 18px;
                min-height: 640px;
            }

            .church-running-gallery__heading {
                margin-bottom: 42px;
            }

            .church-running-gallery__lightbox {
                padding: 72px 58px 28px;
            }
        }

        /* Mobile */
        @media (max-width: 575.98px) {
            .church-running-gallery {
                --crg-card-width: 78vw;
                --crg-card-gap: 14px;
                min-height: 560px;
                padding: 62px 0 54px;
            }

            .church-running-gallery__heading {
                width: min(100% - 28px, 920px);
                margin-bottom: 32px;
            }

            .church-running-gallery__eyebrow {
                margin-bottom: 13px;
                font-size: 0.66rem;
                letter-spacing: 0.14em;
            }

            .church-running-gallery__eyebrow-icon {
                width: 32px;
                height: 32px;
            }

            .church-running-gallery__title {
                font-size: clamp(2rem, 10.5vw, 3rem);
                line-height: 1.08;
            }

            .church-running-gallery__divider {
                margin: 18px auto 15px;
            }

            .church-running-gallery__subtitle {
                font-size: 0.9rem;
                line-height: 1.7;
            }

            .church-running-gallery__viewport {
                padding-top: 10px;
            }

            .church-running-gallery__viewport::before,
            .church-running-gallery__viewport::after {
                width: 45px;
            }

            .church-running-gallery__control {
                width: 46px;
                height: 46px;
            }

            .church-running-gallery__control--previous {
                left: 8px;
            }

            .church-running-gallery__control--next {
                right: 8px;
            }

            .church-running-gallery__label {
                left: 12px;
                bottom: 12px;
                padding: 7px 10px;
                font-size: 0.67rem;
            }

            .church-running-gallery__zoom-icon {
                top: 12px;
                right: 12px;
                width: 38px;
                height: 38px;
            }

            .church-running-gallery__status {
                padding-inline: 60px;
                text-align: center;
                font-size: 0.65rem;
            }

            .church-running-gallery__lightbox {
                align-items: center;
                padding:
                    max(72px, env(safe-area-inset-top))
                    12px
                    max(24px, env(safe-area-inset-bottom));
            }

            .church-running-gallery__lightbox-dialog {
                max-height: calc(100dvh - 96px);
            }

            .church-running-gallery__lightbox-image {
                height: 66dvh;
            }

            .church-running-gallery__lightbox-info {
                gap: 10px;
                padding: 13px 4px 0;
            }

            .church-running-gallery__lightbox-caption {
                font-size: 0.84rem;
            }

            .church-running-gallery__lightbox-counter {
                font-size: 0.74rem;
            }

            .church-running-gallery__lightbox-close {
                width: 46px;
                height: 46px;
            }

            .church-running-gallery__lightbox-arrow {
                top: auto;
                bottom: max(20px, env(safe-area-inset-bottom));
                width: 48px;
                height: 48px;
                transform: none;
            }

            .church-running-gallery__lightbox-arrow--previous {
                left: max(16px, env(safe-area-inset-left));
            }

            .church-running-gallery__lightbox-arrow--next {
                right: max(16px, env(safe-area-inset-right));
            }

            .church-running-gallery__lightbox-arrow:hover {
                transform: scale(1.06);
            }
        }

        /* Reduced motion accessibility */
        @media (prefers-reduced-motion: reduce) {
            .church-running-gallery *,
            .church-running-gallery *::before,
            .church-running-gallery *::after {
                scroll-behavior: auto !important;
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            .church-running-gallery__track {
                will-change: auto;
            }
        }