

/* Start:/bitrix/templates/apriori-corp/components/bitrix/news.list/projects_grid/style.css?17724786862468*/
/* Контейнер мозаики */
.projects-mosaic {
  display: grid;
  /* Фиксируем ровно 2 колонки, чтобы паттерн не ломался */
  grid-template-columns: 1fr 1fr; 
  grid-auto-rows: 250px; 
  /* dense заставляет маленькие блоки "затекать" в пустые места рядом с высокими */
  grid-auto-flow: dense; 
  gap: 15px;
  margin: 40px 0;
align-items: stretch;
}

/* Общие стили карточки */
.mosaic-item {
  position: relative;
  overflow: hidden;
}

.mosaic-card {
  display: block;
  width: 100%;
  height: 100%;
}

.mosaic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

/* Высокая карточка на 2 строки */
.grid-tall {
  grid-row: span 2;
}



/* Эффекты наведения (Overlay) */
.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
margin: 24px;
}

.mosaic-text {
  text-align: center;
  color: #fff;
  transform: translateY(20px);
  transition: 0.4s;
  padding: 20px;

}

.mosaic-text h3 {
  font-size: 20px;
  font-family: "Sahar", sans-serif;
  margin-bottom: 12px;
color: #b30000 !important;
line-height: normal;
font-weight: 600;
}

.mosaic-text span {
  font-size: 16px;
  border-bottom: 1px solid #333;
  padding-bottom: 3px;
color: #333;
font-family: "Sahar", sans-serif;
font-weight: 600;
}

/* Ховер-эффекты */
.mosaic-item:hover .mosaic-overlay {
  opacity: 1;
}

.mosaic-item:hover .mosaic-text {
  transform: translateY(0);
}

.mosaic-item:hover img {
  transform: scale(1.08);
}
/* Контейнер мозаики */
.projects-mosaic {
  display: grid;
  /* Фиксируем ровно 2 колонки, чтобы паттерн не ломался */
  grid-template-columns: 1fr 1fr; 
  grid-auto-rows: 250px; 
  /* dense заставляет маленькие блоки "затекать" в пустые места рядом с высокими */
  grid-auto-flow: dense; 
  gap: 15px;
  margin: 40px 0;
}

/* Адаптив для мобилок */
@media (max-width: 1024px) {
  .projects-mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: 300px;
margin-top: 20px; 
  }
  .grid-tall,
  .grid-wide {
    grid-row: span 1;
    grid-column: span 1;
  }
}






/* End */
/* /bitrix/templates/apriori-corp/components/bitrix/news.list/projects_grid/style.css?17724786862468 */
