/* ========== Gallery Section (home preview) ========== */
.gallery-section {
    background: var(--color-bg, #fff);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    text-decoration: none;
}

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

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.65));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.gallery-item:hover .gallery-item__label {
    opacity: 1;
}

.gallery-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ========== Full gallery page ========== */
.gallery-page__hero {
    background: linear-gradient(135deg, var(--color-green-dark, #1a3c2b) 0%, var(--color-green, #2d6a4f) 100%);
    color: #fff;
    padding: 5rem 0 3rem;
    text-align: center;
}

.gallery-page__hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 0 0 0.5rem;
}

.gallery-page__hero p {
    opacity: 0.85;
    font-size: 1.1rem;
    margin: 0;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 2rem 0 1.5rem;
}

.gallery-filter-btn {
    padding: 0.45rem 1.1rem;
    border: 2px solid var(--color-green, #2d6a4f);
    border-radius: 50px;
    background: transparent;
    color: var(--color-green, #2d6a4f);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
    background: var(--color-green, #2d6a4f);
    color: #fff;
}

.gallery-grid--full {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 0;
    margin-bottom: 4rem;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .gallery-grid,
    .gallery-grid--full {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .gallery-filters {
        gap: 0.4rem;
    }

    .gallery-filter-btn {
        font-size: 0.78rem;
        padding: 0.35rem 0.85rem;
    }
}
