.gallery-section {
    background: #FFFFFF;
    padding: 90px 40px;
}

.gallery-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.gallery-eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-lime-dark);
    margin-bottom: 16px;
}

.gallery-heading {
    font-family: var(--font-body);
    font-size: 36px;
    font-weight: 800;
    color: #141414;
    margin: 0 0 14px;
}

.gallery-heading .highlight {
    color: var(--accent-lime-dark);
}

.gallery-description {
    font-family: var(--font-body);
    font-size: 15px;
    color: #6b6b6b;
    max-width: 520px;
    margin: 0 auto 32px;
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.gallery-tab {
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    color: #5b5b5b;
    background: #F4F7F2;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 30px;
    padding: 9px 18px;
    cursor: pointer;
}

.gallery-tab.is-active {
    background: #141414;
    color: var(--accent-lime);
    border-color: #141414;
}

/* .gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    text-align: left;
}

.gallery-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 4;
    background: #F4F7F2;
} */
.gallery-grid {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    text-align: left;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.gallery-grid::-webkit-scrollbar {
    height: 6px;
}

.gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.gallery-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 4;
    background: #F4F7F2;
}

@media (max-width: 640px) {
    .gallery-card {
        flex-basis: 180px;
    }
}



.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.gallery-card:hover img {
    transform: scale(1.04);
}

.gallery-card-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 12px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.is-open {
    display: flex;
}

.gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.gallery-lightbox-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 8px;
}

.gallery-lightbox-close {
    position: absolute;
    top: 24px;
    right: 30px;
    z-index: 2;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 32px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-heading {
        font-size: 28px;
    }
}

@media (max-width: 640px) {
    .gallery-section {
        padding: 60px 20px;
    }
}