.gallery-hero {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-hero p {
    color: #666;
}

.gallery-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem;
}

#gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    overflow: hidden;
    transition: transform 0.2s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
}

.gallery-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gallery-card-content {
    padding: 1rem;
}

.gallery-card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-card-medium {
    color: #666;
    margin-top: 0.25rem;
}

.gallery-card-image-wrapper {
    position: relative;
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
}

.status-available {
    background: #2e7d32;
}

.status-sold {
    background: #b71c1c;
}

.gallery-filters,
.genre-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.35rem;
}

.gallery-filter,
.genre-filter {
    padding: .72rem 1.35rem;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    background: #fcfbf8;
    color: #444;
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .015em;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.gallery-filter:hover,
.genre-filter:hover {
    background: white;
    border-color: #d8d2c8;
    box-shadow: 0 3px 12px rgba(0,0,0,.06);
    transform: translateY(-1px);
}

.gallery-filter.active,
.genre-filter.active {
    background: #2d2b29;
    border-color: #2d2b29;
    color: white;
    box-shadow: 0 5px 14px rgba(0,0,0,.12);
}