/* GA News Section Grid (arm) — базовая сетка */
.ga-news-grid{
  --ga-title-color: #007dc0;
  --ga-title-hover: #005e88;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.ga-news-grid.cols-2{ grid-template-columns: 1fr 1fr; }
.ga-news-grid.cols-3{ grid-template-columns: 1fr 1fr 1fr; }

/* Layout: row (thumb left, text right) */
.ga-news-grid.layout-row .ga-news-item{
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.ga-news-grid.layout-row .ga-thumb{
  display: block;
  flex: 0 0 var(--ga-thumb-w,120px);
  width: var(--ga-thumb-w,120px);
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
}
.ga-news-grid.layout-row .ga-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Layout: stack (text under photo) */
.ga-news-grid.layout-stack .ga-news-item{
  display: block;
}
.ga-news-grid.layout-stack .ga-thumb{
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 10px;
}
.ga-news-grid.layout-stack .ga-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ga-thumb--placeholder{ background:#f1f3f5; display:block; width:100%; height:100%; }

/* Text styles */
.ga-news-item .ga-title{ font-size:16px; line-height:1.3; margin:0 0 6px; }
.ga-news-item .ga-title a{ text-decoration:none; color: var(--ga-title-color, #007dc0); }
.ga-news-item .ga-title a:hover{ color: var(--ga-title-hover, #005e88); text-decoration: underline; }
.ga-news-item .ga-meta{ font-size:12px; opacity:.75; margin-bottom:6px; }
.ga-news-item .ga-excerpt{ font-size:14px; line-height:1.45; }

/* Narrow screens: row -> stack */
@media (max-width:560px){
  .ga-news-grid.layout-row .ga-news-item{ display:block; }
  .ga-news-grid.layout-row .ga-thumb{ width:100%; margin-bottom:10px; }
}

/* STRICT mode: force single column, neutralize parent floats/flex/columns */
.ga-news-grid.ga-strict-1{
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 18px !important;
  columns: initial !important;
  -webkit-columns: initial !important;
  column-count: 1 !important;
  column-gap: 0 !important;
}
.ga-news-grid.ga-strict-1 > *{
  grid-column: 1 / -1 !important;
  break-inside: avoid !important;
  -webkit-column-break-inside: avoid !important;
  page-break-inside: avoid !important;
}
.ga-news-grid.ga-strict-1 .ga-news-item{
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  display: block !important;
}
