/* Apps page layer: the website chrome remains sourced from the cloned CSS. */
:root {
  color-scheme: dark;
  --gh-bg: #0d1117;
  --gh-panel: #161b22;
  --gh-panel-raised: #1c2128;
  --gh-border: #30363d;
  --gh-border-soft: rgba(240, 246, 252, 0.12);
  --gh-text: #f0f6fc;
  --gh-muted: #8b949e;
  --gh-subtle: #6e7681;
  --gh-blue: #58a6ff;
  --gh-green: #3fb950;
  --gh-orange: #d29922;
  --gh-pink: #db61a2;
  --gh-purple: #bc8cff;
}

html {
  background: var(--gh-bg);
}

body {
  background: var(--gh-bg);
  color: var(--gh-text);
  font-family: Inter, system-ui, sans-serif;
  min-width: 320px;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gh-blue);
  outline-offset: 3px;
}

/* The source website header is retained verbatim in markup/CSS and gets this
   dark-page contrast layer for the /apps surface. */
.site-header {
  background: rgba(13, 17, 23, 0.84);
  box-shadow: 0 1px 0 rgba(240, 246, 252, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.site-header a,
.site-header svg {
  color: var(--gh-text);
  stroke: var(--gh-text);
}

.site-header .site-title {
  border-color: var(--gh-text);
  background: rgba(13, 17, 23, 0.68);
}

.site-header .site-title:hover,
.site-header .site-title:focus-visible {
  background: var(--gh-text);
  color: var(--gh-bg);
  border-color: var(--gh-text);
  text-shadow: none;
}

.site-header .site-nav a:hover,
.site-header .site-nav a:focus-visible {
  color: var(--gh-blue);
}

.site-header .icon-btn:hover,
.site-header .mobile-menu-toggle:hover {
  background: rgba(240, 246, 252, 0.1);
}

.site-header .snow-icon,
.site-header .eye-icon {
  stroke-width: 1.65;
}


.page-shell {
  width: min(100% - 3rem, 1320px);
  margin: 0 auto;
  padding: 7rem 0 5rem;
  display: grid;
  grid-template-columns: minmax(220px, 296px) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.profile-sidebar {
  position: sticky;
  top: 5.75rem;
  min-width: 0;
}

/* Show full tall sidebar on desktop, compact on mobile */
.profile-sidebar-compact {
  display: none;
}

/* Full tall sidebar — desktop */
.profile-sidebar-full .profile-avatar-wrap {
  position: relative;
  width: min(100%, 292px);
  aspect-ratio: 1;
  margin-bottom: 1.5rem;
}

.profile-sidebar-full .profile-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 1px solid var(--gh-border);
  box-shadow: 0 0 0 5px rgba(13, 17, 23, 0.86), 0 0 0 6px var(--gh-border);
}

.profile-sidebar-full .profile-copy h2 {
  margin: 0;
  color: var(--gh-text);
  font-size: clamp(1.6rem, 2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-family: "DM Sans", Inter, sans-serif;
}

.profile-sidebar-full .profile-handle {
  margin: 0.3rem 0 1.55rem;
  color: var(--gh-muted);
  font-size: 1.12rem;
}

.profile-sidebar-full .profile-bio {
  max-width: 31ch;
  margin: 0 0 1.5rem;
  color: var(--gh-text);
  font-size: 1rem;
  line-height: 1.65;
}

.profile-sidebar-full .profile-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-sizing: border-box;
  margin-bottom: 1.45rem;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-panel);
  color: var(--gh-text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.profile-sidebar-full .profile-edit:hover {
  border-color: var(--gh-muted);
  background: var(--gh-panel-raised);
}

.profile-sidebar-full .profile-following {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1.45rem;
  color: var(--gh-muted);
  font-size: 0.93rem;
}

.profile-sidebar-full .profile-following svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-right: 0.15rem;
}

.profile-sidebar-full .profile-following a {
  color: var(--gh-muted);
  text-decoration: none;
}

.profile-sidebar-full .profile-following a:hover {
  color: var(--gh-blue);
}

.profile-sidebar-full .profile-following strong {
  color: var(--gh-text);
  font-weight: 600;
}

.profile-sidebar-full .profile-details {
  display: grid;
  gap: 0.95rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--gh-text);
  font-size: 0.96rem;
}

.profile-sidebar-full .profile-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.profile-sidebar-full .profile-details li > svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  color: var(--gh-muted);
}

.profile-sidebar-full .profile-details span,
.profile-sidebar-full .profile-details a {
  min-width: 0;
  overflow-wrap: anywhere;
}

.profile-sidebar-full .profile-details a {
  color: var(--gh-text);
  text-decoration: none;
}

.profile-sidebar-full .profile-details a:hover {
  color: var(--gh-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* GitHub-style compact identity: small avatar + name/handle */
.profile-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.profile-avatar-link {
  flex: 0 0 auto;
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--gh-border);
}

.profile-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-names {
  min-width: 0;
}

.profile-names h2,
.achievements h3,
.gallery-intro h1,
.app-card h2 {
  font-family: "DM Sans", Inter, sans-serif;
}

.profile-names h2 {
  margin: 0;
  color: var(--gh-text);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.profile-handle {
  margin: 0.15rem 0 0;
  color: var(--gh-muted);
  font-size: 1.05rem;
  font-weight: 400;
}

.profile-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  background: var(--gh-panel);
  color: var(--gh-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.profile-status-emoji {
  flex: 0 0 auto;
  font-size: 0.95rem;
  line-height: 1;
}

.profile-status-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-bio {
  margin: 0 0 1rem;
  color: var(--gh-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.profile-details {
  display: grid;
  gap: 0.45rem;
  padding: 0;
  margin: 0 0 0.85rem;
  list-style: none;
  color: var(--gh-text);
  font-size: 0.875rem;
}

.profile-details li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.profile-details li > svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: var(--gh-muted);
  fill: currentColor;
}

.profile-details a {
  min-width: 0;
  overflow: hidden;
  color: var(--gh-text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-details a:hover {
  color: var(--gh-blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.profile-following {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
  margin: 0 0 0.9rem;
  color: var(--gh-muted);
  font-size: 0.875rem;
}

.profile-following svg {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  color: var(--gh-muted);
  fill: currentColor;
}

.profile-following a {
  color: var(--gh-muted);
  text-decoration: none;
}

.profile-following a:hover {
  color: var(--gh-blue);
}

.profile-following strong {
  color: var(--gh-text);
  font-weight: 600;
}

.profile-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 32px;
  box-sizing: border-box;
  margin-bottom: 0;
  padding: 0.35rem 1rem;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-panel);
  color: var(--gh-text);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.profile-edit:hover {
  border-color: var(--gh-muted);
  background: var(--gh-panel-raised);
}

.achievements {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--gh-border);
}

.achievements h3 {
  margin: 0 0 0.75rem;
  color: var(--gh-text);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.achievement-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.achievement-row a {
  position: relative;
  display: block;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
}

.achievement-row img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.achievement-row span {
  position: absolute;
  right: -0.25rem;
  bottom: -0.15rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--gh-border);
  border-radius: 999px;
  background: #f0b8a9;
  color: #171717;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.1;
}

.contributions {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.contributions h3 {
  margin: 0 0 0.75rem;
  color: var(--gh-text);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.contribution-graph {
  width: 100%;
  overflow-x: auto;
}

.contribution-status {
  margin: 0;
  color: var(--gh-muted);
  font-size: 0.9rem;
}

/*
 * GitHub-style layout:
 *   months row  → 1 spacer + N week columns
 *   body        → weekday labels (left) + 7×N cell grid
 *
 * Fixed 11×11px cells so every day is a true square (aspect-ratio on
 * table cells is unreliable and was collapsing unlabeled rows).
 */
.contribution-wrap {
  --cell: 11px;
  --gap: 3px;
  display: inline-grid;
  grid-template-columns: 28px auto;
  grid-template-rows: 16px auto;
  gap: 2px var(--gap);
  min-width: min-content;
}

.contribution-months {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--cell);
  gap: var(--gap);
  color: var(--gh-muted);
  font-size: 0.68rem;
  line-height: 1;
  align-items: end;
}

.contribution-months span {
  white-space: nowrap;
  overflow: visible;
}

.contribution-weekdays {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  left: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: repeat(7, var(--cell));
  gap: var(--gap);
  padding-right: 2px;
  background: var(--gh-canvas, #0d1117);
  color: var(--gh-muted);
  font-size: 0.68rem;
  line-height: var(--cell);
}

.contribution-weekdays span {
  display: block;
  height: var(--cell);
}

.contribution-grid {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-rows: repeat(7, var(--cell));
  grid-auto-flow: column;
  grid-auto-columns: var(--cell);
  gap: var(--gap);
}

.contrib-day {
  width: var(--cell);
  height: var(--cell);
  border-radius: 2px;
  background: var(--gh-border);
  box-sizing: border-box;
  cursor: default;
}

.contrib-day[data-level="1"] { background: #0e4429; }
.contrib-day[data-level="2"] { background: #006d32; }
.contrib-day[data-level="3"] { background: #26a641; }
.contrib-day[data-level="4"] { background: #39d353; }

.contrib-day:hover {
  outline: 1px solid var(--gh-text);
  outline-offset: -1px;
}

/* Custom tooltip */
.contrib-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  max-width: 260px;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--gh-border);
  border-radius: 6px;
  background: var(--gh-panel-raised, #1c2128);
  color: var(--gh-text);
  font-size: 0.78rem;
  line-height: 1.4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 80ms ease, transform 80ms ease;
}

.contrib-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.contrib-tooltip strong {
  display: block;
  margin-bottom: 0.1rem;
  font-weight: 600;
}

.contrib-tooltip .contrib-tooltip-date {
  color: var(--gh-muted);
  font-size: 0.72rem;
}

.contrib-tooltip .contrib-tooltip-projects {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--gh-muted);
}

.contrib-tooltip .contrib-tooltip-projects li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contrib-tooltip .contrib-tooltip-projects li::before {
  content: "· ";
  color: var(--gh-green, #3fb950);
}

.gallery-stage {
  min-width: 0;
}

.gallery-intro {
  max-width: 680px;
  margin-bottom: 2rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gh-green);
  font-family: "DM Sans", Inter, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-intro h1 {
  margin: 0;
  color: var(--gh-text);
  font-size: clamp(1.65rem, 4.4vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  white-space: nowrap;
}

.gallery-lede {
  max-width: 62ch;
  margin: 1.35rem 0 0;
  color: var(--gh-muted);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  white-space: nowrap;
}

.gallery-lede code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--gh-border);
  border-radius: 4px;
  background: var(--gh-panel);
  color: var(--gh-text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9em;
}

.app-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0.7rem 0.7rem 1.25rem;
  border: 2px solid var(--gh-border);
  border-radius: 10px;
  background: var(--gh-panel);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.app-card:hover {
  border-color: #c1440e;
}

.app-card-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #010409;
  cursor: zoom-in;
}

.app-card-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.app-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem 0.35rem 0;
}

.app-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.app-title-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.app-title-link:hover h2 {
  color: var(--gh-blue);
}

.app-title-link:hover .repo-link {
  color: var(--gh-blue);
}

.app-card h2 {
  margin: 0;
  color: var(--gh-text);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.repo-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 5px;
  color: var(--gh-muted);
}

.repo-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: currentColor;
}

.app-description {
  margin: 0.8rem 0 0;
  color: var(--gh-muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.app-site-link {
  display: block;
  margin: 0.4rem 0 1.1rem;
  color: var(--gh-blue);
  text-decoration: none;
  word-break: break-all;
  font-size: 0.91rem;
}

.app-site-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--gh-border-soft);
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.65rem;
  padding: 0.18rem 0.52rem;
  border: 1px solid rgba(88, 166, 255, 0.27);
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.08);
  color: #a5d6ff;
  font-family: "DM Sans", Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
}

.gallery-status,
.gallery-error {
  grid-column: 1 / -1;
  padding: 2rem;
  border: 1px dashed var(--gh-border);
  border-radius: 10px;
  color: var(--gh-muted);
  text-align: center;
}

.gallery-error {
  color: #fdaeb7;
}

.site-footer {
  border-top-color: var(--gh-border);
  background: var(--gh-bg) !important;
  color: var(--gh-muted);
}

.site-footer p {
  color: var(--gh-muted);
}

.footer-socials a {
  color: var(--gh-muted);
}

.footer-socials a:hover {
  color: var(--gh-blue);
}

.footer-socials svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

.snow-layer {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background-image: radial-gradient(circle at 15% 20%, rgba(240, 246, 252, 0.5) 0 1px, transparent 1.5px), radial-gradient(circle at 80% 35%, rgba(240, 246, 252, 0.42) 0 1px, transparent 1.5px), radial-gradient(circle at 40% 80%, rgba(240, 246, 252, 0.4) 0 1px, transparent 1.5px);
  background-size: 150px 170px, 220px 250px, 190px 220px;
  transition: opacity 180ms ease;
}

body.snow-enabled .snow-layer {
  opacity: 0.6;
  animation: snow-drift 16s linear infinite;
}

@keyframes snow-drift {
  from { transform: translateY(-15px); }
  to { transform: translateY(100px); }
}

@media (max-width: 1024px) {
  .page-shell {
    width: min(100% - 2.5rem, 900px);
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
    gap: 1.75rem;
  }

  .profile-avatar-link {
    width: 64px;
    height: 64px;
  }

  .achievement-row a {
    width: 3rem;
    height: 3rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    background: rgba(13, 17, 23, 0.92);
  }

  .page-shell {
    width: min(100% - 2rem, 640px);
    padding-top: 5.75rem;
    display: block;
  }

  .profile-sidebar {
    position: static;
    margin-bottom: 2.25rem;
  }

  /* Swap sidebars: hide full, show compact */
  .profile-sidebar-full {
    display: none;
  }

  .profile-sidebar-compact {
    display: block;
  }

  .profile-identity {
    justify-content: flex-start;
  }

  .profile-status-text {
    white-space: normal;
  }

  .app-gallery {
    grid-template-columns: 1fr;
  }

  .gallery-intro h1 {
    font-size: clamp(1.55rem, 7.5vw, 2.4rem);
    white-space: normal;
  }

  .gallery-lede {
    max-width: none;
    white-space: normal;
    font-size: 0.95rem;
  }

  /* Mobile contribution graph: last ~6 months, scroll the full year */
  .contribution-graph {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .contribution-wrap {
    --cell: 10px;
    --gap: 2px;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: min(100% - 1.4rem, 640px);
  }

  .gallery-intro h1 {
    font-size: clamp(1.4rem, 8vw, 2rem);
  }

  .gallery-lede {
    font-size: 0.92rem;
  }

  .app-card {
    padding: 0.55rem 0.55rem 1rem;
  }
}

/* Fullscreen screenshot lightbox */
body.lightbox-open {
  overflow: hidden;
}

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 5.5rem;
  background: rgba(1, 4, 9, 0.92);
  backdrop-filter: blur(8px);
}

.screenshot-lightbox[aria-hidden="false"] {
  display: flex;
}

.lightbox-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: min(96vw, 1280px);
  max-height: calc(100vh - 8rem);
  margin: 0;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 10rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-caption {
  margin: 0;
  color: var(--gh-text);
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 246, 252, 0.18);
  border-radius: 999px;
  background: rgba(22, 27, 34, 0.9);
  color: var(--gh-text);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(48, 54, 61, 0.95);
  border-color: rgba(240, 246, 252, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  line-height: 1;
}

/* Bottom nav bar — off the image */
.lightbox-controls {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  gap: 0.65rem;
  z-index: 1;
}

.lightbox-nav {
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .screenshot-lightbox {
    padding: 0.75rem 0.75rem 5rem;
  }

  .lightbox-controls {
    right: auto;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
  }

  .lightbox-nav {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.7rem;
  }
}

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