/* ============ Saksham Bhartiya — shared styles ============ */
:root {
  --bg: #F7F5F0;          /* off-white page */
  --bg-2: #EFECE5;        /* alternate band */
  --card: #FFFFFF;
  --line: #E2DED5;
  --line-2: #CFCAC0;
  --text: #15191F;        /* near-black ink */
  --soft: #3D4552;
  --muted: #6E7480;
  --navy: #14284B;        /* primary accent */
  --navy-2: #1F3A68;
  --gold: #9C7634;        /* small labels on light */
  --gold-light: #D9B46A;  /* accents on dark hero */
  --dark: #0B0C0E;        /* hero background */
  --radius: 14px;
  --max: 1180px;
  --serif: "Ovo", Georgia, "Times New Roman", serif;
  --sans: "Almarai", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
strong, b { font-weight: 700; color: var(--text); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav (Ayaan-style) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, 0.95);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 100px; gap: 24px; max-width: 1344px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-name { font-family: var(--script); font-weight: 400; font-size: 40px; line-height: 1; color: var(--text); letter-spacing: 0; padding-top: 4px; white-space: nowrap; }
.nav-links { display: flex; gap: 34px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--sans); text-decoration: none; font-size: 16px; font-weight: 400; color: var(--text);
  letter-spacing: .2px; padding: 4px 0; transition: opacity .2s;
  text-underline-offset: 6px; text-decoration-thickness: 1px;
}
.nav-links a:hover { opacity: .6; }
.nav-links a[aria-current="page"] { text-decoration-line: underline; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .25s; }

/* ---------- Buttons, chips, labels ---------- */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 6px; font-size: 15px; font-weight: 600;
  text-decoration: none; transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: #fff; }
.chip {
  display: inline-block; font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 6px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--soft); text-decoration: none;
  transition: border-color .2s, color .2s;
}
a.chip:hover { border-color: var(--navy); color: var(--navy); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.link-arrow {
  font-size: 15px; font-weight: 700; text-decoration: none; color: var(--navy);
  border-bottom: 1.5px solid rgba(20, 40, 75, .3); padding-bottom: 2px; transition: border-color .2s;
}
.link-arrow:hover { border-color: var(--navy); }
.link-arrow::after { content: " \2192"; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 84px 0 52px; border-bottom: 1px solid var(--line); }
.page-head h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 68px);
  line-height: 1.06; letter-spacing: -1px; margin: 16px 0 16px;
}
.page-head p { font-size: 19px; color: var(--soft); max-width: 680px; }

/* ---------- Home hero: the only dark section (matches Ayaan's) ---------- */
.hero { background: #000; color: #fff; min-height: 725px; display: flex; align-items: center; padding: 96px 0; }
.hero .wrap { max-width: 1344px; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; color: #fff;
  font-size: 47px; line-height: 52.5px; letter-spacing: -0.94px; margin: 0 0 56px;
}
.hero-lede {
  font-family: var(--serif); font-weight: 400; color: #fff;
  font-size: 26.4px; line-height: 30.9px; max-width: 700px; margin: 0 0 64px;
}
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; max-width: 370px; height: 67px; border-radius: 300px;
  border: 2px solid #BDB2C3; color: #BDB2C3; background: transparent;
  font-family: var(--sans); font-size: 16px; font-weight: 400; text-decoration: none;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: #BDB2C3; color: #000; }
.hero-photo { justify-self: end; width: 100%; max-width: 534px; }
.hero-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 55% 30%; border-radius: 40px; }

/* ---------- Home press row (matches Ayaan's newspaper clippings) ---------- */
.press { padding: 72px 0 96px; }
.press .wrap { max-width: 1344px; }
.press-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: start; }
.press-item { display: block; text-decoration: none; }
.press-item img { width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgba(0,0,0,.45); transition: transform .3s; }
.press-item:hover img { transform: translateY(-3px); }
.press-cap { display: block; margin-top: 14px; font-family: var(--sans); font-size: 15px; color: var(--soft); text-align: center; }

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--line); background: var(--card); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 40px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.2vw, 52px); line-height: 1; color: var(--navy); }
.stat-label { font-size: 15px; font-weight: 600; color: var(--soft); margin-top: 10px; max-width: 220px; }

/* ---------- Sections ---------- */
section.block { padding: 100px 0; }
section.block.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.sec-title { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -.6px; margin-top: 10px; }
.sec-intro { font-size: 18px; color: var(--soft); max-width: 560px; }

/* ---------- Featured (big screenshot cards) ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.feature {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 30px 60px -36px rgba(20,25,31,.45); }
.feature-shot { aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.feature-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s; }
.feature:hover .feature-shot img { transform: scale(1.03); }
.feature-body { padding: 28px 30px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.feature-src { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.feature h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.2vw, 27px); line-height: 1.28; }
.feature p { color: var(--soft); font-size: 16px; }
.feature .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- Explore cards (home) ---------- */
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.explore a {
  display: block; text-decoration: none; padding: 30px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--line); transition: border-color .25s, transform .25s;
}
.explore a:hover { border-color: var(--navy); transform: translateY(-3px); }
.explore h3 { font-family: var(--serif); font-weight: 400; font-size: 25px; margin-bottom: 8px; }
.explore p { color: var(--soft); font-size: 15px; margin-bottom: 18px; }
.explore span { font-weight: 700; color: var(--navy); font-size: 15px; }

/* ---------- Activities list (Ayaan-style entries) ---------- */
.entries { border-top: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 440px 1fr; gap: 56px; align-items: start; padding: 56px 0; border-bottom: 1px solid var(--line); }
.entry-media { border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--card); border: 1px solid var(--line); }
.entry-media img { width: 100%; height: 100%; object-fit: cover; }
.entry-media.logo { background: #fff; display: grid; place-items: center; }
.entry-media.logo img { width: 58%; height: 58%; object-fit: contain; }
.entry-media.stats-media {
  background: var(--card);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; align-content: center; padding: 36px;
  border-top: 3px solid var(--navy);
}
.entry-media.stats-media b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.4vw, 44px); line-height: 1; color: var(--navy); }
.entry-media.stats-media span { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.entry-body { display: flex; flex-direction: column; gap: 14px; }
.entry-meta { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); }
.entry h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -.3px; }
.entry p { color: var(--soft); font-size: 17px; }
.entry ul { list-style: none; display: grid; gap: 8px; }
.entry li { color: var(--soft); font-size: 16px; padding-left: 20px; position: relative; }
.entry li::before { content: ""; position: absolute; left: 0; top: 12px; width: 9px; height: 2px; background: var(--navy); }
.metrics { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); }
.metrics b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; color: var(--navy); }
.metrics span { font-size: 13px; font-weight: 600; color: var(--muted); }
.entry-links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 4px; }

/* small grid of other activities */
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini > div { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.mini h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.mini .role { font-size: 14px; color: var(--gold); font-weight: 700; margin: 4px 0 10px; }
.mini p { font-size: 15px; color: var(--soft); }

/* ---------- Experience ---------- */
.xp { border-top: 1px solid var(--line); }
.xp-row { display: grid; grid-template-columns: 300px 1fr auto; gap: 48px; padding: 36px 0; border-bottom: 1px solid var(--line); align-items: start; }
.xp-logo { width: 140px; height: 64px; border-radius: 10px; overflow: hidden; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); position: relative; }
.xp-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8px 12px; }
.xp-logo.cover img { object-fit: cover; padding: 0; }
.xp-logo.square img { padding: 8px; }
.xp-logo.wide img { padding: 4px 6px; }
.xp-org { font-family: var(--serif); font-weight: 400; font-size: 25px; line-height: 1.2; }
.xp-tag { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--gold); }
.xp-role { font-weight: 700; font-size: 18px; }
.xp-desc { color: var(--soft); margin-top: 8px; max-width: 640px; font-size: 16px; }
.xp-date { font-size: 15px; font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Honors ---------- */
.honors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.honor { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 26px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.honor-year { font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--navy); line-height: 1.2; }
.honor h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.honor p { font-size: 15px; color: var(--soft); margin-top: 4px; }

/* ---------- Education ---------- */
.edu-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.edu-card h2 { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.15; }
.edu-card .sub { color: var(--gold); font-weight: 700; margin: 6px 0 16px; }
.edu-card p { color: var(--soft); }
.edu-card h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.edu-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.papers { display: grid; gap: 20px; }
.paper { display: grid; grid-template-columns: 150px 1fr; gap: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 34px; }
.paper-year { font-family: var(--serif); font-weight: 400; font-size: 32px; color: var(--navy); }
.paper-type { font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); }
.paper h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.3; }
.paper p { color: var(--soft); margin-top: 10px; }
.badge { display: inline-flex; margin-top: 14px; font-size: 14px; font-weight: 700; padding: 6px 14px; border-radius: 6px; background: #F3ECDD; color: #7A5A22; border: 1px solid #E3D5B8; }
.beyond { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.beyond > div { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.beyond h3 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 6px; }
.beyond p { font-size: 15px; color: var(--soft); }

/* ---------- Contact ---------- */
.contact-box { text-align: center; padding: 40px 0 20px; }
.contact-box h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; letter-spacing: -.8px; max-width: 780px; margin: 0 auto 18px; }
.contact-box p { color: var(--soft); font-size: 18px; max-width: 600px; margin: 0 auto 32px; }
.contact-box .btn-row { justify-content: center; }
.socials { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

/* ---------- Footer (Ayaan-style) ---------- */
footer { background: #EBEAEB; padding: 72px 0 56px; }
footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.foot-name { font-family: var(--serif); font-weight: 400; font-size: 26.4px; color: #000; }
.foot-icons { display: flex; gap: 16px; }
.foot-icons a { width: 24px; height: 24px; color: #000; transition: opacity .2s; }
.foot-icons a:hover { opacity: .6; }
.foot-icons svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot-copy { font-size: 13px; color: var(--muted); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
  }
  .nav.open .nav-links a { display: block; padding: 13px 0; font-size: 17px; }
  .nav.open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav.open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero .wrap { grid-template-columns: 1fr; gap: 56px; }
  .hero-photo { justify-self: center; max-width: 480px; }
  .hero { min-height: 0; }
  .entry { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .entry-media { max-width: 600px; }
  .xp-row { grid-template-columns: 1fr; gap: 10px; }
  .xp-date { order: -1; }
  .edu-card { grid-template-columns: 1fr; }
  .beyond, .mini { grid-template-columns: repeat(2, 1fr); }
  .explore { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 64px; }
  .hero h1 { font-size: 38px; line-height: 44px; margin-bottom: 28px; }
  .hero-lede { font-size: 19px; line-height: 27px; margin-bottom: 40px; }
  .btn-outline { height: 58px; }
  .hero-photo img { border-radius: 28px; }
  .press-grid { grid-template-columns: 1fr; }
  .nav .wrap { height: 80px; }
  .brand-name { font-size: 34px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 28px 12px; border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
  section.block { padding: 72px 0; }
  .page-head { padding: 56px 0 40px; }
  .features, .honors, .beyond, .mini { grid-template-columns: 1fr; }
  .feature-body { padding: 22px; }
  .entry-media.stats-media { padding: 26px; }
  .paper { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .edu-card { padding: 26px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- Ayaan-style card grid (Activities & Experience) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cards-page { background: #5C5751; padding: 95px 0 110px; }
.cards-page .wrap { max-width: 1344px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.card {
  background: #fff; color: #000; padding: 41.86px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.card-media { width: 251px; max-width: 100%; aspect-ratio: 251 / 252; margin: 0 auto 33.5px; overflow: hidden; background: #fff; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media.contain img { object-fit: contain; }
.card-media.pad img { padding: 18px; }
.card-media.dark { background: #0F0C38; }
.card-media.figure { background: #EEEBE6; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.card-media.figure b { font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1; color: #000; }
.card-media.figure span { font-family: var(--sans); font-size: 13px; letter-spacing: .8px; text-transform: uppercase; color: #5C5751; margin-top: 14px; }
.card h2 { font-family: var(--serif); font-weight: 400; font-size: 19.456px; line-height: 21.67px; color: #000; letter-spacing: 0; }
.card-role { font-family: var(--sans); font-size: 12.5px; letter-spacing: .8px; text-transform: uppercase; color: #5C5751; margin-top: 12px; }
.card-text { margin: 22px 0 34px; font-family: var(--sans); font-size: 14.272px; line-height: 21.408px; color: #000; }
.card-text p + p { margin-top: 21.4px; }
.card-btn {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center;
  background: #000; color: #fff; font-family: var(--sans); font-size: 12.544px; line-height: 1;
  padding: 24px 35.2px; border-radius: 300px; text-decoration: none; transition: opacity .2s;
}
.card-btn:hover { opacity: .75; }
.cards-sub { font-family: var(--serif); font-weight: 400; font-size: 32px; color: #fff; text-align: center; margin: 96px 0 40px; }
@media (max-width: 1040px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .cards-page { padding: 56px 0 72px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 32px 24px; }
  .cards-sub { font-size: 26px; margin: 64px 0 28px; }
}
.card-media.zenith { background: #1A1926; display: grid; place-items: center; }
.card-media.zenith img { width: 132px; height: auto; object-fit: contain; }

/* ---------- Collage (Activities) ---------- */
.collage { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 260px); gap: 12px; }
.collage-item { display: block; overflow: hidden; background: #3f3b36; }
.collage-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.collage-item:hover img { transform: scale(1.04); }
.collage .c1 { grid-column: span 2; grid-row: span 2; }
.collage-cta { text-align: center; margin-top: 32px; }
.btn-light {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: #000; font-family: var(--sans); font-size: 12.544px; line-height: 1;
  padding: 24px 35.2px; border-radius: 300px; text-decoration: none; transition: opacity .2s;
}
.btn-light:hover { opacity: .8; }

/* ---------- Gallery page ---------- */
.gallery-title { font-family: var(--serif); font-weight: 400; font-size: 47px; line-height: 1.1; color: #fff; text-align: center; letter-spacing: -0.9px; }
.gallery-intro { font-family: var(--sans); color: #E4DFD8; text-align: center; margin: 14px 0 48px; font-size: 16px; }
.gallery { columns: 3 320px; column-gap: 16px; }
.g-item { break-inside: avoid; margin: 0 0 16px; background: #fff; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-open img { width: 100%; height: auto; display: block; }
.g-item figcaption { font-family: var(--sans); font-size: 14.272px; line-height: 1.5; color: #000; padding: 14px 16px 16px; text-align: center; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; padding: 24px 72px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox figcaption { color: #eee; font-family: var(--sans); font-size: 15px; margin-top: 14px; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 44px; line-height: 1; padding: 12px; opacity: .8; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); font-size: 64px !important; }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); font-size: 64px !important; }

@media (max-width: 1040px) {
  .collage { grid-template-columns: repeat(2, 1fr); grid-template-rows: 300px repeat(2, 200px); }
  .collage .c1 { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 720px) {
  .collage { grid-template-rows: 220px repeat(2, 150px); gap: 8px; }
  .gallery-title { font-size: 38px; }
  .lightbox { padding: 16px; }
  .lb-prev, .lb-next { top: auto !important; bottom: 8px; transform: none !important; }
}

/* Gallery collage as a card beside Research (fills the last row) */
.collage-card { grid-column: span 2; }
.collage-card .collage {
  width: 100%; flex: 1; margin: 26px 0 34px; min-height: 420px;
  grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 10px;
}
.collage-card .collage .c1 { grid-column: span 2; grid-row: span 2; }
@media (max-width: 1040px) {
  .collage-card { grid-column: span 1; }
  .collage-card .collage { grid-template-columns: repeat(2, 1fr); grid-template-rows: 1.4fr 1fr 1fr; min-height: 460px; }
  .collage-card .collage .c1 { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 720px) {
  .collage-card .collage { min-height: 380px; gap: 8px; }
}
