/* Scoped to article photos in the observed Kentroaristera theme. No logo/avatar rules. */
body .ka-hero > img,
body .ka-rail-thumb img,
body img.ka-card-thumb,
body .ka-related-thumb img,
body .ka-news-thumb img,
body .ka-featured-media img,
body img.ka-full-frame {
  object-fit: contain !important;
  object-position: center center !important;
  background-color: #f3f2ef !important;
}
body .ka-featured-media {
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  overflow: visible !important;
}
body .ka-featured-media img {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: auto !important;
  max-height: 85vh !important;
  aspect-ratio: auto !important;
  margin: 0 auto !important;
}
body .ka-card-media, body .ka-rail-thumb, body .ka-related-thumb {
  background-color: #f3f2ef !important;
}
body .ka-hero { min-height: 0 !important; height: auto !important; }
body .ka-hero::before, body .ka-hero::after { display: none !important; }
body .ka-hero > img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 65vh !important;
  aspect-ratio: auto !important;
  opacity: 1 !important;
}
body .ka-hero-copy {
  position: static !important;
  padding: 24px !important;
  background: #08261e !important;
}
body .ka-party-credit { font-size: .85em; text-align: left; }

/* v1.1: compact editorial hierarchy; full images, complete titles. */
@media (min-width: 1001px) {
  body .ka-nav { display: block !important; }
  body .ka-nav ul { flex-wrap: wrap; gap: 12px 22px; padding: 12px 0; }
}
body.home .ka-main { display: flex; flex-direction: column; }
body.home .ka-main > .ka-section-heading { order: 0; margin-bottom: 20px; }
body.home .ka-lead-grid { order: 1; align-items: start; gap: 24px; margin-bottom: 30px; padding-bottom: 28px; }
body.home .ka-content-grid { order: 2; margin-top: 0; padding-top: 24px; }
body.home .ka-topics { order: 3; margin-top: 30px; padding: 20px; }
body.home .ka-election-theatre { order: 4; margin-top: 30px; padding-top: 24px; align-items: start; }
body.home .ka-hero { background: #fff !important; border: 1px solid #dce4e0; }
body.home .ka-hero > img {
  height: clamp(220px, 23vw, 300px) !important;
  max-height: none !important;
  width: 100% !important;
  object-fit: contain !important;
}
body.home .ka-hero-copy {
  padding: 20px 22px 22px !important;
  background: #fff !important;
  color: #15231c !important;
}
body.home .ka-hero h1 {
  font-size: clamp(27px, 2.25vw, 34px) !important;
  line-height: 1.14 !important;
  letter-spacing: -.025em !important;
  margin: 12px 0 !important;
  text-wrap: pretty;
}
body.home .ka-hero h1 a { color: #15231c !important; }
body.home .ka-hero p { color: #526059 !important; font-size: 16px !important; line-height: 1.5 !important; }
body.home .ka-hero .ka-meta { color: #637169 !important; margin-top: 14px; font-size: 11px; }
body.home .ka-top-rail { gap: 20px; align-content: start; }
body.home .ka-rail-thumb img { display: block; height: 142px !important; width: 100%; aspect-ratio: auto !important; }
body.home .ka-rail-card { padding-bottom: 18px; }
body.home .ka-rail-card h3 { font-size: 20px; line-height: 1.2; margin: 8px 0 10px; }
body.home .ka-opinion { padding: 20px; }
body.home .ka-opinion h2 { font-size: 25px; line-height: 1.2; }
body.home .ka-brief { padding: 18px 0; }
body.home .ka-brief h3 { font-size: 20px; line-height: 1.2; }
body.home .ka-card-thumb { height: 220px !important; aspect-ratio: auto !important; width: 100%; }
body.home .ka-card h3 { font-size: 23px; line-height: 1.2; }
body.home .ka-topic-grid { gap: 12px; }
body.home .ka-topic-card { padding: 14px; min-height: 0; }
body.home .ka-topics h2, body.home .ka-module-head h2 { font-size: 27px; line-height: 1.15; }
body.home .ka-election-theatre { grid-template-columns: 1fr 1fr; gap: 24px; }
body.home .ka-election-copy { padding: 20px; }
body.home .ka-election-copy h3 { font-size: 23px; line-height: 1.2; }
body.home .ka-theatre-panel { padding: 20px; }
body.home .ka-theatre-item h3 { font-size: 20px; line-height: 1.25; }
@media (max-width: 1000px) and (min-width: 761px) {
  body.home .ka-lead-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); grid-template-areas: "hero side" "rail rail"; }
  body.home .ka-top-rail { display: grid; grid-template-columns: 1fr 1fr; }
  body.home .ka-hero h1 { font-size: 29px !important; }
}
@media (max-width: 760px) {
  body.home .ka-lead-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hero" "rail" "side"; gap: 24px; }
  body.home .ka-hero > img { height: 240px !important; }
  body.home .ka-hero h1 { font-size: 28px !important; }
  body.home .ka-hero-copy { padding: 18px !important; }
  body.home .ka-top-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  body.home .ka-rail-thumb img { height: 125px !important; }
  body.home .ka-rail-card h3 { font-size: 19px; }
  body.home .ka-election-theatre { grid-template-columns: minmax(0, 1fr); }
  body.home .ka-topic-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  body.home .ka-top-rail { grid-template-columns: minmax(0, 1fr); }
  body.home .ka-rail-thumb img { height: 160px !important; }
  body.home .ka-hero > img { height: 215px !important; }
  body.home .ka-card-thumb { height: 210px !important; }
}
