/* Gallery Grid */
.gallery-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    aspect-ratio: 1;
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(139, 107, 79, 0.2);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
    padding: 2rem 0;
}

.modal-content {
    background-color: transparent;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
}

.close-button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #f5e6d3;
    z-index: 1001;
}

.modal-image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem 0;
    }
}

/* 添加分類選單樣式 */
.category-nav {
    max-width: 1200px;
    margin: 2rem auto 1rem;
    padding: 0 1rem;
    text-align: center;
}

.category-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    margin: 0.5rem;
    border: none;
    border-radius: 25px;
    background-color: #f1e1b0;
    color: #8b6b4f;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-button:hover,
.category-button.active {
    background-color: #8b6b4f;
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .category-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .category-button {
        width: 80%;
        margin: 0.3rem 0;
    }
}

/* 添加過渡效果 */
.gallery-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}
 