    /* Gallery CSS has been moved to external file. This style block kept for any future page-specific overrides. */
       Tile sizes map to mural purchase size:
         1x1 Standard  -> 1 col, 1 row
         2x2 Featured  -> 2 col, 2 row
         3x3 Spotlight -> 2 col, 3 row (or 3 col on wide)
       ============================================== */

    body {
        font-family: 'Quicksand', 'Poppins', -apple-system, sans-serif;
        background: #FFF5F0;
        color: #3D2E26;
        min-height: 100vh;
        padding-top: 100px;
    }

    /* --- Hero --- */
    .gallery-hero {
        text-align: center;
        padding: 48px 20px 32px;
        margin-top: 20px;
        background: linear-gradient(180deg, #FFF5F0 0%, #FFEEE6 100%);
    }

    .gallery-hero h1 {
        font-family: 'DM Serif Display', Georgia, serif;
        font-size: 2.8rem;
        color: #3D2E26;
        margin-bottom: 8px;
        letter-spacing: -0.5px;
    }

    .gallery-hero .subtitle {
        font-size: 1.05rem;
        color: #6B5E57;
        max-width: 480px;
        margin: 0 auto;
        line-height: 1.5;
    }

    /* --- Filter Bar --- */
    .filter-bar {
        position: sticky;
        top: 56px;
        z-index: 100;
        background: rgba(250, 245, 240, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid #FFE0D2;
        padding: 12px 20px;
    }

    /* Hide toggle bar on desktop, always show filters */
    .filter-toggle-bar {
        display: none;
    }
    .filter-bar.collapsed .filter-bar-inner {
        display: flex;
    }

    .filter-bar-inner {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    .filter-search {
        flex: 1;
        min-width: 180px;
        position: relative;
    }

    .filter-search input {
        width: 100%;
        background: white;
        border: 1.5px solid #FFE0D2;
        border-radius: 10px;
        padding: 9px 14px 9px 36px;
        color: #3D2E26;
        font-size: 0.88rem;
        font-family: 'Quicksand', sans-serif;
        font-weight: 600;
    }

    .filter-search input::placeholder {
        color: #6B5E57;
    }

    .filter-search input:focus {
        outline: none;
        border-color: #E8704E;
    }

    .filter-search-icon {
        position: absolute;
        left: 11px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        color: #6B5E57;
        pointer-events: none;
    }

    .filter-select {
        background: white;
        border: 1.5px solid #FFE0D2;
        border-radius: 10px;
        padding: 9px 14px;
        color: #3D2E26;
        font-size: 0.85rem;
        font-family: 'Quicksand', sans-serif;
        font-weight: 600;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239B8E87' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        padding-right: 30px;
    }

    .filter-select:focus {
        outline: none;
        border-color: #E8704E;
    }

    .filter-select option {
        background: white;
        color: #3D2E26;
    }

    /* Location search within filter bar */
    .filter-location-wrap {
        position: relative;
        min-width: 160px;
    }

    .filter-location-wrap input {
        width: 100%;
        background: white;
        border: 1.5px solid #FFE0D2;
        border-radius: 10px;
        padding: 9px 30px 9px 32px;
        color: #3D2E26;
        font-size: 0.85rem;
        font-family: 'Quicksand', sans-serif;
        font-weight: 600;
    }

    .filter-location-wrap input::placeholder {
        color: #6B5E57;
    }

    .filter-location-wrap input:focus {
        outline: none;
        border-color: #E8704E;
    }

    .filter-location-wrap input.has-value {
        border-color: #358585;
        background: rgba(53, 133, 133, 0.06);
    }

    .filter-location-icon {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 14px;
        height: 14px;
        color: #6B5E57;
        pointer-events: none;
    }

    .filter-location-clear {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #E8704E;
        border: none;
        color: #fff;
        font-size: 13px;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .filter-location-clear.visible {
        display: flex;
    }

    .location-dropdown {
        position: absolute;
        top: calc(100% + 4px);
        left: 0;
        right: 0;
        background: white;
        border: 1.5px solid #FFE0D2;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        max-height: 260px;
        overflow-y: auto;
        z-index: 200;
        display: none;
    }

    .location-dropdown.show {
        display: block;
    }

    .location-dropdown-item {
        padding: 10px 14px;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #FFE0D2;
        transition: background 0.15s;
    }

    .location-dropdown-item:last-child {
        border-bottom: none;
    }

    .location-dropdown-item:hover,
    .location-dropdown-item.highlighted {
        background: rgba(232, 112, 78, 0.1);
    }

    .location-dropdown-item .loc-name {
        color: #3D2E26;
        font-weight: 600;
        font-size: 0.88rem;
    }

    .location-dropdown-item .loc-count {
        color: #E8704E;
        font-weight: 700;
        font-size: 0.78rem;
        background: rgba(232, 112, 78, 0.12);
        padding: 2px 8px;
        border-radius: 12px;
    }

    .location-dropdown-empty {
        padding: 14px;
        text-align: center;
        color: #6B5E57;
        font-size: 0.85rem;
    }

    /* Results count */
    .results-bar {
        max-width: 1400px;
        margin: 0 auto;
        padding: 14px 20px 6px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .results-count {
        font-size: 0.88rem;
        color: #6B5E57;
        font-weight: 600;
    }

    .results-count span {
        color: #E8704E;
        font-weight: 700;
    }

    .clear-filters-btn {
        padding: 5px 14px;
        background: transparent;
        color: #E8704E;
        border: 1.5px solid rgba(232, 112, 78, 0.3);
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s;
        display: none;
    }

    .clear-filters-btn.visible {
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

    .clear-filters-btn:hover {
        background: #E8704E;
        color: #fff;
    }

    /* ==============================================
       PHOTO GRID - the main event
       CSS Grid with auto-fill columns.
       Base cell = ~200px. Larger tiles span more.
       ============================================== */

    .photo-grid {
        max-width: 1400px;
        margin: 0 auto;
        padding: 10px 16px 60px;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        grid-auto-rows: 180px;
        grid-auto-flow: dense;
        gap: 6px;
    }

    /* --- Photo Tile (base = 1x1) --- */
    .photo-tile {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        cursor: pointer;
        background: #FFE0D2;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    }

    .photo-tile img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.4s ease, filter 0.3s ease;
    }

    .photo-tile:hover img {
        transform: scale(1.06);
    }

    /* Size variants */
    .photo-tile.size-2x2 {
        grid-column: span 2;
        grid-row: span 2;
    }

    .photo-tile.size-3x3 {
        grid-column: span 2;
        grid-row: span 2;
    }

    /* Overlay: name + occasion at bottom -- ALWAYS VISIBLE */
    .photo-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 24px 10px 8px;
        background: linear-gradient(0deg, rgba(26, 21, 20, 0.75) 0%, rgba(26, 21, 20, 0.3) 60%, transparent 100%);
        pointer-events: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .photo-overlay .pet-name {
        font-family: 'DM Serif Display', Georgia, serif;
        font-size: 1rem;
        color: #FFF5F0;
        line-height: 1.2;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }

    .photo-tile.size-2x2 .photo-overlay .pet-name,
    .photo-tile.size-3x3 .photo-overlay .pet-name {
        font-size: 1.3rem;
    }

    .photo-overlay .occasion-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        border-radius: 6px;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .occasion-badge.celebration {
        background: rgba(53, 133, 133, 0.8);
        color: #fff;
    }

    .occasion-badge.memorial {
        background: rgba(232, 112, 78, 0.8);
        color: #fff;
    }

    /* Placeholder for tiles without photos */
    .photo-tile-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #FFEEE6, #FFE0D2);
    }

    .photo-tile-placeholder .placeholder-icon {
        width: 32px;
        height: 32px;
        color: #E8704E;
        opacity: 0.3;
    }

    /* --- Loading / Empty States --- */
    .gallery-loading {
        text-align: center;
        padding: 80px 20px;
    }

    .gallery-loading .spinner {
        width: 32px;
        height: 32px;
        border: 3px solid #FFE0D2;
        border-top-color: #E8704E;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0 auto 16px;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    .gallery-loading p {
        color: #6B5E57;
        font-weight: 600;
    }

    .gallery-empty {
        text-align: center;
        padding: 80px 20px;
    }

    .gallery-empty h3 {
        font-family: 'DM Serif Display', Georgia, serif;
        font-size: 1.4rem;
        color: #9B8E87;
        margin-bottom: 8px;
    }

    .gallery-empty p {
        color: #6B5E57;
        font-size: 0.95rem;
    }

    /* Scroll sentinel (infinite scroll trigger) */
    .scroll-sentinel {
        height: 1px;
        width: 100%;
    }

    /* Bottom loading indicator */
    .load-more-indicator {
        text-align: center;
        padding: 30px 20px;
        display: none;
    }

    .load-more-indicator.visible {
        display: block;
    }

    .load-more-indicator .spinner {
        width: 24px;
        height: 24px;
        border: 2px solid #FFE0D2;
        border-top-color: #E8704E;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        margin: 0 auto 8px;
    }

    .load-more-indicator p {
        color: #6B5E57;
        font-size: 0.85rem;
        font-weight: 600;
    }

    /* Bottom note */
    .gallery-footer-note {
        text-align: center;
        padding: 20px 20px 60px;
        color: #6B5E57;
        font-size: 0.88rem;
        font-weight: 600;
        max-width: 500px;
        margin: 0 auto;
    }

    /* --- Responsive --- */
    @media (max-width: 900px) {
        .photo-grid {
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            grid-auto-rows: 150px;
        }
    }

    @media (max-width: 600px) {
        body {
            padding-top: 60px;
        }

        .gallery-hero {
            padding: 32px 20px 20px;
        }

        .gallery-hero h1 {
            font-size: 1.8rem;
        }

        /* Filter bar compact on mobile */
        .filter-bar {
            padding: 0;
            top: 60px;
        }

        /* Toggle bar - visible on mobile */
        .filter-toggle-bar {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 16px;
            cursor: pointer;
            font-weight: 700;
            font-size: 0.9rem;
            color: #E8704E;
            font-family: 'Quicksand', sans-serif;
            border-bottom: 1px solid #FFE0D2;
        }

        .filter-bar.collapsed .filter-toggle-bar {
            border-bottom: none;
        }

        .filter-toggle-bar .toggle-icon {
            transition: transform 0.3s ease;
        }

        .filter-bar:not(.collapsed) .filter-toggle-bar .toggle-icon {
            transform: rotate(180deg);
        }

        /* Collapsed state - hide all filters */
        .filter-bar.collapsed .filter-bar-inner {
            display: none;
        }

        .filter-bar-inner {
            gap: 8px;
            padding: 0 16px 12px;
        }

        .filter-search {
            min-width: 100%;
        }

        .photo-grid {
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            grid-auto-rows: 120px;
            gap: 4px;
            padding: 6px 8px 60px;
        }

        .photo-tile.size-3x3 {
            grid-column: span 2;
            grid-row: span 2;
        }

        .photo-overlay {
            padding: 20px 8px 6px;
        }

        .photo-overlay .pet-name {
            font-size: 0.82rem;
        }

        .photo-tile.size-2x2 .photo-overlay .pet-name,
        .photo-tile.size-3x3 .photo-overlay .pet-name {
            font-size: 1rem;
        }

        .occasion-badge {
            font-size: 0.6rem !important;
            padding: 1px 5px !important;
        }
    }

    @media (max-width: 400px) {
        .photo-grid {
            grid-template-columns: repeat(2, 1fr);
            grid-auto-rows: 140px;
        }
    }
