
/* V205 - Home featured news: 4 newest posts, full image visible without cropping text */
body:not(.admin-layout) .v117-news-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
}

body:not(.admin-layout) .v117-news-grid article{
  min-width:0!important;
  height:100%!important;
  display:flex!important;
  overflow:hidden!important;
}

body:not(.admin-layout) .v117-news-grid article>a{
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
  height:100%!important;
}

body:not(.admin-layout) .v117-news-grid .v117-news-img{
  position:relative!important;
  width:100%!important;
  aspect-ratio:16 / 10!important;
  height:auto!important;
  overflow:hidden!important;
  background:#f6f8f7!important;
}

body:not(.admin-layout) .v117-news-grid .v117-news-img>img{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  transform:none!important;
  max-width:100%!important;
  display:block!important;
}

body:not(.admin-layout) .v117-news-grid article:hover .v117-news-img>img{
  transform:scale(1.015)!important;
  transition:transform .28s ease!important;
}

body:not(.admin-layout) .v117-news-grid .v117-news-body{
  flex:1 1 auto!important;
  display:flex!important;
  flex-direction:column!important;
}

body:not(.admin-layout) .v117-news-grid .v117-news-body>span{
  margin-top:auto!important;
}

/* Laptop/tablet: keep readable cards */
@media(max-width:1199px){
  body:not(.admin-layout) .v117-news-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

/* Mobile: one article per row so image text stays legible */
@media(max-width:640px){
  body:not(.admin-layout) .v117-news-grid{
    grid-template-columns:1fr!important;
    gap:12px!important;
  }
  body:not(.admin-layout) .v117-news-grid .v117-news-img{
    aspect-ratio:16 / 9!important;
  }
}
