/* Base Resets and Variables */
:root {
    --primary-color: #f4f1ea;
    --text-color: #333333;
    --accent-color: #8b5a2b; /* Antique Bronze */
    --font-header: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--primary-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    padding: 20px;
}

/* Header Styles */
.gallery-header {
    text-align: center;
    padding: 40px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header h1 {
    font-family: var(--font-header);
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.gallery-header p {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 30px;
}

/* Filter Navigation */
.gallery-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 8px 20px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* Gallery Grid System */
.gallery-container {
    display: grid;
    /* Automatically scales columns based on screen size */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* Individual Artwork Card */
.gallery-item {
    position: relative;
    background-color: #ffffff;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 2px;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Image */
.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover; /* Prevents image distortion */
    object-position: center;
    display: block;
    cursor: pointer;
}

/* Artwork Information */
.artwork-info {
    padding-top: 15px;
    text-align: center;
}

.artwork-info h3 {
    font-family: var(--font-header);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.artwork-info .artist {
    font-size: 0.9rem;
    font-weight: 500;
    color: #777777;
}

.artwork-info .price {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 8px;
    color: var(--text-color);
}

/* Footer Styles */
.site-footer {
    text-align: center;
    padding: 30px;
    font-size: 0.85rem;
    color: #888888;
    border-top: 1px solid #e0ddcf;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .gallery-header h1 {
        font-size: 2.2rem;
    }
    .gallery-item img {
        height: 250px;
    }
}
