:root {
    --sage-green: #586659;
    --gold-tan: #c0a56e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Barlow Condensed', sans-serif;
}

body {
    background-color: #f8f8f5;
}

/* Header Section with Image and Text Overlay */
.header {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}


.header-overlay h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-overlay p {
    color: white;
    font-size: 1.2rem;
    max-width: 800px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Gallery Section */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
}

.gallery-title {
    color: var(--sage-green);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(88, 102, 89, 0.8));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .header {
        height: 40vh;
    }

    .header-overlay h1 {
        font-size: 2.2rem;
    }

    .header-overlay p {
        font-size: 1rem;
        padding: 0 10px;
    }

    .gallery-container {
        padding: 30px 15px;
    }

    .gallery-title {
        font-size: 1.8rem;
    }

    .gallery {
        grid-template-columns: 1fr; /* One column on small screens */
    }

    .gallery-item {
        height: 250px;
    }

    .gallery-item-overlay h3 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        height: 35vh;
    }

    .header-overlay h1 {
        font-size: 1.8rem;
    }

    .header-overlay p {
        font-size: 0.95rem;
    }

    .gallery-item {
        height: 200px;
    }
}
