/* ============================================================
   elisa leclé — stylesheet
   Refined, editorial, gallery-quality. Monochrome only.
   ============================================================ */

:root {
  --bg-white: #FFFFFF;
  --bg-grey: #F2F1EF;     /* warm light grey for costume / archive sections */
  --bg-page: #F6F5F3;     /* page background — light warm grey, toward white */
  --text-primary: #1A1A1A;
  --text-muted: #888888;
  --line: #E2E1DE;

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Raleway", "Helvetica Neue", Arial, sans-serif;

  --topbar-h: 100px;
  --pad-section: clamp(72px, 12vw, 120px);
  --pad-x: clamp(20px, 6vw, 80px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: .012em;        /* airy, refined */
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.7;
  overflow-x: hidden;            /* no horizontal scroll, ever */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 300; margin: 0; }

/* scroll offset so anchors clear the fixed bar */
section[id] { scroll-margin-top: var(--topbar-h); }

/* ---------- top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: var(--bg-page);     /* same warm grey as the rest of the site */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color .4s ease, background .4s ease, opacity .4s ease, transform .4s ease;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }

/* over the home video: transparent bar with white logo/menu, sitting on top of the video */
.topbar.on-hero {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.topbar.on-hero .hamburger span { background: #fff; }
.topbar.on-hero .brand-tagline {
  color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
/* black signature logo -> white over the video */
.topbar.on-hero .brand-logo {
  filter: brightness(0) invert(1) drop-shadow(0 1px 14px rgba(0, 0, 0, .35));
}

/* logo + tagline: dead-centered in the bar regardless of side widths */
.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  line-height: 1;
}
.brand-logo {
  height: clamp(28px, 6vw, 50px);
  width: auto;
  display: block;
  transition: filter .4s ease;
}
.brand-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(6.5px, 1.05vw, 8.5px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: pre;   /* keeps the wide spacing around the separators */
  margin-top: 6px;
}
.topbar.on-hero .brand-sub {
  color: rgba(255, 255, 255, .75);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.brand-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(8px, 1.4vw, 11px);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .4s ease;
}

.topbar-left  { display: flex; align-items: center; }
.topbar-right { display: flex; align-items: center; gap: 22px; }

/* language toggle */
.lang-toggle { display: flex; align-items: center; gap: 8px; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--text-muted);
  padding: 4px 2px;
  transition: color .25s ease;
}
.lang-btn.is-active { color: var(--text-primary); }
.lang-sep { color: var(--line); font-size: 12px; }

/* hamburger */
.hamburger {
  width: 28px; height: 48px;
  display: flex; flex-direction: column;
  justify-content: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block; height: 1px; width: 28px;
  background: var(--text-primary);
  transition: transform .35s ease, opacity .35s ease;
}

/* ---------- compact side menu (slides in from the right) ---------- */
.menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(84vw, 312px);
  background: var(--bg-white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(26px, 6vw, 44px);
  transform: translateX(100%);
  visibility: hidden;
  box-shadow: 0 0 0 100vmax rgba(20, 20, 20, 0);  /* dim backdrop, grows when open */
  transition: transform .5s cubic-bezier(.22, .61, .36, 1), visibility .5s, box-shadow .5s ease;
}
.menu.is-open {
  transform: translateX(0);
  visibility: visible;
  box-shadow: 0 0 0 100vmax rgba(20, 20, 20, .22);
}

.menu-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  font-size: 28px; font-weight: 200;
  color: var(--text-primary);
  line-height: 1;
}

.menu-list { text-align: left; width: 100%; }
.menu-list li { margin: clamp(7px, 1.5vh, 13px) 0; }
.menu-list a {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(19px, 2.3vw, 25px);
  letter-spacing: .03em;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  transition: opacity .25s ease, padding-left .25s ease;
}
.menu-list a:hover { opacity: .5; padding-left: 5px; }

/* ---------- multi-page layout ---------- */
/* content pages (everything except the home video) reserve space for the solid bar */
body.subpage { padding-top: var(--topbar-h); }
body.subpage .topbar { border-bottom-color: var(--line); }
.subpage .section { min-height: calc(100svh - var(--topbar-h)); }
/* "you are here" marker in the menu */
.menu-list a.is-current {
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}

/* ---------- generic section ---------- */
.section {
  padding: var(--pad-section) var(--pad-x);
}
.section-head { margin-bottom: clamp(40px, 7vw, 72px); }

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 5.2vw, 50px);
  letter-spacing: .015em;
  line-height: 1.1;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

/* image credit (appended by JS) */
.credit {
  font-size: 11px;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: .02em;
}

/* ---------- 0. hero (full-screen video only) ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #000;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* elegant "watch full screen" prompt, bottom-center of the home video */
.hero-fs {
  position: absolute;
  left: 50%;
  bottom: clamp(26px, 6vh, 56px);
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 8px 14px;
  transition: opacity .3s ease, transform .3s ease;
  animation: heroFsIn 1.1s ease .7s both;
}
.hero-fs:hover { opacity: .6; }
.hero-fs-icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 10px rgba(0, 0, 0, .45));
}
.hero-fs-label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
}
@keyframes heroFsIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ---------- 1. about ---------- */
.about { background: transparent; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.about-text .section-title { margin-bottom: clamp(28px, 4vw, 46px); }

/* editorial blocks, separated by a short hairline */
.about-block { margin-bottom: clamp(26px, 4vw, 42px); max-width: 54ch; }
.about-block:last-child { margin-bottom: 0; }
.about-block + .about-block::before {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--line);
  margin-bottom: clamp(24px, 3.5vw, 38px);
}
.about-block-text {
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.8;
  color: var(--text-primary);
  white-space: pre-line;
}

/* ---------- shared: intro paragraph under a section title ---------- */
.section-intro {
  margin: 22px 0 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-primary);
}

/* ---------- shared: numbered subcategory blocks (Costume, Co_Lab) ---------- */
.cat-block { margin-bottom: clamp(56px, 9vw, 96px); }
.cat-block:last-child { margin-bottom: 0; }

.cat-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: clamp(22px, 3.5vw, 38px);
}
.cat-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-muted);
  font-feature-settings: "tnum";
}
.cat-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(22px, 3.4vw, 34px);
  letter-spacing: .02em;
}

/* ---------- 2. fluid sculptures ---------- */
.fluid, .couture, .costume, .editorials, .appearances, .hub, .presspage-section { background: transparent; }

/* ---------- 3. costume ---------- */
.costume { background: transparent; }

/* ---------- 4. co_lab ---------- */
.colab { background: transparent; }
.colab-intro {
  max-width: 66ch;
  margin-bottom: clamp(48px, 8vw, 88px);
}
.colab-text {
  margin: 0 0 18px;
  font-size: clamp(14px, 1.35vw, 16px);
  line-height: 1.8;
  color: var(--text-primary);
}
.colab-text:last-child { margin-bottom: 0; }

/* ---------- galleries (shared): ONE photo at a time, arrow + swipe ---------- */
.gallery { position: relative; max-width: 560px; }
.gallery-stage { position: relative; }

.gallery-grid {
  display: flex;
  align-items: flex-start;          /* slides start under the title; height follows the visible photo (main.js) */
  transition: height .35s ease;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;            /* clean: navigate via arrow / swipe */
}
.gallery-grid::-webkit-scrollbar { display: none; }

.gallery-item {
  flex: 0 0 100%;                   /* exactly one photo per view */
  width: 100%;
  margin: 0;
  scroll-snap-align: center;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #e7e6e3;
  display: block;
  cursor: zoom-in;
}

/* Landscape / square photos (video stills, posters, magazine spreads, Instagram posts)
   keep their natural proportions, never cropped; shorter slides sit vertically centered.
   The class is set by main.js once the image has loaded. */
.gallery-item.is-wide {
  display: block;
}
.gallery-item.is-wide img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* prev / next arrows — outside the photo, just the glyph (no button) */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none; background: none; box-shadow: none;
  padding: 10px;
  color: var(--text-muted);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center; justify-content: center;
  z-index: 5;
  transition: color .25s ease, opacity .25s ease;
}
.gallery-nav:hover { color: var(--text-primary); }
.gallery-nav.prev { left: -38px; }
.gallery-nav.next { right: -38px; }
.gallery.has-overflow .gallery-nav { display: flex; }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }   /* hidden at the ends */
@media (max-width: 720px) {
  .gallery-nav.prev { left: -22px; }
  .gallery-nav.next { right: -22px; }
}

/* ---------- collage galleries (Fluid Sculptures): dense scattered collage,
   2–3 columns, photos staggered at different heights, no scrolling ---------- */
.gallery--collage { max-width: 1100px; }
.collage-flow {
  columns: 2;
  column-gap: clamp(24px, 4vw, 56px);
}
@media (min-width: 1000px) { .collage-flow { columns: 3; } }
.gallery--collage .gallery-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 clamp(28px, 4.5vw, 60px);
}
.gallery--collage .gallery-item img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}
/* varying widths + offsets -> the scattered, hand-placed look */
.gallery--collage .gallery-item:nth-child(5n+2) { width: 82%; margin-left: 10%; margin-top: clamp(28px, 5vw, 72px); }
.gallery--collage .gallery-item:nth-child(5n+3) { width: 92%; margin-left: 2%; }
.gallery--collage .gallery-item:nth-child(5n+4) { width: 76%; margin-left: 16%; margin-top: clamp(20px, 3.5vw, 48px); }
.gallery--collage .gallery-item:nth-child(5n)   { width: 88%; margin-left: 4%; }
.gallery--collage .gallery-item:first-child { margin-top: 0; }
@media (max-width: 720px) {
  .collage-flow { column-gap: 16px; }
  .gallery--collage .gallery-item { margin-bottom: 20px; }
  .gallery--collage .gallery-item:nth-child(5n+2) { margin-top: 24px; }
  .gallery--collage .gallery-item:nth-child(5n+4) { margin-top: 16px; }
}

/* ---------- fluid sub-sections (Forms / On Paper) ---------- */
.fluid-sub { margin-top: clamp(64px, 10vw, 120px); }
.fluid-sub .cat-head { margin-bottom: clamp(20px, 3vw, 36px); }

/* ---------- lightbox (enlarge any gallery image) ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(18, 18, 18, .95);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-figure {
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 92vw; max-height: 88vh;
}
.lb-img {
  max-width: 92vw; max-height: 82vh; width: auto; height: auto;
  object-fit: contain; box-shadow: 0 12px 50px rgba(0, 0, 0, .55);
}
.lb-credit { color: rgba(255, 255, 255, .7); font-size: 11px; font-style: italic; letter-spacing: .02em; }
.lb-credit:empty { display: none; }
.lb-close {
  position: absolute; top: 16px; right: 22px;
  width: 48px; height: 48px;
  background: none; border: none; color: #fff; font-size: 34px; line-height: 1; cursor: pointer;
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border: none; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lb-nav:hover { background: rgba(255, 255, 255, .25); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-count {
  position: absolute; bottom: 20px; left: 0; right: 0; text-align: center;
  color: rgba(255, 255, 255, .6); font-size: 12px; letter-spacing: .2em;
}
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lb-nav { width: 44px; height: 44px; font-size: 24px; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-close { top: 6px; right: 8px; }
}

/* ---------- 3. art ---------- */
.art { background: transparent; }
.art-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vw, 64px);
  width: 100%;
  max-width: 1100px;
}
.art-soon { max-width: min(58ch, 100%); }
.art-soon-lead {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(30px, 5.5vw, 52px);
  letter-spacing: .01em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.art-soon-text {
  margin: 4px 0;
  font-size: clamp(15px, 1.4vw, 17px);
  letter-spacing: .02em;
  color: var(--text-muted);
  overflow-wrap: break-word;
}
.art-gallery {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2vw, 22px);
  width: 100%;
  max-width: 760px;
}
.art-gallery img {
  width: 100%;
  height: auto;
  background: #e7e6e3;
  cursor: zoom-in;
  display: block;
}
.art-link {
  display: inline-block;
  margin-top: 14px;
  font-size: clamp(15px, 1.4vw, 17px);
  letter-spacing: .04em;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 2px;
  transition: opacity .25s ease;
}
.art-link:hover { opacity: .55; }

/* ---------- 4. contact & philosophy ---------- */
.contact { background: transparent; }
.contact-philosophy { max-width: 880px; }
.contact-item {
  display: grid;
  grid-template-columns: clamp(150px, 22vw, 210px) 1fr;
  gap: clamp(10px, 2vw, 34px);
  align-items: baseline;
  padding: clamp(16px, 2.2vw, 24px) 0;
  border-top: 1px solid var(--line);
}
.contact-item:last-child { border-bottom: 1px solid var(--line); }
.contact-key {
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-primary);
}
.contact-val {
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.75;
  color: var(--text-muted);
}
@media (max-width: 600px) {
  .contact-item { grid-template-columns: 1fr; gap: 5px; }
}

.contact-foot {
  margin-top: clamp(42px, 6vw, 70px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.contact-email {
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: .03em;
  border-bottom: 1px solid var(--text-primary);
  padding-bottom: 3px;
  transition: opacity .25s ease;
}
.contact-email:hover { opacity: .5; }
.contact-ig {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 13px;
  letter-spacing: .08em;
  transition: color .25s ease;
}
.contact-ig:hover { color: var(--text-primary); }
.ig-icon { width: 17px; height: 17px; display: block; flex: 0 0 auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* desktop: about side-by-side */
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* hide scrollbar jump under fixed header for first section spacing handled per section */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ============================================================
   INLINE EDITOR (visible only to the logged-in client)
   ============================================================ */
/* keep multi-line texts honouring line breaks the client adds */
.bio, .section-intro, .colab-text, .art-soon-text { white-space: pre-line; }

body.ell-has-bar { padding-bottom: 64px; }

.ell-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  display: flex; align-items: center; gap: 12px;
  padding: 10px clamp(14px, 4vw, 28px);
  background: #1a1a1a; color: #fff;
  font-family: "Raleway", system-ui, sans-serif; font-size: 14px;
  box-shadow: 0 -2px 20px rgba(0,0,0,.25);
}
.ell-tag { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #999; }
.ell-btn {
  font: inherit; cursor: pointer; color: #fff;
  background: transparent; border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px; padding: 8px 14px; transition: background .15s, border-color .15s;
}
.ell-btn:hover { background: rgba(255,255,255,.12); }
.ell-btn.ell-primary { background: #fff; color: #1a1a1a; border-color: #fff; }
.ell-btn.ell-primary:disabled { opacity: .4; cursor: default; }
.ell-btn.ell-ghost { border-color: transparent; color: #bbb; margin-left: auto; }
.ell-btn.ell-ghost:hover { color: #fff; }
.ell-status { font-size: 13px; color: #9ad59a; min-width: 90px; }

/* edit-mode affordances */
body.ell-editing [data-field],
body.ell-editing #c-phone,
body.ell-editing #c-email {
  outline: 1px dashed rgba(0,0,0,.28); outline-offset: 4px; cursor: text; border-radius: 2px;
}
body.ell-editing [contenteditable]:focus { outline: 2px solid #1a1a1a; }
body.ell-editing .gallery-item,
body.ell-editing [data-edit-img] { outline: 1px dashed rgba(0,0,0,.3); outline-offset: 2px; }

.ell-linkbtn {
  font: inherit; font-size: 11px; cursor: pointer; margin-left: 8px;
  background: #1a1a1a; color: #fff; border: none; border-radius: 5px; padding: 3px 8px; vertical-align: middle;
}

/* "change image" button over single images / video */
.ell-imgbtn {
  position: absolute; top: 10px; left: 10px; z-index: 6;
  font: inherit; font-size: 12px; cursor: pointer;
  background: rgba(26,26,26,.9); color: #fff; border: none; border-radius: 7px; padding: 8px 12px;
}
.ell-imgbtn:hover { background: #1a1a1a; }

/* gallery per-item controls */
.ell-item-ctrls {
  position: absolute; top: 8px; right: 8px; z-index: 6; display: flex; gap: 4px;
}
.ell-ic {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(26,26,26,.88); color: #fff; cursor: pointer; font-size: 15px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ell-ic:hover { background: #1a1a1a; }
.ell-add {
  display: inline-flex; align-items: center; margin-top: 12px;
  font: inherit; font-size: 13px; cursor: pointer;
  background: #fff; color: #1a1a1a; border: 1px solid #1a1a1a; border-radius: 8px; padding: 8px 14px;
}
.ell-add:hover { background: #1a1a1a; color: #fff; }

/* ---- reorder popup (drag thumbnails) ---- */
.ell-reorder {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(18,18,18,.6);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  font-family: "Raleway", system-ui, sans-serif;
}
.ell-reorder-panel {
  background: #fff; border-radius: 14px; width: min(720px, 96vw); max-height: 88vh;
  display: flex; flex-direction: column; padding: 18px 18px 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.ell-reorder-title { margin: 0 0 14px; font-size: 16px; font-weight: 600; }
.ell-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px; overflow: auto; padding: 2px;
}
.ell-thumb {
  position: relative; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden;
  background: #ececea; cursor: grab; border: 2px solid transparent;
}
.ell-thumb:active { cursor: grabbing; }
.ell-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ell-thumb.noimg::after { content: "?"; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:#aaa; }
.ell-thumb.dragging { opacity: .35; }
.ell-thumb.over { border-color: #1a1a1a; }
.ell-thumb-num {
  position: absolute; top: 6px; left: 6px;
  background: rgba(26,26,26,.85); color: #fff; font-size: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ell-thumb-ar { position: absolute; bottom: 6px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 6px; }
.ell-thumb-ar .ell-ic { width: 26px; height: 26px; font-size: 14px; }
.ell-reorder-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.ell-reorder .ell-btn { color: #1a1a1a; background: #fff; border-color: #cfcecb; }
.ell-reorder .ell-btn:hover { background: #f4f3f1; }
.ell-reorder .ell-btn.ell-primary { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* ---- editable description under each carousel ---- */
.gallery-desc {
  margin: 16px 0 0;
  max-width: 62ch;
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre-line;
}
.gallery-desc:empty { display: none; }                 /* invisible to visitors when blank */
body.ell-editing .gallery-desc {                        /* but always editable in edit mode */
  display: block;
  min-height: 1.6em;
}
body.ell-editing .gallery-desc:empty::before {
  content: "[Descrizione della galleria — clicca per scrivere]";
  color: #b8b7b4;
  font-style: italic;
}

/* ---- expandable text ("Continua a leggere") ---- */
.reveal { max-width: 60ch; }
.reveal .section-intro { margin: 22px 0 0; }
.reveal:not(.is-open) .section-intro {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.reveal-toggle {
  margin-top: 16px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--text-muted);
  opacity: .9;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .25s ease, opacity .25s ease;
}
.reveal-toggle:hover { color: var(--text-primary); opacity: 1; }
.reveal-toggle::after {
  content: "↓"; font-size: 10px; line-height: 1; transition: transform .35s ease;
}
.reveal.is-open .reveal-toggle::after { transform: rotate(180deg); }
/* while editing: always show full text, hide the toggle */
body.ell-editing .reveal .section-intro {
  -webkit-line-clamp: unset; display: block; overflow: visible;
  -webkit-mask-image: none; mask-image: none;
}
body.ell-editing .reveal-toggle { display: none !important; }

/* ---- nested subcategories (e.g. Research Theater -> Richard III, Macbeth…) ---- */
.subcat-list {
  margin-top: clamp(20px, 3.5vw, 34px);
  margin-left: clamp(4px, 1vw, 10px);
  padding-left: clamp(18px, 3.5vw, 38px);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 7vw, 70px);
}
.subcat-head { margin-bottom: clamp(16px, 2.4vw, 24px); }
.subcat-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(17px, 2.1vw, 23px);
  letter-spacing: .02em;
  color: var(--text-primary);
}
.subcat-title::before {
  content: "";
  width: clamp(14px, 2vw, 22px);
  height: 1px;
  background: var(--text-muted);
  flex: 0 0 auto;
}
/* deeper level (e.g. Cinema & Screen -> Custom Made -> A/B/C) */
.subcat-title.is-deep {
  font-size: clamp(14px, 1.7vw, 18px);
  color: var(--text-primary);
}
.subcat-title.is-deep::before { width: clamp(10px, 1.4vw, 16px); }
/* tighten nesting on deeper sub-lists */
.subcat-list .subcat-list {
  margin-top: clamp(16px, 2.6vw, 26px);
  gap: clamp(30px, 5vw, 52px);
}

/* ---- small iconic phrase under the Fluid Sculptures title ---- */
.fluid-quote {
  margin: clamp(12px, 1.8vw, 18px) 0 0;
  max-width: 48ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.6vw, 18px);
  line-height: 1.5;
  letter-spacing: .025em;
  color: var(--text-muted);
  white-space: pre-line;
}

/* second descriptive block under the Fluid intro */
.fluid-intro2 { margin-top: clamp(22px, 3.5vw, 38px); }

/* always-visible intro under a group heading (e.g. Research Theater) */
.group-intro {
  max-width: 70ch;
  margin: clamp(6px, 1.4vw, 14px) 0 clamp(18px, 3vw, 30px);
}
.group-intro:empty { display: none; }   /* hidden everywhere when empty */
/* edit mode: empty intro slots stay visible with a hint, so they can be filled */
body.ell-editing .group-intro:empty { display: block; min-height: 1.6em; }
body.ell-editing .group-intro:empty::before {
  content: "[Descrizione — clicca per scrivere]";
  color: #b5b4b0;
  font-style: italic;
}

/* group "Read more" (exhaustive text hidden until clicked) */
.group-more { margin: 0 0 clamp(20px, 3.2vw, 32px); }
.group-more-body { display: none; }
.group-more.is-open .group-more-body { display: block; }
.group-more-body .section-intro { margin: 0 0 clamp(14px, 2vw, 20px); max-width: 70ch; }
.group-more-toggle { margin-top: 4px; }
body.ell-editing .group-more-body { display: block; }   /* editable when logged in */
body.ell-editing .group-more-toggle { display: none; }

/* ---- Press & Critics ---- */
.press { margin-top: clamp(48px, 8vw, 90px); max-width: 780px; }
.press-title {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 clamp(22px, 3.5vw, 36px);
}
.press-quote { margin: 0 0 clamp(24px, 4vw, 40px); }
.press-quote:last-child { margin-bottom: 0; }
.press-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.5vw, 27px);
  line-height: 1.4;
  letter-spacing: .01em;
  color: var(--text-primary);
  margin: 0 0 10px;
}
.press-text::before { content: "\201C"; }
.press-text::after  { content: "\201D"; }
.press-cite {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-style: normal;
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--text-muted);
}
.press-cite::before { content: "— "; }

/* show credits ("cartella dello spettacolo") at the bottom of a project */
.show-credits-box { margin-top: clamp(18px, 3vw, 30px); }
.credits-toggle {
  border: none; background: none; padding: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  transition: color .25s ease;
}
.credits-toggle:hover { color: var(--text-primary); }
.credits-toggle::after { content: "\00a0+"; }
.show-credits-box.is-open .credits-toggle::after { content: "\00a0\2212"; }
.show-credits {
  display: none;
  margin-top: 12px;
  max-width: 72ch;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11.5px;
  letter-spacing: .08em;
  line-height: 2;
  color: var(--text-muted);
  white-space: pre-line;
}
.show-credits-box.is-open .show-credits { display: block; }
@media (min-width: 720px) {
  /* long lists split into two light columns instead of one tall block */
  .show-credits-box.is-open .show-credits { columns: 2; column-gap: clamp(28px, 4vw, 56px); }
}
.show-credits:empty { display: none; }
/* edit mode: field always visible and editable, toggle hidden */
body.ell-editing .show-credits-box { display: block !important; }
body.ell-editing .show-credits { display: block; columns: 1; }
body.ell-editing .credits-toggle { display: none; }
body.ell-editing .show-credits:empty { display: block; min-height: 1.6em; }

/* ---- editor: mobile fixes (bottom bar fit + reorder arrows) ---- */
.ell-thumb img { -webkit-user-drag: none; }
.ell-thumb-ar .ell-ic { z-index: 3; }
@media (max-width: 640px) {
  /* bottom editor bar: make everything fit on narrow screens */
  .ell-bar { gap: 8px; padding: 8px 12px; font-size: 13px; }
  .ell-tag { display: none; }
  .ell-btn { padding: 7px 11px; border-radius: 7px; }
  .ell-status { min-width: 0; font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  /* reorder popup: bigger, tappable arrows; roomier tiles; no drag ghost */
  .ell-thumbs { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
  .ell-thumb { aspect-ratio: 3 / 4; cursor: default; }
  .ell-thumb-ar { bottom: 8px; padding: 0 8px; }
  .ell-thumb-ar .ell-ic { width: 36px; height: 36px; font-size: 19px; }
}

/* ---- reorder popup: vertical list (one photo per row) ---- */
.ell-rlist {
  display: flex; flex-direction: column; gap: 8px;
  overflow-y: auto; max-height: 62vh; padding: 2px 2px 4px;
}
.ell-row {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fafaf9; cursor: grab;
}
.ell-row:active { cursor: grabbing; }
.ell-row.dragging { opacity: .4; }
.ell-row.over { border-color: #1a1a1a; }
.ell-row-thumb {
  width: 56px; height: 72px; flex: 0 0 auto;
  object-fit: cover; border-radius: 6px; background: #eee; display: block;
}
.ell-row-num {
  flex: 0 0 auto; min-width: 24px; text-align: center;
  font-size: 14px; color: var(--text-muted);
}
.ell-row-name {
  flex: 1 1 auto; min-width: 0;
  font-size: 12px; color: var(--text-muted);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.ell-row-ctrls { flex: 0 0 auto; display: flex; gap: 8px; margin-left: auto; }
.ell-row-ctrls .ell-ic { width: 40px; height: 40px; font-size: 20px; }
.ell-ic:disabled { opacity: .25; pointer-events: none; }
@media (max-width: 640px) {
  .ell-row-thumb { width: 48px; height: 62px; }
  .ell-row-name { display: none; }          /* più spazio per le frecce su mobile */
  .ell-row-ctrls .ell-ic { width: 44px; height: 44px; font-size: 22px; }
}


/* ---------- "Recent" under the section title ---------- */
.section-sub {
  margin-top: clamp(10px, 1.5vw, 16px);
  color: var(--text-muted);
}

/* ---------- empty carousels: hidden for visitors, visible (with placeholders) in edit mode ---------- */
.subcat-block.is-empty, .cat-block.is-empty { display: none; }
body.ell-editing .subcat-block.is-empty, body.ell-editing .cat-block.is-empty { display: block; }

/* ---------- Press page (text only) ---------- */
.presspage {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(36px, 6vw, 64px);
  max-width: 900px;
}
@media (min-width: 720px) { .presspage { grid-template-columns: 1fr 1fr; } }
.presspage-col h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: .02em;
  margin: 0 0 clamp(14px, 2vw, 22px);
}
.presspage-list { list-style: none; margin: 0; padding: 0; }
.presspage-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: clamp(15px, 1.4vw, 17px);
}
.presspage-list li:last-child { border-bottom: 1px solid var(--line); }


/* ---------- galleries that must never crop (posters, magazine pages, Instagram posts) ---------- */
.gallery--natural .gallery-item img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

/* ---------- Hub: centered column, HQ line and contacts under the photos ---------- */
.hub-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.hub-inner .gallery { margin: 0 auto; }
.hub-hq {
  margin: clamp(26px, 4vw, 40px) 0 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hub-links {
  margin-top: clamp(36px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hub-links a {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: .04em;
  color: var(--text-muted);
  transition: color .25s ease;
}
.hub-links a:hover { color: var(--text-primary); }

/* ---------- Fine Art: centered, one small "stamp" detail with air around it ---------- */
.fineart { text-align: center; }
.fineart .section-head { margin-bottom: clamp(30px, 5vw, 56px); }
.fa-soon {
  margin: clamp(10px, 1.5vw, 16px) 0 0;
  color: var(--text-muted);
}
.fa-line {
  margin: clamp(14px, 2vw, 22px) auto 0;
  max-width: 44ch;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.4;
}
.fa-figure { margin: clamp(48px, 8vw, 96px) auto; width: min(60%, 170px); }
.fa-figure img { width: 100%; height: auto; display: block; cursor: zoom-in; background: #e7e6e3; }
.fa-caption {
  margin-top: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(14px, 1.5vw, 17px);
  letter-spacing: .03em;
  color: var(--text-muted);
}
.fa-exhib-label { color: var(--text-muted); }
.fa-exhib {
  margin: 10px auto 0;
  white-space: pre-line;   /* venue on one line, dates on the next */
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 20px);
  letter-spacing: .03em;
}
.fa-ig {
  display: inline-block;
  margin-top: clamp(36px, 6vw, 64px);
  font-size: clamp(13px, 1.3vw, 15px);
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 3px;
  transition: opacity .25s ease;
}
.fa-ig:hover { opacity: .55; }


/* ---------- home: "latest appearance" card, bottom-right over the video ---------- */
.hero-card {
  position: fixed;
  right: var(--pad-x);
  bottom: clamp(22px, 5vh, 48px);
  z-index: 6;
  width: min(480px, calc(100vw - 2 * var(--pad-x)));
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
  pointer-events: none;
}
.hero-card.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.hero-card-link {
  display: flex;
  gap: 16px;
  align-items: stretch;
  padding: 18px 52px 18px 18px;
  color: var(--text-primary);
}
.hero-card-img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  object-position: top;
  flex: 0 0 auto;
  display: block;
  background: #e7e6e3;
}
.hero-card-figure { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 0 auto; }
.hero-card-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .03em;
  color: var(--text-muted);
  white-space: nowrap;
}
.hero-card-text { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.hero-card-eyebrow { font-size: 10px; color: var(--text-muted); }
.hero-card-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: .01em;
}
.hero-card-sub { font-size: 13px; line-height: 1.4; color: var(--text-muted); }
.hero-card-cta {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text-primary);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: opacity .25s ease;
}
.hero-card-link:hover .hero-card-cta { opacity: .55; }
.hero-card-close {
  position: absolute;
  top: 4px; right: 6px;
  border: none; background: none;
  font-size: 22px; line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 8px;
}
.hero-card-close:hover { color: var(--text-primary); }
/* on phones the card sits at the bottom: lift the full-screen prompt above it */
@media (max-width: 720px) {
  .hero-card { right: var(--pad-x); left: var(--pad-x); width: auto; bottom: 18px; }
  body.hero-card-open .hero-fs { bottom: 230px; }
  .hero-card-img { width: 96px; height: 128px; }
  .hero-card-title { font-size: 20px; }
}


/* ---------- subtitle under every category / gallery title (hidden when empty) ---------- */
.cat-sub {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: clamp(-30px, -2.6vw, -14px) 0 clamp(18px, 3vw, 30px);
}
.subcat-block > .cat-sub { margin: clamp(-18px, -1.6vw, -8px) 0 clamp(14px, 2vw, 22px); }
.cat-sub:empty { display: none; }
body.ell-editing .cat-sub:empty { display: block; min-height: 1.4em; }
body.ell-editing .cat-sub:empty::before,
body.ell-editing .section-sub:empty::before { content: "[Sottotitolo — clicca per scrivere]"; color: #b5b4b0; text-transform: none; letter-spacing: 0; font-style: italic; }
.section-sub:empty { display: none; }
body.ell-editing .section-sub:empty { display: block; min-height: 1.4em; }

/* ---------- "Discover more" blocks: always reachable while editing ---------- */
body.ell-editing .group-more { display: block !important; }
body.ell-editing .group-more-body .section-intro:empty { display: block; min-height: 1.6em; }
body.ell-editing .group-more-body .section-intro:empty::before {
  content: "[Testo lungo sotto “Discover more” — clicca per scrivere]";
  color: #b5b4b0;
  font-style: italic;
}
.gallery-more { margin-top: 14px; }
.section-head .group-intro { margin-top: clamp(14px, 2vw, 22px); }
.section-head .group-more { margin-bottom: 0; }


/* ---------- layout: left-aligned on phones, centered content column on desktop ---------- */
@media (min-width: 1000px) {
  .subpage .section {
    max-width: calc(1040px + 2 * var(--pad-x));
    margin-left: auto;
    margin-right: auto;
  }
}

/* Hub: title and header texts centered like the rest of the page */
.hub .section-head { text-align: center; }
.hub .section-head .group-intro,
.hub .section-head .group-more-body .section-intro { margin-left: auto; margin-right: auto; }

/* edit mode: the "Cambia video" button on the home sits below the fixed top bar */
.hero .ell-imgbtn { top: calc(var(--topbar-h) + 16px); left: var(--pad-x); }

/* edit mode: the credits field is labelled, like every other slot */
body.ell-editing .show-credits:empty::before {
  content: "[Credits dello spettacolo, mostrati dietro il pulsante “Credits” — clicca per scrivere]";
  color: #b5b4b0;
  font-style: italic;
}

/* edit mode: tagline and subtitle under the logo become easy to tap and edit */
body.ell-editing .brand { pointer-events: auto; }
body.ell-editing .brand-tagline, body.ell-editing .brand-sub { font-size: 13px; letter-spacing: .15em; padding: 4px 8px; }
body.ell-editing .brand-logo { pointer-events: none; }
