 .gallery-container {
            max-width: 1000px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            height: 95vh;
        }
        
        .main-image-container {
            flex: 1;
            position: relative;
            margin-bottom: 20px;
            background-color: #2a2a2a;
            border-radius: 10px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        #mainImage {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            cursor: zoom-in;
            transition: transform 0.3s;
        }
        
        .image-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0,0,0,0.8));
            padding: 20px;
            color: white;
        }
        
        .nav-buttons {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            padding: 0 20px;
            pointer-events: none;
        }
        
        .nav-button {
            background-color: rgba(0,0,0,0.7);
            color: white;
            border: none;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            font-size: 24px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: all;
            transition: background-color 0.3s, transform 0.3s;
        }
        
        .nav-button:hover {
            background-color: rgba(74, 144, 226, 0.8);
            transform: scale(1.1);
        }
        
        .thumbnails-container {
            height: 150px;
            background-color: #2a2a2a;
            border-radius: 10px;
            padding: 15px;
            position: relative;
        }
        
        .thumbnails-scroll {
            display: flex;
            gap: 10px;
            height: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            padding: 5px;
        }
        
        .thumbnails-scroll::-webkit-scrollbar {
            height: 8px;
        }
        
        .thumbnails-scroll::-webkit-scrollbar-track {
            background: #3a3a3a;
            border-radius: 4px;
        }
        
        .thumbnails-scroll::-webkit-scrollbar-thumb {
            background: #4a90e2;
            border-radius: 4px;
        }
        
        .thumbnail {
            flex: 0 0 auto;
            width: 180px;
            height: 100%;
            position: relative;
            border-radius: 6px;
            overflow: hidden;
            cursor: pointer;
            background-color: #3a3a3a;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999;
            transition: transform 0.3s, border-color 0.3s;
            border: 2px solid transparent;
            background-size: cover;
        }
        
        .thumbnail:hover {
            transform: scale(1.05);
            border-color: #4a90e2;
        }
        
        .thumbnail.active {
            border-color: #4a90e2;
            box-shadow: 0 0 15px rgba(74, 144, 226, 0.5);
        }
        
        .thumbnail.loaded {
            background-color: transparent;
            color: transparent;
        }
        
        .thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .thumbnail-time {
            position: absolute;
            bottom: 5px;
            left: 0;
            right: 0;
            background-color: rgba(0,0,0,0.7);
            color: white;
            font-size: 12px;
            padding: 3px;
            text-align: center;
            opacity: 0;
            transition: opacity 0.3s;
        }
        
        /*.thumbnail:hover .thumbnail-time {
            opacity: 1;
        }*/
        
        .scroll-buttons {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            width: calc(100% - 40px);
            left: 20px;
            pointer-events: none;
            z-index: 1;
        }
        
        .scroll-button {
            background-color: rgba(0,0,0,0.7);
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: all;
            font-size: 18px;
            transition: background-color 0.3s;
        }
        
        .scroll-button:hover {
            background-color: #4a90e2;
        }
        
        .loading-indicator {
            text-align: center;
            padding: 10px;
            color: #999;
            font-size: 14px;
        }
        
        .zoom-controls {
            position: absolute;
            top: 20px;
            right: 20px;
            display: flex;
            gap: 10px;
            z-index: 2;
        }
        
        .zoom-button {
            background-color: rgba(0,0,0,0.7);
            color: white;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: background-color 0.3s;
        }
        
        .zoom-button:hover {
            background-color: #4a90e2;
        }
        
        .fullscreen-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(0,0,0,0.95);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
        
        .fullscreen-image {
            max-width: 95vw;
            max-height: 95vh;
            object-fit: contain;
            cursor: move;
        }
        
        .close-fullscreen {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            color: white;
            font-size: 40px;
            cursor: pointer;
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .fullscreen-nav {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            padding: 0 30px;
        }


/*.container {
            max-width: 900px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            overflow: hidden;
        }*/

        .header {
            background: linear-gradient(to right, #4f46e5, #7c3aed);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
        }

        .header p {
            opacity: 0.9;
            font-size: 1.1rem;
        }

        .tree-container {
            padding: 30px;
            width: 100%;
            /*max-height: 600px;
            overflow-y: auto;*/
        }

        /* Стили для дерева */
        .tree {
            list-style: none;
            padding-left: 0;
        }

        .tree-item {
            margin: 8px 0;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .tree-item:hover {
            background-color: #f8fafc;
        }

        .folder {
            cursor: pointer;
            padding: 12px 15px;
            display: flex;
            align-items: center;
            gap: 12px;
            border-left: 4px solid transparent;
            transition: all 0.3s ease;
        }

        .folder:hover {
            border-left-color: #4f46e5;
            background-color: #f1f5f9;
            transform: translateX(5px);
        }

        .folder.active {
            background-color: #e0e7ff;
            border-left-color: #4f46e5;
        }

        .folder-icon {
            width: 24px;
            height: 24px;
            transition: transform 0.3s ease;
        }

        .folder.open .folder-icon {
            transform: rotate(90deg);
        }

        .folder-name {
            font-size: 1.1rem;
            font-weight: 500;
            color: #1e293b;
            flex-grow: 1;
        }

        .folder+.children{
            display: none;
        }

        .folder.open+.children{
            display: block;
        }

        .file-count {
            background: #e2e8f0;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            color: #475569;
            font-weight: 500;
        }

        .file {
            padding: 10px 15px 10px 55px;
            display: flex;
            align-items: center;
            gap: 12px;
            color: #64748b;
            animation: fadeIn 0.3s ease;
        }

        .file:hover {
            color: #4f46e5;
            background-color: #f8fafc;
        }

        .file-icon {
            width: 20px;
            height: 20px;
            line-height: 16px;
        }

        .file-name {
            font-size: 1rem;
        }

        .file-size {
            margin-left: auto;
            font-size: 0.9rem;
            color: #94a3b8;
        }

        .children {
            list-style: none;
            padding-left: 40px;
            /*max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);*/
        }

        .children.open {
            max-height: 2000px;
        }

        .loading {
            padding: 10px 55px;
            color: #94a3b8;
            font-style: italic;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .spinner {
            width: 16px;
            height: 16px;
            border: 2px solid #e2e8f0;
            border-top-color: #4f46e5;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateX(-10px); }
            to { opacity: 1; transform: translateX(0); }
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .search-box {
            padding: 20px 30px 0;
        }

        .search-input {
            width: 100%;
            padding: 15px 20px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: #4f46e5;
            box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
        }

        .stats {
            padding: 20px 30px;
            background: #f8fafc;
            border-top: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-between;
            color: #64748b;
            font-size: 0.95rem;
        }

        /* Анимация для вложенных элементов */
        .tree-item .children .tree-item {
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Стили для разных типов файлов */
        .file[data-type="php"] .file-icon { color: #4f5d95; }
        .file[data-type="js"] .file-icon { color: #f7df1e; }
        .file[data-type="css"] .file-icon { color: #1572b6; }
        .file[data-type="html"] .file-icon { color: #e44d26; }
        .file[data-type="json"] .file-icon { color: #6c6c6c; }
        .file[data-type="md"] .file-icon { color: #083fa1; }

        /* Адаптивность */
        @media (max-width: 768px) {
            .container {
                margin: 0 10px;
            }
            
            .header h1 {
                font-size: 2rem;
            }
            
            .tree-container {
                padding: 20px;
            }
            
            .children {
                padding-left: 25px;
            }
            
            .file {
                padding-left: 45px;
            }
        }