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

body {
    font-family: 'Lato', sans-serif;
    background-color: #faf8f5;
    color: #5a4a3a;
    line-height: 1.6;
}

header {
    background-color: #fff;
    padding: 1.5rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    align-items: center;
}

.logo-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #8b6f47;
}

nav a {
    text-decoration: none;
    color: #5a4a3a;
    font-weight: 400;
    transition: color 0.3s;
    letter-spacing: 1px;
}

nav a:hover {
    color: #c9a86a;
}

.hero {
    text-align: center;
    padding: 4rem 5% 3rem;
    max-width: 900px;
    margin: 0 auto;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #8b6f47;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: #c9a86a;
    font-style: italic;
    margin-bottom: 2rem;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #6a5a4a;
    max-width: 700px;
    margin: 0 auto;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 5%;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: 1px solid #d4c4b0;
    padding: 0.6rem 1.5rem;
    font-family: 'Lato', sans-serif;
    color: #8b6f47;
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 25px;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: #c9a86a;
    color: #fff;
    border-color: #c9a86a;
}

.gallery {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5% 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.gallery-overlay p {
    color: #e8dfd1;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    padding: 2rem;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    max-width: 1200px;
    max-height: 90vh;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

footer {
    background-color: #8b6f47;
    color: #faf8f5;
    text-align: center;
    padding: 2rem 5%;
    margin-top: 4rem;
}

footer p {
    font-weight: 300;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    nav ul {
        gap: 1rem;
    }

    .filter-bar {
        gap: 0.8rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}
