/* ========================================
   个人照片横拉框样式 - Gallery Styles
   ======================================== */

.gallery {
    background: var(--bg-light);
    padding: 4rem 0;
}

.gallery-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding: 1rem 0.5rem 1.5rem 0.5rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f5f9;
}

.gallery-scroll::-webkit-scrollbar {
    height: 8px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: var(--bg-dark);
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

.gallery-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.gallery-item img {
    width: 280px;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
}

.gallery-item img:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
}

/* 响应式 */
@media (max-width: 600px) {
    .gallery-item img {
        width: 240px;
        height: 320px;
    }
}
