:root {
    --bg-color: #fdfbf7;
    --text-color: #2d2d2d;
    --accent-color: #a67c52;
    --nav-bg: rgba(253, 251, 247, 0.9);
}

body, html {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    z-index: 1000;
    background: var(--nav-bg);
    box-sizing: border-box;
}
h1 {
    font-size: 2.0rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

.logo {
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--accent-color);
}

/* Index Page - Full Width Images */
.image-item {
    position: relative;
    width: 100%;
}

.image-item img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    text-align: left;
    color: white;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    pointer-events: none; /* Allows clicks to pass through to the image if needed */
}

.overlay-image-name {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6; /* Adds a little breathing room between the title and the collection name */
}

/* Main Content Layout */
.content-wrapper {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 20px;
}

/* Collection Grid */
.collection-group { margin-bottom: 4rem; }

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.art-card {
    position: relative;
    overflow: hidden;
    background: #eee;
    cursor: pointer;
}

.art-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: opacity 0.3s;
    display: block;
}

.art-card .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    pointer-events: none;
    text-align: center;
    padding: 20px;
}

.art-card:hover .card-overlay {
    opacity: 1;
}

.art-card:hover img {
    opacity: 0.7;
}

/* About Page */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-img {
    width: 100%;
    max-width: 500px;
    border-radius: 2px;
}

.bio-section p {
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Art Detail Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(253, 251, 247, 0.98);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    display: flex;
    flex-direction: row;
    max-width: 1000px;
    width: 100%;
    min-height: 60vh;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-image-container {
    flex: 1.5;
    background: #f0f0f0;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    cursor: pointer;
}

.modal-details {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-details h2 {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-details h3 {
    margin: 0 0 1.5rem 0;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.modal-details p {
    line-height: 1.6;
    color: #666;
    font-size: 0.95rem;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-color);
}

@media (max-width: 768px) {
    nav { 
        flex-direction: column; 
        gap: 0.8rem; 
        padding: 1rem;
    }
    nav ul { 
        flex-wrap: wrap; 
        justify-content: center; 
        gap: 1rem; 
    }
    nav a {
        padding: 0.5rem;
        display: inline-block;
    }
    .content-wrapper { 
        margin-top: 130px; 
    }
    .image-overlay {
        bottom: 1rem;
        left: 1rem;
    }
    .overlay-image-name {
        font-size: 1rem;
    }
    .thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    .art-card img {
        height: 200px;
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .modal-content { 
        flex-direction: column; 
        height: 90vh; 
        overflow-y: auto; 
    }
    .modal-image-container {
        min-height: 40vh;
    }
    .modal-details { 
        padding: 1.5rem; 
    }
    .close-modal {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: white;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 10;
    }
}