/* ===========================================================
   Public school website — Wadi El-Nil Private Schools
   Arabic-first, RTL (logical properties throughout). Navy + gold.
   Scoped to body.site; it does not touch the ERP layouts.
   =========================================================== */

:root {
    --navy-950: #061729;
    --navy-900: #0b2440;
    --navy-800: #11335a;
    --navy-600: #24558a;
    --navy-100: #e6edf6;
    --gold-600: #a98428;
    --gold-500: #c9a24b;
    --gold-400: #dcbc6e;
    --gold-100: #f7efd9;
    --ink: #14243a;
    --muted: #5a6a7e;
    --surface: #f4f6fa;
    --line: #e1e7ef;
    --white: #fff;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(11, 36, 64, .10);
    --shadow-lg: 0 22px 50px rgba(6, 23, 41, .22);
    --font-display: "Reem Kufi", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --font-head: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
    --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, "Noto Naskh Arabic", sans-serif;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body.site { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.8; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
:where(body.site) img { max-width: 100%; height: auto; display: block; }
:where(body.site) a { color: inherit; }
:where(body.site) ul { list-style: none; margin: 0; padding: 0; }
:where(body.site) :is(h1, h2, h3, p, figure) { margin: 0; }
body.site :focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold-500); color: var(--navy-950); padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: 999px; border: 2px solid transparent; font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-gold { background: var(--gold-500); color: var(--navy-950); box-shadow: 0 6px 18px rgba(201, 162, 75, .35); }
.btn-gold:hover { background: var(--gold-400); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(201, 162, 75, .5); }
.header-row { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-ar { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--navy-900); }
.brand-en { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.main-nav { flex: 1; min-width: 0; }
.main-nav ul { display: flex; justify-content: center; gap: 4px; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--navy-900); white-space: nowrap; position: relative; }
.main-nav a:hover { background: var(--navy-100); }
.main-nav a.is-active { color: var(--navy-900); font-weight: 700; }
.main-nav a.is-active::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--gold-500); }
.nav-login-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; border-radius: 10px; color: var(--navy-900); cursor: pointer; }
.nav-toggle .ico { width: 24px; height: 24px; }
.nav-toggle .ico-close { display: none; }
.nav-toggle[aria-expanded="true"] .ico-open { display: none; }
.nav-toggle[aria-expanded="true"] .ico-close { display: block; }

@media (max-width: 1080px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { position: absolute; inset-inline: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(6, 23, 41, .12); padding: 8px 20px 20px; display: none; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
    .main-nav[data-open="true"] { display: block; }
    .main-nav ul { flex-direction: column; justify-content: flex-start; gap: 0; }
    .main-nav a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .main-nav a.is-active::after { inset-inline: 8px; bottom: -1px; }
    .nav-login-mobile { display: block; padding-top: 16px; }
    .nav-login-mobile .btn { width: 100%; justify-content: center; }
    .header-row { gap: 12px; }
    .header-actions { margin-inline-start: auto; }
}
@media (max-width: 560px) {
    .login-btn { padding: 9px 14px; font-size: 14.5px; }
    .brand-en { display: none; }
    .brand-ar { font-size: 17px; }
    .brand-mark { width: 38px; }
}
@media (max-width: 400px) {
    .login-btn .ico { display: none; }
}
/* the mobile panel carries its own login button; the header one stays visible on every size on purpose */

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; background:
    radial-gradient(1100px 520px at 85% 10%, rgba(36, 85, 138, .55), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
    padding: 72px 0 150px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M36 6l8 22 22 8-22 8-8 22-8-22-22-8 22-8z' fill='none' stroke='%23c9a24b' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E"); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .02em; color: var(--gold-400); padding-bottom: 8px; margin-bottom: 18px; border-bottom: 2px solid rgba(201, 162, 75, .5); }
.hero h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.3; text-wrap: balance; }
.hero h1 .gold { color: var(--gold-400); display: inline-block; }
.lead { margin-top: 20px; font-size: clamp(17px, 1.7vw, 20px); color: rgba(255, 255, 255, .86); max-width: 34em; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-photo { justify-self: center; width: min(100%, 400px); position: relative; }
.hero-cap { margin-top: 14px; text-align: center; font-size: 14px; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }

.arch { position: relative; border-radius: 999px 999px 18px 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy-800); border: 3px solid var(--gold-500); box-shadow: var(--shadow-lg); }
.hero-photo .arch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 8px rgba(6, 23, 41, .35); pointer-events: none; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.arch-sm { aspect-ratio: 5 / 6; border-color: var(--gold-500); box-shadow: var(--shadow); }
.arch-sm img { object-position: 50% 30%; }

/* ---------- highlights (overlap the hero) ---------- */
.highlights { position: relative; z-index: 2; margin-top: -92px; }
.highlight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.highlight { background: #fff; border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.highlight:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(11, 36, 64, .16); }
.highlight h2 { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--navy-900); margin: 16px 0 8px; }
.highlight p { font-size: 15.5px; line-height: 1.8; color: var(--muted); }
.icon-disc { display: inline-flex; width: 56px; height: 56px; border-radius: 50%; align-items: center; justify-content: center; background: var(--navy-900); color: var(--gold-400); box-shadow: 0 0 0 5px var(--gold-100); }
.icon-disc .ico { width: 26px; height: 26px; }
.icon-disc-sm { width: 46px; height: 46px; box-shadow: 0 0 0 4px var(--gold-100); }
.icon-disc-sm .ico { width: 22px; height: 22px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--gold-600); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--gold-500); }
.kicker-light { color: var(--gold-400); }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.35; color: var(--navy-900); text-wrap: balance; }
.section-title-light { color: #fff; }
.section-sub { margin-top: 12px; color: var(--muted); font-size: 18px; max-width: 36em; }
.draft-tag { display: inline-block; margin: 10px 0 6px; padding: 3px 12px; border: 1px dashed var(--gold-600); color: var(--gold-600); background: var(--gold-100); border-radius: 999px; font-size: 13px; line-height: 1.7; }
.placeholder-note, .muted { color: var(--muted); }
.placeholder-note { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-media { position: relative; padding-bottom: 54px; }
.about-team-mini { position: absolute; inset-inline-end: -18px; bottom: 0; width: 58%; border-radius: 12px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-lg); }
.about-team-mini span { position: absolute; inset-inline: 0; bottom: 0; padding: 18px 12px 8px; background: linear-gradient(transparent, rgba(6, 23, 41, .85)); color: #fff; font-size: 14px; font-weight: 600; }
.about-copy p { color: #2b3b52; margin-top: 14px; }
.about-copy .draft-tag + p { margin-top: 10px; }
.vm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.vm-card { background: var(--surface); border-radius: var(--radius); padding: 18px 16px; border-top: 3px solid var(--gold-500); }
.vm-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy-900); }
.vm-card p { margin-top: 6px; font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.values-h { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy-900); margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chips li { padding: 6px 18px; border-radius: 999px; background: var(--navy-900); color: #fff; font-weight: 500; font-size: 15px; }
.chips li:nth-child(even) { background: var(--gold-100); color: var(--navy-900); }

/* ---------- stages ---------- */
.stages { background: var(--surface); }
.stage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.stage-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--line); }
.stage-photo { aspect-ratio: 16 / 10; overflow: hidden; }
.stage-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.stage-card:hover .stage-photo img { transform: scale(1.05); }
.stage-body { position: relative; padding: 34px 22px 24px; }
.stage-body .icon-disc { position: absolute; top: -23px; inset-inline-start: 22px; }
.stage-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--navy-900); }
.grade-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.grade-list li { padding: 3px 14px; border-radius: 999px; background: var(--navy-100); color: var(--navy-800); font-size: 14.5px; font-weight: 500; }

/* ---------- activities ---------- */
.act-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
.act { position: relative; overflow: hidden; border-radius: 16px; display: block; background: var(--navy-800); }
.act-wide { grid-column: span 2; grid-row: span 2; }
.act img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.act:hover img { transform: scale(1.06); }
.act-label { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 34px 16px 14px; background: linear-gradient(transparent, rgba(6, 23, 41, .88)); color: #fff; font-weight: 600; font-size: 16px; }
.act-label .ico { color: var(--gold-400); }
.sports { margin-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: linear-gradient(150deg, var(--navy-900), var(--navy-950)); color: #fff; border-radius: 22px; padding: 36px 44px; overflow: hidden; }
.sports-copy .icon-disc { margin-bottom: 14px; }
.sports-copy h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.4; }
.sports-copy p:last-child { margin-top: 12px; color: rgba(255, 255, 255, .82); max-width: 38em; }
.sports-poster { width: 190px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); border: 3px solid var(--gold-500); transform: rotate(-2deg); transition: transform .3s ease; }
.sports-poster:hover { transform: rotate(0) scale(1.03); }

/* ---------- news ---------- */
.news { background: var(--surface); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; border: 1px solid var(--line); }
.news-featured { grid-column: span 2; grid-row: span 2; }
.news-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.news-featured .news-photo { aspect-ratio: 16 / 11; }
.news-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-card:hover .news-photo img { transform: scale(1.05); }
.news-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 21px; line-height: 1.5; color: var(--navy-900); }
.news-featured h3 { font-size: 28px; }
.news-body p { color: var(--muted); font-size: 15.5px; }
.tag { align-self: flex-start; padding: 2px 12px; border-radius: 999px; background: var(--gold-100); color: var(--gold-600); font-size: 13px; font-weight: 700; }
.more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; color: var(--navy-800); font-weight: 700; text-decoration: none; }
.more:hover { color: var(--gold-600); }
.more .ico { transition: transform .2s ease; }
.more:hover .ico { transform: translateX(-4px); }

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter { padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy-900); font: 600 15px/1.2 var(--font-body); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--gold-500); }
.filter.is-on { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.gallery-grid { columns: 4 220px; column-gap: 14px; }
.g-item { break-inside: avoid; margin-bottom: 14px; }
.g-item[hidden] { display: none; }
.g-item a { position: relative; display: block; border-radius: 12px; overflow: hidden; background: var(--navy-100); }
.g-item img { width: 100%; height: auto; transition: transform .5s ease; }
.g-item a:hover img { transform: scale(1.05); }
.g-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 12px 10px; background: linear-gradient(transparent, rgba(6, 23, 41, .85)); color: #fff; font-size: 14.5px; font-weight: 600; opacity: 0; transition: opacity .25s; }
.g-item a:hover .g-cap, .g-item a:focus-visible .g-cap { opacity: 1; }
@media (hover: none) { .g-cap { opacity: 1; } }

/* ---------- video ---------- */
.video { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #fff; }
.video-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.video-copy p:last-child { margin-top: 14px; color: rgba(255, 255, 255, .8); }
.video-frame { border-radius: 18px; overflow: hidden; border: 3px solid var(--gold-500); box-shadow: var(--shadow-lg); background: #000; }
.video-frame video { display: block; width: 100%; height: auto; max-height: 70vh; background: #000; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; box-shadow: var(--shadow); }
.contact-card h3 { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--navy-900); margin: 14px 0 6px; }
.contact-card p { overflow-wrap: anywhere; }
.contact-card a { text-decoration: none; color: var(--navy-800); font-weight: 600; }
.contact-card a:hover { color: var(--gold-600); text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .8); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding-bottom: 36px; }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 10px 16px; }
.footer-logo img { width: 130px; height: auto; }
.footer-name { margin-top: 16px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; }
.footer-line { margin-top: 8px; font-size: 15px; }
.footer-h { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--gold-400); margin-bottom: 14px; }
.footer-links { display: grid; gap: 6px; }
.footer-links a { text-decoration: none; color: rgba(255, 255, 255, .82); }
.footer-links a:hover { color: var(--gold-400); text-decoration: underline; }
.footer-login { margin-top: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; font-size: 14px; color: rgba(255, 255, 255, .6); }

/* ---------- lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 20px; }
.lightbox::backdrop { background: rgba(4, 14, 26, .92); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { font-size: 16px; font-weight: 600; text-align: center; }
.lb-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn .ico { width: 24px; height: 24px; }
.lb-close { position: fixed; top: 16px; inset-inline-end: 16px; z-index: 2; }
body.lb-open { overflow: hidden; }

/* ---------- reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .highlight-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 48px; }
    .about-media { max-width: 520px; margin-inline: auto; width: 100%; }
    .act-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-featured { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 860px) {
    .hero { padding: 48px 0 130px; }
    .hero-grid { grid-template-columns: 1fr; gap: 36px; }
    .hero-photo { width: min(100%, 320px); }
    .vm-grid { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-id { grid-column: 1 / -1; }
    .sports { grid-template-columns: 1fr; padding: 28px 24px; }
    .sports-poster { justify-self: center; }
    .section { padding: 72px 0; }
}
@media (max-width: 600px) {
    body.site { font-size: 16px; }
    .highlights { margin-top: -80px; }
    .highlight-grid { grid-template-columns: 1fr; }
    .act-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
    .act-wide { grid-column: auto; grid-row: auto; }
    .news-grid { grid-template-columns: 1fr; }
    .news-featured { grid-column: auto; }
    .news-featured h3 { font-size: 23px; }
    .gallery-grid { columns: 2 140px; column-gap: 10px; }
    .footer-grid { grid-template-columns: 1fr; }
    .lightbox[open] { grid-template-columns: 1fr; padding: 12px; align-content: center; }
    .lb-prev, .lb-next { position: fixed; bottom: 16px; z-index: 2; }
    .lb-prev { inset-inline-start: 16px; }
    .lb-next { inset-inline-end: 16px; }
    .lightbox img { max-height: calc(100vh - 160px); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* stage card without a picture: the icon sits inside the card instead of overlapping a photo */
.stage-card.no-photo .stage-body { padding-top: 26px; }
.stage-card.no-photo .stage-body .icon-disc { position: static; margin-bottom: 14px; }

/* the sign-in button inside the mobile menu must keep its button look (the generic ".main-nav a" link style is more specific than ".btn") */
.main-nav .nav-login-mobile a.btn { display: flex; justify-content: center; width: 100%; padding: 14px 22px; border: 2px solid transparent; border-radius: 999px; font-size: 17px; font-weight: 600; color: var(--navy-950); background: var(--gold-500); }
.main-nav .nav-login-mobile a.btn:hover { background: var(--gold-400); }
.main-nav .nav-login-mobile a.btn::after { content: none; }
