/* GNHS welcome screen: original photos, uniform gallery, five-second maroon progress bar. */
.gnhs-welcome {
  position:fixed;inset:0;z-index:10020;
  display:grid;place-items:center;
  min-height:100vh;min-height:100dvh;
  padding:calc(12px + env(safe-area-inset-top)) 16px calc(12px + env(safe-area-inset-bottom));
  background:#f7f4f0;color:#fff;isolation:isolate;overflow:hidden;
}
.gnhs-welcome-photos {
  position:absolute;inset:0;z-index:-3;display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  grid-template-rows:repeat(2,minmax(0,1fr));
  gap:6px;overflow:hidden;
}
.gnhs-welcome-photo {
  width:100%;height:100%;min-width:0;min-height:0;display:block;
  object-fit:contain;object-position:center;
  background:#eae6e2;
  border-radius:4px;
  /* Full photo remains visible in an equal-size cell on every screen. */
  filter:brightness(1.03) saturate(1.04);
}
.gnhs-welcome-photo--principal {order:-3}
.gnhs-welcome-photo--faculty {order:-2}
.gnhs-welcome-photo--staff {order:-1}
.gnhs-welcome-scrim {
  position:absolute;inset:0;z-index:-2;
  background:linear-gradient(180deg,rgba(14,8,11,.08),rgba(14,8,11,.15) 52%,rgba(14,8,11,.10));
  pointer-events:none;
}
.gnhs-welcome-card {
  width:min(100%,560px);max-height:calc(100dvh - 24px);
  padding:12px 7px;text-align:center;display:flex;align-items:center;
  flex-direction:column;justify-content:center;
  /* No large maroon card covering the school photos. */
  border:0;border-radius:0;box-shadow:none;background:transparent;
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
.gnhs-welcome-seal {
  width:clamp(62px,11vh,110px);height:clamp(62px,11vh,110px);
  object-fit:contain;background:#fff;border-radius:50%;padding:5px;
  border:3px solid #fff;flex-shrink:0;
  box-shadow:0 2px 14px rgba(0,0,0,.35);
}
.gnhs-welcome-eyebrow {
  text-transform:uppercase;letter-spacing:.09em;
  font-size:clamp(11px,2vw,14px);font-weight:800;color:#fff;
  margin:13px 0 3px;line-height:1.4;
  text-shadow:0 2px 7px #210918,0 0 12px #210918;
}
.gnhs-welcome-card h2 {
  color:#fff;font-weight:850;font-size:clamp(31px,5vw,49px);
  margin:3px 0 9px;line-height:1.1;letter-spacing:-.02em;
  text-shadow:0 2px 8px #210918,0 0 20px #210918;
}
.gnhs-welcome-quote {
  color:#fff;max-width:30ch;font-size:clamp(15px,2.2vw,20px);
  font-style:italic;font-weight:650;line-height:1.45;margin:0 auto 19px;
  text-wrap:balance;text-shadow:0 2px 7px #210918,0 0 12px #210918;
}
.gnhs-welcome-progress {
  width:100%;height:clamp(10px,1.8vh,15px);
  background:rgba(255,255,255,.92);border:2px solid #fff;
  overflow:hidden;border-radius:999px;flex-shrink:0;
  box-shadow:0 2px 15px rgba(0,0,0,.4);
}
.gnhs-welcome-progress span {
  display:block;width:0;height:100%;
  background:linear-gradient(90deg,#660c28,#97163d,#6f0d2d); /* Maroon only */
  border-radius:inherit;animation:gnhs-five-seconds 5s linear both;
}
@keyframes gnhs-five-seconds {from {width:0}to {width:100%}}
@media (max-width:780px) {
  .gnhs-welcome-photos {
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:repeat(5,minmax(0,1fr));
    gap:4px;
  }
  .gnhs-welcome-card {width:min(100%,420px);padding:11px 7px;}
}
@media (max-height:550px) and (min-width:650px) {
  .gnhs-welcome-card {padding:8px;width:min(100%,660px);}
  .gnhs-welcome-seal {width:57px;height:57px;}
  .gnhs-welcome-eyebrow {margin-top:6px;}
  .gnhs-welcome-card h2 {font-size:28px;margin:2px 0 4px;}
  .gnhs-welcome-quote {font-size:14px;margin-bottom:8px;max-width:none;}
}
@media (max-height:600px) and (max-width:649px) {
  .gnhs-welcome-card {padding:10px 5px;}
  .gnhs-welcome-seal {width:58px;height:58px;}
  .gnhs-welcome-eyebrow {margin-top:7px;}
  .gnhs-welcome-card h2 {font-size:27px;margin:3px 0;}
  .gnhs-welcome-quote {font-size:13px;margin-bottom:10px;}
}
@media (prefers-reduced-motion:reduce) {
  .gnhs-welcome-progress span {animation-timing-function:steps(8,end);}
}

/* Equal-sized gallery tiles: no image spans more than one cell. */
@media (min-width:781px) and (max-width:1050px) {
  .gnhs-welcome-photos {gap:4px;}
}
@media (max-height:550px) and (min-width:781px) {
  .gnhs-welcome-photos {
    grid-template-columns:repeat(5,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
  }
}
