/* ============================================================
   JESSICA NEWELL PORTFOLIO — style.css
   ============================================================ */

/* ------------------------------------------------------------
   0. FONTS — self-hosted Figtree (variable, weights 300-700)
   Files in assets/fonts/. Replaces the Google Fonts <link>
   for faster LCP and no third-party request.
   ------------------------------------------------------------ */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ------------------------------------------------------------
   1. CUSTOM PROPERTIES
   ------------------------------------------------------------ */
:root {
  --jn-bg:     #080F14;
  --jn-navy:   #1A2A33;
  --jn-river:  #36607A;
  --jn-cream:  #EAE6DF;
  --jn-stone:  #58524D;

  /* ── Type scale — 9 roles, the ONLY font sizes on the site.
     Responsive variants are set by redefining these vars per breakpoint
     (see RESPONSIVE section); never add per-element font-size overrides. ── */
  --fs-display:  44px;  /* large header — page / hero titles */
  --fs-header:   28px;  /* section headers (h2) */
  --fs-subhead:  22px;  /* sub-header — card / feature headings */
  --fs-subhead2: 20px;  /* secondary sub-header — taglines, nav names, link values */
  --fs-body:     15px;  /* body copy */
  --fs-small:    11px;  /* ancillary — labels, eyebrows, captions, meta */
  --fs-button:   12px;  /* buttons / CTA text */
  --fs-nav:      12px;  /* primary navigation */
  --fs-footer:   11px;  /* footer */
}

/* Type scale — tablet */
@media (max-width: 900px) {
  :root { --fs-display: 38px; --fs-header: 26px; }
}
/* Type scale — phone */
@media (max-width: 600px) {
  :root {
    --fs-display: 32px; --fs-header: 24px;
    --fs-subhead: 19px; --fs-subhead2: 18px;
  }
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Figtree', system-ui, sans-serif;
  background-color: var(--jn-bg);
  color: var(--jn-cream);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ------------------------------------------------------------
   3. INTRO ANIMATION OVERLAY
   ------------------------------------------------------------ */
#intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--jn-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

#intro-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#intro-overlay.hidden {
  display: none;
}

#intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ------------------------------------------------------------
   4. NAVIGATION
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 60px;
  background: var(--jn-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

.nav__logo {
  display: flex;
  align-items: center;
  height: 20px;
}

.nav__logo svg {
  height: 20px;
  width: 137px; /* explicit (= viewBox aspect) so the mobile monogram-crop clips, not shrinks */
  max-width: none; /* override the global img,svg max-width:100% reset */
  flex-shrink: 0;
}

/* Inline SVG logo color overrides */
.nav__logo .c1 { fill: #36607b; }
.nav__logo .c2 { fill: #e9e6df; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav__links a {
  font-size: var(--fs-nav);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(234, 230, 223, 0.6);
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: rgba(234, 230, 223, 0.75);
}

.nav__links a.active {
  color: var(--jn-river);
}

/* ------------------------------------------------------------
   5. PAGE WRAPPER
   ------------------------------------------------------------ */
.page {
  padding-top: 60px; /* offset for fixed nav */
  opacity: 0;
  transition: opacity 0.6s ease;
}

.page.visible {
  opacity: 1;
}

/* ------------------------------------------------------------
   6. HERO SECTION
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: calc(100vh - 60px);
  height: calc(100dvh - 60px);
  min-height: 520px;
  overflow: hidden;
  background: var(--jn-navy);
}

/* ── Rotating slides (containers, not links) ── */
.hero-gallery { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;            /* hidden slides leave the tab order */
  transition: opacity 0.9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Scrim: darken upper-left (box legibility) + bottom (button + copyright) */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8,15,20,0.74) 0%, rgba(8,15,20,0.34) 44%, rgba(8,15,20,0) 70%),
    linear-gradient(to top, rgba(8,15,20,0.55) 0%, rgba(8,15,20,0) 38%);
}

/* ── Slide button — the ONLY link to the project; bottom-right ── */
.hero-slide__btn {
  position: absolute;
  right: max(48px, calc(50vw - 600px));
  bottom: 52px;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding: 16px 22px;
  border-radius: 8px;
  background: rgba(6, 10, 14, 0.5);
  border: 0.5px solid rgba(234, 230, 223, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hero-slide__btn:hover,
.hero-slide__btn:focus-visible {
  background: rgba(6, 10, 14, 0.7);
  border-color: rgba(234, 230, 223, 0.42);
  transform: translateY(-2px);
}
.hero-slide__btn:focus-visible { outline: 2px solid var(--jn-cream); outline-offset: 2px; }

.hero-slide__name {
  font-size: var(--fs-subhead2); font-weight: 600;
  color: var(--jn-cream); letter-spacing: -0.015em; line-height: 1.08;
}
.hero-slide__cta {
  margin-top: 6px; font-size: var(--fs-button); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(234, 230, 223, 0.72);
  transition: color 0.2s ease;
}
.hero-slide__btn:hover .hero-slide__cta,
.hero-slide__btn:focus-visible .hero-slide__cta { color: var(--jn-cream); }

/* ── Top-left corner stack: cream intro panel + dots beneath it ── */
.hero-corner {
  position: absolute;
  top: 48px;
  left: max(24px, calc(50vw - 600px));
  z-index: 5;
  width: min(460px, calc(100% - 48px));
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-intro {
  background: rgba(234, 230, 223, 0.95);
  border-radius: 16px;
  padding: 38px 40px 32px;
}
.hero-intro__eyebrow {
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--jn-river); margin-bottom: 16px;
}
.hero-intro__title {
  font-size: var(--fs-header);
  font-weight: 700; color: #14181b;
  letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 16px;
}
.hero-intro .thread { margin-bottom: 18px; }
.hero-intro__body {
  font-size: var(--fs-body); font-weight: 400; color: #383d41;
  line-height: 1.7; margin-bottom: 20px;
}
.hero-intro__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-button); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: #14181b; text-decoration: none;
  border-bottom: 1px solid rgba(20, 24, 27, 0.3); padding-bottom: 2px;
  transition: border-color 0.2s ease, gap 0.2s ease;
}
.hero-intro__link:hover { border-color: #14181b; gap: 10px; }

/* ── Dots — sit just below the cream box ── */
.hero-dots {
  position: absolute;
  bottom: 24px;
  right: max(48px, calc(50vw - 600px)); /* align under the View project button */
  z-index: 5;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: 0.5px solid rgba(234, 230, 223, 0.5);
  background: transparent; cursor: pointer; padding: 0;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.hero-dot:hover { border-color: var(--jn-cream); }
.hero-dot.is-active {
  background: var(--jn-river); border-color: var(--jn-river); transform: scale(1.15);
}

/* ── Copyright — bottom-left, over the hero (index has no footer) ── */
.hero-copy {
  position: absolute;
  left: max(24px, calc(50vw - 600px));
  bottom: 28px;
  z-index: 5;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.04em;
  color: rgba(234, 230, 223, 0.7);
}

/* ── "Opening the project" transition on button click ── */
.hero.is-opening .hero-corner,
.hero.is-opening .hero-copy,
.hero.is-opening .hero-dots,
.hero.is-opening .hero-slide__btn {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero.is-opening .hero-slide.is-active img {
  transform: scale(1.08);
  transition: transform 0.65s ease;
}
.hero.is-opening .hero-slide.is-active::after {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Reduced motion: instant slide swap + no zoom (JS also disables auto-advance) */
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero.is-opening .hero-slide.is-active img { transform: none; transition: none; }
}

/* ── Hero responsive ── */
@media (max-width: 900px) {
  .hero-corner { left: 20px; right: 20px; width: auto; top: 28px; }
  .hero-intro { padding: 28px 26px 24px; }
  .hero-slide__btn { right: 20px; bottom: 64px; }
  .hero-dots { right: 20px; }
}
@media (max-width: 600px) {
  .hero { min-height: 460px; }
  .hero-intro { padding: 24px 22px 22px; }
  /* Drop the long intro paragraph on mobile so the cream box stays compact
     and clears the photo + View project button — keep eyebrow, title, link. */
  .hero-intro__body { display: none; }
  .hero-slide__btn { left: 20px; right: 20px; bottom: 60px; }
}

/* ------------------------------------------------------------
   7. SECTION HEADER
   ------------------------------------------------------------ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: var(--fs-header);
  font-weight: 400;
  color: var(--jn-cream);
  line-height: 1.2;
}

/* ------------------------------------------------------------
   8. PROJECT CARD — base styles, shared by the gallery cards
   ------------------------------------------------------------ */
.card {
  background: var(--jn-navy);
  border-radius: 16px;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  display: block;
}

.card:hover {
  border-color: var(--jn-river);
  transform: translateY(-3px);
}

.card__image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--jn-navy);
  overflow: hidden;
}

.card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__image-wrap img {
  transform: scale(1.04);
}

/* Hover overlay */
.card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 20, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover .card__overlay {
  opacity: 1;
}

.card__overlay-label {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jn-river);
  border: 0.5px solid #222;
  background: #0a0a0a;
  padding: 11px 22px;
  border-radius: 8px;
}

/* Card info */
.card__info {
  padding: 12px 16px 14px;
}

.card__category {
  font-size: var(--fs-small);
  font-weight: 300;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #9a9189;
  margin-bottom: 6px;
  transition: color 0.25s ease;
}

.card:hover .card__category {
  color: var(--jn-river);
}

.card__title {
  font-size: var(--fs-subhead2);
  font-weight: 500;
  color: var(--jn-cream);
  margin-bottom: 0;
}

.card__desc {
  font-size: var(--fs-small);
  color: #7a95a0;
  line-height: 1.5;
}

/* ------------------------------------------------------------
   9b. GALLERY SECTION — projects page wrapper
   ------------------------------------------------------------ */
.gallery-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 48px 80px;
}

/* ------------------------------------------------------------
   9c. GALLERY CARD — projects page (image only, hover reveal)
   ------------------------------------------------------------ */
.card--gallery {
  border-radius: 16px;
  overflow: hidden;
  border: 0.5px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
  display: block;
  position: relative;
  background: var(--jn-navy);
}

.card--gallery:hover {
  border-color: var(--jn-river);
  transform: translateY(-3px);
}

.card--gallery .card__image-wrap {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--jn-navy);
}

.card--gallery .card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.card--gallery:hover .card__image-wrap img {
  transform: scale(1.04);
}

/* Gallery hover overlay — shows title, type, button */
.card--gallery .card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 20, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 24px;
  text-align: center;
}

.card--gallery:hover .card__overlay {
  opacity: 1;
}

.card--gallery .card__overlay-category {
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(234, 230, 223, 0.55);
}

.card--gallery .card__overlay-title {
  font-size: var(--fs-subhead2);
  font-weight: 500;
  color: var(--jn-cream);
  letter-spacing: -0.01em;
}

.card--gallery .card__overlay-btn {
  margin-top: 8px;
  font-size: var(--fs-button);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jn-river);
  border: 0.5px solid #333;
  background: #0a0a0a;
  padding: 9px 20px;
  border-radius: 8px;
}

/* ------------------------------------------------------------
   11. SCROLL REVEAL ANIMATIONS
   ------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Reduced motion: show revealed content immediately, no fade/slide.
   Hover feedback (color/border) is user-initiated and left intact. */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal-delay-1, .reveal-delay-2, .reveal-delay-3,
  .reveal-delay-4, .reveal-delay-5, .reveal-delay-6 {
    transition-delay: 0s !important;
  }
}

/* ------------------------------------------------------------
   12. SIGNATURE THREAD
   River-blue hairline that "draws" itself in (left to right)
   when scrolled into view. main.js adds .thread--drawn.
   Reusable across project cards, about cards, contact, hero.
   ------------------------------------------------------------ */
.thread {
  display: block;
  width: 88px;
  height: 1.5px;
  border: 0;
  background: var(--jn-river);
  transform: scaleX(0);
  transform-origin: left center;
  /* slower draw + short delay so you can actually watch it strike in */
  transition: transform 1.15s cubic-bezier(0.16, 1, 0.3, 1) 0.25s;
}
.thread.thread--drawn { transform: scaleX(1); }

/* Vertical variant — draws top to bottom (e.g. contact divider) */
.thread--v {
  width: 1.5px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: center top;
}
.thread--v.thread--drawn { transform: scaleY(1); }

/* Reduced motion: show the full line immediately, no draw */
@media (prefers-reduced-motion: reduce) {
  .thread { transform: none; transition: none; }
}

/* ------------------------------------------------------------
   13. PAIR-ROW IMAGE SIZING (approach B)
   In image+text pair rows, let the image stretch to the text
   card's height (CSS Grid align stretch) instead of holding a
   fixed aspect-ratio. This overrides the per-page --size ratios
   so an image always matches its paired card at every width.
   When the pair stacks (no sibling to match), a min-height keeps
   the image visible.
   ------------------------------------------------------------ */
.project-row--pair .project-img-wrap { aspect-ratio: auto; }
@media (max-width: 900px) {
  .project-row--pair .project-img-wrap { min-height: 300px; }
}

/* ------------------------------------------------------------
   14. CASE STUDY — shared narrative styling for project pages
   (Challenge / Approach / Reflection blocks, concept quote,
   hero credits). Pages add the markup; de-boxing of text cards
   is done per page on the inline .project-text-card rule.
   ------------------------------------------------------------ */
.case-block { max-width: 720px; padding: 20px 0; }
.case-block__label {
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--jn-river); margin-bottom: 14px;
}
.case-block .thread { margin-bottom: 20px; }
.case-block__heading {
  font-size: var(--fs-header); font-weight: 600; color: var(--jn-cream);
  letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 18px;
}
.case-block__body {
  font-size: var(--fs-body); font-weight: 300; color: rgba(234, 230, 223, 0.7);
  line-height: 1.8;
}
.case-block__body + .case-block__body { margin-top: 16px; }

.case-quote {
  max-width: 720px; margin: 8px 0; padding: 16px 0;
  font-size: var(--fs-body); font-weight: 400; color: var(--jn-cream); line-height: 1.8;
}
.case-quote .thread { margin-bottom: 24px; }

/* Hero credits block (sits in the cream hero box) */
.project-hero__meta {
  display: flex; flex-direction: column; gap: 9px;
  margin-top: 20px; padding-top: 18px;
  border-top: 0.5px solid rgba(20, 24, 27, 0.16);
}
.project-hero__meta div { display: flex; gap: 12px; align-items: baseline; }
.project-hero__meta dt {
  margin: 0; flex: 0 0 52px;
  font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--jn-river);
}
.project-hero__meta dd { margin: 0; font-size: var(--fs-small); color: #2b3034; line-height: 1.4; }

@media (max-width: 768px) {}

/* ------------------------------------------------------------
   12. FOOTER
   ------------------------------------------------------------ */
.footer {
  border-top: 0.5px solid rgba(255, 255, 255, 0.05);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__copy {
  font-size: var(--fs-footer);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--jn-stone);
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: var(--fs-footer);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--jn-stone);
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--jn-cream);
}

/* ------------------------------------------------------------
   13. RESPONSIVE
   ------------------------------------------------------------ */

/* Tablet */
@media (max-width: 900px) {
  /* Gallery section: reduce side padding */
  .gallery-section {
    padding: 72px 28px 60px;
  }

  /* Gallery grid: 2 cols on tablet */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  /* Nav — crop the logo to just the JN monogram so the wordmark
     never crowds the links on narrow screens */
  .nav { padding: 0 16px; }
  .nav__logo { width: 27px; overflow: hidden; }
  .nav__links { gap: 16px; }
  .nav__links a { font-size: var(--fs-small); letter-spacing: 0.04em; }

  /* Gallery section: tight mobile padding */
  .gallery-section {
    padding: 56px 16px 48px;
  }

  /* Gallery grid: 1 col */
  .gallery-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 24px 16px;
  }
}

/* ------------------------------------------------------------
   LIGHTBOX
   Full-screen image viewer, shared across all project pages.
   ------------------------------------------------------------ */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 15, 20, 0.96);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lb-overlay.lb-open    { display: flex; }
.lb-overlay.lb-visible { opacity: 1; }

.lb-img {
  /* viewer media — control tier (8px), not in-page surface */
  display: block;
  max-width: 90vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.lb-img.lb-loading { opacity: 0; }

.lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: rgba(26, 42, 51, 0.7);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--jn-cream);
  font-size: var(--fs-subhead);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 9001;
}
.lb-close:hover { background: var(--jn-river); }

.lb-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(26, 42, 51, 0.7);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--jn-cream);
  font-size: var(--fs-subhead2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, opacity 0.15s;
  z-index: 9001;
  user-select: none;
}
.lb-arrow:hover   { background: var(--jn-river); }
.lb-arrow--prev   { left: 20px; }
.lb-arrow--next   { right: 20px; }
.lb-arrow:disabled {
  opacity: 0.2;
  pointer-events: none;
}

.lb-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(234, 230, 223, 0.6);
  font-family: 'Figtree', system-ui, sans-serif;
  z-index: 9001;
}
