/* Стили для слайдшоу проектов */
.project-slideshow {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Навигационные стрелки */
.slideshow-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 5px;
    transition: background 0.3s ease;
    z-index: 10;
}

.slideshow-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slideshow-prev {
    left: 10px;
}

.slideshow-next {
    right: 10px;
}

/* Индикаторы слайдов */
.slideshow-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: rgba(255, 255, 255, 1);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* Заглушка для проектов без медиа */
.no-media-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 18px;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .project-slideshow {
        height: 250px;
    }
    
    .slideshow-nav {
        padding: 8px 12px;
        font-size: 16px;
    }
    
    .slideshow-prev {
        left: 5px;
    }
    
    .slideshow-next {
        right: 5px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }
}

