.gallery-filters {
    background: linear-gradient(180deg, #faf6f1 0%, #f4ebe1 100%);
    padding: 1.25rem;
    margin-bottom: 2rem;
    border: 1px solid #dfccbc;
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(53, 34, 8, 0.06);
}

.galleryPageLayout {
    display: block;
}

.galleryResultsPanel {
    min-width: 0;
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7f4d24;
    margin-bottom: 0.35rem;
}

.gallery-filter {
    padding: 0.65rem 0.75rem;
    border: 1px solid #ccb6a4;
    border-radius: 4px;
    font-size: 1rem;
    background: #fffdfb;
    color: #1f1b17;
}

#clearFilters {
    padding: 0.7rem 1.1rem;
    background: #352208;
    color: #e1bb80;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#clearFilters:hover {
    background: #884201;
}

#resultsCount {
    margin-top: 1rem;
    font-weight: 700;
    color: #6a625a;
}

.galleryItem.hidden {
    display: none;
}

.galleryItem.unloaded {
    display: none;
}

#loadMoreIndicator {
    text-align: center;
    padding: 2rem;
}

#loadMoreButton {
    padding: 0.75rem 2rem;
    background: #a35307;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#loadMoreButton:hover {
    background: #a35307;
}

#loadingSpinner {
    color: #666;
    font-style: italic;
}

@media (min-width: 1024px) {
    .galleryPageLayout {
        display: grid;
        grid-template-columns: minmax(10.5rem, 12.5rem) minmax(0, 1fr);
        gap: 1rem;
        align-items: start;
    }

    .galleryPageLayout .gallery-filters {
        margin-bottom: 0;
        position: sticky;
        top: 1rem;
        padding: 0.25rem 0.35rem 0 0;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .galleryPageLayout .gallery-filters h2 {
        margin: 0 0 1rem;
        font-size: 0.8rem;
        font-family: var(--fontSans);
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: #7f4d24;
    }

    .galleryPageLayout .filters-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }

    .galleryPageLayout .filter-group {
        min-width: 0;
        width: 100%;
    }

    .galleryPageLayout .filter-group label {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
        color: #8a6b54;
    }

    .galleryPageLayout .gallery-filter,
    .galleryPageLayout #clearFilters {
        width: 100%;
    }

    .galleryPageLayout .gallery-filter {
        padding: 0.55rem 0.7rem;
        font-size: 0.95rem;
        background: #fffdfb;
    }

    .galleryPageLayout #clearFilters {
        padding: 0.6rem 0.75rem;
        background: transparent;
        border: 1px solid #ccb6a4;
        color: var(--textColor);
        font-size: 0.82rem;
        letter-spacing: 0.08em;
    }

    .galleryPageLayout #clearFilters:hover {
        background: #efe6dc;
        border-color: #b99b84;
        color: var(--textColor);
    }

    .galleryPageLayout #resultsCount {
        margin-top: 1rem;
        padding-top: 0.7rem;
        border-top: 1px solid #e6d8cb;
        font-size: 0.9rem;
        font-weight: 600;
    }
}

@media (max-width: 768px) {
    .filters-row {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }
}