        .halo-image-pagination {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            max-width: 100%;
            margin: 2rem 0;
            padding: 1.5rem;
            background-color: var(--halo-component-background);
            border-radius: var(--halo-border-radius);
            box-shadow: var(--halo-box-shadow);
            border: 1px solid var(--halo-border-color);
            position: relative;
        }
        
        .halo-image-pagination header {
            text-align: center;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid var(--halo-border-color);
        }
        
        .halo-image-pagination h2 {
            color: var(--halo-text-color);
            font-size: 1.75rem;
            margin-bottom: 0.5rem;
            font-weight: 600;
        }
        
        .halo-image-pagination .subtitle {
            color: var(--halo-secondary-text-color);
            font-size: 1rem;
            max-width: 700px;
            margin: 0 auto;
            line-height: 1.6;
        }
        
        .gallery-container {
            margin-bottom: 1.5rem;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .halo-gallery-grid {
            display: grid;
            gap: 1rem;
            margin-bottom: 1.5rem;
            width: 100%;
            max-width: 1200px;
        }
        
        .halo-gallery-item {
            border-radius: var(--halo-border-radius);
            overflow: hidden;
            box-shadow: var(--halo-box-shadow-sm);
            transition: all 0.3s ease;
            cursor: pointer;
            position: relative;
            background: var(--halo-background-color);
            border: 1px solid var(--halo-border-color);
            height: 0;
            padding-bottom: 75%;
        }
        
        .halo-gallery-item:hover {
            transform: translateY(-3px);
            box-shadow: var(--halo-box-shadow);
            border-color: #1e6bdd;
        }
        
        .image-container {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #f5f5f5;
        }
        
        .halo-gallery-item img {
            max-width: 100%;
            max-height: 100%;
            display: block;
            object-fit: contain;
            transition: opacity 0.3s ease;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .halo-gallery-item .lazy-load {
            filter: blur(3px);
            transform: scale(1.05);
        }
        
        .halo-image-title {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 0.75rem;
            text-align: center;
            font-size: 0.85rem;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            z-index: 2;
        }
        
        .halo-gallery-item:hover .halo-image-title {
            transform: translateY(0);
        }
        
        .halo-pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 0.5rem;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }
        
        .halo-page-btn {
            padding: 0.5rem 0.75rem;
            background: #f0f0f0;
            border-radius: var(--halo-border-radius);
            font-weight: 500;
            min-width: 36px;
            text-align: center;
            font-size: 0.9rem;
            border: 1px solid #ddd;
            color: #333;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .halo-page-btn:hover {
            background: #e0e0f0;
            border-color: #949597;
            color: #949597;
        }
        
        .halo-page-btn.active {
            background: #949597;
            border-color: #949597;
            color: white !important;
        }
        
        .halo-page-jump {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-left: 0.75rem;
            background: transparent;
            padding: 0.5rem;
            border-radius: var(--halo-border-radius);
        }
        
        .halo-page-jump input {
            width: 60px;
            padding: 0.5rem;
            border: none;
            border-radius: var(--halo-border-radius);
            font-size: 0.9rem;
            text-align: center;
            background: rgba(0,0,0,0.05);
            color: var(--halo-text-color) !important;
        }
        
        .halo-page-jump button {
            padding: 0.5rem 0.75rem;
            background: #949597;
            font-size: 0.9rem;
            color: white !important;
            border: none;
            border-radius: var(--halo-border-radius);
            cursor: pointer;
        }
        
        .halo-stats {
            text-align: center;
            margin-top: 1rem;
            color: var(--halo-secondary-text-color);
            font-size: 0.9rem;
            padding: 0.75rem;
            width: 100%;
            max-width: 1200px;
        }
        
        .halo-lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 2147483647;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
            padding: 0 20px;
            box-sizing: border-box;
        }
        
        .halo-lightbox.active {
            opacity: 1;
            pointer-events: all;
        }
        
        .halo-lightbox-img {
            max-width: 90%;
            max-height: 85%;
            border-radius: var(--halo-border-radius);
            box-shadow: 0 10px 50px rgba(0, 0, 0, 0.6);
            transition: transform 0.3s ease;
            cursor: grab;
            transform-origin: center center;
        }
        
        .halo-lightbox-img.dragging {
            cursor: grabbing;
            transition: none;
        }
        
        .halo-close-btn {
            position: absolute;
            top: 73px;
            right: 1.5rem;
            color: white;
            font-size: 2rem;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 2147483648;
        }
        
        .halo-close-btn:hover {
            color: #1e6bdd;
        }
        
        .halo-image-info {
            position: absolute;
            bottom: 1.5rem;
            left: 0;
            right: 0;
            text-align: center;
            color: white;
            padding: 0.75rem;
            font-size: 1.1rem;
            z-index: 2147483648;
            background: rgba(0, 0, 0, 0.7);
            border-radius: var(--halo-border-radius);
            max-width: 80%;
            margin: 0 auto;
        }
        
        .halo-counter {
            position: absolute;
            top: 73px;
            left: 1.5rem;
            background: rgba(0,0,0,0.7);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            font-size: 0.9rem;
            z-index: 2147483648;
        }
        
        .halo-loading {
            display: flex;
            justify-content: center;
            padding: 2rem;
        }
        
        .halo-spinner {
            width: 40px;
            height: 40px;
            border: 3px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top: 3px solid #1e6bdd;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .halo-status {
            text-align: center;
            padding: 1.5rem;
            color: var(--halo-text-color);
        }
        
        .page-dots {
            padding: 0 0.5rem;
            color: var(--halo-secondary-text-color);
        }
        
        .lightbox-spinner {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            margin: auto;
            width: 50px;
            height: 50px;
            border: 4px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top: 4px solid #1e6bdd;
            animation: spin 1s linear infinite;
            z-index: 2147483649;
            display: none;
        }
        
        .lightbox-spinner.active {
            display: block;
        }
        
        .lightbox-error {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #ff6b6b;
            font-size: 1.2rem;
            background: rgba(0, 0, 0, 0.7);
            padding: 1rem;
            border-radius: 8px;
            z-index: 2147483649;
            display: none;
            text-align: center;
            max-width: 80%;
        }
        
        .lightbox-error.active {
            display: block;
        }
        
        .halo-nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: rgba(0,0,0,0.5);
            color: white;
            border: none;
            font-size: 2rem;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 2147483648;
            transition: all 0.3s;
        }
        
        .halo-nav-btn:hover {
            background: rgba(0,0,0,0.8);
        }
        
        .halo-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        
        .halo-prev-btn {
            left: 2rem;
        }
        
        .halo-next-btn {
            right: 2rem;
        }
        
        .image-error {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #f0f0f0;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            color: #999;
            font-size: 0.9rem;
            text-align: center;
            padding: 1rem;
            z-index: 1;
            display: none;
        }
        
        .image-error i {
            font-size: 2rem;
            margin-bottom: 0.5rem;
            color: #ccc;
        }
        
        @media (max-width: 768px) {
            .halo-image-pagination {
                padding: 1.5rem 1rem;
            }
            
            .halo-pagination {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                gap: 0.5rem;
            }
            
            .halo-page-jump {
                margin-left: 0.75rem;
                margin-top: 0;
                width: auto;
                justify-content: flex-start;
            }
            
            .halo-gallery-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 0.75rem;
            }
            
            .halo-nav-btn {
                width: 50px;
                height: 50px;
                font-size: 1.5rem;
            }
            
            .halo-prev-btn {
                left: 1rem;
            }
            
            .halo-next-btn {
                right: 1rem;
            }
            
            .halo-close-btn, .halo-counter {
                top: 68px;
            }
            
            .lightbox-spinner {
                width: 40px;
                height: 40px;
            }
            
            .lightbox-error {
                font-size: 1rem;
                padding: 0.8rem;
            }
        }
        
        @media (max-width: 480px) {
            .halo-image-pagination {
                padding: 1.5rem 0.7rem;
            }
            
            .halo-pagination {
                gap: 0.4rem;
            }
            
            .halo-gallery-grid {
                grid-template-columns: 1fr;
                gap: 0.5rem;
            }
            
            .halo-lightbox {
                padding: 0 10px;
            }
            
            .halo-lightbox-img {
                max-width: 100%;
                max-height: 70%;
            }
            
            .halo-nav-btn {
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }
            
            .halo-prev-btn {
                left: 0.8rem;
            }
            
            .halo-next-btn {
                right: 0.8rem;
            }
            
            .halo-close-btn, .halo-counter {
                top: 63px;
            }
            
            .halo-page-btn {
                padding: 0.4rem 0.6rem;
                min-width: 30px;
                font-size: 0.85rem;
            }
            
            .halo-page-jump input {
                width: 50px;
                padding: 0.4rem;
                font-size: 0.85rem;
            }
            
            .halo-page-jump button {
                padding: 0.4rem 0.6rem;
                font-size: 0.85rem;
            }
            
            .lightbox-spinner {
                width: 35px;
                height: 35px;
            }
            
            .lightbox-error {
                font-size: 0.9rem;
                padding: 0.6rem;
            }
        }
        
        body.halo-lightbox-active aside.z-0 {
            display: none !important;
        }
        
        .halo-image-pagination.theme-compatible {
            position: static;
            z-index: auto !important;
        }
        
        body.halo-lightbox-active #btn-scroll-to-top {
            display: none !important;
        }