* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

header {
    background: #222;
    color: #fff;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

header p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-tag {
    padding: 0.3rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 2rem;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.filter-tag:hover {
    border-color: #666;
}

.filter-tag.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sort-controls select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.calendar-link {
    padding: 0.5rem 1rem;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
}

.calendar-link:hover {
    background: #0055aa;
}

.exhibitions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.exhibition-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.exhibition-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.exhibition-card a {
    text-decoration: none;
    color: inherit;
}

.exhibition-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #eee;
}

.exhibition-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
}

.exhibition-content {
    padding: 1rem;
}

.exhibition-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.exhibition-venue {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.exhibition-dates {
    font-size: 0.85rem;
    color: #888;
}

.exhibition-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.8rem;
}

.exhibition-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: #f0f0f0;
    border-radius: 3px;
    color: #666;
}

.exhibition-source {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 0.5rem;
}

.last-updated {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 2rem;
}

footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 0.85rem;
}

footer a {
    color: #666;
}

@media (max-width: 600px) {
    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .sort-controls {
        justify-content: space-between;
    }

    .exhibitions {
        grid-template-columns: 1fr;
    }
}
