/* Контейнер галереи */
        .gllr-container {
            position: relative;
            max-width: 100%;
            width: 100%;
            margin: 1em auto;
            background: white;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
            padding: 20px 0;
        }

        /* Обертка для прокрутки */
        .gllr-wrapper {
            position: relative;
            width: 100%;
            max-width: 100%;
            padding: 0 40px;
            box-sizing: border-box;
        }

        /* Прокручиваемый контейнер */
        .gllr-scroll {
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            scroll-behavior: smooth;
            width: 100%;
        }

        /* Утолщенный скроллбар для всех браузеров */
        .gllr-scroll::-webkit-scrollbar {
            height: 12px;
        }

        .gllr-scroll::-webkit-scrollbar-track {
            background: #e0e0e0;
            border-radius: 6px;
        }

        .gllr-scroll::-webkit-scrollbar-thumb {
            background: #bfa382;
            border-radius: 6px;
            cursor: pointer;
        }

        .gllr-scroll::-webkit-scrollbar-thumb:hover {
            background: #a89072;
        }

        /* Для Firefox */
        .gllr-scroll {
            scrollbar-width: thick;
            scrollbar-color: #bfa382 #e0e0e0;
        }

        /* Для IE и Edge */
        .gllr-scroll {
            -ms-overflow-style: scrollbar;
        }

        /* Ряд с фотографиями */
        .gllr-track {
            display: flex;
            gap: 20px;
            width: max-content;
            min-width: 100%;
        }

        /* Элемент галереи */
        .gllr-item {
            flex: 0 0 auto;
            width: 280px;
            cursor: pointer;
            transition: transform 0.3s;
        }

        .gllr-item:hover {
            transform: scale(1.02);
        }

        /* Контейнер для изображения */
        .gllr-image-container {
            width: 100%;
            height: 280px;
            overflow: hidden;
            background: #f0f0f0;
            position: relative;
        }

        /* Изображение */
        .gllr-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: bottom;
            display: block;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        }

        /* Подпись к изображению */
        .gllr-caption {
            margin-top: 12px;
            font-size: 14px;
            color: #555;
            line-height: 1.5;
            font-family: 'Circe', sans-serif;
        }

        .gllr-caption h4 {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 6px;
            color: #333;
            word-wrap: break-word;
        }

        .gllr-caption p {
            font-size: 14px;
            color: #666;
            word-wrap: break-word;
        }

        /* Скрываем пустые подписи */
        .gllr-caption-empty {
            display: none;
        }

        /* Кнопки навигации */
        .gllr-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 36px;
            height: 36px;
            background: #bfa382;
            color: white;
            border: none;
            cursor: pointer;
            font-size: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            z-index: 20;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            border-radius: 50%;
        }

        .gllr-nav-btn:hover {
            background: #a89072;
        }

        .gllr-nav-left {
            left: 5px;
        }

        .gllr-nav-right {
            right: 5px;
        }

        /* Модальное окно */
        .gllr-modal {
            display: none;
            position: fixed;
            z-index: 10000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.85);
            overflow: hidden;
        }

        .gllr-modal-content {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 90%;
            max-height: 80%;
            object-fit: contain;
            user-select: none;
            -webkit-user-select: none;
        }

        .gllr-modal-caption {
            position: absolute;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            width: 80%;
            max-width: 700px;
            text-align: center;
            color: #fff;
            padding: 15px 20px;
            background: rgba(0,0,0,0.8);
            font-family: 'Circe', sans-serif;
            line-height: 1.5;
            font-size: 16px;
            border-radius: 8px;
            z-index: 10001;
            pointer-events: none;
        }

        .gllr-modal-caption.gllr-hidden {
            display: none;
        }

        .gllr-modal-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 45px;
            height: 45px;
            background: rgba(191, 163, 130, 0.8);
            color: white;
            border: none;
            cursor: pointer;
            font-size: 22px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
            z-index: 10001;
            border-radius: 50%;
        }

        .gllr-modal-nav-btn:hover {
            background: rgba(191, 163, 130, 1);
        }

        .gllr-modal-nav-left {
            left: 20px;
        }

        .gllr-modal-nav-right {
            right: 20px;
        }

        .gllr-modal-close {
            position: absolute;
            top: 20px;
            right: 40px;
            color: #fff;
            font-size: 45px;
            font-weight: bold;
            cursor: pointer;
            transition: color 0.3s;
            z-index: 10001;
        }

        .gllr-modal-close:hover {
            color: #bfa382;
        }

        .gllr-modal-counter {
            position: absolute;
            top: 20px;
            left: 20px;
            color: #fff;
            font-size: 16px;
            background: rgba(0,0,0,0.6);
            padding: 8px 15px;
            border-radius: 20px;
            font-family: 'Circe', sans-serif;
            z-index: 10001;
        }

        /* Адаптация */
        @media (max-width: 768px) {
            .gllr-wrapper {
                padding: 0 35px;
            }
            
            .gllr-item {
                width: 240px;
            }
            
            .gllr-image-container {
                height: 240px;
            }
            
            .gllr-nav-btn {
                width: 32px;
                height: 32px;
                font-size: 16px;
            }
            
            /* На мобильных скроллбар тоньше, но визуально заметнее */
            .gllr-scroll::-webkit-scrollbar {
                height: 8px;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            
            .gllr-wrapper {
                padding: 0 30px;
            }
            
            .gllr-item {
                width: 220px;
            }
            
            .gllr-image-container {
                height: 220px;
            }
            
            .gllr-nav-btn {
                width: 28px;
                height: 28px;
                font-size: 14px;
            }
            
            .gllr-modal-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 20px;
            }
            
            .gllr-scroll::-webkit-scrollbar {
                height: 6px;
            }
        }