/* ============================================================
   David Murray — Portfolio styles
   Edit color / font tokens below to rebrand the whole site.
   ============================================================ */

:root {
  /* Colors — white canvas + saturated greens. */
  --bg:        #FFFFFF;   /* pure white canvas */
  --surface:   #F7F4EC;   /* faint warm cream — used only for placeholder cards / surfaces */
  --text:      #0B1A14;   /* deep forest ink */
  --text-dim:  #3E4F44;   /* deep sage — passes AA at small sizes */
  --rule:      #ECE7DA;   /* warm hairline rule */
  --accent:    #047857;   /* deep emerald — primary CTAs, links */
  --accent-2:  #10B981;   /* bright emerald — decorative pops */
  --accent-3:  #064E3B;   /* pine green — depth */

  /* Gradient — used for display emphasis + primary buttons */
  --grad: linear-gradient(135deg, var(--accent-3) 0%, var(--accent) 55%, var(--accent-2) 100%);

  /* Type — single family. Hierarchy via weight + size + tracking. */
  --font-sans:    "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: var(--font-sans);

  /* Type scale — pick from these, don't invent new ones */
  --fs-hero:    clamp(2.75rem, 9vw, 7rem);     /* hero h1 only */
  --fs-display: clamp(2.25rem, 5.5vw, 4rem);   /* section / case study titles */
  --fs-title:   clamp(1.75rem, 3.5vw, 2.5rem); /* sub-headings */
  --fs-h2:      clamp(1.35rem, 2.2vw, 1.75rem);/* in-body h2 */
  --fs-lede:    clamp(1.05rem, 1.6vw, 1.25rem);
  --fs-body:    17px;
  --fs-small:   15px;
  --fs-label:   12px;

  /* Space */
  --pad: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1240px;
  --radius: 12px;
}

/* Reset ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
em {
  font-style: normal;
  color: var(--accent); /* fallback */
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
strong { font-weight: 600; color: var(--text); }
::selection { background: var(--accent); color: var(--bg); }

/* Skip link --------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--bg);
  padding: .5rem 1rem;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Nav --------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem var(--pad);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav__mark { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; }
.nav__mark .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.2); opacity: .8; }
}
.nav__links { display: flex; gap: 1.5rem; font-size: 15px; color: var(--text-dim); }
.nav__links a { transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }
@media (max-width: 520px) { .nav__links { display: none; } }

/* Shared section scaffolding --------------------------------- */
.section__head {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  opacity: 0; transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.section__head.is-visible { opacity: 1; transform: none; }
.section__kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 1rem;
}
.section__title {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  margin: 0;
}

/* Hero -------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 9rem) var(--pad) clamp(3rem, 8vw, 6rem);
}
/* Soft organic blobs scattered in the hero — editorial, not loud */
.blob {
  position: absolute;
  pointer-events: none;
  z-index: -1; /* behind text, contained by .hero's isolation */
}
.blob--1 {
  width: 110px; height: 85px;
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  background: var(--grad);
  opacity: .92;
  top: 7rem;
  right: 4rem;
}
.blob--2 {
  width: 80px; height: 65px;
  border-radius: 50% 50% 45% 55% / 55% 45% 60% 40%;
  background: var(--accent-2);
  opacity: .88;
  top: 10rem;
  right: 1rem;
  transform: rotate(-6deg);
}
.blob--3 {
  width: 60px; height: 52px;
  border-radius: 55% 45% 50% 50% / 45% 55% 45% 55%;
  background: var(--accent-3);
  opacity: .9;
  top: 6rem;
  right: 11rem;
  transform: rotate(12deg);
}
@media (max-width: 820px) { .blob { display: none; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem .9rem;
  font-size: 13px;
  color: var(--text-dim);
  border: 1px solid var(--rule);
  border-radius: 999px;
  margin-bottom: 2rem;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 25%, transparent);
}
.display {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.025em;
  margin: 0 0 2rem;
  max-width: 20ch;
}
.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 2.5rem;
}
.lede strong { color: var(--text); }
.hero__cta { display: flex; gap: .75rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .9rem 1.35rem;
  font-size: 15px; font-weight: 500;
  border-radius: 999px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 2px 12px -4px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -8px color-mix(in srgb, var(--accent) 65%, transparent);
}
.btn--ghost { color: var(--text); border: 1px solid var(--rule); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .nav__mark .dot { animation: none; }
}

/* Work -------------------------------------------------------- */
.work { padding: clamp(3rem, 8vw, 6rem) 0; }
.projects {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  border-top: 1px solid var(--rule);
}
.project {
  border-bottom: 1px solid var(--rule);
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.project.is-visible { opacity: 1; transform: none; }

.project__link {
  display: grid;
  grid-template-columns: minmax(280px, 38%) 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(2rem, 4.5vw, 3rem) 0;
  transition: padding-left .4s ease;
  position: relative;
}
.project__link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--accent-2) 8%, transparent);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
  border-radius: var(--radius);
}
.project__link:hover::before { opacity: 1; }
.project__link:hover { padding-left: 1rem; }
.project__link:hover .project__arrow { transform: translateX(6px); color: var(--accent-2); }
.project__link:hover .project__title { color: var(--accent); }
.project__link:hover .project__media img { transform: scale(1.03); }

/* Media block --------------------------------------------------- */
.project__media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface);
}
.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s ease;
}
.project__media--placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--accent-3) 18%, var(--surface)) 0%,
      color-mix(in srgb, var(--accent) 12%, var(--surface)) 50%,
      color-mix(in srgb, var(--accent-2) 14%, var(--surface)) 100%);
  border-color: color-mix(in srgb, var(--accent) 18%, var(--rule));
}
.project__media-num {
  font-family: var(--font-sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -.02em;
  color: var(--accent-3);
  opacity: .55;
  line-height: 1;
  user-select: none;
}

.project__body { min-width: 0; }
.project__num {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .85rem;
}
.project__title {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 .6rem;
  color: var(--text);
  transition: color .25s ease;
}
.project__meta {
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: .02em;
  margin: 0 0 .85rem;
}
.project__desc {
  color: var(--text);
  max-width: 58ch;
  margin: 0 0 1rem;
}
.project__tags {
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.project__tags li {
  font-size: 12px;
  padding: .3rem .65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--text-dim);
  background: transparent;
  font-weight: 500;
}
.project__tags .tag--nda {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.project__arrow {
  font-size: 1.8rem;
  color: var(--text-dim);
  transition: transform .3s ease, color .3s ease;
}

@media (max-width: 760px) {
  .project__link {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .project__arrow { display: none; }
  .project__media { aspect-ratio: 16 / 10; }
}

/* About ------------------------------------------------------- */
.about { padding: clamp(4rem, 10vw, 8rem) 0; }
.about__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.about__grid.is-visible { opacity: 1; transform: none; }
@media (max-width: 800px) {
  .about__grid { grid-template-columns: 1fr; }
}
.about__prose p {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-dim);
  margin: 0 0 1.25rem;
}
.about__prose strong { color: var(--text); }

.facts {
  display: grid; gap: 1.25rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.facts > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule);
}
.facts > div:last-child { border-bottom: none; padding-bottom: 0; }
.facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.facts dd { margin: 0; color: var(--text); }

/* Contact ----------------------------------------------------- */
.contact {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 8rem) var(--pad);
  text-align: left;
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.contact.is-visible { opacity: 1; transform: none; }

.contact__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.025em;
  margin: 1rem 0 2rem;
  max-width: 18ch;
}
.contact__lede {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 2.5rem;
}
.contact__email {
  display: inline-block;
  font-size: var(--fs-title);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.contact__email:hover { color: var(--accent-2); border-color: var(--accent-2); transform: translateX(4px); }

.contact__links {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--text-dim);
}
.contact__links a { transition: color .2s ease; }
.contact__links a:hover { color: var(--accent); }

/* Footer ------------------------------------------------------ */
.footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem var(--pad);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-dim);
  border-top: 1px solid var(--rule);
}
@media (max-width: 520px) {
  .footer { flex-direction: column; gap: .5rem; }
}

/* ================= Case study page styles ===================
   Used by /work/*.html pages
   ============================================================ */
.cs-back {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--text-dim); font-size: 14px;
  margin-bottom: 2rem;
}
.cs-back:hover { color: var(--accent); }

.cs-header {
  max-width: 900px; margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(2rem, 5vw, 4rem);
}
.cs-eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.25rem;
}
.cs-title {
  font-size: var(--fs-display);
  font-weight: 600; line-height: 1.05; letter-spacing: -.025em;
  margin: 0 0 1.25rem;
}
.cs-sub {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: var(--text-dim);
  max-width: 55ch;
  margin: 0 0 2.5rem;
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 3.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cs-meta > div { min-width: 0; }
.cs-meta dt {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: .25rem;
}
.cs-meta dd { margin: 0; font-size: 15px; }

.cs-body {
  max-width: 760px; margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
}
.cs-body h2 {
  font-size: var(--fs-h2);
  font-weight: 600; line-height: 1.2; letter-spacing: -.015em;
  margin: 3rem 0 1rem;
}
.cs-body h2:first-child { margin-top: 0; }
.cs-body h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin: 4rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.cs-body h3 + figure { margin-top: 1.5rem; }
.cs-body figure + h3 { margin-top: 4rem; }
.cs-body p {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.65;
  color: var(--text-dim);
  margin: 0 0 1.25rem;
}
.cs-body p strong { color: var(--text); }
.cs-body figure {
  margin: 5rem 0;
}
.cs-body figcaption {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 1.25rem;
  padding-left: 1rem;
  border-left: 2px solid var(--accent-2);
  line-height: 1.55;
  max-width: 60ch;
}
.cs-zoom-hint {
  display: inline-block;
  margin-left: .5rem;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: .02em;
}
.cs-zoom-hint::before { content: "↗ "; color: var(--accent-2); }
.cs-body figure a {
  display: block;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--rule);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.cs-body figure a:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--rule));
  box-shadow: 0 6px 24px -10px color-mix(in srgb, var(--accent) 25%, transparent);
}
.cs-body figure img {
  width: 100%;
  display: block;
}
.cs-body figure + h2 { margin-top: 5rem; }

/* Wide figure — breaks past the 760px text column for big flow images */
.cs-body .figure--wide {
  --w: min(1100px, 95vw);
  --offset: max(0px, calc((var(--w) - 760px) / 2));
  margin-left: calc(var(--offset) * -1);
  margin-right: calc(var(--offset) * -1);
  max-width: var(--w);
}

/* Portrait phone figure — centered, narrow, soft background plate */
.cs-body .figure--phone {
  max-width: 420px;
  margin: 0 auto 5rem;
  padding: 2.5rem 2rem;
  background: color-mix(in srgb, var(--accent-2) 12%, var(--bg));
  border-radius: var(--radius);
}
.cs-body .figure--phone a {
  border: none;
  background: transparent;
}
.cs-body .figure--phone a:hover {
  border: none;
  box-shadow: none;
}
.cs-body .figure--phone img {
  background: transparent;
}

.cs-nda-callout {
  margin: 2rem 0 3rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent-2) 22%, var(--bg));
}
.cs-nda-callout h3 {
  font-family: var(--font-sans);
  font-size: 15px; font-weight: 600;
  margin: 0 0 .5rem;
  color: var(--accent);
  letter-spacing: .02em;
}
.cs-nda-callout p { margin: 0 0 1rem; color: var(--text); font-size: 15px; }
.cs-nda-callout .btn { padding: .7rem 1.1rem; font-size: 14px; }

/* Pulled principle / large quote inside a case study body */
.cs-body .cs-pull {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(1.125rem, 2vw, 1.4rem);
  line-height: 1.45;
  color: var(--text);
  margin: 3rem 0;
  padding: .25rem 0 .25rem 1.5rem;
  border-left: 3px solid var(--accent);
}
.cs-body .cs-pull .cs-pull__attr {
  display: block;
  margin-top: .9rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-dim);
}

/* Numbered design bets — visually distinct from regular paragraphs */
.cs-body .cs-bets {
  list-style: none;
  margin: 1.5rem 0 2.5rem;
  padding: 0;
  counter-reset: bet;
}
.cs-body .cs-bets > li {
  position: relative;
  padding: 1.25rem 0 1.25rem 3.25rem;
  border-top: 1px solid var(--rule);
  counter-increment: bet;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  color: var(--text-dim);
}
.cs-body .cs-bets > li:last-child { border-bottom: 1px solid var(--rule); }
.cs-body .cs-bets > li::before {
  content: counter(bet, decimal-leading-zero);
  position: absolute; left: 0; top: 1.55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--accent);
}
.cs-body .cs-bets > li strong { color: var(--text); display: block; margin-bottom: .25rem; }

/* "Selected artifacts" list — categories of unshown work */
.cs-body .cs-artifacts {
  list-style: none; padding: 0; margin: 1rem 0 2rem;
  display: grid; gap: 0;
}
.cs-body .cs-artifacts li {
  font-size: 15px;
  color: var(--text);
  padding: .75rem 0;
  border-top: 1px solid var(--rule);
}
.cs-body .cs-artifacts li:last-child { border-bottom: 1px solid var(--rule); }
.cs-body .cs-artifacts li::before {
  content: "✦";
  color: var(--accent);
  margin-right: .7rem;
  font-size: 12px;
  vertical-align: 1px;
}

.cs-next {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
  border-top: 1px solid var(--rule);
}
.cs-next__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-dim); margin: 0 0 .75rem;
}
.cs-next__title {
  font-size: var(--fs-title);
  font-weight: 600; line-height: 1.1; letter-spacing: -.025em;
  margin: 0;
  color: var(--text); transition: color .2s ease;
}
.cs-next a:hover .cs-next__title { color: var(--accent); }

/* ================= Lightbox ==================================
   Click-to-open viewer with zoom + pan. Used on case study pages.
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: rgba(11, 26, 20, .94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.is-open {
  display: flex;
  opacity: 1;
  flex-direction: column;
}
.lightbox__viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.lightbox__viewport.is-dragging { cursor: grabbing; }
.lightbox__img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: none;
  max-height: none;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  will-change: transform;
}
.lightbox__img.is-animating { transition: transform .25s ease; }

.lightbox__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  pointer-events: none;
}
.lightbox__bar > * { pointer-events: auto; }
.lightbox__hint {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  letter-spacing: .02em;
  background: rgba(0, 0, 0, .35);
  padding: .45rem .8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .12);
}
.lightbox__close {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .35);
  transform: scale(1.05);
}

.lightbox__controls {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .5rem;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: .35rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.lightbox__btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, .9);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: background .2s ease, color .2s ease;
}
.lightbox__btn:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.lightbox__btn--reset {
  width: auto;
  padding: 0 .9rem;
  font-size: 13px;
  letter-spacing: .04em;
}

@media (max-width: 520px) {
  .lightbox__hint { display: none; }
  .lightbox__controls { bottom: .75rem; }
}
