/* =========================================================
   GA News4 — styles (v1.6.2-LH13, grid + cards + modifiers)
   ========================================================= */

/* ====== Сетка ====== */
.ga-news4{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:36px 48px;
  margin:24px 0;
}
.ga-news4-item{ display:block; }

/* ====== Карточка превью (база) ====== */
.ga-news4-thumb{
  display:block;
  position:relative;
  border-radius:10px;
  overflow:hidden;
  background:#fff;          /* белый фон для "полей" при contain */
  aspect-ratio:16/9;
}
.ga-news4-thumb img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;       
  object-position:center;
}

/* ====== Мета и тексты ====== */
.ga-news4-meta{ 
  margin:10px 0 8px; 
  font-size:13px; 
  color:#666; 
  line-height:1.3;
}

.ga-news4-title{
  margin:0 0 10px;
  font-weight:800;
  font-size:18px;
  line-height:1.3;          /* ← твой line-height */
}
.ga-news4-title a{
  color:#111;
  text-decoration:none;
  line-height:1.3;          /* важное унаследование */
}
.ga-news4-title a:hover{ color:#1b2eb0; }

.ga-news4-excerpt{
  font-size:14px;
  color:#444;
  line-height:1.3;          /* ← твой line-height */
}

/* ====== Пресеты колонок ====== */
.ga-cols-1{ grid-template-columns:1fr; }
.ga-cols-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.ga-cols-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.ga-cols-4{ grid-template-columns:repeat(4,minmax(0,1fr)); }

/* ====== Адаптив ====== */
@media (max-width:1024px){
  .ga-news4-thumb{ aspect-ratio:3/2; }
}
@media (max-width:640px){
  .ga-news4{ grid-template-columns:1fr; gap:28px; }
  .ga-news4-thumb{ aspect-ratio:4/3; }
}

/* ====== Фолбэк aspect-ratio ====== */
@supports not (aspect-ratio:1/1){
  .ga-news4-thumb{ position:relative; }
  .ga-news4-thumb::before{
    content:"";
    display:block;
    padding-top:56.25%; /* 16:9 */
  }
  .ga-news4-thumb img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;
    object-position:center;
  }
  @media (max-width:1024px){ .ga-news4-thumb::before{ padding-top:66.666%; } }
  @media (max-width:640px){  .ga-news4-thumb::before{ padding-top:75%; } }
}

/* ====== Модификатор: cover ====== */
.ga-fit-cover .ga-news4-thumb{ background:#eee; }
.ga-fit-cover .ga-news4-thumb img{
  object-fit:cover;
  object-position:center;
}

/* ====== Модификатор: padding/contain ====== */
.ga-news4-item.ga-has-padding .ga-news4-thumb{ padding:12px; }
.ga-news4-item.ga-has-padding .ga-news4-thumb img{
  inset:12px;
  width:auto;
  height:auto;
  max-width:calc(100% - 24px);
  max-height:calc(100% - 24px);
  left:50%; top:50%;
  transform:translate(-50%,-50%);
}

/* ====== Жёсткий оверрайд ====== */
.ga-news4 .ga-news4-thumb{
  background:#fff !important;
}
.ga-news4 .ga-news4-thumb img{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:contain !important;
  object-position:center !important;
}
.ga-news4 .ga-fit-cover .ga-news4-thumb{ background:#eee !important; }
.ga-news4 .ga-fit-cover .ga-news4-thumb img{
  object-fit:cover !important;
  object-position:center !important;
}

@supports not (aspect-ratio:1/1){
  .ga-news4 .ga-news4-thumb{ position:relative !important; }
  .ga-news4 .ga-news4-thumb::before{
    content:""; display:block; padding-top:56.25%;
  }
  .ga-news4 .ga-news4-thumb img{ position:absolute !important; }
}

/* ====== Fix priority (Always last) ====== */
.ga-news4-item.ga-has-padding .ga-news4-thumb { 
  padding:12px !important; 
}
.ga-news4-item.ga-has-padding .ga-news4-thumb img{
  position:absolute !important;
  inset:12px !important;
  width:auto !important;
  height:auto !important;
  max-width:calc(100% - 24px) !important;
  max-height:calc(100% - 24px) !important;
  left:50% !important; top:50% !important;
  transform:translate(-50%,-50%) !important;
  object-fit:contain !important;
}

.ga-news4 .ga-fit-cover .ga-news4-thumb{ 
  background:#eee !important; 
}
.ga-news4 .ga-fit-cover .ga-news4-thumb img{
  object-fit:cover !important;
  object-position:center !important;
}

/* ====== Финальное подтверждение line-height ====== */
.ga-news4-title,
.ga-news4-title a,
.ga-news4-excerpt,
.ga-news4-meta{
  line-height:1.3 !important;
}
