/* =================================================================
   MARGINONE LIVE FEST 2026 — Frequenze
   Mobile-first stylesheet
   ================================================================= */

/* --------- design tokens --------- */
:root {
  --rose-deep:      #5C0E0E;
  --rose-mid:       #8B1A1A;
  --rose-warm:      #A8332E;
  --parchment:      #E8D5A8;
  --parchment-dark: #C9A876;
  --parchment-shadow: #8B6F3F;
  --skin-warm:      #C89B7B;
  --cream:          #F5E6C8;
  --cream-soft:     #E8D9B5;
  --gold:           #D4AF6E;
  --gold-soft:      #BC965C;
  --ink:            #2A0808;
  --ink-soft:       #4A1818;

  --bg:        #1A0606;     /* page background (deep wine) */
  --bg-soft:   #2A0808;
  --section-1: #1A0606;     /* line-up */
  --section-2: #2A0808;     /* info */
  --section-3: #1A0606;     /* archive */

  --shadow-soft: 0 6px 24px rgba(0,0,0,.35);
  --shadow-card: 0 4px 18px rgba(0,0,0,.4), 0 0 0 1px rgba(212,175,110,.08) inset;
  --shadow-card-h: 0 10px 32px rgba(0,0,0,.55), 0 0 0 1px rgba(212,175,110,.25) inset;

  --serif: 'Playfair Display', 'Times New Roman', serif;
  --serif-body: 'Cormorant Garamond', 'Times New Roman', serif;

  --container: 1200px;
  --gutter: 1.25rem;

  --radius-sm: 4px;
  --radius:    8px;

  --t-fast: .2s;
  --t-med:  .35s;
  --ease:   cubic-bezier(.2,.7,.2,1);
}

/* --------- reset --------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--serif-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.55;
  color: var(--cream);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, iframe { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover, a:focus-visible { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -.005em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }


/* =================================================================
   HEADER
   ================================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: .75rem 0;
  background: rgba(10, 3, 3, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212,175,110,.12);
  transition: background var(--t-med) var(--ease), padding var(--t-med) var(--ease);
}
.site-header.scrolled { background: rgba(10, 3, 3, .85); padding: .5rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand-text { display: none; font-family: var(--serif); line-height: 1; }
.brand-text strong { display: block; font-size: 1.05rem; color: var(--cream); }
.brand-text em { font-style: normal; font-size: .82rem; color: var(--gold); letter-spacing: .08em; }
.nav { display: flex; gap: 1.25rem; font-family: var(--serif-body); font-size: .98rem; }
.nav a { color: var(--cream-soft); padding: .35rem .25rem; }
.nav a:hover { color: var(--gold); }

@media (min-width: 600px) { .brand-text { display: block; } }
@media (min-width: 768px) { .nav { gap: 2rem; font-size: 1.05rem; } }


/* =================================================================
   HERO
   ================================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--cream);
}
.hero-image { position: absolute; inset: 0; z-index: 1; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(15,4,4,.78) 0%,
      rgba(15,4,4,.25) 18%,
      rgba(15,4,4,.0)  42%,
      rgba(15,4,4,.4)  78%,
      rgba(15,4,4,.92) 100%);
}
.hero-overlay::after {
  /* subtle left-side darkening for text panel readability */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,5,7,.55) 0%, rgba(20,5,7,.25) 35%, rgba(20,5,7,0) 60%);
}
.hero-content {
  position: relative; z-index: 4;
  width: 100%;
  padding-top: 6rem;
  padding-bottom: 5rem;
}

/* eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--serif-body); font-weight: 500;
  color: var(--gold);
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  margin-bottom: 1.25rem;
}
.eyebrow .rule {
  width: 36px; height: 1.5px; background: var(--gold); display: inline-block;
}

/* main title */
.hero-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2.4rem, 9.5vw, 6.4rem);
  line-height: .95;
  letter-spacing: .005em;
  color: #FCF4DE;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
  text-transform: uppercase;
}
.hero-title span { display: block; }

/* divider */
.divider {
  display: flex; align-items: center; gap: .5rem;
  margin: 1.25rem 0 1rem;
  max-width: 340px;
}
.divider .rule { flex: 1; height: 1.5px; background: var(--gold); display: block; }
.divider .rule:first-child { max-width: 140px; flex: 0 0 140px; }
.divider .rule:last-child { max-width: 200px; }
.divider .diamond {
  width: 12px; height: 12px; background: var(--gold);
  transform: rotate(45deg);
  display: block;
}

.payoff {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.05rem, 3vw, 1.75rem);
  color: var(--cream-soft);
  font-weight: 400;
  margin-bottom: 1.75rem;
  max-width: 30ch;
}

/* date block */
.dates {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem 1rem;
  font-family: var(--serif);
  margin-bottom: 2.25rem;
  color: var(--cream);
}
.dates .lbl {
  font-size: clamp(1rem, 2vw, 1.45rem);
  color: var(--cream-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.dates .num {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 700;
  color: #FCF4DE;
  line-height: 1;
}
.dates .month {
  font-size: clamp(1.1rem, 2.4vw, 1.85rem);
  color: var(--cream);
  letter-spacing: .02em;
  width: 100%;
}
@media (min-width: 600px) { .dates .month { width: auto; } }

/* CTA */
.cta {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .85rem 1.6rem;
  font-family: var(--serif-body); font-size: 1rem; font-weight: 600;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--cream);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-sm);
  background: rgba(20,5,7,.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all var(--t-med) var(--ease);
}
.cta:hover, .cta:focus-visible {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212,175,110,.25);
}
.cta span { transition: transform var(--t-fast) var(--ease); }
.cta:hover span { transform: translateX(3px); }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 1.25rem; z-index: 4;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--serif-body); font-size: .82rem; letter-spacing: .15em;
  color: var(--gold); text-transform: uppercase;
  animation: bob 2.5s ease-in-out infinite;
}
.scroll-cue .arrow {
  width: 1px; height: 18px; background: var(--gold);
  position: relative;
}
.scroll-cue .arrow::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 7px; height: 7px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 5px); }
}

/* falling petals */
.petals { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute;
  width: 14px; height: 18px;
  background: radial-gradient(ellipse at 30% 30%, #C72525 0%, #8B1A1A 60%, #5C0E0E 100%);
  border-radius: 60% 60% 50% 50% / 80% 80% 30% 30%;
  opacity: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}
.petal.p1 { left:  8%; top: -10%; animation: fall1 14s linear infinite; animation-delay: 0s;  }
.petal.p2 { left: 25%; top: -10%; animation: fall2 18s linear infinite; animation-delay: 4s;  }
.petal.p3 { left: 48%; top: -10%; animation: fall1 16s linear infinite; animation-delay: 8s;  }
.petal.p4 { left: 68%; top: -10%; animation: fall2 20s linear infinite; animation-delay: 2s;  }
.petal.p5 { left: 82%; top: -10%; animation: fall1 15s linear infinite; animation-delay: 6s;  }
.petal.p6 { left: 92%; top: -10%; animation: fall2 17s linear infinite; animation-delay: 10s; }

@keyframes fall1 {
  0%   { transform: translateY(-10vh) rotate(0deg)   translateX(0);   opacity: 0; }
  10%  { opacity: .55; }
  90%  { opacity: .55; }
  100% { transform: translateY(115vh) rotate(360deg) translateX(40px); opacity: 0; }
}
@keyframes fall2 {
  0%   { transform: translateY(-10vh) rotate(0deg)    translateX(0);    opacity: 0; }
  10%  { opacity: .45; }
  50%  { transform: translateY(50vh)  rotate(180deg)  translateX(-30px); opacity: .45; }
  90%  { opacity: .45; }
  100% { transform: translateY(115vh) rotate(-360deg) translateX(20px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .petals, .scroll-cue { display: none; }
  html { scroll-behavior: auto; }
}


/* =================================================================
   SECTION HEAD (shared)
   ================================================================= */
.section-head { margin-bottom: 2.5rem; text-align: center; }
.section-head .kicker {
  font-family: var(--serif-body); font-weight: 500;
  color: var(--gold); letter-spacing: .25em; text-transform: uppercase;
  font-size: .78rem; margin-bottom: .85rem;
}
.section-head h2 {
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: var(--cream);
  margin-bottom: .65rem;
}
.section-head .lead {
  font-family: var(--serif-body); font-size: 1.1rem;
  color: var(--cream-soft);
  max-width: 36ch; margin: 0 auto;
  font-style: italic;
}
@media (min-width: 768px) {
  .section-head { margin-bottom: 3.5rem; }
  .section-head .lead { font-size: 1.25rem; }
}


/* =================================================================
   LINE-UP
   ================================================================= */
.lineup {
  background: var(--section-1);
  background-image:
    radial-gradient(ellipse 800px 400px at 10% 0%, rgba(139,26,26,.18), transparent 60%),
    radial-gradient(ellipse 600px 500px at 90% 100%, rgba(92,14,14,.25), transparent 60%);
  padding: 4.5rem 0 5rem;
  position: relative;
}
.lineup::before, .lineup::after {
  content: ''; position: absolute; left: 0; right: 0; height: 80px;
  background: linear-gradient(180deg, var(--bg), transparent);
}
.lineup::before { top: 0; }
.lineup::after  { bottom: 0; transform: scaleY(-1); }

.lineup-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) { .lineup-grid { grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
@media (min-width: 900px) { .lineup-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }
@media (min-width:1200px) { .lineup-grid { grid-template-columns: repeat(4, 1fr); } }

/* parchment card */
.night {
  position: relative;
  padding: 1.5rem 1.4rem;
  min-height: 140px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  background: var(--parchment);
  background-image:
    radial-gradient(ellipse at 25% 15%, rgba(255,255,255,.4), transparent 50%),
    radial-gradient(ellipse at 80% 85%, rgba(139,111,63,.25), transparent 55%),
    linear-gradient(135deg, rgba(232,213,168,1), rgba(201,168,118,1));
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 1px rgba(139,111,63,.18),
    inset 0 0 40px rgba(139,111,63,.08),
    0 6px 20px rgba(0,0,0,.4);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.night::before {
  /* parchment torn-edge shadow */
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  box-shadow:
    inset 8px 8px 24px rgba(139,111,63,.15),
    inset -8px -8px 28px rgba(139,111,63,.2);
}
.night:hover {
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(139,111,63,.3),
    inset 0 0 40px rgba(139,111,63,.12),
    0 12px 28px rgba(0,0,0,.55);
}
.night-head {
  display: flex; align-items: baseline; gap: .65rem;
  color: var(--rose-deep);
}
.night-head .dow {
  font-family: var(--serif-body);
  font-size: .92rem; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 500;
}
.night-head .day {
  font-family: var(--serif);
  font-size: 2.6rem; font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.night h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.15;
  letter-spacing: -.005em;
}
.night .sub {
  font-family: var(--serif-body);
  font-style: italic;
  font-size: 1rem;
  color: var(--rose-deep);
  margin-top: -.25rem;
}
.night.highlight {
  background-image:
    radial-gradient(ellipse at 25% 15%, rgba(255,235,180,.6), transparent 50%),
    radial-gradient(ellipse at 80% 85%, rgba(139,26,26,.3), transparent 55%),
    linear-gradient(135deg, #F2E1B8 0%, #D4AF6E 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(139,26,26,.35),
    inset 0 0 40px rgba(212,175,110,.2),
    0 8px 24px rgba(139,26,26,.3);
}
.night.highlight .day { color: var(--rose-deep); }

.lineup-note {
  text-align: center;
  margin-top: 2.5rem;
  font-style: italic;
  color: var(--cream-soft);
  font-family: var(--serif-body);
  font-size: 1.05rem;
}


/* =================================================================
   INFO
   ================================================================= */
.info {
  background: var(--section-2);
  background-image:
    radial-gradient(ellipse 900px 600px at 100% 30%, rgba(168,51,46,.15), transparent 60%);
  padding: 4.5rem 0 5rem;
  position: relative;
}
.info-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
}
@media (min-width: 900px) { .info-grid { grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; } }

.info-text .section-head { text-align: left; margin-bottom: 1.75rem; }
.info-text .section-head .lead { margin: 0; max-width: 40ch; }

.venue {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-style: normal;
  color: var(--cream);
  line-height: 1.55;
  margin: 1.5rem 0 2rem;
}
.venue strong { font-weight: 700; color: #FCF4DE; }

.contacts {
  display: grid; grid-template-columns: 1fr 1fr; gap: .85rem;
  margin-bottom: 1.75rem;
}
.contact {
  display: flex; flex-direction: column; gap: .15rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(212,175,110,.25);
  border-radius: var(--radius-sm);
  transition: all var(--t-fast) var(--ease);
  min-height: 64px;
  background: rgba(20,5,7,.35);
}
.contact:hover { border-color: var(--gold); background: rgba(20,5,7,.55); transform: translateY(-1px); }
.contact-label {
  font-family: var(--serif-body); font-size: .82rem;
  color: var(--gold); letter-spacing: .15em; text-transform: uppercase;
}
.contact-num {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--cream);
  letter-spacing: -.005em;
}

.socials { display: flex; flex-wrap: wrap; gap: 1.25rem; font-family: var(--serif-body); }
.socials a {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--cream-soft); font-size: 1rem;
  padding: .4rem 0;
}
.socials a svg { color: var(--gold); transition: transform var(--t-fast) var(--ease); }
.socials a:hover { color: var(--gold); }
.socials a:hover svg { transform: scale(1.1); }

.info-map { position: relative; }
.info-map iframe {
  width: 100%; aspect-ratio: 4 / 3; min-height: 300px;
  border: 1px solid rgba(212,175,110,.2);
  border-radius: var(--radius);
  filter: saturate(.6) brightness(.92);
}
.map-link {
  display: inline-block; margin-top: .85rem;
  font-family: var(--serif-body); font-size: .95rem;
  color: var(--gold); letter-spacing: .04em;
}


/* =================================================================
   ARCHIVIO
   ================================================================= */
.archivio {
  background: var(--section-3);
  background-image:
    radial-gradient(ellipse 700px 500px at 0% 100%, rgba(139,26,26,.18), transparent 60%),
    radial-gradient(ellipse 600px 400px at 100% 0%, rgba(92,14,14,.2), transparent 60%);
  padding: 4.5rem 0 5rem;
  position: relative;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
}
@media (min-width: 600px) { .archive-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 900px) { .archive-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; } }
@media (min-width:1200px) { .archive-grid { grid-template-columns: repeat(5, 1fr); } }

.edition {
  position: relative;
  display: block;
  padding: 0; margin: 0;
  border: 0; background: none;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  box-shadow: 0 4px 14px rgba(0,0,0,.4), inset 0 0 0 1px rgba(212,175,110,.06);
  aspect-ratio: 16 / 9;
}
.edition img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease), filter var(--t-med) var(--ease);
  filter: saturate(.85) brightness(.92);
}
.edition:hover, .edition:focus-visible {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 14px 30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(212,175,110,.3);
  outline: none;
}
.edition:hover img, .edition:focus-visible img {
  transform: scale(1.05);
  filter: saturate(1.05) brightness(1);
}
.edition-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .65rem .85rem .55rem;
  font-family: var(--serif);
  color: var(--cream);
  background: linear-gradient(180deg, transparent 0%, rgba(15,4,4,.85) 70%, rgba(15,4,4,.95) 100%);
  display: flex; align-items: baseline; gap: .65rem; flex-wrap: wrap;
  pointer-events: none;
}
.edition-label .year { font-size: 1.25rem; font-weight: 700; letter-spacing: -.005em; }
.edition-label .theme {
  font-family: var(--serif-body); font-size: .82rem; font-style: italic;
  color: var(--gold);
}
.edition.is-current::after {
  content: '2026'; position: absolute; top: .55rem; right: .55rem;
  font-family: var(--serif-body); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase;
  background: var(--gold); color: var(--ink);
  padding: .25rem .55rem; border-radius: 2px;
  font-weight: 600;
}


/* =================================================================
   FOOTER
   ================================================================= */
.site-footer {
  background: #0F0303;
  border-top: 1px solid rgba(212,175,110,.12);
  padding: 3.5rem 0 1.5rem;
  color: var(--cream-soft);
  font-family: var(--serif-body);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-brand .payoff-mini {
  font-family: var(--serif); font-style: italic;
  font-size: 1.05rem; color: var(--cream-soft);
  margin-top: 1rem; max-width: 26ch;
}
.footer-block h4 {
  font-family: var(--serif-body); font-weight: 600;
  color: var(--gold); letter-spacing: .15em; text-transform: uppercase;
  font-size: .82rem;
  margin-bottom: .85rem;
}
.footer-block p { font-size: 1rem; line-height: 1.7; }
.footer-block a { border-bottom: 1px solid transparent; transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.footer-block a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid rgba(212,175,110,.1);
  text-align: center; font-size: .85rem; color: rgba(245,230,200,.5);
}


/* =================================================================
   LIGHTBOX
   ================================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,2,3,.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med) var(--ease);
  padding: 1rem;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox.is-loading .lb-stage::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 3px solid rgba(212,175,110,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.lb-stage {
  position: relative;
  max-width: min(1500px, 92vw);
  max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-stage img {
  max-width: 100%; max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  border-radius: 4px;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.lb-stage img.loaded { opacity: 1; }

.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(20,5,7,.8);
  border: 1px solid rgba(212,175,110,.3);
  color: var(--cream);
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast) var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: scale(1.05); }
.lb-close { top: 1.25rem; right: 1.25rem; font-size: 1.8rem; }
.lb-prev  { left: 1rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-next  { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }

@media (min-width: 768px) {
  .lb-close { top: 1.5rem; right: 1.5rem; width: 54px; height: 54px; }
  .lb-prev  { left: 1.5rem; width: 54px; height: 54px; }
  .lb-next  { right: 1.5rem; width: 54px; height: 54px; }
}

.lb-caption {
  position: absolute; left: 0; right: 0; bottom: 1.25rem;
  text-align: center;
  font-family: var(--serif); font-size: 1.15rem;
  color: var(--cream-soft);
  letter-spacing: .04em;
  pointer-events: none;
}

body.lb-active { overflow: hidden; }


/* =================================================================
   SMALL UTILITIES
   ================================================================= */
.is-hidden { display: none !important; }
::selection { background: var(--gold); color: var(--ink); }
