
        /* ============================================
             CSS CUSTOM PROPERTIES (VARIABLES)
             ============================================ */
        :root {
            --photos-accent: #c8a45c;
            --photos-accent-dark: #b08a3e;
            --photos-bg: #ffffff;
            --photos-text: #1a1a1a;
            --photos-text-light: #555555;
            --photos-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
            --photos-shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.16);
            --photos-radius: 16px;
            --photos-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --photos-overlay-bg: rgba(0, 0, 0, 0.55);
            --photos-lightbox-bg: rgba(0, 0, 0, 0.88);
            --photos-blur-amount: 18px;
            --photos-icon-size: 44px;
            --photos-icon-border: 2px solid rgba(255, 255, 255, 0.85);
        }

        /* ============================================
             SECTION BASE STYLES
             ============================================ */
        .photos {
            background-color: var(--photos-bg);
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }

        @media (max-width: 768px) {
            .photos {
                padding: 60px 0;
            }
        }

        /* Subtle top border accent */
        .photos::before {
            content: '';
            position: absolute;
            top: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--photos-accent);
            border-radius: 0 0 3px 3px;
            opacity: 0.6;
        }

        /* ============================================
             SECTION HEADING
             ============================================ */
        .photos-heading {
            text-align: center;
            margin-bottom: 56px;
        }

        .photos-heading h2 {
            font-size: 2.6rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--photos-text);
            margin-bottom: 0;
            line-height: 1.2;
        }

        @media (max-width: 576px) {
            .photos-heading h2 {
                font-size: 2rem;
            }
        }

        .photos-accent-line {
            display: block;
            width: 50px;
            height: 3px;
            background: var(--photos-accent);
            margin: 16px auto 0;
            border-radius: 2px;
            transition: width 0.5s ease;
        }

        .photos:hover .photos-accent-line {
            width: 70px;
        }

        .photos-subtitle {
            font-size: 1.05rem;
            color: var(--photos-text-light);
            margin-top: 12px;
            font-weight: 400;
            letter-spacing: 0.01em;
        }

        /* ============================================
             GALLERY GRID ITEMS
             ============================================ */
        .photos-grid {
            /* Bootstrap row - additional fine-tuning */
            row-gap: 1.5rem;
        }

        .photos-item {
            /* Fade-up animation base state */
            opacity: 0;
            transform: translateY(40px);
            animation: photos-fadeUp 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
        }

        /* Stagger delays applied via JS inline styles or nth-child fallback */
        .photos-item:nth-child(1) {
            animation-delay: 0.05s;
        }
        .photos-item:nth-child(2) {
            animation-delay: 0.12s;
        }
        .photos-item:nth-child(3) {
            animation-delay: 0.19s;
        }
        .photos-item:nth-child(4) {
            animation-delay: 0.26s;
        }
        .photos-item:nth-child(5) {
            animation-delay: 0.33s;
        }
        .photos-item:nth-child(6) {
            animation-delay: 0.40s;
        }
        .photos-item:nth-child(7) {
            animation-delay: 0.47s;
        }
        .photos-item:nth-child(8) {
            animation-delay: 0.54s;
        }
        .photos-item:nth-child(9) {
            animation-delay: 0.61s;
        }
        .photos-item:nth-child(10) {
            animation-delay: 0.68s;
        }
        .photos-item:nth-child(11) {
            animation-delay: 0.75s;
        }
        .photos-item:nth-child(12) {
            animation-delay: 0.82s;
        }

        @keyframes photos-fadeUp {
            0% {
                opacity: 0;
                transform: translateY(40px);
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ============================================
             GALLERY CARD
             ============================================ */
        .photos-card {
            position: relative;
            border-radius: var(--photos-radius);
            overflow: hidden;
            cursor: pointer;
            box-shadow: var(--photos-shadow);
            background: #f5f5f5;
            transition:
                box-shadow var(--photos-transition),
                transform var(--photos-transition);
            will-change: transform, box-shadow;
            /* Ensure card clips the zooming image */
            -webkit-mask-image: -webkit-radial-gradient(white, black);
            mask-image: radial-gradient(white, black);
        }

        .photos-card:hover {
            box-shadow: var(--photos-shadow-hover);
            transform: translateY(-6px);
        }

        .photos-card:focus-visible {
            outline: 3px solid var(--photos-accent);
            outline-offset: 3px;
            box-shadow: var(--photos-shadow-hover);
            transform: translateY(-4px);
        }

        /* ============================================
             IMAGE WRAPPER (aspect ratio container)
             ============================================ */
        .photos-image-wrapper {
            position: relative;
            aspect-ratio: 4 / 3;
            overflow: hidden;
            background: #e8e8e8;
        }

        .photos-image {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform var(--photos-transition);
            will-change: transform;
        }

        .photos-card:hover .photos-image {
            transform: scale(1.08);
        }

        /* ============================================
             HOVER OVERLAY
             ============================================ */
        .photos-overlay {
            position: absolute;
            inset: 0;
            /* background: var(--photos-overlay-bg); */
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity var(--photos-transition);
            pointer-events: none;
            z-index: 2;
        }

        .photos-card:hover .photos-overlay {
            opacity: 1;
        }

        /* ============================================
             OVERLAY ICON (Zoom / Plus)
             ============================================ */
        .photos-overlay-icon {
            width: var(--photos-icon-size);
            height: var(--photos-icon-size);
            border: var(--photos-icon-border);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-size: 1.25rem;
            transition:
                transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.35s ease,
                background 0.35s ease;
            transform: scale(0.6);
            display: none;
            background: rgba(255, 255, 255, 0.06);
        }

        .photos-card:hover .photos-overlay-icon {
            transform: scale(1);
            border-color: rgba(255, 255, 255, 0.95);
            background: rgba(255, 255, 255, 0.12);
        }

        /* Subtle pulse on the icon after it appears */
        .photos-card:hover .photos-overlay-icon {
            animation: photos-iconPulse 2s ease-in-out infinite;
            animation-delay: 0.4s;
        }

        @keyframes photos-iconPulse {
            0%,
            100% {
                box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3);
            }
            50% {
                box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
            }
        }

        /* ============================================
             LIGHTBOX (Fullscreen)
             ============================================ */
        .photos-lightbox {
            position: fixed;
            inset: 0;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition:
                opacity 0.35s ease,
                visibility 0.35s ease;
        }

        .photos-lightbox.is-active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        /* Dark blurred backdrop */
        .photos-lightbox-backdrop {
            position: absolute;
            inset: 0;
            background: var(--photos-lightbox-bg);
            backdrop-filter: blur(var(--photos-blur-amount));
            -webkit-backdrop-filter: blur(var(--photos-blur-amount));
            z-index: 0;
        }

        /* ============================================
   LIGHTBOX CONTENT – simplified for centering
   ============================================ */
.photos-lightbox-content {
    position: relative;
    z-index: 1;
    /* Remove flex – rely on parent centering */
    width: auto;
    max-width: 95vw;          /* fallback container width */
    height: auto;
    max-height: 95vh;
    padding: 16px;
    transform: scale(0.92);
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
    /* Ensure the image block stays inside bounds */
    display: block;

}

.photos-lightbox.is-active .photos-lightbox-content {
    transform: scale(1);
}

/* Lightbox image – block centering inside the parent flex */
.photos-lightbox-image {
    display: block;
    max-width: 82vw;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s ease;
    user-select: none;
    -webkit-user-drag: none;
    margin: 0 auto;           /* centers if content is wider than image */
}

.photos-lightbox-image.is-switching {
    opacity: 0.35;
}

/* Responsive padding & size tweaks for very small screens */
@media (max-width: 576px) {
    .photos-lightbox-content {
        padding: 12px;
    }
    .photos-lightbox-image {
        max-width: 90vw;
        max-height: 80vh;
    }
}
        /* Lightbox image */
        .photos-lightbox-image {
            display: block;
            max-width: 82vw;
            max-height: 84vh;
            width: auto;
            height: auto;
            object-fit: contain;
            border-radius: 10px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            transition: opacity 0.25s ease;
            user-select: none;
            -webkit-user-drag: none;
        }

        .photos-lightbox-image.is-switching {
            opacity: 0.35;
        }

        /* ============================================
             LIGHTBOX BUTTONS
             ============================================ */
        .photos-close,
        .photos-prev,
        .photos-next {
            position: absolute;
            z-index: 2;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #ffffff;
            cursor: pointer;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition:
                background 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s ease;
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            outline: none;
        }

        .photos-close:hover,
        .photos-prev:hover,
        .photos-next:hover {
            background: rgba(255, 255, 255, 0.22);
            border-color: rgba(255, 255, 255, 0.55);
            transform: scale(1.08);
        }

        .photos-close:focus-visible,
        .photos-prev:focus-visible,
        .photos-next:focus-visible {
            outline: 3px solid var(--photos-accent);
            outline-offset: 3px;
            background: rgba(255, 255, 255, 0.22);
        }

        /* Close button - top right */
        .photos-close {
            top: 24px;
            right: 28px;
            width: 44px;
            height: 44px;
            font-size: 1.5rem;
        }

        @media (max-width: 576px) {
            .photos-close {
                top: 16px;
                right: 16px;
                width: 38px;
                height: 38px;
                font-size: 1.3rem;
            }
        }

        /* Navigation buttons */
        .photos-prev,
        .photos-next {
            top: 50%;
            transform: translateY(-50%);
            width: 48px;
            height: 48px;
            font-size: 1.4rem;
        }

        .photos-prev:hover,
        .photos-next:hover {
            transform: translateY(-50%) scale(1.08);
        }

        .photos-prev {
            left: 20px;
        }
        .photos-next {
            right: 20px;
        }

        @media (max-width: 768px) {
            .photos-prev,
            .photos-next {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
            .photos-prev {
                left: 10px;
            }
            .photos-next {
                right: 10px;
            }
        }

        @media (max-width: 576px) {
            .photos-prev,
            .photos-next {
                width: 36px;
                height: 36px;
                font-size: 1rem;
            }
            .photos-prev {
                left: 6px;
            }
            .photos-next {
                right: 6px;
            }
        }

        /* ============================================
             LIGHTBOX COUNTER
             ============================================ */
        .photos-lightbox-counter {
            position: absolute;
            bottom: 28px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 2;
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.9rem;
            font-weight: 500;
            letter-spacing: 0.04em;
            background: rgba(0, 0, 0, 0.45);
            padding: 6px 16px;
            border-radius: 20px;
            backdrop-filter: blur(6px);
            -webkit-backdrop-filter: blur(6px);
            pointer-events: none;
        }

        @media (max-width: 576px) {
            .photos-lightbox-counter {
                bottom: 18px;
                font-size: 0.8rem;
                padding: 5px 12px;
            }
        }

        /* ============================================
             BODY SCROLL LOCK
             ============================================ */
        body.photos-body-locked {
            overflow: hidden;
            /* Preserve scrollbar width to avoid layout shift */
            padding-right: var(--photos-scrollbar-width, 0px);
        }

        /* ============================================
             ACCESSIBILITY: Reduced motion
             ============================================ */
        @media (prefers-reduced-motion: reduce) {
            .photos-item {
                animation: none;
                opacity: 1;
                transform: none;
            }
            .photos-card,
            .photos-image,
            .photos-overlay,
            .photos-overlay-icon,
            .photos-lightbox,
            .photos-lightbox-content {
                transition: none !important;
            }
            .photos-card:hover .photos-overlay-icon {
                animation: none;
            }
        }
