:root {
    --bg: #f7f5f2;
    --text: #1a1a1a;
    --back: #1a1a1a;
    --muted: #666;
    --accent: #c0392b;
    --card-bg: #fff;
    --border: #e0ddd8;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: var(--text);
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    background: #ffffff;
    color: #fff;
    padding: 1.5rem 0;
}

.header-inner {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.tagline {
    margin: 0;
    color: #bbb;
    font-size: 0.95rem;
}

main.container {
    padding-top: 2rem;
    padding-bottom: 3rem;
    min-height: 60vh;
}

h1 { font-size: 1.6rem; margin-bottom: 1rem; }
h2 { font-size: 1.3rem; }

.intro {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    
}

.intro h1 {
    margin-bottom: 0.5rem;
}

.intro p {
    margin: 0.25rem 0;
    color: var(--muted);
}

.intro-address {
    font-style: italic;
}

.layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.sidebar {
    flex: 0 0 150px;
}

.sidebar h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar a {
    display: block;
    padding: 0.3rem 0.6rem;
    
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
}

.sidebar a:hover {
    background: var(--border);
}

.sidebar a.active {
    background: var(--text);
    color: #fff;
}

.content {
    flex: 1;
    min-width: 0;
}

.year-menu-toggle {
    display: none;
}

@media (max-width: 700px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        flex: none;
        width: 100%;
    }

    .sidebar h2 {
        display: none;
    }

    .year-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem 0.75rem;
        border: 1px solid var(--border);
        
        background: var(--card-bg);
        color: var(--text);
        font-weight: 600;
        font-size: 0.95rem;
        cursor: pointer;
        margin-bottom: 0.5rem;
    }

    .sidebar ul {
        display: none;
        flex-wrap: wrap;
        gap: 0.25rem;
        margin-bottom: 1rem;
    }

    .sidebar ul.open {
        display: flex;
    }
}

.filters {
    display: none;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    
}

.filters select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    
    font-size: 0.95rem;
}

.filters button, .btn {
    padding: 0.45rem 1rem;
    border: 1px solid var(--text);
    background: var(--text);
    color: #fff;
    
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
}

.filters .btn-clear {
    background: transparent;
    color: var(--text);
}

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

.card {
    background: var(--card-bg);
   
    
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: #ddd;
}

.card-body {
    padding: 0.75rem 1rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 0.25rem;
}

.card-title {
    font-weight: 600;
    margin: 0 0 0.15rem;
    font-style: italic;
}

.card-artist {
    font-weight: 600;
    margin: 0;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 3rem 0;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.detail-gallery img {
    width: 100%;

    display: block;
}

.carousel {
    position: relative;
    margin-bottom: 1.5rem;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(26, 26, 26, 0.55);
    color: #fff;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(26, 26, 26, 0.8);
}

.carousel-prev { left: 0.75rem; }
.carousel-next { right: 0.75rem; }

.carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.carousel-dot {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
}

.carousel-dot.active {
    background: #fff;
}

.lightbox-trigger {
    cursor: zoom-in;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: 92vw;
    max-height: 92vh;
    object-fit: contain;
    display: block;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

body.lightbox-locked {
    overflow: hidden;
}

.detail-meta {
    color: var(--muted);
    margin-bottom: 1rem;
}

.detail-description {
    white-space: pre-line;
    margin-bottom: 1.5rem;
}

.artist-links a {
    margin-right: 1rem;
    color: var(--accent);
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--muted);
    text-decoration: none;
}

.site-footer {
    background: var(--text);
    color: #999;
    padding: 1.5rem 0;
    font-size: 0.85rem;
}

/* Admin */
.admin-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

.admin-table th, .admin-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.form-field {
    margin-bottom: 1rem;
}

.form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.form-field input[type="text"],
.form-field input[type="url"],
.form-field input[type="password"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    border: 1px solid var(--border);
   
    font-size: 0.95rem;
    font-family: inherit;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.login-form {
    max-width: 360px;
    margin: 3rem auto;
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid var(--border);
    
}

.alert {
    padding: 0.75rem 1rem;
    
    margin-bottom: 1rem;
}

.alert-error {
    background: #fdecea;
    color: #a12a1a;
    border: 1px solid #f5c6c0;
}

.alert-success {
    background: #eaf7ea;
    color: #2a6b2a;
    border: 1px solid #c6e6c6;
}

.thumb-list {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.thumb-list figure {
    margin: 0;
    text-align: center;
}

.thumb-list img {
    width: 100px;
    height: 100px;
    object-fit: cover;
   
    display: block;
}

.thumb-list button {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    background: #fdecea;
    color: #a12a1a;
    border: 1px solid #f5c6c0;

    cursor: pointer;
}

.social-link-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.social-link-row input {
    flex: 1;
}

.btn-remove-link {
    flex: 0 0 auto;
    background: #fdecea;
    color: #a12a1a;
    border: 1px solid #f5c6c0;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0 0.75rem;
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
