
        
        .gallery-container {
            width: 100%;
            margin: 0 auto;
        }
        
        .gallery-row {
            margin-bottom: 15px;
            display: flex;
            flex-wrap: wrap;
        }
        
        .gallery-item {
            padding: 5px;
            cursor: pointer;
            overflow: hidden;
            transition: transform 0.3s ease;
            box-sizing: border-box;
        }
        
        .gallery-item:hover {
            transform: scale(1.02);
        }
        
        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            border-radius: 4px;
        }
        
        .image-wrapper {
            width: 100%;
            height: 250px; 
            overflow: hidden;
            border-radius: 4px;
            background-color: #f5f5f5;
        }
    
        .modal-gallery {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }
        
        .modal-image-container {
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }
        
        .modal-image-container img {
            max-width: 100%;
            max-height: 100%;
            width: auto;
            height: auto;
            object-fit: contain;
            animation: fadeIn 0.3s ease;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .close-modal {
            position: fixed;
            top: 20px;
            right: 30px;
            color: #fff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            z-index: 1002;
            background: rgba(0, 0, 0, 0.5);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s;
        }
        
        .close-modal:hover {
            background: rgba(0, 0, 0, 0.8);
        }
        
        .nav-arrows {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px;
            box-sizing: border-box;
            pointer-events: none;
        }
        
        .arrow {
            color: white;
            font-size: 50px;
            cursor: pointer;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 50%;
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            user-select: none;
            pointer-events: auto;
            transition: background 0.3s, transform 0.2s;
        }
        
        .arrow:hover {
            background: rgba(0, 0, 0, 0.8);
            transform: scale(1.1);
        }
        
        .image-counter {
            position: fixed;
            bottom: 30px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 18px;
            background: rgba(0, 0, 0, 0.7);
            padding: 10px 25px;
            border-radius: 30px;
            z-index: 1001;
        }
        
   
        .loading {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-size: 20px;
            z-index: 1003;
        }
        
   
        @media (max-width: 992px) {
            .image-wrapper {
                height: 220px;
            }
        }
        
        @media (max-width: 768px) {
            .image-wrapper {
                height: 200px;
            }
            
            .arrow {
                font-size: 35px;
                width: 50px;
                height: 50px;
            }
            
            .close-modal {
                font-size: 35px;
                top: 15px;
                right: 20px;
            }
        }
        
        @media (max-width: 480px) {
            .gallery-item {
                padding: 3px;
            }
            
            .image-wrapper {
                height: 180px;
            }
            
            .arrow {
                font-size: 25px;
                width: 40px;
                height: 40px;
            }
            
            .close-modal {
                font-size: 30px;
                width: 40px;
                height: 40px;
            }
            
            .image-counter {
                font-size: 16px;
                padding: 8px 20px;
                bottom: 20px;
            }
        }
        
  
  