/* Основные стили галереи */
.nk-gallery-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 30px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.nk-gallery-title {
    text-align: center;
    margin: 0 0 30px;
    color: #2c3e50;
    font-size: 32px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.nk-gallery-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #3498db;
}

.nk-gallery-container {
    position: relative;
    overflow: hidden;
    padding: 0 80px;
}

.nk-gallery-slider {
    display: flex;
    transition: transform 0.5s ease;
}

.nk-gallery-slide {
    flex: 0 0 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
}

.nk-image-container {
    height: 350px;
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.nk-image-container img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nk-gallery-slide:hover .nk-image-container img {
    transform: scale(1.03);
}

.nk-caption {
    padding: 20px;
    text-align: center;
    font-size: 16px;
    color: #333;
    background: #fff;
    border-top: 1px solid #eee;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Стили для кастомных стрелок */
.nk-gallery-prev, .nk-gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nk-gallery-prev:hover, .nk-gallery-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.nk-gallery-arrow {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.nk-gallery-prev {
    left: 0;
}

.nk-gallery-next {
    right: 0;
}

.nk-gallery-error {
    padding: 20px;
    background: #ffecec;
    border-left: 4px solid #dc3232;
    color: #dc3232;
    margin: 20px 0;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .nk-gallery-slide {
        flex: 0 0 50%;
    }
    
    .nk-gallery-container {
        padding: 0 70px;
    }
    
    .nk-gallery-prev, .nk-gallery-next {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .nk-gallery-wrapper {
        padding: 20px;
    }
    
    .nk-gallery-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    .nk-gallery-container {
        padding: 0 60px;
    }
    
    .nk-gallery-slide {
        flex: 0 0 100%;
    }
    
    .nk-image-container {
        height: 300px;
    }
    
    .nk-image-container img {
        height: 200px;
    }
    
    .nk-gallery-prev, .nk-gallery-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .nk-gallery-container {
        padding: 0 50px;
    }
    
    .nk-gallery-title {
        font-size: 24px;
    }
    
    .nk-image-container {
        height: 250px;
    }
    
    .nk-image-container img {
        height: 150px;
    }
    
    .nk-gallery-prev, .nk-gallery-next {
        width: 30px;
        height: 30px;
    }
}