

.img-bg {
  width: 100%;
  height: 100%;
  max-height: 400px;
  display: flex;
  margin-bottom: 7%;
}
.img-bg img {
  border-radius: 6px;
  object-fit: cover;
  object-position: top;
}

/* gallery */ 
        .gallery {
          margin-bottom: 5%;
        }
        .imageGrid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
            gap: 10px;
        }
        
        .imageCell {
            border-radius: 4px;
            overflow: hidden;
            transition: transform 0.3s ease;
        }
        
        .imageCell:hover {
            transform: scale(1.03);
        }
        
        .imageThumb {
            width: 100%;
            height: 150px;
            object-fit: cover;
            display: block;
            cursor: pointer;
        }
        
        /* Кастомные стили для fancybox */
        .fancybox-custom-theme .fancybox-bg {
            background: rgba(20, 20, 20, 0.95);
        }
        
        .fancybox-custom-theme .fancybox-thumbs {
            background: rgba(20, 20, 20, 0.9);
        }
        
        .fancybox-custom-theme .fancybox-thumbs__list a:before {
            border: 2px solid #4ca1af;
        }
        
        @media (max-width: 768px) {
            .imageGrid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
                gap: 8px;
            }
            
            .imageThumb {
                height: 120px;
            }
        }
        
        @media (max-width: 480px) {
            .imageGrid {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                gap: 6px;
            }
            
            .imageThumb {
                height: 100px;
            }
        }