.gallery-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 0;
}

.slider-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    border-radius: 16px;
}

.gallery-track {
    display: flex;
    will-change: transform;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-slide {
    flex: 0 0 25%;
    padding: 0 12px;
    box-sizing: border-box;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-card {
    position: relative;
    background: var(--card);
    border-radius: 16px;
    overflow: hidden;
    transform: scale(0.95);
    opacity: 0.6;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(99, 102, 241, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.gallery-card:hover {
    transform: translateY(-8px) scale(0.98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.gallery-slide.active .gallery-card {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 24px 60px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

.gallery-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.01);
}

.gallery-card:hover img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.gallery-card:hover .image-overlay {
    opacity: 1;
}

.gallery-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.gallery-card:hover .gallery-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-info {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.gallery-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
    transition: color 0.3s ease;
}

.gallery-card:hover .gallery-info h4 {
    color: var(--primary);
}

.gallery-info span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border-radius: 3px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.slider-dot.active {
    width: 30px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 5px;
    transform: scale(1.2);
}

/* Lightbox */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.lightbox-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-lightbox.active .lightbox-container {
    transform: translate(-50%, -50%) scale(1);
}


.gallery-track {
    touch-action: pan-y;
    cursor: grab;
}

.gallery-track.grabbing {
    cursor: grabbing;
}

