.gallery-content {
    padding: 120px 0 60px;
    background: #f8f9fa;
}
.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
.gallery-header {
    text-align: center;
    margin-bottom: 60px;
}
.gallery-header h1 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c5f2d;
}
.gallery-header p {
    color: #666;
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 25px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}
.filter-btn:hover,
.filter-btn.active {
    background: #2c5f2d;
    border-color: #2c5f2d;
    color: #fff;
}
.masonry-grid {
    columns: 4;
    column-gap: 30px;
}
.masonry-item {
    break-inside: avoid;
    margin-bottom: 30px;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}
.masonry-item:hover img {
    transform: scale(1.05);
}
.image-info {
    padding: 20px;
    background: #fff;
}
.image-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.image-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.6;
}
.image-location {
    color: #2c5f2d !important;
    font-weight: 500;
}
.image-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}
.tag {
    padding: 3px 10px;
    background: #f0f7f0;
    color: #2c5f2d;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.back-to-home {
    text-align: center;
    margin-top: 60px;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.empty-state h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}
.empty-state p {
    color: #666;
    max-width: 500px;
    margin: 0 auto 30px;
}
.photo-count {
    background: #2c5f2d;
    color: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    font-weight: 500;
}
.photo-count span {
    font-weight: 700;
    font-size: 24px;
}

/* Lightbox 修复样式 */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}
.lightbox-modal.active {
    display: flex;
}
.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.2);
}
.lightbox-close {
    top: 20px;
    right: 20px;
}
.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}
.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 1200px) {
    .masonry-grid { columns: 3; }
}
@media (max-width: 992px) {
    .masonry-grid { columns: 2; }
}
@media (max-width: 768px) {
    .masonry-grid { columns: 1; }
    .gallery-header h1 { font-size: 28px; }
}
@media (max-width: 576px) {
    .gallery-content { padding: 100px 0 40px; }
}