/* =========================================================
   Henri-Vincent Gillard (1902-1980) — feuille de style commune
   Utilisée par toutes les pages du site.
   ========================================================= */

:root {
  --navy: #121358;
  --navy-2: #232F72;
  --card: #1d2a52;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --dim: #7c8aa0;
  --white: #ffffff;
  --accent: #4fd1c5;   /* turquoise : navigation */
  --amber: #d9893b;    /* orange brûlé : menu du cadre, liens */
  --line: rgba(255, 255, 255, .10);
  --line-2: rgba(255, 255, 255, .20);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Alex Brush", "Brush Script MT", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

/* Fond fixe (fonctionne aussi sur iPhone, contrairement à background-attachment: fixed) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(10, 15, 30, .62), rgba(10, 15, 30, .78)),
    url("wallpaper.jpg") center / cover no-repeat var(--navy);
}

::selection { background: var(--accent); color: var(--navy); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: var(--navy);
  padding: .55rem 1rem; font-size: 13px; font-weight: 500; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

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

/* Grand « G. » en filigrane */
.bg-letter {
  position: fixed; z-index: -1; left: -4vw; top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif); font-size: 40vw; line-height: 1;
  color: var(--navy-2); opacity: .3;
  pointer-events: none; user-select: none;
  text-shadow: 0 20px 25px rgba(0, 0, 0, .3);
}

/* ---------------------------------------------------------
   En-tête et navigation
   --------------------------------------------------------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.75rem clamp(1rem, 4vw, 3rem);
}
.brand {
  font-family: var(--serif); font-size: 1.25rem; letter-spacing: .2em;
  color: var(--white); text-decoration: none; white-space: nowrap;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: color .3s;
}
.brand:hover { color: var(--accent); }

.nav { display: flex; gap: clamp(1rem, 2.2vw, 2rem); }
.nav a {
  position: relative; text-decoration: none;
  font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text); text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: var(--accent); transition: width .3s ease-out;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }

.menu-btn, .menu-close {
  display: none; background: none; border: 0; padding: .35rem; cursor: pointer;
  color: var(--white); transition: color .3s;
}
.menu-btn:hover, .menu-close:hover { color: var(--accent); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center;
  background: rgba(18, 19, 88, .98);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu .menu-close { display: block; position: absolute; top: 1.6rem; right: clamp(1rem, 4vw, 3rem); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 1.75rem; text-align: center; }
.mobile-menu a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text);
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu a[aria-current="page"] { color: var(--accent); }

@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------------------------------------------------------
   Cadre principal
   --------------------------------------------------------- */
main {
  flex: 1; display: flex; justify-content: center;
  padding: 7.5rem clamp(.75rem, 3vw, 3rem) 2rem;
}

.frame {
  position: relative; width: 100%; max-width: 64rem;
  padding: clamp(1.5rem, 5vw, 4rem);
  background: linear-gradient(to bottom, rgba(30, 41, 59, .86), rgba(15, 23, 42, .95));
  border: 1px solid var(--line); border-radius: 2px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .55);
  animation: fadeInUp .8s var(--ease) both;
}
.frame.wide { max-width: 72rem; }

/* Filigrane « H. Gillard » en bas à droite */
.frame::after {
  content: "H. Gillard"; position: absolute; right: 1.5rem; bottom: .75rem;
  font-family: var(--script); font-size: 3.75rem; line-height: 1;
  color: rgba(255, 255, 255, .04); transform: rotate(-5deg);
  pointer-events: none;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.frame-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.frame-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: .5rem 1.5rem; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 2rem;
}
.script-title {
  margin: 0; font-family: var(--script); font-weight: 400;
  font-size: clamp(2.75rem, 6vw, 3.75rem); line-height: 1.1; color: var(--text);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.eyebrow {
  display: block; color: var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
}

/* Pied du cadre : nom de l'artiste + menu */
.frame-foot {
  margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
  text-align: center;
}
.signature-name {
  margin: 0 0 1rem; font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(2rem, 5.2vw, 3.75rem); line-height: 1.1; color: var(--white);
  text-shadow: 0 4px 12px rgba(0, 0, 0, .35);
}
.signature-name span { font-family: var(--sans); font-style: normal; font-size: .5em; color: var(--muted); white-space: nowrap; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; }
.foot-nav a {
  text-decoration: none; color: var(--amber);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  transition: color .3s;
}
.foot-nav a:hover, .foot-nav a[aria-current="page"] { color: var(--white); }

.site-footer {
  text-align: center; padding: 0 1rem 2rem;
  font-size: 11px; letter-spacing: .08em; color: var(--dim);
}

/* ---------------------------------------------------------
   Texte
   --------------------------------------------------------- */
.prose { font-size: clamp(.93rem, 1.05vw, 1.02rem); letter-spacing: .01em; }
.prose p { margin: 0 0 1.15rem; }
.en { color: var(--muted); font-weight: 400; }

/* Sélecteur de langue FR / EN */
html[data-lang="fr"] .en { display: none !important; }
html[data-lang="en"] .fr { display: none !important; }

.lang-switch {
  display: inline-flex; padding: 2px; gap: 2px;
  border: 1px solid var(--line-2); border-radius: 999px;
}
.lang-switch button {
  background: none; border: 0; border-radius: 999px; cursor: pointer;
  padding: .4rem .8rem; color: var(--dim);
  font: 600 10px/1 var(--sans); letter-spacing: .15em;
  transition: color .3s, background .3s;
}
.lang-switch button:hover { color: var(--white); }
.lang-switch button[aria-pressed="true"] { background: rgba(79, 209, 197, .15); color: var(--accent); }

.section-title {
  margin: 3rem 0 1.25rem; font-family: var(--serif); font-weight: 400;
  font-size: 1.75rem; color: var(--white);
}

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.35rem; border: 1px solid var(--amber); border-radius: 2px;
  background: transparent; color: var(--amber); cursor: pointer; text-decoration: none;
  font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--amber); color: var(--navy); }
.btn.solid { background: var(--amber); color: var(--navy); }
.btn.solid:hover { background: var(--white); border-color: var(--white); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------------------------------------------------------
   Accueil
   --------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.lead {
  margin: 1.25rem 0 1.75rem; font-family: var(--serif);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem); line-height: 1.3; color: var(--white);
}
.quote {
  margin: 0; padding: 1.25rem 1.5rem;
  background: rgba(0, 0, 0, .2); border-left: 2px solid var(--accent); border-radius: 2px;
  font-style: italic; color: var(--text);
}
.quote p { margin: 0; }
.portrait { margin: 0; justify-self: end; text-align: center; }
.portrait .mat {
  width: min(18rem, 100%); padding: .5rem;
  background: var(--navy-2); border: 1px solid var(--line);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .6);
  transition: transform .5s var(--ease);
}
.portrait .mat:hover { transform: scale(1.02); }
.portrait img, .portrait .img-missing { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.caption {
  margin-top: .85rem; font-size: 9.5px; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; color: var(--text);
}

.timeline {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  padding: 1px 0 0 1px;
}
.timeline li { background: rgba(15, 23, 42, .65); border: 1px solid var(--line); margin: -1px 0 0 -1px; }
.timeline a { display: block; height: 100%; padding: 1.1rem 1rem; text-decoration: none; transition: background .3s; }
.timeline a:hover { background: rgba(79, 209, 197, .08); }
.timeline .year { display: block; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--white); }
.timeline .what { display: block; margin-top: .35rem; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

.callout {
  margin-top: 2.5rem; padding: 1.5rem 1.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap;
  border: 1px solid var(--line-2); background: rgba(0, 0, 0, .18);
}
.callout p { margin: 0; max-width: 38rem; }
.callout strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--white); }

/* ---------------------------------------------------------
   Onglets (Biographie, Supports)
   --------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.4rem; }
.tab {
  background: none; border: 0; cursor: pointer; padding: .45rem .15rem;
  color: var(--dim); font: 500 12px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.tab:hover { color: var(--accent); }
.tab[aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.panel { animation: fadeIn .45s ease both; }
.panel[hidden] { display: none; }
.panel:focus { outline: none; }

.chapter-nav { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.arrow {
  display: inline-flex; padding: .5rem; background: none; border: 0; cursor: pointer;
  color: var(--muted); transition: color .3s, transform .3s, opacity .3s;
}
.arrow:hover { color: var(--white); transform: scale(1.15); }
.arrow:disabled { opacity: .25; cursor: default; transform: none; }
.chapter-meta { margin: .5rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--white); }
.chapter-meta small { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--accent); margin-right: .75rem; }

@media (max-width: 640px) {
  .tab .long { display: none; }
  .tab { min-width: 1.6rem; }
}

/* ---------------------------------------------------------
   Son œuvre
   --------------------------------------------------------- */
.keywords { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.keywords a {
  display: inline-block; padding: .4rem 1rem; border: 1px solid var(--line-2); border-radius: 999px;
  text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text); transition: color .3s, border-color .3s;
}
.keywords a:hover { color: var(--accent); border-color: var(--accent); }
.theme { margin-top: 2.75rem; scroll-margin-top: 2rem; }
.theme-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.theme-num { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--amber); }
.theme-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--white); }
.theme-title .en { font-style: italic; font-size: .7em; margin-left: .5rem; }
.closing {
  margin: 3rem 0 0; padding: 2rem 0; text-align: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.closing .fr { margin: 0 auto; max-width: 40rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.45; color: var(--white); }
.closing .en { margin: 1rem auto 0; max-width: 40rem; font-size: .95rem; }

/* ---------------------------------------------------------
   Supports
   --------------------------------------------------------- */
.section-tabs { margin: 0; justify-content: flex-start; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; align-items: start; }
.split.half { grid-template-columns: 1fr 1fr; align-items: center; }
.split.third { grid-template-columns: 1fr 2fr; align-items: center; }
.split.reverse > :first-child { order: 2; }
.block { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.doc { width: 100%; border: 1px solid var(--line-2); box-shadow: 0 10px 25px rgba(0, 0, 0, .4); }
.doc.paper { background: #fff; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.center-media { display: flex; justify-content: center; }
.center-media .doc, .center-media .img-missing { max-width: 300px; }
.center-media.narrow .doc, .center-media.narrow .img-missing { max-width: 250px; }
.center-media.large .doc, .center-media.large .img-missing { max-width: 420px; }
.figcap { margin-top: .6rem; font-size: 11px; font-style: italic; line-height: 1.5; color: var(--muted); }
.doc-text p { margin: 0 0 .75rem; }
.doc-text .fr { font-style: italic; font-weight: 400; color: var(--white); }
.doc-text .en { font-style: italic; font-size: .92em; }
.book-media { display: flex; flex-direction: column; gap: 1rem; }
.book-media .doc:first-child, .book-media .img-missing:first-child { max-width: 20rem; }
.book-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.2; color: var(--white); }
.book-meta { margin: .4rem 0 1.5rem !important; font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.subhead { margin: 0 0 1rem; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--amber); }

.expo-list { list-style: none; margin: 0 0 1.75rem; padding: 0; border-left: 1px solid var(--line-2); }
.expo-list li { position: relative; display: flex; gap: 1rem; padding: .3rem 0 .3rem 1.25rem; font-size: .93rem; }
.expo-list li::before {
  content: ""; position: absolute; left: -4px; top: 1rem;
  width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
}
.expo-list .y { flex: 0 0 3rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; color: var(--white); }

.poster-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; align-items: end; }
.poster-grid figure { margin: 0; text-align: center; }
.poster-grid .doc, .poster-grid .img-missing { max-width: 250px; margin: 0 auto; }
.poster-grid .figcap { color: var(--text); }

@media (max-width: 768px) {
  .split, .split.half, .split.third { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .poster-grid { grid-template-columns: 1fr; }
}

/* Images agrandissables */
[data-zoom] { cursor: zoom-in; }

/* ---------------------------------------------------------
   Galerie
   --------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  background: transparent; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer;
  padding: .5rem 1rem; color: var(--text);
  font: 500 11px/1 var(--sans); letter-spacing: .15em; text-transform: uppercase;
  transition: color .3s, border-color .3s, background .3s;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: rgba(79, 209, 197, .08); }
.chip .n { color: var(--dim); margin-left: .35rem; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 2.25rem 1.75rem; }
.work { margin: 0; animation: fadeIn .5s ease both; text-align: center; }
.work.pending { display: none; }
.work-btn {
  display: block; width: 100%; padding: .45rem;
  background: var(--navy-2); border: 1px solid var(--line); border-radius: 0;
  box-shadow: 0 12px 25px -10px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.work-btn:hover { transform: translateY(-4px); box-shadow: 0 22px 35px -12px rgba(0, 0, 0, .7); }
.work-btn:hover { border-color: rgba(79, 209, 197, .35); }
/* Le tableau est montré en entier (jamais recadré) sur un fond sombre */
.work-btn img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: rgba(0, 0, 0, .25); transition: transform .7s ease; }
.work-btn:hover img { transform: scale(1.03); }
.work-btn { overflow: hidden; }
.work .by { display: block; margin-top: .3rem; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.chip[hidden] { display: none; }
.gallery-status { margin: 0 0 1.5rem; font-size: 12.5px; color: var(--muted); min-height: 1.2em; }
.work-btn:disabled { cursor: default; }
.work-btn:disabled:hover { transform: none; }
.work figcaption { margin-top: .75rem; }
.work .t { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; color: var(--white); }
.work .m { display: block; font-size: 12px; color: var(--muted); }
.gallery-note { margin-top: 2.5rem; font-size: .9rem; color: var(--muted); }
.gallery-note a { color: var(--amber); }

/* ---------------------------------------------------------
   Contacts
   --------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 3rem; align-items: start; }
.email-card { padding: 1.5rem; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .18); margin-top: 1.5rem; }
.email-card .label { display: block; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.email-link { display: inline-block; margin: .35rem 0 1rem; font-family: var(--serif); font-size: clamp(1.35rem, 2.6vw, 1.75rem); color: #d4a24c; text-decoration: none; word-break: break-all; transition: color .3s; }
.email-link:hover { color: var(--white); }
.copy-status { margin-left: .75rem; font-size: 12px; color: var(--accent); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select {
  font: 400 15px/1.5 var(--sans); color: var(--white);
  background: rgba(0, 0, 0, .25); border: 1px solid var(--line-2); border-radius: 2px;
  padding: .75rem .9rem; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field select option { color: #111; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 209, 197, .15); }
.form-hint { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }

@media (max-width: 820px) {
  .hero, .contact-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: center; }
}
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------
   Image manquante (affiche le nom du fichier attendu)
   --------------------------------------------------------- */
.img-missing {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
  width: 100%; aspect-ratio: 3 / 4; padding: 1rem; text-align: center;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px), var(--card);
  border: 1px dashed var(--line-2); color: var(--muted);
}
.img-missing span { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; }
.img-missing code { font-size: 12px; color: var(--amber); word-break: break-all; }

/* ---------------------------------------------------------
   Visionneuse (lightbox)
   --------------------------------------------------------- */
.lightbox {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0; padding: 0; border: 0; background: transparent; color: var(--white);
}
.lightbox::backdrop { background: rgba(8, 10, 30, .93); }
.lightbox figure {
  margin: 0; height: 100%; padding: 4rem 5rem 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; box-shadow: 0 25px 60px rgba(0, 0, 0, .6); }
.lightbox figcaption { margin-top: 1rem; max-width: 46rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--text); }
.lb-btn {
  position: absolute; width: 3rem; height: 3rem; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-2); border-radius: 50%;
  color: var(--white); cursor: pointer; transition: background .3s, color .3s;
}
.lb-btn:hover { background: var(--accent); color: var(--navy); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-btn[hidden] { display: none; }
@media (max-width: 640px) {
  .lightbox figure { padding: 4rem .75rem 5.5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-prev { left: calc(50% - 3.5rem); }
  .lb-next { right: calc(50% - 3.5rem); }
}

@media (max-width: 768px) {
  .bg-letter { font-size: 60vw; left: 50%; transform: translate(-50%, -50%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
