* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Merriweather', serif;
    /* Removed global color: #fff; as it conflicts with other sections */
}

.container {
    /* Adding a container definition for consistent centering */
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HERO */
/* HERO — MATCHES HOME */
.hero {
    height: 70vh;
    background: url("/media/headers/projects.jpg") center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    text-align: center;
    color: white;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 2.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


/* PROJECT BLOCK AREA */
.project-block {
    padding: 80px 0;
    background: #fff;
    color: #4b2e12;
    font-family: 'Merriweather', serif;
}

.project-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* TITLE + HR ABOVE EVERYTHING */
.project-title {
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 10px;
}

.project-divider {
    height: 2px;
    background: #bfa98a;
    border: none;
    width: 100%;
    margin-bottom: 40px;
}

/* FLEX CONTENT */
.project-flex {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* REVERSE */
.project-flex.reverse {
    flex-direction: row-reverse;
}

/* LEFT SIDE — IMAGE */
/* LEFT SIDE — IMAGE */
.project-image-side {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    align-items: center; /* This centers the image container */
}

.project-image-side img {
    width: 100%;
    max-width: 500px;
    height: 350px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
}

.project-caption {
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 10px;
    color: #704f28;
    text-align: left;
    width: 100%; /* Make caption take full width of container */
    max-width: 500px; /* Match the image max-width */
    margin-left: 0;
    padding-left: 0;
}
/* For reversed sections, ensure caption stays left-aligned */
.project-flex.reverse .project-caption {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

/* RIGHT SIDE — TEXT */
.project-text-side {
    flex: 1 1 45%;
}

.project-subtitle {
    font-size: 1.5rem;
    font-family: 'Inter', sans-serif; /* Using Inter for a cleaner look */
    font-weight: 400; /* Regular weight */
    font-style: italic;
    text-align: center;
    margin-bottom: 20px; /* Slightly more space below */
    color: #4b2e12;
    line-height: 1.4;
}

.project-text-side p {
    font-size: 1rem;
    line-height: 1.7;
    color: #5a3a1d;
    max-width: 550px;
}

/* Alternate background colors: white and light brown */
.project-block:nth-of-type(odd) {
    background-color: #ffffff; /* white */
    color: #4b2e12; /* brown text */
}

.project-block:nth-of-type(even) {
    background-color: #f3e5c6; /* light brown */
    color: #4b2e12; /* brown text */
}

/* Ensure project text side inherits color */
.project-text-side p,
.project-caption,
.project-subtitle,
.project-title {
    color: inherit;
    
}
.project-text-side p{
    margin-bottom: 1em;
}

/* For reversed sections - same alignment */
.project-flex.reverse .project-image-side {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.project-flex.reverse .project-caption {
    width: 100%;
    max-width: 500px;
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .project-flex,
    .project-flex.reverse {
        flex-direction: column;
        text-align: center;
    }

    .project-text-side p {
        margin: 0 auto;
    }
}

/* SORT TOGGLE */
.sort-container {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
}

.sort-container select {
    padding: 6px 12px;
    border: 1px solid #bfa98a;
    border-radius: 5px;
    background: white;
    color: #4b2e12;
    cursor: pointer;
}








