/* IT ot rebyat / gallery v4: precise photo mapping, compact composition.
   Only the public homepage is styled. Existing forms and dashboards untouched. */
body.kt3-home .v2-hero .container {
  min-height:0 !important;
  gap:clamp(22px,3vw,40px) !important;
}
body.kt3-home .v2-hero-copy {
  padding-block:clamp(25px,3.3vw,46px) !important;
}
body.kt3-home .v2-hero-image {
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  align-self:center !important;
  min-height:0 !important;
  height:clamp(340px,36vw,485px) !important;
  overflow:hidden;
  isolation:isolate;
  border-radius:20px;
  background:#e5ebf2;
  box-shadow:0 12px 32px rgba(26,47,80,.08);
}
/* Ambient backdrop reuses the same authentic robotics photo. */
body.kt3-home .v2-hero-image::before {
  content:"";
  position:absolute;
  z-index:0;
  inset:-28px;
  background:url('/static/kidteach-gallery-v4/robotics.webp') center 45% / cover no-repeat;
  filter:blur(23px);
  transform:scale(1.05);
  opacity:.62;
  pointer-events:none;
}
body.kt3-home .v2-hero-image::after {
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  background:linear-gradient(90deg,rgba(231,238,247,.18),transparent 28%,transparent 72%,rgba(231,238,247,.18));
  pointer-events:none;
}
/* Show both students AND the robot: no cropped faces, no masking/fade. */
body.kt3-home .v2-hero-image img {
  display:block !important;
  position:relative;
  z-index:1;
  height:100% !important;
  width:100% !important;
  max-height:none !important;
  object-fit:contain !important;
  object-position:center center !important;
  -webkit-mask-image:none !important;
  mask-image:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  background:transparent !important;
}
body.kt3-home .v2-hero-photo-label {
  z-index:2;
  font-size:11px;
}
body.kt3-home .v2-courses .course-card img {
  display:block;
  width:100%;
  height:190px !important;
  max-height:none !important;
  object-fit:cover !important;
  object-position:center 30% !important;
  border-radius:0 !important;
  background:#edf1f6;
}
/* Because robotics is a vertical photo, keep the hands and robot visible. */
body.kt3-home .v2-courses .course-card:nth-child(3) img {
  object-position:center 46% !important;
}
body.kt3-home .v2-courses .course-card:nth-child(4) img {
  object-position:center 24% !important;
}
@media (max-width:900px) {
  body.kt3-home .v2-hero-image {height:380px !important;}
  body.kt3-home .v2-courses .course-card img {height:180px !important;}
}
@media (max-width:620px) {
  body.kt3-home .v2-hero .container {gap:18px !important;}
  body.kt3-home .v2-hero-copy {padding-block:26px 12px !important;}
  body.kt3-home .v2-hero-image {height:350px !important;max-width:100%;border-radius:16px;}
  body.kt3-home .v2-courses .course-card img {height:210px !important;}
}
html[data-theme="dark"] body.kt3-home .v2-hero-image {background:#1d2b42;}
html[data-theme="dark"] body.kt3-home .v2-hero-image::after {background:linear-gradient(90deg,rgba(12,23,42,.12),transparent 28%,transparent 72%,rgba(12,23,42,.12));}
