/* Moments / 日常 — centered timeline, no blog sidebars */

.moments-page {
    width: 100%;
}

.moments-layout {
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
}

.moments-page-header {
    margin-bottom: 1.25rem;
}

.moments-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.moment-item {
    margin-bottom: 1.15rem;
}

.moment-item-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.65rem;
}

.moment-item-meta--above-gallery {
    margin-top: 0.15rem;
    margin-bottom: 0.55rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--site-border, rgba(15, 23, 42, 0.08));
}

.moment-content + .moment-item-meta--above-gallery {
    margin-top: 0.75rem;
}

.moment-item-date {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--site-text-muted, #64748b);
}

.moment-item-time {
    font-size: 0.8125rem;
    color: var(--site-text-faint, #94a3b8);
}

.moment-item-time::before {
    content: "·";
    margin-right: 0.45rem;
    opacity: 0.65;
}

.moment-item-card {
    border-radius: var(--site-radius-lg, 1.125rem);
    padding: 1.1rem 1.2rem 1.15rem;
}

.moment-content {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.75;
    color: var(--site-text, #0f172a);
    font-size: 0.95rem;
}

.moment-gallery {
    display: grid;
    gap: 0.5rem;
}

.moment-gallery--1 {
    grid-template-columns: minmax(0, 1fr);
    max-width: 100%;
}

.moment-gallery--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.moment-gallery--many {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.moment-gallery-link {
    display: block;
    border-radius: 0.65rem;
    overflow: hidden;
    background: var(--site-surface-muted, #f1f3f5);
    aspect-ratio: 1;
}

.moment-gallery--1 .moment-gallery-link {
    aspect-ratio: 16 / 10;
    max-height: 24rem;
}

.moment-gallery-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.moment-gallery-link:hover img {
    transform: scale(1.03);
}

.moments-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--site-text-muted, #64748b);
}

@media (min-width: 768px) {
    .moments-layout {
        max-width: 56rem;
    }

    .moment-item {
        margin-bottom: 1.5rem;
    }

    .moment-item-card {
        padding: 1.25rem 1.35rem 1.3rem;
    }

    .moment-item-date {
        font-size: 0.875rem;
    }

    .moment-gallery--many {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .moments-layout {
        max-width: 62rem;
    }

    .moment-gallery--1 .moment-gallery-link {
        max-height: 26rem;
    }
}
