/* =========================================================
   Kengeri PAGE LAYOUT REFRESH
   Top content full-width; Statistics + Staff keep their
   existing internal layout; Timings/Contact move alongside.
   Photo Gallery remains full-width and internally unchanged.
   ========================================================= */

.kengeri-page-layout{
  width:100%;
}

.kengeri-intro-full{
  width:100%;
  padding:30px;
  border-radius:20px;
}

.kengeri-intro-full .section-heading{
  margin-bottom:14px;
}

.kengeri-intro-lead,
.kengeri-feature-row,
.kengeri-community-block,
.kengeri-commitment-strip{
  display:grid;
  align-items:center;
  gap:30px;
}

.kengeri-intro-lead{
  grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);
}

.kengeri-feature-row{
  grid-template-columns:minmax(360px,.82fr) minmax(0,1.18fr);
  margin-top:38px;
  padding-top:34px;
  border-top:1px solid #edf0f5;
}

.kengeri-feature-row-reverse .kengeri-feature-copy{
  grid-column:2;
  grid-row:1;
}

.kengeri-feature-row-reverse .kengeri-photo-pair{
  grid-column:1;
  grid-row:1;
}

.kengeri-editorial-photo{
  position:relative;
  margin:0;
  overflow:hidden;
  border-radius:16px;
  background:#eef2f7;
  box-shadow:0 12px 30px rgba(15,30,74,.10);
}

.kengeri-editorial-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .45s ease;
}

.kengeri-editorial-photo:hover img{
  transform:scale(1.025);
}

.kengeri-editorial-photo figcaption{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:32px 16px 13px;
  color:#fff;
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
  background:linear-gradient(transparent,rgba(8,19,49,.82));
}

.kengeri-editorial-photo-large{
  height:360px;
}

.kengeri-photo-pair{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:12px;
  height:350px;
}

.kengeri-photo-pair .kengeri-editorial-photo:first-child{
  height:350px;
}

.kengeri-photo-pair .kengeri-editorial-photo:last-child{
  height:290px;
  align-self:end;
}

.kengeri-split-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:38px;
}

.kengeri-content-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 190px;
  overflow:hidden;
  min-height:250px;
  border:1px solid #e6eaf1;
  border-radius:16px;
  background:#f9fbfe;
}

.kengeri-content-card-copy{
  padding:23px;
}

.kengeri-content-card img{
  width:100%;
  height:100%;
  min-height:250px;
  object-fit:cover;
}

.kengeri-content-card .section-heading h2{
  font-size:22px;
}

.kengeri-community-block{
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  margin-top:38px;
  padding:30px;
  border-radius:18px;
  background:linear-gradient(135deg,#f7f9fd,#fff);
  border:1px solid #e7ebf2;
}

.kengeri-community-photo{
  height:390px;
}

.kengeri-commitment-strip{
  grid-template-columns:310px minmax(0,1fr);
  gap:26px;
  margin-top:26px;
  padding-top:26px;
  border-top:1px solid #edf0f5;
}

.kengeri-commitment-strip .kengeri-editorial-photo{
  height:220px;
}

/* Start the sidebar lower, beside Statistics and Staff */
.kengeri-lower-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:22px;
  align-items:start;
  margin-top:24px;
}

.kengeri-stats-staff-column{
  min-width:0;
}

.kengeri-stats-staff-column > .section-heading:first-child{
  margin-top:0 !important;
}

.kengeri-lower-layout .side-stack{
  display:grid;
  gap:18px;
  position:sticky;
  top:138px;
}

/* Full-width gallery below both columns; gallery itself unchanged */
.kengeri-gallery-full-panel{
  width:100%;
  margin-top:24px;
  padding:24px;
}

.kengeri-gallery-full-panel > #cugb-photo-gallery{
  margin-top:0;
}

@media(max-width:1180px){
  .kengeri-intro-lead,
  .kengeri-community-block{
    grid-template-columns:minmax(0,1fr) 320px;
  }

  .kengeri-split-cards{
    grid-template-columns:1fr;
  }
}

@media(max-width:1050px){
  .kengeri-lower-layout{
    grid-template-columns:1fr;
  }

  .kengeri-lower-layout .side-stack{
    position:static;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:900px){
  .kengeri-intro-lead,
  .kengeri-feature-row,
  .kengeri-community-block,
  .kengeri-commitment-strip{
    grid-template-columns:1fr;
  }

  .kengeri-feature-row-reverse .kengeri-feature-copy,
  .kengeri-feature-row-reverse .kengeri-photo-pair{
    grid-column:auto;
    grid-row:auto;
  }

  .kengeri-photo-pair{
    height:auto;
  }

  .kengeri-photo-pair .kengeri-editorial-photo:first-child,
  .kengeri-photo-pair .kengeri-editorial-photo:last-child{
    height:280px;
  }

  .kengeri-community-photo{
    height:320px;
  }
}

@media(max-width:760px){
  .kengeri-intro-full,
  .kengeri-gallery-full-panel{
    padding:18px;
  }

  .kengeri-intro-lead,
  .kengeri-feature-row,
  .kengeri-community-block,
  .kengeri-commitment-strip{
    gap:18px;
  }

  .kengeri-editorial-photo-large{
    height:260px;
  }

  .kengeri-photo-pair{
    grid-template-columns:1fr 1fr;
  }

  .kengeri-photo-pair .kengeri-editorial-photo:first-child,
  .kengeri-photo-pair .kengeri-editorial-photo:last-child{
    height:210px;
  }

  .kengeri-content-card{
    grid-template-columns:1fr;
  }

  .kengeri-content-card img{
    height:220px;
    min-height:220px;
  }

  .kengeri-community-block{
    padding:20px;
  }

  .kengeri-community-photo{
    height:260px;
  }

  .kengeri-commitment-strip .kengeri-editorial-photo{
    height:230px;
  }

  .kengeri-lower-layout .side-stack{
    grid-template-columns:1fr;
  }
}

@media(max-width:520px){
  .kengeri-photo-pair{
    grid-template-columns:1fr;
  }

  .kengeri-photo-pair .kengeri-editorial-photo:first-child,
  .kengeri-photo-pair .kengeri-editorial-photo:last-child{
    height:220px;
  }
}

@media(prefers-reduced-motion:reduce){
  .kengeri-editorial-photo img{
    transition:none;
  }
  .kengeri-editorial-photo:hover img{
    transform:none;
  }
}
