/* Cheritan Site System v5.4 — approved Home gallery layout + face-safe crops */
.cht-site.cht-classic .cht-gallery.cht-gallery-final{
  display:grid!important;
  grid-template-columns:minmax(0,1.7fr) minmax(0,.95fr) minmax(0,.95fr)!important;
  grid-template-rows:240px 240px!important;
  gap:14px!important;
  align-items:stretch!important;
}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item,
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:first-child{
  min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;
  aspect-ratio:auto!important;overflow:hidden!important;border-radius:14px!important;background:#e7eaee!important;
}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:first-child{grid-column:1!important;grid-row:1 / span 2!important;}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(2){grid-column:2!important;grid-row:1!important;}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(3){grid-column:3!important;grid-row:1!important;}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(4){grid-column:2!important;grid-row:2!important;}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(5){grid-column:3!important;grid-row:2!important;}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-link{position:relative!important;display:block!important;width:100%!important;height:100%!important;overflow:hidden!important;}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;transform:none!important;}
/* approved face-safe focal points */
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(1) img{object-position:center 32%!important;}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(2) img{object-position:center top!important;}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(3) img{object-position:center top!important;}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(4) img{object-position:center 28%!important;}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(5) img{object-position:center top!important;}
.cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-caption{position:absolute!important;left:10px!important;right:10px!important;bottom:10px!important;width:auto!important;padding:10px 12px!important;border-radius:6px!important;background:rgba(36,43,52,.84)!important;color:#fff!important;text-align:center!important;font-size:12px!important;font-weight:700!important;line-height:1.25!important;}
@media(max-width:900px){
 .cht-site.cht-classic .cht-gallery.cht-gallery-final{grid-template-columns:1fr 1fr!important;grid-template-rows:360px 260px 260px!important;gap:12px!important;}
 .cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item,
 .cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(n){grid-column:auto!important;grid-row:auto!important;height:100%!important;aspect-ratio:auto!important;}
 .cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:first-child{grid-column:1 / -1!important;}
}
@media(max-width:620px){
 .cht-site.cht-classic .cht-gallery.cht-gallery-final{grid-template-columns:1fr!important;grid-template-rows:none!important;gap:12px!important;}
 .cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item,
 .cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(n){grid-column:auto!important;grid-row:auto!important;height:340px!important;}
 .cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:first-child{height:300px!important;}
 .cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-item:nth-child(4){height:270px!important;}
 .cht-site.cht-classic .cht-gallery.cht-gallery-final .cht-gallery-caption{left:8px!important;right:8px!important;bottom:8px!important;padding:8px 9px!important;font-size:11px!important;}
}
