/* ── Federle Lab – main stylesheet ── */

:root {
  --cream:    #f5f0e8;
  --green-lt: #c8d9b0;
  --green-dk: #1e3a1e;
  --brown:    #5c3a1e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--cream);
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(#000000);
}

/* ── Header / Nav ── */
header {
  background: #888888;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 40px;
}

.nav-left, .nav-right {
  display: flex;
  justify-content: space-evenly;
  flex: 1;
}

nav a {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  text-decoration: none;
  padding: 4px 8px;
}

nav a:hover,
nav a.active { color: var(--brown); font-weight: 700; }

.nav-ant {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.nav-ant svg { height: 44px; width: auto; display: block; }

/* Mobile dropdown menu — hidden on desktop, activated in the ≤768px block below */
.nav-toggle-checkbox { display: none; }

.nav-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
  cursor: pointer;
}

.nav-toggle-btn span {
  display: block;
  height: 3px;
  background: #000000;
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-dropdown { display: none; }

/* ── Footer ── */
footer {
  background: #888888;
  padding: 5px 20px;
  text-align: center;
  color: #000000;
  font-size: 0.75rem;
  font-family: 'IBM Plex Sans', sans-serif;
}

/* ── Page wrapper ── */
.page-content {
  min-height: calc(100vh - 60px);
}

/* ══════════════════════════════════════
   HOME PAGE
══════════════════════════════════════ */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.specimen {
  position: absolute;
  pointer-events: none;
}

#sp-pitcher {
  width: 1050px;
  top: -400px;
  left: -26%;
  transform: scaleX(-1) rotate(20deg);
}

#sp-caterpillar {
  width: 274px;
  bottom: 65px;
  top: auto;
  left: calc(2% + 140px);
}

#sp-butterfly {
  width: 200px;
  top: calc(50% - 300px);
  left: calc(50% - 368px);
}

#sp-stick-leaf {
  width: 280px;
  top: 0;
  right: calc(50% - 480px);
}

#sp-macaranga {
  width: 260px;
  bottom: 20px;
  top: auto;
  right: 0%;
}

.hero-centre {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0px;
}

.stamp-svg-wrap {
  transform: rotate(-88deg);
  transform-origin: center center;
  display: block;
  height: 530px;
  width: 200px;
  overflow: visible;
  margin-top: -139px;
  margin-bottom: -210px;
}

.lino-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.lino-svg-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transform: rotate(-90deg);
  transform-origin: center center;
  flex-shrink: 0;
}

.lino-butterfly { width: 90px; height: 90px; position: relative; top: -10px; }
.lino-butterfly svg { width: 90px; height: 90px; }
.lino-ant { width: 80px; height: 80px; position: relative; top: -10px; }
.lino-ant svg { width: 80px; }
.lino-pitcher { width: 184px; height: 184px; margin-left: -40px; margin-right: -40px; }
.lino-pitcher svg { width: 184px; }
.lino-beetle { width: 85px; height: 85px; position: relative; top: -10px; }
.lino-beetle svg { width: 85px; }

.home-about {
  background: #888888;
  padding: 60px 80px;
  max-width: 900px;
  margin: 40px auto;
  text-align: center;
}

.home-about h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(#000000);
}

.home-about p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 16px;
  text-align: left;
  color: var(#000000);
}

/* ══════════════════════════════════════
   RESEARCH PAGE
══════════════════════════════════════ */
#research-page {
  padding: 60px 80px 80px;
  max-width: 1060px;
  margin: 0 auto;
}

.research-heading {
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 48px;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.research-card {
  cursor: pointer;
  border: 2px solid var(--green-dk);
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: #b0b0b0;
}

.research-card:hover { box-shadow: 0 4px 16px rgba(30,58,30,0.15); }

.research-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.research-card .card-placeholder {
  width: 100%;
  height: 220px;
  background: #b0b0b0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(#000000);
  opacity: 0.5;
}

.research-card h3 {
  padding: 16px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  background: var(--cream);
}

.research-detail {
  display: none;
  grid-column: 1 / -1;
  background: #b0b0b0;
  border: 2px solid var(#000000);
  padding: 32px;
  position: relative;
}

.research-detail.open { display: block; }

.research-detail .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(#000000);
}

.research-detail p {
  font-size: 0.95rem;
  line-height: 1.85;
  margin-bottom: 16px;
}

.research-detail-figure {
  margin: 20px 0;
  text-align: center;
}

.research-detail-figure img {
  max-width: 100%;
  border: 2px solid var(--green-dk);
}

.research-detail-figure figcaption {
  margin-top: 8px;
  font-size: 0.85rem;
  font-style: italic;
  opacity: 0.8;
}

/* ══════════════════════════════════════
   PEOPLE PAGE
══════════════════════════════════════ */
#people-page {
  background: var(--cream);
  padding: 60px 40px 80px;
}

.people-heading {
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 40px;
}

.group-photo {
  max-width: 900px;
  margin: 0 auto 48px;
  border: 3px solid var(#000000);
  overflow: hidden;
}

.group-photo img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center 30%;
  max-height: 400px;
}

.pi-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto 60px;
  background: #b0b0b0;
  border: 2px solid var(#000000);
  padding: 32px;
}

.pi-photo {
  flex: 0 0 180px;
  width: 180px;
  height: 200px;
  overflow: hidden;
  border: 2px solid var(#000000);
}

.pi-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.pi-info { flex: 1; }

.pi-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.pi-title {
  font-size: 0.9rem;
  color: var(--brown);
  margin-bottom: 16px;
}

.pi-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 12px;
}

.pi-links { display: flex; flex-direction: column; gap: 4px; }

.pi-links a {
  font-size: 0.88rem;
  color: var(--brown);
  text-decoration: none;
}

.pi-links a:hover { text-decoration: underline; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.people-grid-bottom {
  display: flex;
  justify-content: center;
  gap: 28px;
  max-width: 900px;
  margin: 28px auto 0;
}

.people-grid-bottom .person-card {
  width: calc((900px - 2 * 28px) / 3);
  flex-shrink: 0;
}

.person-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px 16px;
  background: #b0b0b0;
  border: 2px solid var(#000000);
  transition: box-shadow 0.2s;
}

.person-card:hover { box-shadow: 0 4px 16px rgba(30,58,30,0.15); }

.person-photo {
  width: 140px;
  height: 160px;
  overflow: hidden;
  border: 2px solid var(#000000);
  margin-bottom: 12px;
}

.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.person-name { font-weight: 600; font-size: 0.95rem; text-align: center; margin-bottom: 4px; }
.person-position { font-size: 0.8rem; text-align: center; opacity: 0.75; }

.person-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.person-popup-overlay.open { display: flex; }

.person-popup {
  background: var(--cream);
  border: 2px solid var(#000000);
  max-width: 680px;
  width: 90%;
  padding: 32px;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(#000000);
}

.popup-inner { display: flex; gap: 24px; align-items: flex-start; }

.popup-photo {
  flex: 0 0 160px;
  width: 160px;
  height: 180px;
  overflow: hidden;
  border: 2px solid var(#000000);
}

.popup-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.popup-text { flex: 1; }
.popup-name { font-size: 1.2rem; font-weight: 600; margin-bottom: 4px; }
.popup-position { font-size: 0.88rem; color: var(--brown); margin-bottom: 12px; }
.popup-desc { font-size: 0.9rem; line-height: 1.75; margin-bottom: 12px; }

.popup-links { display: flex; flex-direction: column; gap: 4px; }
.popup-links a { font-size: 0.88rem; color: var(--brown); text-decoration: none; }
.popup-links a:hover { text-decoration: underline; }

.people-section-heading {
  font-size: 1.3rem;
  font-weight: 500;
  max-width: 900px;
  margin: 40px auto 24px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(#888888);
  text-align: center;
}

.former-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 700px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 16px;
  font-size: 0.92rem;
  text-align: center;
}

/* Collaborator entries include an institution, so they're longer than
   the plain names in Former Students — give them two wider columns */
.collaborators-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  gap: 14px 24px;
}

/* ══════════════════════════════════════
   PUBLICATIONS PAGE
══════════════════════════════════════ */
#publications-page {
  background: var(--cream);
  padding: 60px 80px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.pubs-heading {
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 48px;
}

.pub-year-group { margin-bottom: 32px; }

.pub-year {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  border-bottom: 1px solid var(#888888);
  padding-bottom: 4px;
  margin-bottom: 12px;
}

.pub-entry {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 2px solid var(#888888);
}

.pub-journal { font-style: italic; }

.pub-entry a {
  color: var(--brown);
  text-decoration: none;
  font-size: 0.82rem;
}

.pub-entry a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   NEWS PAGE
══════════════════════════════════════ */
#news-page {
  background: var(--cream);
  padding: 60px 0 80px;
}

.news-heading {
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 60px;
}

.news-layout {
  position: relative;
  padding: 0 40px 0 0;
}

.news-pitcher {
  float: left;
  width: 42%;
  margin-top: -200px;
  pointer-events: none;
}

.news-pitcher img {
  width: 100%;
  height: auto;
  display: block;
}

.news-boxes {
  margin-left: 44%;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-right: 40px;
}

.news-boxes::after {
  content: '';
  display: table;
  clear: both;
}

/* Once past the pitcher image's height, let boxes stretch full-width
   instead of leaving room for it */
.news-boxes-full {
  margin-left: 0;
  padding-right: 80px;
  padding-left: 80px;
  margin-top: 50px;
}

.news-box {
  background: #b0b0b0;
  border: 2px solid var(#000000);
  padding: 20px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.news-box p {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.85;
  margin: 0;
}

.news-box .news-box-img {
  height: 120px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(30,58,30,0.2);
}

/* ══════════════════════════════════════
   GALLERY PAGE
══════════════════════════════════════ */
#gallery-page {
  background: var(--cream);
  padding: 60px 40px 80px;
}

.gallery-heading {
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 40px;
}

.gallery-subheading {
  margin-top: 60px;
}

.media-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.media-videos {
  flex: 1 1 400px;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.media-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--green-dk);
  overflow: hidden;
  background: #000;
}

.media-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.media-links {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 280px;
}

.media-links li {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 10px;
}

.media-links a {
  color: var(--green-dk);
  font-weight: 700;
  text-decoration: underline;
}

.media-links a:hover,
.media-links a:focus-visible {
  color: var(--brown);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(#000000);
}

/* Gallery flow layout */
.gallery-flow {
  column-count: 3;
  column-gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.gallery-flow img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(#000000);
  margin-bottom: 16px;
  break-inside: avoid;
}

/* ══════════════════════════════════════
   CONTACT PAGE
══════════════════════════════════════ */
#contact-page {
  background: var(--cream);
  padding: 60px 80px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.contact-heading {
  font-size: 1.8rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 2px solid var(--green-lt);
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 20px;
}

.contact-info a { color: var(--brown); text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }

.contact-map {
  width: 90%;
  height: 260px;
  border: 2px solid var(#000000);
  overflow: hidden;
  margin-left: auto;
}

.contact-map iframe { width: 100%; height: 100%; border: none; }

/* Publications from markdown */
.pub-list h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown);
  border-bottom: 1px solid var(#888888);
  padding-bottom: 4px;
  margin: 32px 0 12px;
}

.pub-list ul {
  list-style: none;
  padding: 0;
}

.pub-list li {
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 10px;
  padding-left: 12px;
  border-left: 2px solid var(#888888);
}

.pub-list a {
  color: var(--brown);
  text-decoration: none;
  font-size: 0.82rem;
}

.pub-list a:hover { text-decoration: underline; }

.posters-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.poster-item img {
  width: 100%;
  height: auto;
  display: block;
  border: 2px solid var(--green-dk);
}

/* News box text wrapper */
.news-box-text {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.85;
}

.news-box-text p { margin: 0; }

/* ══════════════════════════════════════
   TABLET (≤768px)
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav — collapse to a hamburger + dropdown, same links as desktop */
  nav { padding: 6px 16px; position: relative; justify-content: center; }

  .nav-left, .nav-right { display: none; }

  .nav-toggle-btn {
    display: flex;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav-ant svg { height: 36px; }

  .nav-dropdown {
    flex-direction: column;
    background: #888888;
    padding: 4px 16px 12px;
  }

  .nav-toggle-checkbox:checked ~ .nav-dropdown { display: flex; }

  .nav-dropdown a {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    text-decoration: none;
    padding: 12px 4px;
    border-top: 1px solid rgba(0,0,0,0.15);
  }

  .nav-dropdown a:hover,
  .nav-dropdown a.active { color: var(--brown); }

  .nav-toggle-checkbox:checked ~ nav .nav-toggle-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle-checkbox:checked ~ nav .nav-toggle-btn span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle-checkbox:checked ~ nav .nav-toggle-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Home hero */
  .home-hero { min-height: 80vh; padding: 40px 0; }

  #sp-pitcher { width: 620px; top: -240px; left: -32%; }
  #sp-caterpillar { width: 170px; left: calc(2% + 80px); }
  #sp-butterfly { width: 130px; top: calc(50% - 200px); left: calc(50% - 240px); }
  #sp-stick-leaf { width: 170px; right: calc(50% - 300px); }
  #sp-macaranga { width: 160px; }

  .stamp-svg-wrap {
    height: 360px;
    width: 140px;
    margin-top: -100px;
    margin-bottom: -150px;
  }

  .home-about { padding: 40px 32px; margin: 24px 20px; }

  /* Research */
  #research-page { padding: 40px 24px 60px; }
  .research-grid { grid-template-columns: 1fr; gap: 32px; }

  /* People */
  #people-page { padding: 40px 20px 60px; }

  .pi-card { flex-direction: column; align-items: center; text-align: center; padding: 24px; }
  .pi-photo { flex: 0 0 auto; }
  .pi-links { align-items: center; }

  .people-grid { grid-template-columns: repeat(2, 1fr); max-width: 100%; }

  .people-grid-bottom {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .people-grid-bottom .person-card { width: calc(50% - 14px); }

  .popup-inner { flex-direction: column; align-items: center; text-align: center; }
  .popup-photo { flex: 0 0 auto; }
  .popup-links { align-items: center; }

  .former-grid { grid-template-columns: repeat(2, 1fr); }

  /* Publications */
  #publications-page { padding: 40px 24px 60px; }
  .posters-grid { grid-template-columns: repeat(2, 1fr); }

  /* News */
  .news-layout { padding: 0 20px 0 0; }
  .news-pitcher { float: none; width: 60%; margin: 0 auto 24px; display: block; }
  .news-boxes { margin-left: 0; padding-right: 0; }
  .news-boxes-full { padding-left: 20px; padding-right: 20px; margin-top: 24px; }

  /* Gallery */
  #gallery-page { padding: 40px 20px 60px; }
  .media-top { flex-direction: column; }
  .media-videos { max-width: 100%; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-flow { column-count: 2; }

  /* Contact */
  #contact-page { padding: 40px 24px 60px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-map { width: 100%; margin-left: 0; }
}

/* ══════════════════════════════════════
   MOBILE (≤480px)
══════════════════════════════════════ */
@media (max-width: 480px) {

  /* Nav */
  nav { padding: 6px 10px; gap: 2px 8px; }
  nav a { font-size: 0.82rem; padding: 4px; }
  .nav-ant svg { height: 30px; }

  /* Home hero */
  .home-hero { min-height: 60vh; padding: 24px 0; }

  .stamp-svg-wrap {
    height: 260px;
    width: 100px;
    margin-top: -70px;
    margin-bottom: -100px;
  }

  .lino-butterfly, .lino-ant, .lino-beetle { transform: scale(0.75); }
  .lino-pitcher { margin-left: -24px; margin-right: -24px; }

  .home-about { padding: 28px 20px; margin: 16px 12px; }
  .home-about h2 { font-size: 1.4rem; }
  .home-about p { font-size: 0.9rem; }

  /* Research */
  #research-page { padding: 32px 16px 48px; }
  .research-heading { font-size: 1.4rem; margin-bottom: 32px; }
  .research-card img, .research-card .card-placeholder { height: 180px; }
  .research-detail { padding: 20px; }

  /* People */
  #people-page { padding: 32px 16px 48px; }
  .people-heading { font-size: 1.4rem; }

  .people-grid { grid-template-columns: 1fr; gap: 20px; }
  .people-grid-bottom { flex-direction: column; align-items: center; }
  .people-grid-bottom .person-card { width: 100%; max-width: 280px; }

  .person-photo { width: 120px; height: 140px; }

  .person-popup { padding: 20px; width: 92%; }
  .popup-photo { width: 130px; height: 150px; }

  .former-grid { grid-template-columns: 1fr; }

  /* Publications */
  #publications-page { padding: 32px 16px 48px; }
  .pubs-heading { font-size: 1.4rem; }
  .pub-entry, .pub-list li { font-size: 0.84rem; }
  .posters-grid { grid-template-columns: 1fr; gap: 16px; }

  /* News */
  .news-heading { font-size: 1.4rem; margin-bottom: 32px; }
  .news-layout { padding: 0 12px 0 0; }
  .news-pitcher { width: 75%; }
  .news-boxes { gap: 24px; }
  .news-boxes-full { padding-left: 12px; padding-right: 12px; }
  .news-box { flex-direction: column; text-align: center; padding: 16px; }
  .news-box .news-box-img { height: 140px; width: 100%; object-fit: cover; }

  /* Gallery */
  #gallery-page { padding: 32px 12px 48px; }
  .gallery-heading { font-size: 1.4rem; }
  .gallery-subheading { margin-top: 32px; }
  .media-videos { gap: 16px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-flow { column-count: 1; }

  /* Contact */
  #contact-page { padding: 32px 16px 48px; }
  .contact-heading { font-size: 1.4rem; }
  .contact-map { height: 220px; }
}