/* ============================================================
   Design tokens — one system for the whole site
   White is the page. Black is type. The three neutrals are accents.
   ============================================================ */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('fonts/bodoni-moda-latin-opsz-normal.woff2') format('woff2');
  font-weight: 400 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('fonts/bodoni-moda-latin-opsz-italic.woff2') format('woff2');
  font-weight: 400 900; font-style: italic; font-display: swap;
}

:root {
  /* palette (from the brand reference) */
  --black: #000000;
  --granite: #B7A7A9;
  --brown: #91766E;
  --beige: #F6ECE3;
  --white: #FFFFFF;

  /* roles */
  --bg: var(--white);
  --ink: var(--black);          /* primary type */
  --ink-soft: rgba(0, 0, 0, .62); /* captions / secondary info (>= 5.5:1 on white) */
  --accent: var(--brown);       /* hover, small labels, active states */
  --rule: var(--granite);       /* hairlines and quiet borders */
  --wash: var(--beige);         /* subtle fills */

  /* type families */
  --serif: 'Bodoni Moda', 'Didot', 'Bodoni 72', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* type scale */
  --t-display: clamp(40px, 6.4vw, 104px);   /* home / project titles */
  --t-title: clamp(34px, 4.6vw, 72px);      /* page titles */
  --t-label: 12.5px;                        /* uppercase tracked labels */
  --t-caption: 11.5px;
  --track-label: .18em;
  --track-small: .1em;
  --ease: .25s ease;

  --side: 4vw;
  --header-h: 84px;   /* slim solid navigation strip */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 16;
  font-weight: 400;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
::selection { background: var(--beige); color: var(--black); }
a { transition: color var(--ease), border-color var(--ease), background var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  padding: 0 var(--side);
  background: var(--white);   /* plain solid strip, edge to edge */
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
}

.brand-mark { width: 54px; height: 54px; object-fit: contain; }

.site-nav {
  display: flex;
  gap: 36px;
  font-size: var(--t-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
}

.site-nav a { padding-bottom: 4px; border-bottom: 1px solid transparent; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { border-bottom-color: var(--accent); }

.burger {
  display: none;
  background: none;
  color: inherit;
  border: 0;
  width: 52px;
  height: 28px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 50;
}
.burger span {
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  color: inherit;
  transition: transform .25s ease, top .25s ease;
}
.burger span:nth-child(1) { top: 9px; }
.burger span:nth-child(2) { top: 19px; }
body.menu-open .burger span:nth-child(1) { top: 14px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 14px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 40;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 0 var(--side);
}
.menu-overlay a {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 16;
  font-size: clamp(40px, 11vw, 72px);
  letter-spacing: -0.012em;
  line-height: 1.05;
}
.menu-overlay a:hover { color: var(--accent); }
body.menu-open .menu-overlay { display: flex; }
body.menu-open .site-header { color: var(--ink); z-index: 60; }
body.menu-open .brand-mark { filter: none; }

main { padding-top: var(--header-h); }

/* ---------- Pills ---------- */
.pill {
  display: block;
  width: 323px;
  max-width: 100%;
  text-align: center;
  background: var(--black);
  color: var(--white);
  border-radius: 300px;
  padding: 9px 32px;
  font-size: var(--t-label);
  font-weight: 500;
  line-height: 22px;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  transition: background var(--ease);
}
.pill:hover { background: var(--brown); }

/* ---------- Home ---------- */
.hero-full {
  position: relative;
  height: calc(91vh - var(--header-h));
  min-height: 560px;
  overflow: hidden;
  margin-bottom: 31px;
}
.hero-full-img { width: 100%; height: 100%; object-fit: cover; }
.hero-full-overlay {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.30);   /* neutral scrim so the title stays legible */
}
.hero-full-content {
  position: absolute;
  left: 0; right: 0;
  top: 46%;
  transform: translateY(-50%);
  text-align: center;
  padding: 0 var(--side);
  color: var(--white);
}
.hero-full-content h1 {
  font-size: var(--t-display);
  line-height: 1;
  color: var(--white);
}
.hero-sub {
  margin: 22px auto 0;
  max-width: 620px;
  font-size: var(--t-label);
  line-height: 1.7;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
}
.hero-sub + .hero-sub { margin-top: 6px; }

.tile-gallery {
  background: var(--white);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 17px;
}
.tile { display: block; position: relative; overflow: hidden; grid-column: span 3; aspect-ratio: 16 / 9; }
.tile img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* project name + category: fades in over a soft dark scrim on hover / keyboard focus */
.tile-cap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 0 24px;
  color: var(--white);
  background: rgba(0, 0, 0, .42);
  opacity: 0;
  transition: opacity .45s ease;
}
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; }
.tile-name {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.08;
  letter-spacing: -.012em;
}
.tile-cat {
  margin-top: 12px;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
/* touch screens cannot hover: keep the name and category visible as a quiet bottom caption */
@media (hover: none), (max-width: 560px) {
  .tile-cap {
    justify-content: flex-end;
    padding: 36px 18px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 100%);
    opacity: 1;
  }
  .tile-name { font-size: 22px; }
  .tile-cat { margin-top: 6px; }
}

.portfolio-cta {
  padding: 36px var(--side) 80px;
  display: flex;
  justify-content: flex-end;
}

/* ---------- Portfolio index ---------- */
.listing {
  /* full-width gallery: same side margins as the header, statement then grid */
  padding: clamp(32px, 4vw, 56px) var(--side) 90px;
}
.listing-title {
  font-size: var(--t-display);   /* same display size as "Navya Behki" on the home page */
  line-height: 1.04;
  margin: 0 0 clamp(26px, 2.8vw, 40px);
  color: var(--ink);
  text-align: left;
  text-wrap: balance;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
}
.project-card { display: block; }
.project-card-img {
  aspect-ratio: 6 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: var(--beige);
}
.project-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .35s ease;
}
.project-card:hover .project-card-img img { opacity: .9; }
.project-card:hover .project-card-meta span:first-child { color: var(--accent); }
.project-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 22px;
  font-size: var(--t-label);
  font-weight: 500;
  line-height: 18px;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
}
.project-card-meta span:first-child { transition: color var(--ease); }
.project-card-meta span:last-child { color: var(--accent); letter-spacing: var(--track-label); }
/* portfolio cards: name + number on the first line, category directly beneath in the same type */
.project-card-meta:has(.pc-cat) { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
.project-card-meta:has(.pc-cat) span:first-child { grid-area: 1 / 1; }
.project-card-meta:has(.pc-cat) span:last-child { grid-area: 1 / 2; }
.project-card-meta .pc-cat { grid-area: 2 / 1 / 3 / 3; color: var(--ink-soft); }

/* ---------- Project detail ---------- */
/* One spacing system for every project page:
   --gutter  left/right page margin (hero, headings, images, drawings share it)
   --gap     gap between images, horizontal and vertical
   --head-gap  heading rule -> first content
   --sec-gap   section -> section
   --cap-gap   image -> caption                                              */
:root {
  --gutter: max(var(--side), calc((100vw - 1560px) / 2));
  --gap: 16px;
  --head-gap: 28px;
  --sec-gap: 112px;
  --cap-gap: 10px;
}

.project-hero {
  position: relative;
  margin: 0 var(--gutter);
  height: min(69vh, 640px);
  min-height: 380px;
  overflow: hidden;
}
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); }  /* neutral scrim for title legibility */
.project-hero-text {
  position: absolute; left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  text-align: center;
  padding: 0 24px;
  color: var(--white);
}
.project-hero-text h1 {
  font-size: clamp(36px, 5.6vw, 88px);
  line-height: 1.02;
  color: var(--white);
  max-width: 14em;
  margin-inline: auto;
}
.project-hero-text p {
  margin: 20px 0 0;
  font-size: var(--t-label);
  font-weight: 500;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

.project-body { padding: 64px var(--gutter) 0; }
.project-intro { margin: 0 0 var(--sec-gap); }
.project-intro .body-text { max-width: 820px; }
.project-intro .pdf-links { margin-top: 20px; }
.project-intro .proj-info { margin-top: 36px; }
/* a second sub-heading inside a section sits half a section-gap below the content above it */
.psec > .section-sub { margin-top: calc(var(--sec-gap) / 2); }

.body-text { font-size: 16px; line-height: 1.7; margin: 0; max-width: 760px; }

.psec { margin: 0 0 var(--sec-gap); }
.psec > * + * { margin-top: var(--gap); }
.psec > .section-head + * { margin-top: 0; }
.psec > .body-text + * { margin-top: var(--head-gap); }

.section-head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 14px;
  margin: 0 0 var(--head-gap);
}
/* section titles are quiet Inter labels; the serif is kept for titles */
.section-heading {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}
.section-sub {
  margin: 6px 0 0;
  font-size: var(--t-label);
  font-weight: 500;
  line-height: 18px;
  letter-spacing: var(--track-small);
  text-transform: uppercase;
  color: var(--accent);
}

/* composed image rows: columns share one height, nothing is cropped */
.prow {
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  width: 100%;
  max-width: calc(100% * var(--fill, 1));
  margin-inline: auto;
}
.pcol {
  flex: var(--w) 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.prow-single { justify-content: center; }
.prow-single .pcol { flex: 0 1 auto; width: calc(100% * var(--s, 1)); }
/* portrait images are capped to the viewport height so they never run off-screen */
.prow-cap .pcol {
  width: min(calc(100% * var(--s, 1)), calc(var(--w) * 96vh));
  width: min(calc(100% * var(--s, 1)), calc(var(--w) * 96svh));
}
.pf { margin: 0; }
.pf img { width: 100%; height: auto; display: block; }
.pf figcaption {
  margin-top: var(--cap-gap);
  font-size: var(--t-caption);
  font-weight: 500;
  line-height: 17px;
  text-transform: uppercase;
  letter-spacing: var(--track-small);
  color: var(--ink-soft);
}

/* project facts + pdf links */
.proj-info {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px var(--gap);
  font-size: 14px;
  line-height: 20px;
}
.proj-info dt { font-size: var(--t-caption); font-weight: 500; letter-spacing: var(--track-small); text-transform: uppercase; color: var(--ink-soft); }
.proj-info dd { margin: 2px 0 0; }
.pdf-links { display: flex; flex-wrap: wrap; gap: 10px; }
.pdf-pill {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: 300px;
  padding: 6px 20px;
  font-size: var(--t-caption);
  font-weight: 500;
  line-height: 18px;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.pdf-pill:hover { background: var(--beige); border-color: var(--brown); color: var(--brown); }

/* ---------- Renders carousel ---------- */
.carousel { position: relative; outline: none; }
.car-frame { position: relative; }
.car-stage { width: 100%; aspect-ratio: var(--ar0, 1.5); max-height: 86vh; max-height: 86svh; position: relative; }
.car-slide { margin: 0; }
.car-slide img {
  display: block;
  width: min(100%, calc(var(--ar) * 86vh));
  width: min(100%, calc(var(--ar) * 86svh));
  height: auto;
  margin: 0 auto;
}
.js .car-stage { transition: height .55s cubic-bezier(.4, 0, .2, 1); overflow: hidden; }
.js .car-slide {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; visibility: hidden;
  transition: opacity .6s ease, visibility 0s linear .6s;
}
.js .car-slide.is-active { opacity: 1; visibility: visible; transition-delay: 0s; }
.car-btn {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  color: var(--ink);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}
.car-btn:hover { background: var(--white); color: var(--accent); }
.car-btn:focus-visible, .carousel:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.car-prev { left: 12px; }
.car-next { right: 12px; }
.car-count {
  margin-top: var(--cap-gap);
  text-align: center;
  font-size: var(--t-label);
  font-weight: 500;
  line-height: 17px;
  letter-spacing: var(--track-label);
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.car-count .car-cur { color: var(--ink); }
.carousel-single .car-slide { position: static; opacity: 1; visibility: visible; }
.carousel-single .car-stage { aspect-ratio: auto; max-height: none; overflow: visible; }
html:not(.js) .car-btn, html:not(.js) .car-count { display: none; }
html:not(.js) .car-stage { aspect-ratio: auto; max-height: none; }
html:not(.js) .car-slide { position: static; margin-bottom: var(--gap); }
@media (prefers-reduced-motion: reduce) {
  .js .car-stage, .js .car-slide { transition: none; }
}

.project-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 56px var(--gutter) 80px;
}

/* ---------- About ---------- */
.about-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--side);
  padding: 20px var(--side) 90px;
  align-items: start;
}
.about-content h1 {
  font-size: var(--t-title);
  line-height: 1.02;
  font-style: italic;
  margin: 0 0 34px;
}
.about-content .body-text { max-width: 560px; margin-bottom: 16px; }
.about-photo img { width: 100%; filter: grayscale(1); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 40px var(--side);
  margin-top: 8px;
  background: var(--white);
  border-top: 1px solid var(--rule);
}
.footer-name {
  font-family: var(--serif);
  font-variation-settings: 'opsz' 16;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.footer-icons { display: flex; gap: 8px; }
.icon-btn {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--black);
  color: var(--white);
  border-radius: 5px;
  transition: background var(--ease);
}
.icon-btn:hover { background: var(--brown); }
.footer-email { font-size: var(--t-label); font-weight: 500; letter-spacing: var(--track-small); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; }
.footer-email:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --side: 24px; --gap: 12px; --head-gap: 22px; --sec-gap: 76px; }
  .project-body { padding-top: 48px; }
  /* carousel: controls sit below the image so nothing covers it */
  .carousel { padding-bottom: 54px; }
  .car-frame { position: static; }
  .car-count { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); margin: 0; line-height: 44px; }
  .car-btn { top: auto; bottom: 0; transform: none; background: transparent; border: 1px solid var(--rule); }
  .car-btn:hover { background: var(--beige); border-color: var(--brown); color: var(--brown); }
  .car-prev { left: 0; }
  .car-next { right: 0; }
  .carousel-single { padding-bottom: 0; }
  .site-nav { display: none; }
  .burger { display: block; }
  .project-grid { column-gap: 20px; row-gap: 0; }
  .about-page { grid-template-columns: 1fr; }
  .about-photo { order: -1; }
  .site-footer { flex-direction: column; text-align: center; padding: 36px var(--side); gap: 16px; }
  .tile-gallery { gap: 10px; }
  .portfolio-cta { padding: 24px var(--side) 56px; }
  .pill { width: 100%; }
}

@media (max-width: 700px) {
  /* rows collapse to one column; images keep natural aspect, same gap */
  .prow { flex-direction: column; max-width: 100%; align-items: stretch; }
  .prow-single { align-items: center; }
  .pcol { flex: 0 0 auto; width: 100%; }
  .prow-single .pcol { width: calc(100% * var(--s, 1)); }
  .prow-cap .pcol { width: min(calc(100% * var(--s, 1)), calc(var(--w) * 96svh)); }
  .prow:not(.prow-single) > .pcol { width: 100% !important; }
}

@media (max-width: 560px) {
  :root { --gap: 10px; --head-gap: 18px; --sec-gap: 60px; }
  .hero-full { height: calc(86vh - var(--header-h)); min-height: 500px; }
  .tile { grid-column: span 6; }
  .project-grid { grid-template-columns: 1fr; }
  .project-pager { flex-direction: column; }
  .project-hero { height: 52vh; }
}

/* ---------- Mey, Mehr, Soraya: paired drawings + lightbox ---------- */
/* regular drawing left, finishes drawing right, equal widths; stacked on small screens */
.ppair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
  align-items: start;
}
.ppair-col { min-width: 0; }
@media (max-width: 700px) {
  .ppair { grid-template-columns: minmax(0, 1fr); gap: var(--head-gap); }
}

[data-lightbox] img[data-lb] { cursor: zoom-in; }
[data-lightbox] img[data-lb]:focus-visible { outline: 2px solid var(--brown); outline-offset: 3px; }

.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0, 0, 0, .97);
  color: #fff;
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, visibility 0s linear .18s;
  overscroll-behavior: contain;
}
.lb.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.lb-stage {
  position: absolute; inset: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  cursor: grab;
}
.lb-stage.is-zoomed { cursor: grab; }
.lb-stage.is-dragging { cursor: grabbing; }
.lb-img {
  position: absolute; left: 50%; top: 50%;
  max-width: none; max-height: none;
  transform-origin: 0 0;
  will-change: transform;
  -webkit-user-drag: none;
  pointer-events: none;
}
.lb-img { opacity: 0; transition: opacity .2s ease; }
.lb-img.is-in { opacity: 1; }
.lb-img.is-anim { transition: opacity .2s ease, transform .18s ease; }
.lb-btn {
  position: absolute;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  padding: 0;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
  transition: background var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-btn svg { display: block; }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; margin-top: -20px; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-tools {
  position: absolute; left: 50%; bottom: 16px;
  transform: translateX(-50%);
  display: flex; gap: 8px;
}
.lb-tools .lb-btn { position: static; }
.lb-count {
  position: absolute; top: 24px; left: 20px;
  font-size: var(--t-caption); font-weight: 500;
  letter-spacing: var(--track-small); text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
}
.lb-btn[hidden], .lb-count[hidden] { display: none; }
body.lb-lock { overflow: hidden; }
.lb:not(.is-open) { pointer-events: none; }
@media (max-width: 560px) {
  .lb-btn { width: 38px; height: 38px; }
  .lb-close { top: 10px; right: 10px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-tools { bottom: 10px; }
  .lb-count { top: 20px; left: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb, .lb-img, .lb-img.is-anim { transition: none; }
}


/* ---------- Image carousels as a continuous strip ---------- */
.carousel { --wm: .77; }                       /* share of the gallery width taken by the current image */
.strip-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  container-type: inline-size;
  position: relative;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-slide {
  flex: 0 0 calc(var(--wm) * 100cqw);
  width: calc(var(--wm) * 100cqw);
  height: calc(var(--wm) * 100cqw / var(--armin, 1.5));
  max-height: 86vh; max-height: 86svh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.strip-slide:last-child { scroll-snap-align: end; }   /* last image sits flush right: no empty space */
.strip-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: left center;
  -webkit-user-drag: none;
  user-select: none;
}
.strip-track { cursor: grab; }
.strip-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.strip-track.is-dragging .strip-slide img { pointer-events: none; }
@media (max-width: 900px) { .carousel { --wm: .8; } }
@media (max-width: 560px) { .carousel { --wm: .86; } }
html:not(.js) .strip-track { scroll-snap-type: x proximity; }

/* ---------- Framed presentation slides (CELINE): a thin rule marks where one slide starts and ends ---------- */
.carousel-framed .strip-slide img,
.pf-framed img { border: 1px solid var(--rule); }
