/* eMemorybox v2 — school memory pages (Kings Meadow, St Hubert's, templates) and the password gate.
   Loaded after v2.css. The content is the school's own, verbatim; this only sets the v2 look. */
.school-page section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.school-page section.s-first { padding-top: 1.5rem; }
.school-crumb { padding-top: 1.2rem; font-size: 0.95rem; color: var(--ink-soft); }
.school-crumb a { color: var(--ink-soft); text-decoration: none; }
.school-crumb a:hover { color: var(--accent-deep); }
.school-crumb span { color: var(--ink); }
.sh { text-align: center; max-width: 820px; margin: 0 auto 1.2rem; }
h1.sh { margin-bottom: 1.4rem; }
h3.sh { margin-top: 2.2rem; font-size: clamp(1.35rem, 2.4vw, 1.7rem); color: var(--accent-deep); }
.stext { max-width: 720px; margin: 0 auto 1.2rem; text-align: center; color: var(--ink); }
.stext p { margin: 0 0 0.9rem; }
.stext p:empty { display: none; }
.stext h2, .stext h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.stext a { color: var(--accent-deep); }
.slogo { margin: 0 auto 1rem; display: flex; justify-content: center; }
.slogo img { width: auto; max-height: 120px; }
.slogo + .slogo { margin-top: -0.4rem; }
.sfig { margin: 1.5rem auto 2rem; max-width: 900px; }
.sfig img { width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.sfig figcaption { margin-top: 0.6rem; text-align: center; font-size: 0.95rem; color: var(--ink-soft); }
.sgroup { margin: 0 0 1rem; }
.sgroup .slogo { display: inline-flex; margin: 0 0.6rem 0.8rem; vertical-align: middle; }
.sgroup { text-align: center; }
.scard { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem 1.6rem; align-items: center; max-width: 760px; margin: 1.6rem auto; padding: 1.4rem 1.6rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: left; }
.scard .slogo, .scard .sfig { margin: 0; grid-row: span 3; }
.scard .sfig img { max-width: 160px; border-radius: var(--radius); box-shadow: none; }
.scard .slogo img { max-height: 160px; border-radius: var(--radius); }
.scard .stext, .scard .sh { text-align: left; margin: 0; max-width: none; }
.scard .sh { font-size: clamp(1.2rem, 2vw, 1.45rem); }
.scard .saudio { grid-column: 2; }
.saudio { display: flex; gap: 1rem; align-items: center; max-width: 720px; margin: 1rem auto; }
.saudio img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; flex: none; }
.saudio > div { flex: 1 1 100%; width: 100%; min-width: 0; }
.saudio .track { margin: 0 0 0.3rem; font-family: var(--serif); font-size: 1.15rem; }
.saudio audio { display: block; width: 100%; min-width: 240px; }
.sline { width: 72px; margin: 1.6rem auto; border: 0; border-top: 2px solid var(--accent-soft); }
.sbtn { display: inline-block; margin: 1.4rem 0.4rem 0; }
.school-page section .wrap { text-align: center; }
.school-page .stext, .school-page .scard .stext { text-align: inherit; }
.svideo { max-width: 760px; margin: 1.4rem auto 2rem; }
.svideo .video-frame.wide { max-width: 760px; }
.svideo .video-frame.wide video, .svideo .svimeo iframe { aspect-ratio: 16 / 9; width: 100%; height: auto; border: 0; display: block; }
.svideo .svimeo iframe { background: #1d171f; }
.svideo .cap { margin: 0.6rem 0 0; text-align: center; font-size: 0.95rem; color: var(--ink-soft); }
/* photo galleries: a tight grid of square tiles, the lightbox opens the full picture */
.sg { list-style: none; margin: 0.6rem auto 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem; }
.sg li { margin: 0; position: relative; }
.sg li a.lb { display: block; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.sg li img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.25s; }
.sg li a.lb:hover img { transform: scale(1.03); }
.sg .cap { display: block; margin-top: 0.3rem; font-size: 0.85rem; line-height: 1.3; color: var(--ink-soft); text-align: center; }
.sg .g-video video { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); background: #1d171f; }
/* menu galleries: each tile is a link to a year's page */
.sg-links { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; max-width: 960px; }
.sg-links a { display: block; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.sg-links a:hover { transform: translateY(-3px); box-shadow: var(--shadow-deep); }
.sg-links a img { aspect-ratio: 1 / 1; object-fit: cover; }
.sg-links a span { display: block; padding: 0.7rem 0.8rem 0.85rem; text-align: center; font: 600 0.95rem/1.3 var(--sans); }
/* lightbox */
.lightbox[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(20, 12, 15, 0.94); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 84vh; width: auto; height: auto; border-radius: 6px; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6); }
.lightbox button { position: absolute; background: rgba(250, 246, 241, 0.14); border: 0; color: #faf6f1; width: 52px; height: 52px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(250, 246, 241, 0.3); }
.lightbox .lb-close { top: 18px; right: 18px; }
.lightbox .lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; text-align: center; color: #faf6f1; font-size: 0.95rem; padding: 0 70px; }
/* the password gate */
.gate-main { min-height: 70vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 3rem var(--pad); }   /* audit 4 Nov 2026: without a bounded column the 460px box overflowed a phone */
.gate-box { width: min(460px, 100%); max-width: 100%; padding: 2.2rem 2rem 1.8rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow); text-align: center; }
.gate-box img { margin: 0 auto 0.8rem; }
.gate-box h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.4rem; }
.gate-form { margin-top: 1.2rem; }
.gate-form input { width: 100%; padding: 0.85rem 1rem; margin-bottom: 0.8rem; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); font: 400 1.05rem/1.4 var(--sans); color: var(--ink); }
.gate-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.gate-form .btn { width: 100%; justify-content: center; }
.gate-form .form-status { min-height: 1.4em; margin: 0.6rem 0 0; color: var(--ink-soft); }
.gate-home { margin: 1rem 0 0; font-size: 0.95rem; }
@media (max-width: 700px) {
  .scard { grid-template-columns: 1fr; text-align: center; }
  .scard .slogo, .scard .sfig { grid-row: auto; justify-self: center; }
  .scard .stext, .scard .sh { text-align: center; }
  .scard .saudio { grid-column: 1; }
  .sg { grid-template-columns: repeat(2, 1fr); }
  .sg-links { grid-template-columns: repeat(2, 1fr); }
}
/* page head: the page name is the one h1; the school's own headings follow as h2/h3 */
.school-head { padding-top: 1.4rem; text-align: center; }
.school-head .school-crumb { margin: 0 0 0.5rem; padding: 0; }
.school-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.4rem; }
.school-page .s-first { padding-top: 0.6rem; }
