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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background-color: #d7ccc8;
    font-family: 'Caladea', serif;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 150px;
    left: 0;
    width: 100%;
    background-color: #d7ccc8;
    padding: 20px;
    z-index: 1000;
}

.mobile-nav a {
    font-family: 'BritannicBold';
    font-size: 1.5em;
    margin: 10px 0;
    text-decoration: none;
    color: black;
}

.mobile-nav.active {
    display: flex;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    font-size: 6em;
    font-weight: bold;
    color: #3e2723;
    font-family: 'BritannicBold';
    margin-bottom: 20px;
}

.contact-divider {
    width: 200px;
    height: 2px;
    background: linear-gradient(to right, transparent, #5d4037, transparent);
    margin: 0 auto;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.category-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 50px;
}

.filter-btn {
    background: rgba(161, 136, 127, 0.15);
    border: 2px solid #a1887f;
    color: #5d4037;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'BritannicBold';
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background: rgba(161, 136, 127, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #a1887f;
    color: #fff8f6;
    box-shadow: 0 4px 15px rgba(161, 136, 127, 0.4);
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(62, 39, 35, 0.15);
    transition: all 0.4s ease;
    max-width: 400px;
    flex: 0 1 auto;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(62, 39, 35, 0.25);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(62, 39, 35, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

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

.gallery-item {
    animation: fadeInUp 0.6s ease forwards;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-img {
    max-width: 85%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.lightbox-nav {
    display: flex;
    gap: 15px;
}

.lightbox-nav button {
    background: #a1887f;
    border: none;
    padding: 12px 20px;
    font-size: 1.3em;
    cursor: pointer;
    border-radius: 8px;
    color: white;
    transition: all 0.3s ease;
}

.lightbox-nav button:hover {
    background: #8d6e63;
    transform: translateY(-2px);
}

.close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2.5em;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(161, 136, 127, 0.3);
}

.close:hover {
    background: rgba(161, 136, 127, 0.6);
    transform: scale(1.1);
}

#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #a1887f;
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.3em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(161, 136, 127, 0.4);
    display: none;
    transition: all 0.3s ease;
    z-index: 999;
}

#scrollToTop:hover {
    background: #8d6e63;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .gallery {
        gap: 15px;
    }
    
    .gallery-item {
        max-width: 350px;
    }

    .contact-title {
        font-size: 2.5em;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .gallery-item {
        max-width: 100%;
    }

    .contact-title {
        font-size: 2em;
    }

    .lightbox-img {
        max-width: 95%;
        max-height: 60vh;
    }
}