/* Smart Bike 2.0 — case study
   Palette from the 2023 case */
:root {
  --green: #2FCF5C;
  --graphite: #2D2D2D;
  --white: #FFFFFF;
  --slate: #59606A;
  --red: #EC4646;
  --yellow: #FFD646;
  --blue: #3AA1EC;

  --bg: #1B1B1B;
  --surface: var(--graphite);
  --card: #F4F5F6;
  --ink: #161616;
  --ink-muted: #59606A;
  --text: var(--white);
  --text-muted: #A3A9B2;
  --line: rgba(255, 255, 255, 0.1);

  --radius: 24px;
  --radius-sm: 16px;
  --gutter: 16px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 6px;
}

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

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  font-size: 14px;
}
.topbar__back {
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
.topbar__back:hover { color: var(--green); }
.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__label { color: var(--text-muted); }
@media (max-width: 479px) {
  .topbar__label { display: none; }
}

/* Language switch */
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.lang__btn {
  min-width: 44px;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font: 700 13px/1 var(--font);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] {
  background: var(--green);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
}
.hero__grid {
  display: grid;
  gap: 32px;
  align-items: end;
}
@media (min-width: 960px) {
  .hero { padding: 96px 0 112px; }
  .hero__grid { grid-template-columns: 1fr 380px; gap: 48px; }
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.tag {
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.hero__title {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  font-size: clamp(56px, 11vw, 136px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.hero__subtitle {
  margin-top: 24px;
  max-width: 640px;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.35;
  color: var(--text-muted);
}

.hero__stat {
  background: var(--green);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 28px;
}
.hero__stat-label {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hero__role-title {
  margin-top: 8px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero__role-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.hero__role-list li {
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}
@media (min-width: 960px) {
  .section { padding: 112px 0; }
}
.section__head {
  margin-bottom: 40px;
  max-width: 760px;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.section h2 {
  font-size: clamp(30px, 6vw, 72px);
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.section__lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-muted);
}
.section__note {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.section__note[hidden] { display: none; }
.section__note a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.section__note a:hover { color: var(--green); text-decoration-color: var(--green); }

/* ---------- Light card base ---------- */
.card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 24px;
}

/* ---------- 2. Old app screens ---------- */
.old-app {
  margin-bottom: 16px;
  padding: 20px 0 16px;
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
}
.old-app__scroll {
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: thin;
}
.old-app__img {
  width: 100%;
  min-width: 640px;
  max-width: 956px;
  height: auto;
  margin: 0 auto;
}
.old-app__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin-top: 12px;
  padding: 0 20px;
  font-size: 14px;
  color: var(--ink-muted);
}
.old-app__label {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--slate);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- 2. Problems ---------- */
.problems {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .problems { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .problems { grid-template-columns: repeat(3, 1fr); }
}
.problem {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}
.problem__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
}
.problem__title {
  margin-top: auto;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.problem__text {
  color: var(--ink-muted);
  font-size: 15px;
}

/* ---------- 3. Mapping ---------- */
.mapping {
  display: grid;
  gap: 16px;
}
.map-row {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .map-row {
    grid-template-columns: 1fr 1.3fr 280px;
    gap: 0;
    padding: 28px 28px 28px 32px;
  }
  /* columns 2 and 3 are separated by the same divider */
  .map-row__solution,
  .map-row__shot {
    padding-left: 24px;
    margin-left: 24px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    align-self: stretch;
  }
}
.map-row__cell { margin: 0; min-width: 0; }
.map-row__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.map-row__text {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
}
.map-row__shot {
  display: grid;
  grid-template-columns: 1fr 96px;
  gap: 12px;
  align-items: start;
}
@media (min-width: 860px) {
  .map-row__shot { grid-template-columns: 1fr 108px; }
}

/* ---------- Image slot / placeholder ---------- */
.shot {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
.shot img.is-loaded { opacity: 1; }
.shot__ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: var(--text-muted);
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 12px, transparent 12px 24px),
    var(--surface);
}
.shot__ph::before {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid currentColor;
  opacity: 0.6;
  background:
    radial-gradient(circle at 35% 35%, currentColor 0 3px, transparent 3.5px),
    linear-gradient(135deg, transparent 55%, currentColor 55% 62%, transparent 62%);
}
.shot__file {
  font-family: var(--mono);
  font-size: 11px;
  opacity: 0.6;
  word-break: break-all;
}
.shot--small .shot__ph { font-size: 11px; gap: 6px; padding: 8px; }
.shot--small .shot__ph::before { width: 20px; height: 20px; border-radius: 6px; }
.shot--small .shot__file { display: none; }
.card .shot { background: #E3E5E8; }
.card .shot__ph {
  color: #6B727C;
  border-color: rgba(0, 0, 0, 0.18);
  background:
    repeating-linear-gradient(135deg, rgba(0,0,0,0.03) 0 12px, transparent 12px 24px),
    #E3E5E8;
}

/* ---------- 4. Approach ---------- */
.fixes {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  counter-reset: fix;
}
@media (min-width: 760px) {
  .fixes { grid-template-columns: repeat(2, 1fr); }
}
.fix {
  display: grid;
  gap: 10px;
  align-content: start;
}
.fix__stage {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.fix__text {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}
.fix__num {
  font-size: 14px;
  font-weight: 700;
  color: #13802F;
  letter-spacing: 0.04em;
}

/* ---------- 6. Platforms ---------- */
.platforms {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .platforms { grid-template-columns: repeat(3, 1fr); }
}
.platform__title {
  font-size: 22px;
  font-weight: 700;
}
.platform__diff {
  margin-top: 4px;
  margin-bottom: 20px;
  font-size: 15px;
  color: var(--ink-muted);
}
.platform__pairs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 640px) and (max-width: 959px) {
  .platform { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: center; }
  .platform__diff { margin-bottom: 0; }
}
.pair figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}
.os-label {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 4px;
}
.os-label--ios { background: var(--blue); color: var(--white); }
.os-label--android { background: var(--green); color: var(--ink); }

/* ---------- 8. Store ---------- */
.store {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 260px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  --edge: max(var(--gutter), calc((100% - 1200px) / 2 + var(--gutter)));
  padding: 4px var(--edge) 16px;
  scroll-padding-inline: var(--edge);
  scrollbar-width: thin;
  scrollbar-color: var(--slate) transparent;
}
@media (max-width: 520px) {
  .store { grid-auto-columns: 68%; }
}
.store .shot {
  scroll-snap-align: start;
  aspect-ratio: 1290 / 2796;
  border-radius: var(--radius);
}

/* ---------- Result, project files, contact ---------- */
.section--link { border-top: 1px solid var(--line); }

.quote {
  max-width: 820px;
  margin: 72px auto 0;
  text-align: center;
}
.quote__text {
  position: relative;
  margin: 0;
  padding-top: 56px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}
.quote__text::before {
  content: "“";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 120px;
  font-weight: 800;
  line-height: 1;
  color: var(--green);
}
.quote__author {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  text-align: left;
}
.quote__photo {
  display: block;
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: var(--white) url("../../assets/avatar.webp") no-repeat 48% 0 / 180% auto;
}
.quote__who { display: grid; gap: 2px; }
.quote__name { font-size: 16px; font-weight: 700; }
.quote__role { font-size: 14px; color: var(--text-muted); }

.materials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.materials__label {
  margin-right: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--white); transform: translateY(-1px); }
.chip--primary { background: var(--green); border-color: var(--green); color: var(--ink); }
.chip--primary:hover { border-color: var(--green); }
.chip[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
@media (max-width: 520px) {
  .materials__label { flex-basis: 100%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---------- Closing block and footer: the style of antonkostylev.com ---------- */
@font-face {
  font-family: "Google Sans";
  src: url("../../fonts/Google_Sans/GoogleSans-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
.site-end, .site-footer {
  --site-accent: #ff1461;
  --site-accent-hover: #e60050;
  --site-text: #1a1a1a;
  --site-text-2: #666;
  --site-bg: #ffffff;
  --site-dots: #e8e8e8;
  --site-footer-bg: #1a1a1a;
  --site-footer-link: rgba(255, 255, 255, 0.8);
  font-family: "Google Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-site-theme="dark"] .site-end,
[data-site-theme="dark"] .site-footer {
  --site-text: #f0f0f0;
  --site-text-2: #999;
  --site-bg: #111111;
  --site-dots: #1e1e1e;
  --site-footer-bg: #0a0a0a;
  --site-footer-link: rgba(255, 255, 255, 0.6);
}

.site-end {
  padding: 64px 16px;
  text-align: center;
  color: var(--site-text);
  background-color: var(--site-bg);
  background-image: radial-gradient(circle, var(--site-dots) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: site-dots 2s linear infinite;
}
@keyframes site-dots {
  from { background-position: 0 0; }
  to   { background-position: -20px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-end { animation: none; }
}
.site-end__inner { max-width: 640px; margin: 0 auto; }
.site-end__title {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--site-accent);
}
.site-end__title::before { content: "[ "; }
.site-end__title::after { content: " ]"; }
.site-end__text {
  max-width: 500px;
  margin: 16px auto 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--site-text-2);
}
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 24px 48px;
  background: var(--site-accent);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.site-btn:hover, .site-btn:focus-visible {
  background: var(--site-accent-hover);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
  outline: none;
}
.site-end__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 24px;
}
.site-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--site-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.site-link:hover { opacity: 0.7; }

.site-footer {
  padding: 48px 16px;
  background: var(--site-footer-bg);
  color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
}
.site-footer__privacy {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
.site-footer__privacy:hover { opacity: 0.7; }
.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer__links a {
  color: var(--site-footer-link);
  text-decoration: none;
}
.site-footer__links a:hover, .site-footer__links a:focus-visible {
  color: var(--site-accent);
  outline: none;
}
@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
  .site-footer__links { flex-direction: row; gap: 24px; }
}

/* ---------- Load error ---------- */
.load-error {
  margin-bottom: 32px;
  padding: 20px 24px;
  border-radius: var(--radius-sm);
  background: rgba(236, 70, 70, 0.12);
  border: 1px solid rgba(236, 70, 70, 0.5);
  font-size: 15px;
}
.load-error p + p { margin-top: 8px; }
.load-error code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Reveal on scroll ---------- */
/* Blocks snap in from the sides: odd ones from the left, even ones from the right */
.hero, .section { overflow-x: clip; }
.js .reveal {
  opacity: 0;
  transform: translateX(-72px);
  transition: opacity 0.6s ease-out, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--delay, 0s);
}
.js .reveal--right { transform: translateX(72px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Lightbox ---------- */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.shot.zoomable {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.shot.zoomable:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.lb-open, .lb-open body { overflow: hidden; }
.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 64px 72px 72px;
  background: #0A0A0A;
  overflow: hidden;
  touch-action: none;
  animation: lb-in 0.2s ease-out;
}
.lb[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } }
.lb__figure {
  margin: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
}
.lb__img {
  max-width: 100%;
  max-height: calc(100% - 64px);
  min-height: 0;
  object-fit: contain;
  border-radius: var(--radius);
  transform-origin: 0 0;
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}
.lb__img--anim { transition: transform 0.28s var(--ease); }
.lb--zoomed .lb__img { cursor: grab; }
.lb--dragging .lb__img { cursor: grabbing; }
.lb--zoomed .lb__caption, .lb--zoomed .lb__hint { visibility: hidden; }
.lb__img--wide { background: #fff; border-radius: var(--radius-sm); }
.lb__img[hidden], .lb__ph[hidden], .lb__caption[hidden], .lb__hint[hidden] { display: none; }
/* enlarged placeholder for a screen that has no image yet: phone proportions */
.lb__ph {
  height: min(100%, 760px);
  aspect-ratio: 390 / 844;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  border-radius: var(--radius);
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 14px, transparent 14px 28px),
    var(--surface);
}
.lb__ph-label { font-size: 18px; font-weight: 600; color: var(--text); }
.lb__ph-file { font-family: var(--mono); font-size: 13px; color: var(--text-muted); word-break: break-all; }
.lb__caption {
  max-width: 720px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
.lb__hint {
  margin: -6px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0.7;
}
.lb__counter {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 24px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.lb__btn {
  position: absolute;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font: 400 30px/1 var(--font);
  cursor: pointer;
  transition: background 0.2s;
}
.lb__btn:hover { background: rgba(255, 255, 255, 0.2); }
.lb__btn[hidden] { display: none; }
.lb__close { top: 12px; right: 12px; }
.lb__zoom { top: 12px; right: 72px; font-size: 26px; }
.lb--zoomed .lb__btn { background: rgba(10, 10, 10, 0.6); }
.lb--zoomed .lb__btn:hover { background: rgba(40, 40, 40, 0.8); }
.lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb { padding: 64px 12px 88px; }
  .lb__prev, .lb__next { top: auto; bottom: 16px; transform: none; }
  .lb__prev { left: calc(50% - 60px); }
  .lb__next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .lb { animation: none; }
  .lb__img--anim { transition: none; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .bar__fill { transition: none; }
  .btn:hover { transform: none; }
}
