/* ─── Reset dark Photographer background ────────────────── */
body,
body.layout-default {
    background: #ffffff;
    color: #333;
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 0 0;
}

.header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-branding {
    flex-shrink: 0;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.site-logo-img {
    max-width: 220px;
    height: auto;
    display: block;
}

.site-description {
    font-size: 0.78rem;
    color: #999;
    margin: 4px 0 0;
    font-style: normal;
}

/* ─── Navigation ─────────────────────────────────────────── */
#site-navigation {
    display: flex;
    align-items: flex-start;
    padding-top: 6px;
}

#site-navigation ul.nav,
#site-navigation ul.sf-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

#site-navigation ul.nav li,
#site-navigation ul.sf-menu li {
    position: relative;
}

#site-navigation ul.nav a,
#site-navigation ul.sf-menu a {
    font-size: 1.3rem;
    color: #c0392b;
    text-decoration: none;
    text-transform: none;
    font-weight: 400;
    padding: 0;
    white-space: nowrap;
}

#site-navigation ul.nav a:hover,
#site-navigation ul.sf-menu a:hover {
    text-decoration: underline;
}

/* ─── Category bar ───────────────────────────────────────── */
.category-bar {
    border-top: 1px solid #f0f0f0;
    padding: 8px 20px;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 32px;
}

.category-list li a {
    font-size: 1.3rem;
    color: #888;
    text-decoration: none;
    letter-spacing: .03em;
    padding: 2px 0;
    display: block;
}

.category-list li a:hover,
.category-list li.active a {
    color: #c0392b;
}

/* ─── Layout ─────────────────────────────────────────────── */
.paintings-container {
    padding: 30px 15px;
}

.category-heading {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: .05em;
    margin-bottom: 24px;
    text-transform: uppercase;
    color: #444;
}

/* ─── Grid ───────────────────────────────────────────────── */
.paintings-grid {
    display: grid;
    grid-template-columns: repeat(3, 320px);
    justify-content: center;
    gap: 30px;
}

/* Tablet: 2 fluid columns */
@media (max-width: 1059px) {
    .paintings-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* Mobile: single column */
@media (max-width: 560px) {
    .paintings-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ─── Thumbnail ─────────────────────────────────────────── */
.painting-thumb {
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    aspect-ratio: 1;
}

.painting-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.painting-thumb:hover img {
    transform: scale(1.04);
}

.painting-thumb .painting-title {
    display: block;
    font-size: .78rem;
    color: #666;
    padding: 5px 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Painting detail page ───────────────────────────────── */
.painting-page {
    padding: 30px 15px;
    max-width: 900px;
}

.painting-image-wrap img {
    max-width: 100%;
    height: auto;
    display: block;
}

.painting-page .painting-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 16px 0 8px;
    color: #333;
}

.back-link {
    font-size: .85rem;
    color: #888;
    text-decoration: none;
}

.back-link:hover {
    color: #333;
}

/* ─── Footer ─────────────────────────────────────────────── */
#colophon {
    background: none;
}

/* ─── About page ─────────────────────────────────────────── */
.page-about .page-content {
    max-width: 680px;
}
