    .gallery-hero {
        min-height: 70vh;
        background: url('https://images.unsplash.com/photo-1605144884288-49eb7f9bb447?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover no-repeat;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        text-align: left;
        position: relative;
    }
    .gallery-hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 1;
    }
    .gallery-hero .container {
        position: relative;
        z-index: 2;
    }
    .gallery-hero h1 {
        font-size: 3.5rem;
        font-weight: bold;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInUp 1s ease forwards;
    }
    .gallery-hero .subtitle {
        font-size: 1.2rem;
        opacity: 0;
        margin-bottom: 2rem;
        transform: translateY(30px);
        animation: fadeInUp 1s ease 0.2s forwards;
    }
    @keyframes fadeInUp {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .gallery-section {
        padding: 80px 0;
        background-color: #F1F8F4;
    }
    .filter-buttons {
        text-align: center;
        margin-bottom: 40px;
    }
    .filter-button {
        padding: 10px 20px;
        margin: 0 10px;
        background-color: #fff;
        border: 2px solid #4CAF50;
        border-radius: 25px;
        font-size: 1rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    .filter-button.active,
    .filter-button:hover {
        background-color: #4CAF50;
        color: white;
    }
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        padding: 0 20px;
        max-width: 1400px;
        margin: 0 auto;
    }
    .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        cursor: pointer;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background: #1a1a1a;
        opacity: 0;
        transform: translateY(30px);
        animation: fadeInStagger 0.6s ease forwards;
        contain: layout style paint;
    }
    .gallery-item.hidden {
        display: none;
    }
    .gallery-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    }
    .gallery-item img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        transition: transform 0.3s ease;
        will-change: transform;
    }
    .gallery-item:hover img {
        transform: scale(1.05);
    }
    .gallery-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
        opacity: 0;
        transition: opacity 0.3s ease;
        display: flex;
        align-items: flex-end;
        padding: 20px;
        will-change: opacity;
    }
    .gallery-item:hover .gallery-overlay {
        opacity: 1;
    }
    .gallery-info {
        transform: translateY(10px);
        transition: transform 0.3s ease;
    }
    .gallery-item:hover .gallery-info {
        transform: translateY(0);
    }
    .gallery-info h3 {
        color: white;
        font-size: 1.1rem;
        margin-bottom: 5px;
        font-weight: 500;
    }
    .gallery-info p {
        color: #ccc;
        font-size: 0.9rem;
        margin: 0;
    }
    .gallery-item:nth-child(4n+1) { 
        grid-row: span 2;
        animation-delay: 0.1s;
    }
    .gallery-item:nth-child(4n+2) { 
        grid-row: span 1;
        animation-delay: 0.2s;
    }
    .gallery-item:nth-child(4n+3) { 
        grid-row: span 1;
        animation-delay: 0.3s;
    }
    .gallery-item:nth-child(4n+4) { 
        grid-row: span 2;
        animation-delay: 0.4s;
    }
    .gallery-item.tall { 
        grid-row: span 2; 
    }
    .gallery-item.normal { 
        grid-row: span 1; 
    }
    @keyframes fadeInStagger {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .lightbox {
        display: flex;             /* instead of none */
        visibility: hidden;        /* keep it hidden by default */
        opacity: 0;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        z-index: 1000;
        cursor: pointer;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .lightbox.active {
        visibility: visible;
        opacity: 1;
    }
    .lightbox img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.8);
        max-width: 90%;
        max-height: 90%;
        border-radius: 8px;
        transition: transform 0.3s ease;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }
    .lightbox.active img {
        transform: translate(-50%, -50%) scale(1);
    }
    .lightbox-close {
        position: absolute;
        top: 20px;
        right: 30px;
        color: white;
        font-size: 2rem;
        cursor: pointer;
        z-index: 1001;
        transition: transform 0.2s ease, color 0.2s ease;
    }
    .lightbox-close:hover {
        transform: rotate(90deg);
        color: #ff4757;
    }
    .lightbox-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: white;
        font-size: 2rem;
        padding: 20px 15px;
        cursor: pointer;
        transition: all 0.3s ease;
        border-radius: 50%;
        backdrop-filter: blur(10px);
    }
    .lightbox-nav:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-50%) scale(1.1);
    }
    .lightbox-prev {
        left: 30px;
    }
    .lightbox-next {
        right: 30px;
    }
    .loading-spinner {
        display: none;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 40px;
        height: 40px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: #fff;
        animation: spin 1s ease-in-out infinite;
    }
    @keyframes spin {
        to { transform: translate(-50%, -50%) rotate(360deg); }
    }
    @media (max-width: 768px) {
        .gallery-hero h1 {
            font-size: 2.5rem;
        }
        .gallery-grid {
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            padding: 0 15px;
        }
        .gallery-item {
            grid-row: span 1 !important;
        }
        .lightbox-close {
            top: 15px;
            right: 20px;
            font-size: 1.8rem;
        }
        .lightbox-nav {
            font-size: 1.5rem;
            padding: 15px 12px;
        }
        .lightbox-prev {
            left: 15px;
        }
        .lightbox-next {
            right: 15px;
        }
    }
    @media (max-width: 768px) {
            .container, 
    .container-fluid.extra-left-space, 
    .row, 
    .col, 
    [class*="col-"] {
        margin: 0 auto !important;
        padding: 0 10px !important;  
        max-width: 100% !important;
        box-sizing: border-box !important;
    }  
       }

/* ✅ Mobile filter buttons in one row */
@media (max-width: 430px) {
  .filter-buttons {
    display: flex;
    justify-content: center;   /* center horizontally */
    align-items: center;
    gap: 4px;                  /* spacing between buttons */
    flex-wrap: nowrap;         /* keep them on one line */
    overflow-x: auto;          /* allow scroll if too tight */
  }

  .filter-button {
    flex: 1 1 auto;            /* buttons shrink to fit */
    padding: 8px 12px;         /* smaller padding */
    font-size: 0.85rem;        /* smaller text */
    white-space: nowrap;       /* prevent text wrapping */
  }
}
