/* --- Global Styles & Resets --- */
:root {
    /* Define color variables for easy changes */
    --color-background: #FAF9F6; /* Off-white / Cream */
    --color-text-dark: #333333; /* Soft black */
    --color-accent: #800020; /* Deep Burgundy */
    --color-light-grey: #D3D3D3; /* Light grey for subtle borders */
    --color-overlay-bg: rgba(0, 0, 0, 0.7); /* For image title overlay */

    /* Define font variables */
    --font-heading: 'Lora', serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text-dark);
    background-color: var(--color-background);
    line-height: 1.6;
}

/* Basic reset for images */
img {
    max-width: 100%; /* Ensures images don't overflow their containers */
    height: auto; /* Maintains aspect ratio */
    display: block; /* Removes extra space below images */
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Hero Section (Top Banner) --- */
.hero-section {
    position: relative; /* For text positioning */
    width: 100%;
    height: 60vh; /* 60% of viewport height, adjust as needed */
    background-image: url('images/artwork/hero-image-placeholder.jpg'); /* REPLACE with a path to one of your best artworks */
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white; /* Text color over image */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* Subtle shadow */
}

.hero-section::before { /* Overlay for readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Darker overlay for text legibility */
}

.hero-content {
    position: relative; /* Brings content above the overlay */
    z-index: 1;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2); /* Slight background for text block */
    border-radius: 5px;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5em; /* Adjust size for impact */
    margin-bottom: 0.1em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-family: var(--font-body);
    font-size: 1.2em;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* --- Art Categories & Titles --- */
.art-category {
    padding: 60px 20px; /* Vertical padding for separation */
    max-width: 1200px; /* Max width for content, keeps it readable */
    margin: 0 auto; /* Centers the content */
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 50px;
    color: var(--color-accent);
    border-bottom: 2px solid var(--color-light-grey); /* Subtle separator */
    padding-bottom: 15px;
    display: inline-block; /* Makes border only as wide as text */
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
}

/* --- Gallery Grid (The Masonry Layout) --- */
.gallery-grid {
    display: grid;
    /* Use CSS Grid for a flexible column layout */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); /* Responsive columns */
    gap: 30px; /* Space between artworks */
    /* Add specific styles for masonry if needed with JS library or custom */
}

.artwork {
    background-color: white;
    border: 1px solid var(--color-light-grey);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Soft shadow for depth */
    position: relative;
    overflow: hidden; /* For hidden overlay */
    margin: 0; /* Remove default figure margin */
}

.artwork img {
    width: 100%;
    height: auto; /* Ensure aspect ratio */
    display: block;
    border-radius: 4px; /* Slightly rounded corners for image */
}

.artwork-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-overlay-bg); /* Semi-transparent dark overlay */
    color: white;
    padding: 15px;
    transform: translateY(100%); /* Start hidden below the image */
    transition: transform 0.3s ease-out; /* Smooth transition */
    box-sizing: border-box; /* Include padding in width */
    text-align: center;
}

.artwork:hover .artwork-info {
    transform: translateY(0); /* Slide up on hover */
}

.artwork-title {
    font-family: var(--font-heading);
    font-size: 1.1em;
    margin: 0;
    padding-bottom: 5px; /* Space for description */
}

.artwork-description {
    font-family: var(--font-body);
    font-size: 0.9em;
    opacity: 0.8; /* Slightly less prominent */
}

/* --- About Section --- */
.about-section {
    background-color: #F8F8F8; /* Slightly different background to differentiate */
    padding: 80px 20px;
    text-align: center;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1em;
}

/* --- Footer --- */
footer {
    background-color: var(--color-text-dark); /* Dark background */
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9em;
}

/* --- Responsive Adjustments (Media Queries) --- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5em;
    }
    .hero-content p {
        font-size: 1em;
    }
    .category-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Smaller columns on smaller screens */
        gap: 20px;
    }
    .art-category {
        padding: 40px 15px;
    }
    .artwork-info {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 50vh;
    }
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 0.9em;
    }
    .category-title {
        font-size: 1.8em;
    }
    .gallery-grid {
        grid-template-columns: 1fr; /* Single column on very small screens */
    }
    .artwork {
        padding: 10px;
    }