
/* Enactus SLC CMS additions + layout cleanup */
.cms-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:22px}
.cms-gallery img{width:100%;height:220px;display:block;object-fit:cover;border-radius:18px}
.cms-project-gallery img{aspect-ratio:4/3;height:auto}
.cms-event-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.cms-event-gallery img{width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;border-radius:18px}
.cms-no-image{display:grid;place-items:center;background:var(--soft);color:var(--muted);font-size:11px;border-radius:18px;min-height:150px}
@media(max-width:700px){
 .cms-gallery,.cms-event-gallery{grid-template-columns:1fr 1fr;gap:8px}
 .cms-gallery img,.cms-event-gallery img{border-radius:14px}
}
/* Avoid oversized desktop whitespace introduced by viewport-height hero rules. */
@media(min-width:901px){
 .hero{min-height:auto!important}
 .hero.container,.hero>.container{min-height:0!important}
}


/* Final public-site layout safety pass */
html,body{max-width:100%;overflow-x:hidden}
@media(max-width:900px){
  main,section,header,footer{max-width:100%;box-sizing:border-box}
  img{max-width:100%}
}

/* Smooth CMS hydration: cards remain stable when fresh data arrives. */
.cms-stable-hydration .achievement-card,
.cms-stable-hydration .project-card,
.cms-stable-hydration [data-achievement-card],
.cms-stable-hydration [data-project-card] {
  transition-property: box-shadow, border-color, background-color !important;
}
.cms-stable-hydration img {
  content-visibility: auto;
}

/* FINAL CMS hydration guard: no visible second paint/reflow of cards. */
.cms-hydrating,
.cms-hydrating * {
  animation: none !important;
  transition: none !important;
}
.cms-hydrating {
  contain: layout paint;
}
.cms-hydrating img {
  opacity: 1 !important;
  transform: none !important;
}


/* Android tap highlight only */
html { -webkit-tap-highlight-color: transparent; }
