.page-article { background: #fff; }

.article {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem;
}

.article-custom {
    max-width: 1600px;
    padding-top: 2rem;
}

/* Breadcrumb styling is shared site-wide — components/breadcrumbs.css. */

.article-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 1.5rem 0 0.75rem;
}

.article-date {
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 3rem;
    align-items: start;
}

/* Left column: gallery / cover + "read next", sticky alongside the body. */
.article-aside {
    position: sticky;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-cover img {
    display: block;
    width: 100%;
    height: auto;
}

/* ─── Read next ──────────────────────────────────────────────────────── */

.article-readnext-title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
}

.article-readnext-item {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    padding: 0.7rem 0;
    border-top: 1px solid #eee;
    color: inherit;
    text-decoration: none;
}

.article-readnext-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.article-readnext-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 4px;
    background: #f0f0f0 center / cover no-repeat;
}

.article-readnext-name {
    display: block;
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 600;
}

.article-readnext-item:hover .article-readnext-name {
    text-decoration: underline;
}

.article-readnext-date {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #999;
}

.article-gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.article-gallery-thumb img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.15s;
}

.article-gallery-thumb:hover img { opacity: 0.92; }

.article-gallery-thumb.is-gallery::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.6) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"/></svg>') center / 18px no-repeat;
    border-radius: 4px;
    z-index: 2;
    pointer-events: none;
}

.article-gallery-count {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: left;
}

.article-gallery-caption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.article-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #222;
    max-width: 800px;
}

.article-body p { margin: 0 0 1em; }
.article-body p:last-child { margin-bottom: 0; }
.article-body a { color: #000; text-decoration: underline; }
.article-body a:hover { text-decoration: none; }
.article-body img { max-width: 100%; height: auto; }
.article-body h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}
.article-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 3px solid #000;
    background: #f8f8f8;
    font-style: italic;
}

@media (max-width: 1024px) {
    .article-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .article-aside { position: static; max-width: 480px; }
}

@media (max-width: 768px) {
    .article { padding: 0.5rem 1rem 3rem; }
    .article-title { font-size: 1.75rem; }
}