body.kicg-home { background:#fefef4; display:flex; flex-direction:column; min-height:100vh; }
.home-layout { display:grid; grid-template-columns:minmax(220px, 30%) minmax(0,1fr); gap:clamp(20px,4vw,64px); padding:clamp(20px,3vw,48px); flex:1; align-items:start; }
.home-sidebar .logo { width:clamp(165px,24vw,400px); max-width:100%; height:auto; }
.home-links { list-style:none; margin:32px 0 0; padding:0; display:flex; flex-direction:column; gap:14px; }
.home-links a { color:var(--text,#222); text-decoration:none; font-size:clamp(16px,1.5vw,24px); font-weight:500; }
.home-links a:hover { opacity:.65; }
.home-slideshow { position:relative; height:clamp(420px,78vh,1000px); display:grid; place-items:center; overflow:hidden; }
#home-photo { width:100%; height:100%; min-height:0; object-fit:contain; opacity:1; transition:opacity .45s ease; }
#home-photo.fading { opacity:0; }
#home-pause { position:absolute; bottom:12px; right:12px; padding:8px 14px; background:#fefef4; color:#222; border:1px solid #aaa; cursor:pointer; }
#home-status { text-align:center; color:#666; }
.home-slideshow [hidden] { display:none !important; }
@media(max-width:700px){ .home-layout { grid-template-columns:1fr; gap:24px; } .home-sidebar .logo { width:clamp(135px,42vw,200px); } .home-links { margin-top:20px; gap:10px; } .home-slideshow { height:65vh; min-height:260px; } }
@media(prefers-reduced-motion:reduce){ #home-photo { transition:none; } }



/* Main content only: footer stays in its original normal flow. */
body.kicg-home { margin:0; min-height:100dvh; }
.kicg-home .home-layout { flex:1 0 auto; display:grid; grid-template-columns:minmax(240px,30%) minmax(0,1fr); gap:0; padding:0; align-items:stretch; background:#fefef4; }
.kicg-home .home-sidebar { padding:clamp(20px,3vw,48px); min-width:0; }
.kicg-home .home-slideshow { position:relative; display:block; width:100%; height:auto; min-height:0; padding:0; margin:0; border:0; background:#fefef4; overflow:visible; }
.kicg-home #home-photo { position:absolute; top:0; right:0; bottom:auto; left:auto; display:block; height:100%; width:auto; max-width:none; max-height:none; min-width:0; min-height:0; aspect-ratio:auto; object-fit:contain; object-position:right top; margin:0; padding:0; border:0; background:transparent; opacity:1; transition:none; }
.kicg-home #home-photo.fading { opacity:1; }
.kicg-home #home-status { position:absolute; inset:0; display:grid; place-items:center; }
@media(max-width:700px) {
 .kicg-home .home-layout { grid-template-columns:1fr; }
 .kicg-home .home-sidebar { padding:24px; }
 .kicg-home .home-slideshow { height:auto; display:flex; justify-content:flex-end; }
 .kicg-home #home-photo { position:static; height:auto; width:auto; max-width:100%; max-height:75dvh; }
}

/* Override shared site styles only inside the home slideshow. */
body.kicg-home .home-layout > .home-slideshow {
 background: #fefef4 !important; box-sizing: border-box !important;
 margin: 0 !important; padding: 0 !important; border: 0 !important;
}
body.kicg-home .home-slideshow > #home-photo {
 box-sizing: content-box !important; margin: 0 !important;
 padding: 0 !important; border: 0 !important; background: transparent !important;
 object-position: right top !important;
}
@media (min-width:701px) {
 body.kicg-home .home-slideshow > #home-photo {
 position:absolute !important; inset:0 0 auto auto !important;
 width:auto !important; height:100% !important; max-width:none !important;
 max-height:none !important; object-fit:contain !important;
 }
}

/* Typography only: match the original public website. */
.kicg-home .home-links a,
.kicg-home .home-links a span {
  font-family: Avenir-UltraLight, sans-serif;
}
.kicg-home #home-status,
.kicg-home #home-pause {
  font-family: Avenir-UltraLight, sans-serif;
}

/* Avenir typography: explicit weights and shared fallback. */
@font-face { font-family: KICG-Avenir; src: url('fonts/AvenirNext-UltraLight.ttf') format('truetype'); font-weight: 100 300; font-style: normal; font-display: swap; }
@font-face { font-family: KICG-Avenir; src: url('fonts/Avenir-Next-LT-W04-Regular.ttf') format('truetype'); font-weight: 400 500; font-style: normal; font-display: swap; }
@font-face { font-family: KICG-Avenir; src: url('fonts/Avenir-Next-World-W05-Bold.ttf') format('truetype'); font-weight: 600 900; font-style: normal; font-display: swap; }
html, body, body *, body *::before, body *::after, body *::placeholder { font-family: KICG-Avenir, Avenir, sans-serif !important; }
