div#wpadminbar {
    display: none;
}

/* Hide the app while loading class is present to avoid flash */
html.is-loading #atlas-app { visibility: hidden; }

/* Loader overlay */
#app-loader{
  position: fixed; inset: 0;
  background: #111; color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size: clamp(18px,3vw,28px);
  z-index: 10000;
  opacity: 1; visibility: visible;
  transition: opacity .4s ease, visibility .4s ease;
}
#app-loader.is-hidden{
  opacity: 0; visibility: hidden; pointer-events: none;
}


:root { --gap: 28px; --chip:#e6e6e6; }
body{background:#f3f3f3;font-family:system-ui,sans-serif;}
.bar{align-items:center;gap:1rem;justify-content:space-between;padding:10px 16px;}
.atlas{overflow:hidden}
.cards{
  display:flex; gap:var(--gap);
  overflow-x:auto; padding:24px; scroll-snap-type:x proximity;
}
.card{min-width:360px; max-width:420px; scroll-snap-align:start; position:relative; cursor:pointer}
.card figure{margin:0; position:relative}
.card img{display:block; width:100%; height:auto; background:#fff;}
.card .hover-alt{
  position:absolute; inset:auto 0 0 0; background:rgba(130,130,255,.85);
  color:#fff; padding:10px 12px; font-weight:600; line-height:1.25; opacity:0; transition:.2s;
}
.card:hover .hover-alt{opacity:1}
.card h4{margin:.5rem 0 0; font-size:1rem}

.bottom{display:grid; grid-template-columns: 1fr 1fr; gap:var(--gap); padding:16px 24px;}
.glossary{min-height:120px}
.chips{display:flex; flex-wrap:wrap; gap:8px; align-content:start}
.chips button{
  background:var(--chip); border:0; border-radius:20px; padding:6px 10px; cursor:pointer;
}
.chips button[aria-pressed="true"]{background:#111;color:#fff}

dialog{width:min(800px,90vw); border:1px solid #ccc; border-radius:8px}
dialog::backdrop{background:rgba(0,0,0,.4)}
.close{position:absolute; right:10px; top:8px; border:0; background:#eee; padding:4px 8px; border-radius:4px; cursor:pointer}

button.btn.remix {
    font-size: 25px;
    padding: 0px 9px 3px;
}

/* 1) Reset + sensible defaults (trimmed) */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif; line-height: 1.4; }
img { max-width: 100%; height: auto; display: block; }

/* 2) Design tokens */
:root{
  --bg: #f5f5f5;
  --text: #111;
  --muted: #6b6b6b;
  --accent: #111;        /* tweak later */
  --chip: #e9e9e9;
  --gap: 16px;
  --radius: 10px;

  /* type scale */
  --fs-1: clamp(0.58rem, 0.82rem + 0.2vw, .85rem);
  --fs-2: clamp(1.0rem, 0.95rem + 0.35vw, 1.2rem);
  --fs-3: clamp(.25rem, 1.1rem + 0.8vw, 1rem);
  --fs-4: clamp(1.6rem, 1.4rem + 1.4vw, 2.2rem);
}

body { background: var(--bg); color: var(--text); overflow-y: hidden;height: 100vh;}

/* 3) Layout primitives */
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.grid { display: grid; gap: var(--gap); }
.grid--cards {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-items: start;
}
.cluster { display:flex; flex-wrap:wrap; gap: var(--gap); align-items:center; }
.stack > * + * { margin-top: var(--gap); }

/* 4) Components */
.bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 3px 16px;
    background: #242424;
    color: #e1e1e1;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
}
.bar h1 { justify-self:center; font-size: 1.3rem; margin:0; }
.bar .btn { justify-self:start; }
.bar .info { 
      justify-self: end;
    font-weight: bold;
    font-size: 20px;
    padding: 3px 12px;
    font-family: serif;
 }

.cards { padding: var(--gap); }
.card {
  position:relative; overflow:hidden;
}
.card figure { margin:0; }
.card img { width:100%; display:block; }
.card .title { font-size: var(--fs-2); font-weight:600; }
.card .hover-alt {
  position:absolute; left:8px; right:8px; bottom:8px;
  background: rgba(255,255,255,0.9);
  padding:6px 8px; border-radius:8px; font-size: var(--fs-1);
  opacity:0; transform: translateY(4px); transition: .2s ease;
}
.card:hover .hover-alt { opacity:1; transform: translateY(0); }

.bottom {
  display:grid; grid-template-columns: 1fr 2fr; gap: var(--gap);
  padding: var(--gap); align-items:start;
}
.glossary { background:#fff; border:1px solid #ddd; border-radius: var(--radius); padding: 12px; min-height: 120px; }
.chips { display:flex; flex-wrap:wrap; gap: 8px; }
.chip {
  background: var(--chip); border-radius: 999px; padding: 6px 10px; font-size: var(--fs-1);
  cursor:pointer; border:1px solid #d7d7d7;
}
.chip[aria-pressed="true"] { background:#111; color:#fff; border-color:#111; }

/* Modal <dialog> */
dialog { width:min(900px, 92vw); border:none; border-radius: var(--radius); padding:0; }
dialog::backdrop { background: rgba(0,0,0,.5); }
.modal-body { padding: 16px; }
.close { position:absolute; top:10px; right:12px; background:#000; color:#fff; border:0; width:32px; height:32px; border-radius:50%; cursor:pointer; }

/* Buttons */
.btn {     appearance: none;
    color: white;
    text-decoration: none;
    border-radius: 100px;
    padding: 6px 12px;
    cursor: pointer; 
  border: 0;
    background: #dddddd3d;}
.btn:hover { background:#111; color:#fff; }

/* A11y */
.visually-hidden { position:absolute !important; height:1px; width:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); white-space:nowrap; }

/* Responsive */
@media (max-width: 900px){
  .bottom { grid-template-columns: 1fr; }
}


/* ===== TRACTS: Bottom panel (glossary + chips) ===== */
/* ===== TRACTS: Bottom panel (glossary + chips) ===== */
/* Bottom container: 2 columns, fills a fixed band of the viewport */
.bottom{
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr; /* left fixed-ish, right flexible */
  gap: var(--gap);
  padding: var(--gap);
  border-top: 1px solid #e5e5e5;
  background: #fff;
    position: fixed;
    width: 100%;
    bottom: 0;
  /* gives a stable “bottom band” without swallowing the page */
  height: clamp(260px, 38vh, 520px);
  align-items: stretch;
}

/* Make the two sections behave as full-height panels */
.glossary,
.chips{
  height: 100%;
  min-height: 0;   /* important for nested overflow */
  overflow: auto;
}

/* --- Glossary (left) --- */
.glossary{
  display: grid;
  grid-template-rows: auto 1fr;   /* sticky header + scrollable body */
  padding: 0;                     /* we’ll pad inner pieces */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius);
}

/* Sticky glossary title */
.glossary h3{
    margin: 0;
    font-size: var(--fs-1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    border-bottom: 1px solid #eee;
}

/* Definition body scrolls */
#kw-def{
  font-size: var(--fs-1);
  color: var(--text);
}

/* Optional muted “no selection” state */
#kw-def:empty::before{
  content: "This is the spot for a short definition of the selected keyword.";
  color: var(--muted);
}

/* --- Chips (right) --- */
.chips{
background: #fff;
    padding: 0px 0 12px 12px;
    border-left: 1.5px solid black;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 8px;
    z-index: -1;
}

/* Use the aria-label as a visible sticky heading (no extra markup needed) */
.chips::before{
    content: attr(aria-label);
    flex-basis: 100%;
    font-weight: 600;
    font-size: var(--fs-1);
    line-height: 1.2;
    margin-bottom: 6px;
    position: sticky;
    top: 0;
    padding: 20px 0 8px;
    background: linear-gradient(#fff 85%, rgba(255, 255, 255, 0));
    border-bottom: 1px solid #eee;
    z-index: 1;
}

/* Your existing chip pill; add keyboard focus for a11y */
.chip{
  background: var(--chip);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: var(--fs-1);
  cursor: pointer;
  border: 1px solid #d7d7d7;
  white-space: nowrap;
}
.chip:hover{ filter: brightness(0.97); }
.chip:focus-visible{
  outline: 2px solid #111;
  outline-offset: 2px;
}
.chip[aria-pressed="true"]{
  background:#111; color:#fff; border-color:#111;
}

/* Subtle custom scrollbars (safe, optional) */
.glossary::-webkit-scrollbar,
.chips::-webkit-scrollbar{ width: 10px; height: 10px; }
.glossary::-webkit-scrollbar-thumb,
.chips::-webkit-scrollbar-thumb{ background: #d6d6d6; border-radius: 10px; }
.glossary::-webkit-scrollbar-thumb:hover,
.chips::-webkit-scrollbar-thumb:hover{ background: #c2c2c2; }

/* --- Responsive: stack panels on narrow screens --- */
@media (max-width: 900px){
  .bottom{
    grid-template-columns: 1fr;
    height: auto;           /* let content define height on mobile */
  }
  .glossary,
  .chips{
    max-height: 46vh;       /* each panel gets a comfortable scroll zone */
  }
}

/* ===== TRACTS — Glossary ===== */
/* ===== TRACTS — Glossary ===== */
.glossary { background:#fff; border:1px solid #ddd; border-radius: var(--radius); padding: 0 2vw 14px 14px; }
.glossary__intro { margin-bottom: clamp(16px,2.5vw,28px); padding-top: 20px}
.glossary__title { font-weight: bold; margin: 0 0 10px 0; }
.glossary__text { font-size: var(--fs-2); line-height: 1.6; color: var(--text); }
.glossary__heading { font-size: var(--fs-2); margin: 20px 0 8px; font-weight: 700; }
.glossary__accordion { border-top: 1px solid #111; }

/* Item button row */
.kw-item { border-bottom: 1px solid #cfcfcf; }
.kw-btn{
  -webkit-tap-highlight-color: transparent;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 10px 12px 5px;
  background: none; border: 0; cursor: pointer;
  font-size: var(--fs-1); font-weight: 600; text-align: left;
}
.kw-btn:focus-visible { outline: 2px solid #111; outline-offset: 2px; border-radius: 6px; }
.kw-btn__chevron{ transition: transform .2s ease; }
.kw-btn[aria-expanded="true"] .kw-btn__chevron{ transform: rotate(180deg); }
.kw-panel__inner.rte p {
    padding: 0 0 0 12px;
}

/* Panel (one open at a time; smooth animation) */
.kw-panel{
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows .2s ease;
}
.kw-panel__inner{
  overflow: hidden;
  min-height: 0; 
  padding-block: 0;  
   padding-inline: 0;
  color: var(--text);
  font-size: var(--fs-1);
  line-height: 1.6;
}
.kw-btn[aria-expanded="true"] + .kw-panel{ grid-template-rows: 1fr; }

.kw-btn[aria-expanded="true"] + .kw-panel .kw-panel__inner{
  padding-block: 12px;        /* add padding only when open */
  padding-inline: 0;
}

/* Optional subtle scrollbar inside glossary panel when long */
.glossary .kw-panel__inner::-webkit-scrollbar{ width: 10px; }
.glossary .kw-panel__inner::-webkit-scrollbar-thumb{ background: #d6d6d6; border-radius: 10px; }

.kw-btn { scroll-margin-top: 120px;}








/* CARDS  */
.slider {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 60px 20px;
}
.slider__track {
  display: flex;
  gap: 40px;
}

/* Each slide is a column: media (0), body (1), tags (2) */
.slide {
  position: relative;
  flex: 0 0 auto;
  width: 300px; /* uniform for now */
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
}

/* media */
.slide__media {
  position: relative;
  display: block;
  order: 0; /* default: media first */
}
.slide__media img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity .3s ease;
}

/* body (wraps the title and any meta) */
.slide__body {
  order: 1;                 /* default: body after media */
  display: flex;
  flex-direction: column;
}

/* title (spacing only, never reorder title itself) */
.slide__title {
  margin-top: 10px;
  font-size: var(--fs-2);
  font-weight: 600;
}

/* tags (hidden until hover) */
.slide__tags{
  order: 2;                 /* default: tags after body */
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tag{
  font-size: 10px;
  line-height: 1;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--tag-bg, #eee);
  color: #111;
  white-space: nowrap;
  user-select: none; /* non-clickable for now */
  pointer-events: none;
}
/* Show pills only when hovering the slide */
.slide:hover .slide__tags { display: flex; }

/* ===== POSITIONING BY LANE (final, authoritative) =====
   Top lanes (slots 4–7): title ABOVE image, tags BELOW image
   Bottom lanes (slots 0–3): title BELOW image, tags BELOW title */
.slide.is-top    .slide__body { order: -1; }       /* body (title) ABOVE media */
.slide.is-top    .slide__title { margin-top: 0; margin-bottom: 10px; }
.slide.is-top    .slide__tags  { order: 1; }       /* tags directly under image */

.slide.is-bottom .slide__body { order: 1; }        /* body (title) BELOW media */
.slide.is-bottom .slide__tags { order: 2; }        /* tags remain below title */

/* Hover confined to image only (color + alt text overlay) */
.slide__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hover, #ccc);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.slide__media::after {
  content: attr(data-alt);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  text-align: center;
  color: #fff;
  font-size: var(--fs-2);
  line-height: 1.25;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.slide__media:hover::before,
.slide__media:hover::after { opacity: 1; }
.slide__media:hover img { opacity: 0; }

/* Remove the old keyword overlay line completely */
.hover-alt { display: none !important; }
/* Base column structure */
.slider .slide { display:flex; flex-direction:column; }
.slider .slide > .slide__media { order:0; }
.slider .slide > .slide__body  { order:1; display:flex; flex-direction:column; }
.slider .slide > .slide__tags  { order:2; margin-top:8px; }

.slider .slide .slide__title { margin-top:10px; font-size:var(--fs-2); font-weight:600; }

/* TOP lanes: title ABOVE image; tags BELOW image */
.slider .slide.is-top    > .slide__body { order:-1 !important; }
.slider .slide.is-top    .slide__title  { margin-top:0; margin-bottom:10px; }
.slider .slide.is-top    > .slide__tags { order:1 !important; }

/* BOTTOM lanes: title BELOW image; tags BELOW title */
.slider .slide.is-bottom > .slide__body { order:1 !important; }
.slider .slide.is-bottom > .slide__tags { order:2 !important; }







/* ===== BOTTOM TOGGLE ===== */
/* ===== Fixed bottom panel with hide/show ===== */
:root{
  --bottom-h: 290px;       /* target open height; adjust */
  --bottom-pad: 0;
  --bottom-radius: 12px;
  --bottom-tab-h: 40px;    /* visible height when collapsed */
}
@media (min-width: 1510px) {
  :root {
    --bottom-h: 230px;
  }
}


.bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bottom-h);
  padding: var(--bottom-pad);
  background: #fff;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .06);
  display: grid;
  /* approx 40/60 split, with sensible min on the glossary side */
  grid-template-columns: clamp(300px, 38vw, 520px) 1fr;
  gap: var(--gap);
  transition: transform .28s ease;
  will-change: transform;
  overflow: visible;
  z-index: 100;
  border-top: 1.5px solid black;
}

/* prevent overflow issues inside each column */
.glossary, #chips { min-width: 0; }

/* stack on small screens */
@media (max-width: 900px){
  .bottom { grid-template-columns: 1fr; }
}


/* collapsed: slide almost off-screen but keep tab visible */
.bottom.is-collapsed{
  transform: translateY(calc(100% - var(--bottom-tab-h)));
}

/* toggle “tab” */
.bottom__toggle{
  position: absolute;
  top: -20px;              /* sit on the top border */
  right: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  font: inherit;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  cursor: pointer;
}
.bottom__toggle:hover{ background:#f8f8f8; }
.bottom__toggle-icon{ transition: transform .2s ease; }

/* flip chevron + label when collapsed */
.bottom.is-collapsed .bottom__toggle-icon{ transform: rotate(180deg); }
.bottom.is-collapsed .bottom__toggle-label::after{ content:""; }

/* responsive: stack columns on small screens (you already had a query) */
@media (max-width: 900px){
  .bottom { grid-template-columns: 1fr; height: calc(var(--bottom-h) + 24px); }
}
span.bottom__toggle-label {
    font-size: var(--fs-1);
}





/* ---- Lane variables (global) ---- */
:root{
  --top-safe: 64px;          /* updated by JS */
  --bottom-safe: 0px;        /* updated by JS when the bottom panel opens/closes */
  --y-rows: 8;               /* number of lanes */
  --bottom-h: 230px;         /* your media queries still override this */
}

/* still needed for debug lanes (optional) */
.slider{
  position: relative;
  padding-top: 60px;
  padding-bottom: calc(var(--bottom-safe) + 48px);
}

/* >=1510px -> 230px, 900–1509px -> 290px, <900px -> lanes off */
@media (min-width: 1510px){ :root{ --bottom-h: 230px; } }
@media (min-width: 900px) and (max-width: 1509.98px){ :root{ --bottom-h: 290px; } }
@media (max-width: 899.98px){ :root{ --y-rows: 1; } }

/* ensure nothing above clips */
#atlas-app, main { overflow: visible; }

.slider__track{
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.slide{
  /* slot is 0..7; scale by 6/7 so slot 7 stops where old lane 6 was */
  margin-top: calc(var(--y-step) * (var(--y-slot, 3) * var(--lane-scale)));
}



/* below 900: disable offsets */
@media (max-width: 899.98px){
  .slide{ margin-top: 0; }
}


/* Smooth fade for non-matching slides */
.slide.is-dim,
.card.is-dim{
  opacity: .18;
  filter: grayscale(1);
  pointer-events: none;
  transition: opacity .25s ease, filter .25s ease;
}

/* Smooth reposition + fade */
.slide {
  transition: transform .35s ease;
  will-change: transform;
}

/* losers fade out, but we hold their spot absolutely for the animation */
.slide.fade-out {
  opacity: 0;
  transition: opacity .25s ease, transform .35s ease;
}

/* optional: nicer z-order while moving */
.slider__track.is-animating .slide { z-index: 0; }
.slider__track.is-animating .slide.moving { z-index: 1; }

/* empty state (reuse earlier style if you already added it) */
.no-results{
    font-size: var(--fs-2);
    color: var(--muted);
    position: fixed;
    top: 150px;
    left: 0;
    right: 0;
    margin: auto;
    text-align: center;
}

/* Location label (pin + text). Appears on hover, above title, left-aligned */
.slide__geo{
  order: 1;                          /* default sits after media */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;                 /* ≈ 8pt */
  line-height: 1.1;
  color: #800000;                    /* maroon */
  opacity: 0;                        /* hidden until hover */
  transition: opacity .18s ease;
  margin: 6px 0 0;                   /* small offset from neighbor */
  pointer-events: none;              /* purely decorative */
}

/* Show geo on card hover (not just image hover) */
.slide:hover .slide__geo { opacity: 1; }

/* Tiny pin glyph color */
.slide__geo .geo-pin { fill: #800000; flex: 0 0 auto; }

/* Truncate long locations gracefully */
.slide__geo .geo-text{
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* LANE-AWARE ORDERING
   - Top lanes: geo ABOVE title (and title is above image)
   - Bottom lanes: geo between image and title */
.slide.is-top    .slide__geo { order: -2; margin: 0 0 6px; }  /* geo, then title, then image */
.slide.is-bottom .slide__geo { order: 1;  margin: 6px 0 0; }  /* image, then geo, then title */



/* ===== Modal ===== */
.modal__details .wp-block-table { display:none; }
.modal__synopsis { 
  line-height: 1.6;
    font-size: 19px;
    max-width: 900px;
margin: 40px auto 60px;
 }
.modal {
    padding: 0;
    margin: auto;
    width: min(1030px, 92vw);
    max-height: 92vh;
    border-radius: 2px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    z-index: 1000;
}
h2#modal-title {
font-size: var(--fs-2);
    padding: 34px 0 0 0;
    font-weight: 600;
    text-align: center;
}
.modal::backdrop {
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(1px);
}

.modal__body {
    position: relative;
    padding: 0px;
    overflow: auto;
    max-height: 92vh;
    padding-bottom: 60px;
        border-bottom: 2px solid white;
}
.modal__synopsis, .modal__details {
    padding: 0 15px;
}
header.modal__header {
  z-index: 1;
background: white;
    width: 100%;
    left: 0;
    position: sticky;
    top: 0;
    padding: 0px 0 10px 0;
    border-bottom: 1px solid #3e3e3e;
}
.modal__media {
    margin: 20px 3px 30px 3px;
}
.modal__close {
    position: absolute;
    top: 0px;
    right: 1px;
    width: 44px;
    height: 24px;
    border: 0;
    background: #111;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: grid
;
    place-items: center;
    z-index: 2;
}

.modal__close:hover { background: #000; }

.modal__loading {
  padding: 60px 10px;
  text-align: center;
  color: #666;
  font-size: var(--fs-2);
}

/* Mobile: fill almost all the screen */
@media (max-width: 640px) {
  .modal {
    width: 98vw;
    max-height: 98vh;
    border-radius: 10px;
  }
  .modal__body { max-height: 98vh; }
}
/* Fallback when dialog API isn’t available */
.modal.is-open {
  position: fixed;
  inset: 4vh 4vw auto 4vw;
  max-height: 92vh;
  display: block;
}
.modal.is-open::backdrop { display: none; } /* no effect; backdrop handled by page */

/* Cards overlay (already have data-alt on <figure class="slide__media">) */
.slide__media::after {
  content: attr(data-alt);
  /* existing overlay styles… (positioning, color, etc.) */
  font-size: var(--alt-size, clamp(12px, 2vw, 13px)); /* <-- dynamic size */
  line-height: 1.35;
}

/* Optional: readable max width for long captions */
.slide__media::after,
.modal__media::after {
  max-width: 60ch; 
}
.modal__media img {
    max-width: 770px;
    margin: auto !important;
}


.project__section { margin-top: 1.25rem; }
.project__section-title {
  margin: .25rem 0 .5rem;
  line-height: 1.2;
  font-weight: 600;
}
.project__section .rte > :first-child { margin-top: 0; }



.project__section .rte { display: block; color: inherit; }
.project__section .rte p { margin: .5rem 0; }

.super-modal {
    position: absolute;
    background: #383838;
    width: calc(100% - 46px);
    border-top: 1px solid white;
    border-left: 1px solid white;
    height: 24px;
}

a.modal__brand {
color: white;
    text-decoration: none;
    font-size: 10px;
    padding-left: 10px;
    vertical-align: middle;
    position: absolute;
    top: 4px;
}
.modal__new-tab {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 0;
    margin: 0;
    position: absolute;
    right: 10px;
    top: 1px;
}

.modal__new-tab .new-tab-icon {
    display: inline-block;
    width: 19px;
    height: 18px;
    vertical-align: middle;
    padding-top: 2px;
}

.modal__share:hover .share-icon {
  opacity: 1;
}

.modal__copy {
    background: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 0;
    margin: 0 0 0 8px;
    position: absolute;
    right: 40px;
    top: 2px;
}

.modal__copy .copy-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
    opacity: 0.9;
}

.modal__copy:hover .copy-icon {
  opacity: 1;
}

div#modalToast {
    position: absolute;
    right: 40px;
    top: 30px;
    font-size: 11px;
}

.modal__caption {
    font-size: 0.75rem;
    line-height: 1.3;
    opacity: 0.7;
    text-align: left;
    max-width: 770px;
    margin: 10px auto !important;
}

.project__credits {
  margin-bottom: 0.75rem;
}

.project__credits .project__section-title {
  font-weight: 600;
}


.video-embed {
  margin: .5rem 0 1rem;
}
.video-embed__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;      /* modern browsers */
  background: #000;
}
.video-embed__inner iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.modal__media--trailing {
  margin-top: 1rem;
}
.modal__media--trailing img {
  width: 100%; height: auto; display: block;
}
.media-caption {
  font-size: 0.9rem;
  opacity: .8;
  margin-top: .4rem;
}


#glossary { --kw-sticky: 32px; } /* adjust if your sticky header changes height */

/* highlight the open keyword row */
.kw-item.is-active .kw-btn {
  background:#d8d8d8;
  transition: background-color 220ms ease, color 220ms ease;
}



h2#info-title {
    padding: 5px 17px 5px;
    font-size: 20px;
    font-weight: bold;
}
div#infoContent .modal__header {
    padding: 0;
}dialog#infoModal .modal__close {
    height: 36px;
    margin-top: 1px;
}
.video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  margin: .5rem 0 1rem;
}
.video-wrap > iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}



/* Acknowledgement block */
.ack {
  --ack-gap: 16px;
  margin-block: 24px 0;
    margin-top: 70px;
    padding: 46px 0 0;
  border-top: 1px solid #eee;
  display: grid;
  grid-template-columns: 140px 200px 1fr 1fr 160px; /* A B C D E */
  gap: var(--ack-gap);
  font-size: 0.65rem;
}

/* Ensure images can’t be dragged */
.ack img {
  max-width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Alignment rules */
.ack__item--a,
.ack__item--b,
.ack__item--e {
  align-self: center;  /* logos + final link vertically centered */
}

.ack__item--c,
.ack__item--d {
  align-self: start;   /* text columns top aligned */
}
.ack__item.ack__item--e a {
    color: #5d5d5d;
}

.ack__link {
  text-decoration: underline;
}

/* Stack nicely on smaller widths */
@media (max-width: 1000px) {
  .ack {
    grid-template-columns: 140px 1fr;
  }
  .ack__item--c,
  .ack__item--d,
  .ack__item--e {
    grid-column: 1 / -1;
  }
}
