/* historical-photos.css */

/* Define variables if not already in main.css, or override specific ones */
:root {
    --color-background-light: #FDFDFD; /* A very light background for content areas */
    --color-text-dark: #333333;
    --color-accent: #800020; /* Deep Burgundy, or your chosen accent */
    --color-light-border: #E0E0E0;
    --font-heading: 'Lora', serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    background-color: var(--color-background-light);
    color: var(--color-text-dark);
    font-family: var(--font-body);
    line-height: 1.6;
    margin: 0;
}

/* --- Header & Breadcrumbs --- */
.page-header {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--color-background-light);
    border-bottom: 1px solid var(--color-light-border);
}

.breadcrumbs {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 10px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5em; /* Adjust size for impact */
    color: var(--color-accent);
    margin-top: 0;
    margin-bottom: 0;
}

/* --- Main Content Area --- */
.main-content {
    max-width: 1000px; /* Max width for content, keeps it readable */
    margin: 30px auto; /* Centers the content */
    padding: 0 20px;
}

/* --- Introduction Section --- */
.intro-section {
    font-size: 1.1em;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* --- Photo Gallery Grid --- */
.photo-gallery-section {
    margin-bottom: 60px;
}

.gallery-grid {
    display: grid;
    /* Responsive columns: 2 columns on medium, 1 on small, 3+ on large */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px; /* Space between photos */
}

.historical-photo {
    background-color: white;
    border: 1px solid var(--color-light-border);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* Soft shadow for depth */
    overflow: hidden; /* Ensures border-radius applies to image */
    margin: 0; /* Remove default figure margin */
    padding: 10px; /* Inner padding like a mat */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Smooth hover effect */
}

.historical-photo:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* More pronounced shadow */
}

.historical-photo img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 4px; /* Slightly rounded corners for the image itself */
}

.photo-caption {
    padding: 15px 10px 10px;
    text-align: center;
    line-height: 1.4;
}

.photo-title {
    font-family: var(--font-heading);
    font-size: 1.1em;
    color: var(--color-accent); /* Use accent for title */
    margin: 0 0 5px;
}

.photo-description {
    font-size: 0.9em;
    color: #555;
    display: block; /* Ensures it's on its own line */
    margin-bottom: 5px;
}

.photo-credit {
    font-size: 0.8em;
    color: #777;
    display: block;
}

/* --- Related Content Links Section --- */
.related-content-links {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-top: 1px solid var(--color-light-border);
    margin-top: 40px;
    border-radius: 8px;
}

.related-content-links h2 {
    font-family: var(--font-heading);
    font-size: 2em;
    color: var(--color-text-dark);
    margin-bottom: 30px;
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px; /* Space between buttons */
}

/* Re-use elegant-button styles or define them here for consistency */
.elegant-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--color-accent);
    color: white;
    font-family: var(--font-heading);
    font-size: 1em;
    text-decoration: none;
    border: 1px solid var(--color-accent);
    border-radius: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    letter-spacing: 0.5px;
}

.elegant-button:hover {
    background-color: #660010; /* A darker burgundy */
    border-color: #660010;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .page-title {
        font-size: 2em;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Smaller columns on smaller screens */
        gap: 20px;
    }
    .main-content {
        padding: 0 15px;
    }
    .intro-section {
        margin-bottom: 30px;
    }
    .related-content-links h2 {
        font-size: 1.6em;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.8em;
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .elegant-button {
        width: 90%; /* Make buttons full width on very small screens */
        max-width: 300px;
    }
    .link-buttons {
        flex-direction: column;
    }
}