.gallery-body{

            color: #333;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 4px;
}

.gallery-container {
            width: 100%;
            max-width: 1200px;
            background: rgba(255, 255, 255, 0.95);
            border-radius: 16px;
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
            overflow: hidden;
            position: relative;
            padding: 30px;
        }
        
        .gallery-header {
            text-align: center;
            margin-bottom: 30px;
        }
        
        .gallery-header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            background: linear-gradient(108deg, #d81035 0%, rgba(250, 0, 217, 0.93) 100%);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
        }
        
        .gallery-header p {
            font-size: 1.1rem;
            color: #666;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .main-slider {
            position: relative;
            width: 100%;
            height: 500px;
            border-radius: 12px;
            overflow: hidden;
            /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); */
            margin-bottom: 25px;
        }
        
        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.8s ease-in-out;
            z-index: 0;
        }
        
        .slide.active {
            opacity: 1;
            z-index: 1;
        }
        
.slide img {
    position: relative;
    left: 50%;
    transform: translate(-50%);
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}


.slide-img-modal{
    height: 100%;
    object-fit: contain;
    display: block;

}




       
        
        .controls {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
            display: flex;
            justify-content: space-between;
            z-index: 2;
            padding: 0 20px;
        }
        
        .control-btn {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.8);
            border: none;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        .control-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: scale(1.1);
        }
        
        .thumbnails-container {
            position: relative;
            padding: 0 50px;
        }
        
        .thumbnails {
            display: flex;
            gap: 15px;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 10px 0 20px;
            scrollbar-width: thin;
        }
        
      /*   .thumbnails::-webkit-scrollbar {
            height: 8px;
        }
        
        .thumbnails::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 4px;
        }
        
        .thumbnails::-webkit-scrollbar-thumb {
            background: linear-gradient(45deg, #ff416c, #ff4b2b);
            border-radius: 4px;
        } */


        .thumbnails::-webkit-scrollbar {
        width: 12px;}

        .thumbnails::-webkit-scrollbar-track {
         background: #F6EFF2;}

         .thumbnails::-webkit-scrollbar-thumb {
         background-color: #edb4cc;
         border-radius: 20px;
          border: 2px solid #F6EFF2;
         }
        
        .thumbnail {
            width: 120px;
            height: 90px;
            border-radius: 10px;
            overflow: hidden;
            cursor: pointer;
            flex-shrink: 0;
            position: relative;
            border: 3px solid transparent;
            transition: all 0.3s ease;
            transform-origin: center;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 8px;
        }
        
        .thumbnail:hover {
            transform: scale(1.05);
            box-shadow: 0 6px 15px rgba(255, 75, 43, 0.4);
        }
        
        .thumbnail.active {
            
            border-color: var(--primary-color);
            transform: scale(1.08);
            box-shadow: 0 8px 20px rgba(255, 75, 43, 0.5);
        }
        
        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 42px;
            height: 42px;
            border-radius: 50%;
            background: white;
            border: none;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 2;
            transition: all 0.3s ease;
        }
        
        .nav-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: translateY(-50%) scale(1.1);
        }
        
        .prev-btn {
            left: 0;
        }
        
        .next-btn {
            right: 0;
        }
        
        .fullscreen-btn {
            position: absolute;
            top: 20px;
            right: 20px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--primary-color);
            border: none;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 2;
            backdrop-filter: blur(4px);
        }
        
        .fullscreen-btn:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: scale(1.1);
        }
        
        
        /* Анимация */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .slide {
            animation: fadeIn 0.8s ease-in-out;
        }
        
        /* Адаптивность */
        @media (max-width: 900px) {
            .main-slider {
                height: 400px;
            }
            
            .gallery-header h1 {
                font-size: 2.2rem;
            }
        }
        
        @media (max-width: 768px) {
            .gallery-container {
                padding: 20px;
            }
            
            .main-slider {
                height: 350px;
            }
            
            .thumbnail {
                width: 100px;
                height: 75px;
            }
            
            .thumbnails-container {
                padding: 0 40px;
            }
        }
        
        @media (max-width: 576px) {
            .main-slider {
                height: 350px;
            }
            
            .gallery-header h1 {
                font-size: 1.8rem;
            }
            
            .gallery-header p {
                font-size: 1rem;
            }
            
            .thumbnail {
                width: 85px;
                height: 65px;
            }
            
            .control-btn {
                width: 40px;
                height: 40px;
            }
            
            .nav-btn {
                width: 36px;
                height: 36px;
            }
            
           
            
            
            
        }
        
        @media (max-width: 480px) {
            .main-slider {
                height: 330px;
            }
            
            .thumbnail {
                width: 75px;
                height: 60px;
            }
            
            .thumbnails-container {
                padding: 0 35px;
            }
            
        }