/* Контейнер */
.mosaicgrid_container {
    max-width: 100%;
    margin: 0;
    padding: 10px 0;
}

/* Сетка */
.mosaicgrid_grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    margin: 0;
}

/* Квадратик */
.mosaicgrid_item {
	width: 24px;
	height: 24px;
	display: inline-block;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
	border: 1px solid #ffffff;
	background-clip: padding-box;
	box-sizing: border-box;
}

/* Цветной слой */
.mosaicgrid_color {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Увеличенное фото */
.mosaicgrid_preview {
    display: none;
    position: fixed;
    z-index: 9999;
    width: 200px;
    height: 300px;
    border: 3px solid #ffffff;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden;
}

.mosaicgrid_preview.mosaicgrid_visible {
    display: block;
    opacity: 1;
}

/* Текст на всплывающем изображении */
.mosaicgrid_preview_title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 10px 8px 10px;
    /*background: #ffffffaa;*/
	
	background: -webkit-linear-gradient(top, transparent 0%, #fff 30%, #fff 100%);
  background: -moz-linear-gradient(top, transparent 0%, #fff 30%, #fff 100%);
  background: -o-linear-gradient(top, transparent 0%, #fff 30%, #fff 100%);
  background: linear-gradient(to bottom, transparent 0%, #fff 30%, #fff 100%);
    color: #000	;
    font-size: 13px;
    font-family: Arial, sans-serif;
    text-align: center;
  
    z-index: 10;
   
} 

/* Эффект при наведении на квадратик */
.mosaicgrid_item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 40px rgba(200, 200, 200, 0.7);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
border: 2px solid #fff;
opacity: 0.7;
}

.mosaicgrid_item_label {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 12px;
    font-family: Arial, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.mosaicgrid_item:hover .mosaicgrid_item_label {
    opacity: 1;
}

/* Адаптив */
@media (max-width: 768px) {
  
}

@media (max-width: 480px) {
    
   
}