/* ===== 照片墙 ===== */
#gallery {
    padding: 100px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-item--tall {
    grid-row: span 2;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-placeholder {
    background: rgba(231, 76, 111, 0.05);
    border-color: rgba(231, 76, 111, 0.2);
}

.gallery-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-icon {
    transform: scale(1.2);
}

.gallery-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.gallery-item:hover .gallery-text {
    color: var(--text-secondary);
}

/* 灯箱 */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.gallery-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.gallery-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent-pink);
}
