
/* ========================================
   Historical Pictures
   ======================================== */

.historical-records-page {
    width: 100%;
    padding: 30px 20px 50px;
    box-sizing: border-box;
}

.historical-records-container {
    max-width: 1200px;
    margin: 0 auto;
}


/* ========================================
   Page Title
   ======================================== */

#historical-title {
    text-align: center;
    margin-bottom: 10px;
}

#historical-introduction {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}


/* ========================================
   Category Navigation
   ======================================== */

.historical-category-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.historical-category-button {
    padding: 9px 18px;
    border: 1px solid #999;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
}

.historical-category-button:hover {
    opacity: 0.85;
}

.historical-category-button.active {
    font-weight: bold;
}


/* ========================================
   Picture Grid
   ======================================== */

.historical-picture-list {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );
    gap: 24px;
}


/* ========================================
   Picture Card
   ======================================== */

.historical-picture-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}


/* ========================================
   Picture
   ======================================== */

.historical-picture-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}


/* ========================================
   Picture Information
   ======================================== */

.historical-picture-information {
    padding: 14px;
}

.historical-picture-category {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 6px;
}

.historical-picture-description {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.historical-picture-date {
    font-size: 13px;
}


/* ========================================
   Empty / Error Messages
   ======================================== */

.historical-empty-message,
.historical-error-message {
    text-align: center;
    padding: 30px 15px;
}


/* ========================================
   Mobile
   ======================================== */

@media (max-width: 600px) {

    .historical-records-page {
        padding: 20px 12px 40px;
    }

    .historical-category-navigation {
        gap: 7px;
    }

    .historical-category-button {
        padding: 8px 12px;
        font-size: 14px;
    }

    .historical-picture-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .historical-picture-image {
        height: 240px;
    }

}