/* brialong.com */

:root {
  --teal: #2389a6;
  --teal-dark: #1b6a80;
  --ink: #2f2e2e;
  --muted: #6d6b6b;
  --line: #e4e4e4;
  --page: 980px;
  --prose: 680px;
  --font: "Lato", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }
p a, li a, dd a { text-decoration: underline; text-decoration-color: rgba(35, 137, 166, .35); text-underline-offset: 2px; }
p a:hover, li a:hover, dd a:hover { text-decoration-color: currentColor; }

b, strong { font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--page); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  padding-bottom: 18px;
}
.site-name { font-size: 29px; font-weight: 300; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; }
.site-name:hover { color: var(--ink); text-decoration: none; }
.home .site-name { visibility: hidden; }

.nav { display: flex; flex-wrap: wrap; gap: 2px 22px; margin: 0; padding: 0; list-style: none; }
.nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--teal); }

/* page */
.content { padding-top: 36px; padding-bottom: 72px; }
.page-head { margin-bottom: 28px; }
.page-title { margin: 0; font-size: 26px; font-weight: 300; letter-spacing: 0.03em; color: var(--teal); }
.lede { margin: 4px 0 0; color: var(--muted); }

h1, h2, h3 { margin: 0; line-height: 1.3; }
.h2 { font-size: 19px; font-weight: 400; color: var(--teal); margin: 0 0 12px; }
.prose > .h2:not(:first-child), .pubs .h2:not(:first-child) { margin-top: 40px; }
.h3 { font-size: 15.5px; font-weight: 700; margin: 26px 0 8px; }
.jump { margin: 0 0 36px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.jump span { color: #bbb; margin: 0 10px; }
.jump a { white-space: nowrap; }
[id] { scroll-margin-top: 16px; }
.q { font-size: 15px; font-weight: 700; margin: 22px 0 6px; }

p { margin: 0 0 1em; }
.label { margin: 20px 0 8px; font-style: italic; color: var(--muted); }
.more { margin-top: 14px; color: var(--muted); font-size: 14px; }
.prose { max-width: var(--prose); }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }

/* citations */
.me { font-weight: 700; }
.pubs { max-width: 800px; }
.pub { margin: 0 0 12px; padding-left: 20px; text-indent: -20px; font-size: 14.5px; line-height: 1.6; }
a.tag { white-space: nowrap; text-decoration: none; }
a.tag::before { content: "["; color: var(--muted); }
a.tag::after { content: "]"; color: var(--muted); }
a.tag:hover { text-decoration: underline; }
.footnote { margin-top: 32px; font-size: 13px; color: var(--muted); }

/* about */
.home .content { padding-top: 56px; }
.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; align-items: start; }
.profile { text-align: center; }
.photo { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; margin: 0 auto 18px; }
.profile-name { font-size: 24px; font-weight: 300; letter-spacing: 0.03em; color: var(--teal); margin-bottom: 8px; }
.profile-role { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.profile-links { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.profile-links span { color: #bbb; margin: 0 8px; }
.profile-links a { text-decoration: none; }
.about-main { max-width: var(--prose); padding-top: 6px; }
.about-title { margin: -6px 0 22px; font-size: 32px; font-weight: 300; letter-spacing: 0.02em; color: #555; }
.about-main p { line-height: 1.75; margin-bottom: 1.4em; color: #5a5a5a; letter-spacing: 0.01em; }
.about-main p.intro { color: var(--ink); font-size: 16px; }
.about-main p b { color: var(--ink); font-weight: 400; }

/* research */
.row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.row + .row { margin-top: 44px; padding-top: 44px; border-top: 1px solid var(--line); }
.figs { display: flex; flex-direction: column; gap: 16px; }
.figs figure { margin: 0; }
.figs figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* texforms */
.texgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin: 18px 0 32px; align-items: start; }
.texgrid figure { margin: 0; }
.cap { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.figure5 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; margin: 18px 0 32px; }
.prose .texgrid, .prose .figure5 { width: min(930px, calc(100vw - 48px)); }

/* join the lab */
.lab-logo { float: right; margin: 0 0 12px 28px; }
.lab-logo img { width: 170px; height: auto; }
.lab-links { color: var(--muted); }
.lab-links span { color: #bbb; margin: 0 8px; }

/* cv, contact */
.cv-actions { margin-bottom: 16px; }
.cv-frame { display: block; width: 100%; height: 1000px; border: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: 180px 1fr; gap: 14px 0; margin: 0; max-width: 640px; }
.contact dt { font-weight: 700; }
.contact dd { margin: 0; }
.contact .note { color: var(--muted); }
.contact .lab-row { display: flex; align-items: flex-start; gap: 28px; }
.lab-mark img { width: 90px; height: auto; }

/* small screens */
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 18px; padding-bottom: 12px; }
  .home .site-name { display: none; }
  .nav { gap: 2px 16px; }
  .about, .row { grid-template-columns: 1fr; gap: 20px; }
  .photo { width: 140px; height: 140px; }
  .profile { text-align: left; }
  .photo { margin-left: 0; }
  .profile-links { display: inline-block; }
  .home .content { padding-top: 32px; }
  .figs { flex-direction: row; flex-wrap: wrap; }
  .figs > * { flex: 1 1 200px; max-width: 320px; }
  .texgrid, .figure5 { grid-template-columns: 1fr; }
  .prose .texgrid, .prose .figure5 { width: auto; }
  .lab-logo img { width: 110px; }
    .contact { grid-template-columns: 1fr; gap: 2px; }
  .contact dd { margin-bottom: 12px; }
  .cv-frame { height: 75vh; }
}
.about-main p a { color: inherit; text-decoration-color: rgba(0, 0, 0, .35); }
.about-main p a:hover { color: var(--teal); }

/* soft cross-fade between pages (browsers without support just switch instantly) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---- lab site ---- */
.lab-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); white-space: nowrap; }
.lab-brand:hover { color: var(--ink); text-decoration: none; }
.lab-brand img { width: 54px; height: auto; }
.lab-brand span { font-size: 24px; font-weight: 300; letter-spacing: 0.04em; }
@media (min-width: 761px) { .site-header .wrap { align-items: center; } }
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 18px; padding-bottom: 28px; font-size: 12.5px; color: var(--muted); }

.home .content { padding-top: 48px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.welcome { margin: 0 0 22px; font-size: 28px; font-weight: 300; line-height: 1.3; letter-spacing: 0.02em; color: #555; }
.welcome span { color: var(--teal); }
.welcome .nobr { color: inherit; white-space: nowrap; }
.home-main p { line-height: 1.75; }
.home-figs { display: flex; flex-direction: column; gap: 22px; }
.home-figs figure, .news-fig { margin: 0; }
.home-figs figcaption { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 6px; }
.news { display: block; max-width: 760px; gap: 48px; align-items: start; margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line); }
.news-list { margin: 0; padding-left: 1.2em; }
.news-list li { margin-bottom: .6em; }

.lede-big { font-size: 18px; font-weight: 300; color: #555; }
.prose .h2 { margin-top: 34px; }
.spaced li { margin-bottom: .9em; }

.people-group { margin-top: 44px; }
.person { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: start; max-width: none; margin-top: 26px; }
.person img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; object-position: 50% 35%; }
.person-name { font-size: 17px; font-weight: 700; margin: 0; }
.person-role { margin: 2px 0 8px; color: var(--muted); font-style: italic; }
.person p { font-size: 14.5px; }
.person-links span { color: #bbb; margin: 0 8px; }

.study { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; max-width: 860px; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.study img { width: 240px; height: auto; }
.study-age { margin: 0 0 4px; color: var(--muted); font-style: italic; }
.study .h2 { margin-top: 0; }

@media (max-width: 760px) {
  .home-grid, .news { grid-template-columns: 1fr; gap: 24px; }
  .home-figs { max-width: 420px; }
  .news-fig { max-width: 240px; }
    .person { grid-template-columns: 100px minmax(0, 1fr); gap: 16px; }
  .person img { width: 100px; height: 100px; }
  .study { grid-template-columns: 1fr; }
  .lab-brand img { width: 44px; }
  .lab-brand span { font-size: 21px; }
}
.person > div { min-width: 0; overflow-wrap: anywhere; }

/* photo slider */
.slider { position: relative; max-width: none; margin: 0 0 8px; }
.slides { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: #f3f3f3; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 80%; }
.slider-btn { position: absolute; top: calc(50% - 18px); transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--ink); font: 300 26px/1 var(--font); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.slider-btn:hover { background: #fff; color: var(--teal); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.slider-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #ccc; cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--teal); }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* participate */
.join-ways { display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin: 8px 0 44px; }
.join-way { padding: 20px 24px; border: 1px solid var(--line); border-radius: 6px; }
.join-way p { margin-bottom: .6em; }
.join-way p:last-child { margin-bottom: 0; }
.join-way.baby, .join-way.kids { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 22px; align-items: center; }
.join-way.baby img { width: 76px; height: auto; justify-self: center; }
.join-way.kids img { width: 150px; height: auto; }
@media (max-width: 560px) { .join-way { padding: 18px; } .join-way.baby, .join-way.kids { grid-template-columns: minmax(0, 1fr); gap: 12px; } .join-way.baby img { justify-self: start; } }
.join-links span { color: #bbb; margin: 0 8px; }
.join-links a { white-space: nowrap; }
.studies-head { margin-top: 8px; }
.news .news-next { margin-top: 28px; }

/* header and home, matched to the old Wix landing page */
:root { --wash: #f2faf9; }
body { background: var(--wash); }
.site-header { background: #fff; }
.site-header .wrap { align-items: center; padding-top: 14px; padding-bottom: 14px; }
.lab-logo-link { flex: none; line-height: 0; }
.lab-logo-link img { width: 150px; height: auto; }
.lab-logo-link:hover { text-decoration: none; }
.nav a { font-size: 15px; }
.band { padding: 48px 0 64px; }
.band-white { background: #fff; padding-top: 40px; }
.band .news { margin-top: 0; padding-top: 0; border-top: 0; }
.coast-band { height: 300px; overflow: hidden; background: linear-gradient(#fff, var(--wash)); }
.coast-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 70%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 70%, transparent); }
.site-footer { background: #fff; }
@media (max-width: 760px) {
  .site-header .wrap { flex-direction: column-reverse; align-items: flex-start; gap: 10px; }
  .lab-logo-link img { width: 96px; }
  .coast-band { height: 160px; }
  .band { padding: 32px 0 44px; }
}

/* research figures */
.area-fig { margin: 18px 0 14px; max-width: 760px; }
.area-fig img { width: 100%; height: auto; border-radius: 3px; background: #fff; }
.area-fig.side { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; }
.area-fig.side figcaption { margin: 0; }
@media (max-width: 560px) { .area-fig.side { grid-template-columns: 160px minmax(0, 1fr); gap: 14px; } }
.area-fig figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.explore { font-size: 14px; color: var(--muted); }
.explore span { color: #bbb; margin: 0 8px; }
.explore a { white-space: nowrap; }

/* long link rows wrap on phones */
@media (max-width: 560px) { .join-links a, .explore a, .jump a { white-space: normal; } .jump span { margin: 0 6px; } }

/* ---- mono dates, cards, fades ---- */
:root { --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace; }

.home-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }

.home-figs { gap: 26px; }
.home-figs img { background: #fff; border-radius: 4px; }
.home-figs figure + figure.reveal { transition-delay: .3s; }

.page-head { position: relative; min-height: 64px; display: flex; align-items: center; }
.page-head .page-title { position: relative; }

.date { display: inline-block; min-width: 9.5em; font-family: var(--mono); font-size: 12.5px; color: var(--teal); letter-spacing: -.01em; }
.news-list.upcoming { list-style: none; padding-left: 0; }
.news-list.upcoming li { padding: 6px 0; border-bottom: 1px dashed #d3e3e6; margin: 0; }
.study-age, .area-fig figcaption { font-feature-settings: "lnum"; }
.study-age { font-family: var(--mono); font-style: normal; font-size: 12.5px; color: var(--teal); }

.study { grid-template-columns: minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px; margin-top: 16px; }
.study:first-of-type { margin-top: 12px; }
.join-way { background: #fff; }
.area-fig img { box-shadow: 0 1px 0 var(--line); }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.area-fig.reveal img { filter: saturate(.2); transition: filter 1.4s ease .2s; }
.area-fig.reveal.is-in img { filter: none; }

.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--teal); }

@media (max-width: 760px) {
  .home-grid { grid-template-columns: 1fr; }
    .date { display: block; min-width: 0; }
}

/* participate intro photo */
.intro-with-photo { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 32px; align-items: start; max-width: 860px; margin-bottom: 8px; }
.intro-with-photo > img { grid-column: 2; grid-row: 1; width: 200px; height: auto; border-radius: 4px; }
.intro-with-photo .prose { grid-column: 1; grid-row: 1; }
@media (max-width: 560px) { .intro-with-photo { grid-template-columns: minmax(0, 1fr) 110px; gap: 16px; } .intro-with-photo > img { width: 110px; } }

/* alumni */
.alumni { margin: 0; padding-left: 1.2em; }
.alumni li { margin-bottom: .4em; }

/* funding */
.funding-head { margin-top: 40px; }
.funding { max-width: var(--prose); margin: 0; padding-left: 1.2em; font-size: 14.5px; }
.funding li { margin-bottom: .6em; }

/* ---- polish pass ---- */
/* header logo: same size on every page */
.lab-logo-link img { width: 150px; }
.nav a { color: #555; }
.nav a:hover { color: var(--teal); }

/* page titles */
.page-title { font-size: 32px; }

/* backgrounds: white for content, pale teal for the news area */
body { background: #fff; }
.band { background: var(--wash); }
.band-white { background: #fff; }
.site-footer { border-top: 1px solid var(--line); }

/* small text: one caption style, one label style */
.area-fig figcaption, .home-figs figcaption, .explore, .more, .footnote, .site-footer .wrap { font-size: 13px; line-height: 1.5; color: var(--muted); }
.label { margin: 20px 0 8px; font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.date, .study-age { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: 0; }

@media (max-width: 760px) {
  .lab-logo-link img, .home .lab-logo-link img { width: 72px; }
  .site-header .wrap { flex-direction: row; align-items: center; gap: 14px; }
  .site-header nav { order: 1; }
  .lab-logo-link { order: 2; margin-left: auto; }
  .page-title { font-size: 28px; }
}

/* lab members linked from citations to the People page */
.pub a.who { color: inherit; text-decoration: underline; text-decoration-color: rgba(35, 137, 166, .45); text-underline-offset: 2px; }
.pub a.who:hover { color: var(--teal); text-decoration-color: currentColor; }

/* footer wave line, in the spirit of the logo's waves */
.site-footer { border-top: 0; position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 24px;
  background: url("img/wave-line.svg") center / 100% 100% no-repeat; opacity: .35;
}

/* home: recent-work carousel of paper figures (side column) */
.recent-work { margin-top: 4px; }
.recent-work .h2 { font-size: 15px; margin-bottom: 8px; }
.slide { pointer-events: none; }
.slide.is-active { pointer-events: auto; }
.pub-slider .slides { aspect-ratio: auto; height: 400px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.pub-slider .slide { display: flex; flex-direction: column; padding: 12px 12px 10px; }
.pub-slider .slide a.fig { flex: 1; min-height: 0; display: block; }
.pub-slider .slide img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.pub-slider figcaption { margin-top: 10px; text-align: left; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.pub-slider figcaption a { color: var(--ink); text-decoration: none; }
.pub-slider figcaption a:hover { color: var(--teal); text-decoration: underline; }
.pub-slider figcaption span { display: block; margin-top: 2px; }
.pub-slider .slider-btn { top: auto; bottom: -38px; transform: none; width: 28px; height: 28px; font-size: 22px; border: 1px solid var(--line); }
.pub-slider .slider-btn.prev { left: 0; } .pub-slider .slider-btn.next { right: 0; }
.pub-slider .slider-dots { margin-top: 10px; height: 28px; align-items: center; }
@media (max-width: 760px) { .pub-slider .slides { height: 380px; } }
.area-fig.half { max-width: 50%; }
@media (max-width: 560px) { .area-fig.half { max-width: 75%; } }
.area-fig.strip { max-width: 50%; }
.area-fig.strip .strip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.area-fig.strip img { width: 100%; height: auto; border-radius: 3px; }
@media (max-width: 560px) { .area-fig.strip { max-width: 100%; } }
/* soft shadow under the header */
.site-header { position: relative; z-index: 5; border-bottom: 0; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.07); }

/* ---- aesthetic pass 2 ---- */
/* carousel: arrows on the same row as the dots */
.pub-slider .slider-btn { bottom: 0; }
/* upcoming talks: wrapped lines stay aligned under the talk name */
@media (min-width: 761px) {
  .news-list.upcoming li { padding-left: 124px; text-indent: -124px; }
  .news-list.upcoming .date { text-indent: 0; min-width: 124px; }
}
/* research: helmet photo and bookshelf stills side by side, same height */
.fig-row { display: flex; gap: 16px; align-items: flex-start; max-width: 760px; margin: 18px 0 14px; }
.fig-row .area-fig { margin: 0; max-width: none; }
.fig-row .area-fig.half { flex: 1.55 1 0; }
.fig-row .area-fig.strip { flex: 1.69 1 0; }
.prose.wide { max-width: 800px; }
@media (max-width: 560px) { .fig-row { flex-direction: column; } .fig-row .area-fig { flex: none; width: 100%; } }
/* participate: space between the intro photo and the first card */
.intro-with-photo { margin-bottom: 24px; }
/* phone header: menu in tidy columns */
@media (max-width: 760px) {
  .nav { display: grid; grid-template-columns: repeat(3, max-content); gap: 4px 16px; }
}
.museum-list { padding-left: 1.2em; margin: 8px 0 0; }
.museum-list li { margin-bottom: .35em; }
/* participate intro: text, aquarium photo, Instagram post side by side */
.intro-with-photo { grid-template-columns: minmax(0, 1fr) 225px 159px; gap: 24px; max-width: 860px; }
.intro-with-photo > img { width: 225px; height: 300px; object-fit: cover; }
.intro-with-photo .insta-embed { grid-column: 3; grid-row: 1; width: 340px; zoom: .467; }
@media (max-width: 560px) {
  .intro-with-photo { grid-template-columns: 1fr 1fr; }
  .intro-with-photo .prose { grid-column: 1 / -1; grid-row: 1; }
  .intro-with-photo > img { grid-column: 1; grid-row: 2; width: 100%; height: auto; }
  .intro-with-photo .insta-embed { grid-column: 2; grid-row: 2; zoom: .47; }
}
/* participate: study photo beside its description (as on Baby Science) */
.study:has(> img) { grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
.study > img { width: 180px; border-radius: 4px; }
@media (max-width: 560px) { .study:has(> img) { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; } .study > img { width: 110px; } }
.museum-list { margin-bottom: 8px; } .studies-head + .museum-list { margin-top: 8px; } .study + .studies-head { margin-top: 36px; }
/* participate: Kid Science / Baby Science logos, centred in a wider column */
.join-way.baby, .join-way.kids { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
.join-way.kids img { width: 200px; justify-self: center; }
.join-way.baby img { width: 100px; justify-self: center; }
@media (max-width: 560px) { .join-way.baby, .join-way.kids { grid-template-columns: minmax(0, 1fr); } .join-way.kids img { width: 180px; justify-self: start; } .join-way.baby img { width: 80px; justify-self: start; } }
/* align study photos with the Kid Science / Baby Science logo column */
.study:has(> img) { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
.study > img { width: 200px; }
@media (max-width: 560px) { .study:has(> img) { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; } .study > img { width: 110px; } }
