/* ── tokens ──────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg:            #082f49;
  --bg-deep:       #051e30;
  --surface:       rgba(12, 74, 110, 0.72);
  --surface-strong:#0e4d72;
  --text:          #f0f9ff;
  --muted:         #93c5fd;
  --line:          rgba(186, 230, 253, 0.18);
  --brand:         #facc15;
  --brand-strong:  #eab308;
  --brand-ink:     #0c4a6e;
  --shadow:        0 24px 60px rgba(0, 0, 0, 0.5);
  --radius:        20px;
  --page-glow-a:   rgba(250, 204, 21, 0.10);
  --page-glow-b:   rgba(56, 189, 248, 0.08);
}

[data-theme="light"] {
  color-scheme: light;
  --bg:            #f0f9ff;
  --bg-deep:       #e0f2fe;
  --surface:       rgba(255, 255, 255, 0.88);
  --surface-strong:#ffffff;
  --text:          #0c4a6e;
  --muted:         #0369a1;
  --line:          rgba(12, 74, 110, 0.14);
  --brand:         #facc15;
  --brand-strong:  #eab308;
  --brand-ink:     #0c4a6e;
  --shadow:        0 20px 50px rgba(12, 74, 110, 0.14);
  --page-glow-a:   rgba(250, 204, 21, 0.22);
  --page-glow-b:   rgba(186, 230, 253, 0.6);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #082f49;
  --bg-deep:       #051e30;
  --surface:       rgba(12, 74, 110, 0.72);
  --surface-strong:#0e4d72;
  --text:          #f0f9ff;
  --muted:         #93c5fd;
  --line:          rgba(186, 230, 253, 0.18);
  --brand:         #facc15;
  --brand-strong:  #eab308;
  --brand-ink:     #0c4a6e;
  --shadow:        0 24px 60px rgba(0, 0, 0, 0.5);
  --page-glow-a:   rgba(250, 204, 21, 0.10);
  --page-glow-b:   rgba(56, 189, 248, 0.08);
}

/* ── reset / base ────────────────────────────────────────────── */
* { box-sizing: border-box; }

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: 'Fredoka', Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at 12% 8%,  var(--page-glow-a), transparent 30rem),
    radial-gradient(circle at 86% 16%, var(--page-glow-b), transparent 26rem),
    linear-gradient(160deg, var(--bg) 0%, var(--bg-deep) 100%);
}

button, input { font: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }

/* ── animated bubbles ────────────────────────────────────────── */
.motion-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.motion-bg span {
  position: absolute;
  bottom: -90px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--brand), transparent 20%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--brand), transparent 30%);
  opacity: 0.45;
  animation: bubbleUp 14s linear infinite;
}
.motion-bg span:nth-child(1) { left:  8%; animation-duration: 13s; }
.motion-bg span:nth-child(2) { left: 19%; width: 4px; height: 4px; animation-delay: -7s; animation-duration: 10s; }
.motion-bg span:nth-child(3) { left: 31%; animation-delay: -3s; animation-duration: 16s; }
.motion-bg span:nth-child(4) { left: 48%; width: 11px; height: 11px; animation-delay: -11s; animation-duration: 18s; }
.motion-bg span:nth-child(5) { left: 63%; width: 5px; height: 5px; animation-delay: -2s; }
.motion-bg span:nth-child(6) { left: 76%; animation-delay: -8s; animation-duration: 14s; }
.motion-bg span:nth-child(7) { left: 87%; width: 12px; height: 12px; animation-delay: -5s; animation-duration: 20s; }
.motion-bg span:nth-child(8) { left: 94%; width: 4px; height: 4px; animation-delay: -13s; animation-duration: 11s; }

/* ── layout shell ────────────────────────────────────────────── */
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
}

/* ── header ──────────────────────────────────────────────────── */
.site-header,
.site-footer,
.hero-panel,
.status-view,
.link-card,
.category-group {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 16px;
  border-radius: 999px;
}

main {
  display: flex;
  flex-direction: column;
}

/* ── brand ───────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  overflow: hidden;
}

.brand-mark img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}

.brand-logo {
  display: block;
  font-family: 'Oleo Script Swash Caps', cursive;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.brand .header-count {
  color: var(--brand-strong);
  font-size: 0.68rem;
  font-weight: 700;
}

/* ── theme toggle ────────────────────────────────────────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong), transparent 10%);
  cursor: pointer;
}

.theme-icon {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon-light {
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(250, 204, 21, 0.2);
}

.theme-icon-dark {
  opacity: 0;
  background: #cbd5e1;
  clip-path: circle(58% at 68% 42%);
}

[data-theme="dark"] .theme-icon-light { opacity: 0; transform: rotate(40deg) scale(0.7); }
[data-theme="dark"] .theme-icon-dark  { opacity: 1; }

/* ── hero panel (search + chips) ─────────────────────────────── */
.hero-panel {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  margin-top: clamp(16px, 3vw, 28px);
  margin-bottom: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 999px;
  transition: border-radius 250ms ease;
}

@media (min-width: 561px) {
  .hero-panel:has(.search-box.is-search-open),
  .hero-panel:has(.search-box.has-query) {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .hero-panel:has(.search-box.is-search-open) .quick-categories,
  .hero-panel:has(.search-box.has-query) .quick-categories {
    flex-wrap: wrap;
  }
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(250,204,21,0.10), transparent 45%, rgba(56,189,248,0.06));
  pointer-events: none;
}

.search-box, .quick-categories { position: relative; z-index: 1; }

/* search */
.search-box { min-width: 0; }

.search-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  border: 2px solid var(--brand);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong), transparent 6%);
  cursor: text;
  transition: box-shadow 200ms ease;
}

.search-control:focus-within {
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.20);
}

.search-control span {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 3px solid var(--brand);
  border-radius: 50%;
  box-shadow: 10px 10px 0 -7px var(--brand);
  transform: rotate(-18deg);
}

.search-control input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-weight: 600;
  font-size: 1rem;
}

.search-control input::placeholder { color: var(--muted); }

.search-control input::-webkit-search-cancel-button { appearance: none; }

.search-clear {
  position: relative;
  display: none;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: color-mix(in srgb, var(--text), transparent 88%);
  cursor: pointer;
}

.search-clear::before,
.search-clear::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 14px; height: 2px;
  border-radius: 999px;
  background: var(--muted);
}

.search-clear::before { transform: translate(-50%,-50%) rotate(45deg); }
.search-clear::after  { transform: translate(-50%,-50%) rotate(-45deg); }
.search-clear:hover { background: color-mix(in srgb, var(--brand), transparent 72%); }
.search-clear:hover::before,
.search-clear:hover::after { background: var(--text); }
.search-box.has-query .search-clear { display: inline-flex; }

/* chips */
.quick-categories {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.quick-categories::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong), transparent 12%);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.chip:hover,
.chip.is-active {
  color: var(--brand-ink);
  border-color: var(--brand);
  background: var(--brand);
  transform: translateY(-2px);
}

/* ── keyword marquee ─────────────────────────────────────────── */
.hero {
  padding: 10px 0;
}

.keyword-loop {
  display: flex;
  width: 100%;
  overflow: hidden;
  border-block: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.keyword-loop div {
  display: flex;
  min-width: max-content;
  animation: marquee 28s linear infinite;
}

.keyword-loop span {
  padding: 10px 22px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── status views ────────────────────────────────────────────── */
.status-view {
  display: none;
  margin: 16px 0;
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
}

.status-view.is-visible {
  display: grid;
  place-items: center;
  gap: 10px;
}

.loader {
  width: 42px; height: 42px;
  border: 4px solid color-mix(in srgb, var(--brand), transparent 78%);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.status-icon {
  display: grid;
  width: 50px; height: 50px;
  place-items: center;
  border-radius: 50%;
  color: var(--brand-ink);
  font-weight: 900;
  background: var(--brand);
}

.primary-action {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: var(--brand-ink);
  background: var(--brand);
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease;
}

.primary-action:hover { background: #fde047; }

/* ── catalog ─────────────────────────────────────────────────── */
.catalog {
  display: none;
  padding: 6px 0 18px;
}

.catalog.is-visible { display: block; }

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading > p {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── cards grid ──────────────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.link-card {
  position: relative;
  display: grid;
  grid-template-rows: 180px 1fr;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  animation: rise 420ms ease both;
}

.link-card::after {
  content: "VER LINKS";
  position: absolute;
  right: 8px; top: 8px;
  z-index: 2;
  min-height: 20px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  color: var(--brand-ink);
  background: var(--brand);
  font-size: 0.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.link-card:hover {
  border-color: color-mix(in srgb, var(--brand), transparent 20%);
  box-shadow: 0 20px 60px rgba(250, 204, 21, 0.16);
  transform: translateY(-5px);
}

.link-card.is-expanded {
  grid-column: span 2;
  grid-template-rows: 300px 1fr;
  min-height: 640px;
  border-color: color-mix(in srgb, var(--brand), transparent 20%);
  box-shadow: 0 28px 72px rgba(250, 204, 21, 0.18);
}

.link-card.is-expanded::after { content: "FECHAR"; }

.link-card.is-featured {
  color: var(--text);
  background: var(--surface);
}

.link-card.is-featured .link-meta,
.link-card.is-featured .link-description { color: var(--muted); }

/* card media */
.link-media {
  position: relative;
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand), transparent 80%), transparent),
    var(--surface-strong);
}

.link-media.has-pair {
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  place-items: stretch;
  background: transparent;
}

.link-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.link-card:hover .link-media img { transform: scale(1.05); }
.link-card.is-expanded .link-media { min-height: 300px; }

.link-placeholder {
  display: grid;
  width: 76px; height: 76px;
  place-items: center;
  border-radius: 16px;
  color: var(--brand-ink);
  background: var(--brand);
  font-size: 2rem;
  font-weight: 800;
}

/* card content */
.link-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  gap: 6px;
  padding: 12px;
}

.link-meta {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.link-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.link-title {
  min-width: 0;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* open/closed badge */
.open-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.56rem;
  font-weight: 700;
  text-transform: uppercase;
}
.open-status.is-open   { color: #10b85f; background: rgba(16,184,95,0.12); }
.open-status.is-closed { color: #f87171; background: rgba(248,113,113,0.10); }
.open-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.link-about {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
}

.link-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.4;
}

/* card expanded details */
.link-details {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.hours-panel { display: grid; gap: 8px; }

.hours-summary {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface-strong), transparent 16%);
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.hours-summary:hover { border-color: color-mix(in srgb, var(--brand), transparent 30%); }

.hours-today-label,
.hours-toggle { color: var(--muted); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; }
.hours-today-value { min-width: 0; font-size: 0.76rem; font-weight: 700; overflow-wrap: anywhere; }
.hours-toggle { color: var(--brand); }

.hours-week { display: grid; gap: 6px; }

.hours-day {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr);
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.72rem;
}
.hours-day.is-today {
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand), transparent 50%);
  background: color-mix(in srgb, var(--brand), transparent 88%);
}
.hours-day span:first-child { font-weight: 800; text-transform: uppercase; }

.link-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}
.link-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.link-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 2px solid color-mix(in srgb, var(--brand), transparent 20%);
  border-radius: 999px;
  color: var(--brand-ink);
  background: var(--brand);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 180ms ease;
}
.link-action:hover { background: #fde047; }

/* ── category group ──────────────────────────────────────────── */
.category-group {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.category-header h3 { margin-bottom: 0; font-size: 1.15rem; font-weight: 700; }

.child-tabs { display: flex; flex-wrap: wrap; gap: 8px; }

.child-tab {
  min-height: 34px;
  padding: 0 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms, border-color 180ms, color 180ms;
}
.child-tab.is-active {
  color: var(--brand-ink);
  border-color: var(--brand);
  background: var(--brand);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

/* ── footer ──────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 24px;
  border-radius: var(--radius);
}

.developer-credit {
  position: relative;
  display: inline-grid;
  min-width: 160px;
  min-height: 52px;
  place-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  overflow: hidden;
}

.developer-label {
  position: absolute;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.meuweb-logo {
  font-family: 'Oleo Script Swash Caps', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  transition: transform 180ms ease, opacity 180ms ease;
}

.developer-credit:hover .developer-label { opacity: 1; transform: translateY(-12px); }
.developer-credit:hover .meuweb-logo     { opacity: 0.4; transform: translateY(10px); }

/* ── animations ──────────────────────────────────────────────── */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes rise    { from { opacity: 0; transform: translateY(16px); } }
@keyframes bubbleUp {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(36px,-118vh,0) scale(0.5); }
}
@keyframes marquee { to { transform: translateX(-100%); } }

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-panel { grid-template-columns: 1fr; border-radius: var(--radius); }
  .featured-grid, .links-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .link-card.is-expanded { grid-column: 1 / -1; }
  .site-footer, .section-heading, .category-header { align-items: stretch; flex-direction: column; }
}

@media (max-width: 560px) {
  html { font-size: 13px; }
  .page-shell { width: min(100% - 22px, 1180px); padding-top: 10px; }

  .site-header { min-height: 62px; }

  .hero-panel {
    bottom: 8px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    border-radius: 999px;
  }

  .search-box { width: 58px; transition: width 180ms ease; }
  .search-box:focus-within,
  .search-box.is-search-open,
  .search-box.has-query { width: min(100%, 360px); }

  .search-control {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 999px;
  }

  .search-control input {
    width: 0;
    min-width: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease;
  }

  .search-box:focus-within .search-control input,
  .search-box.is-search-open .search-control input,
  .search-box.has-query .search-control input {
    width: 100%;
    opacity: 1;
    pointer-events: auto;
  }

  .search-box:focus-within + .quick-categories,
  .search-box.is-search-open + .quick-categories,
  .search-box.has-query + .quick-categories { min-width: 0; }

  .brand-mark, .icon-button { width: 42px; height: 42px; }

  .featured-grid, .links-grid { grid-template-columns: 1fr; }

  .link-card {
    grid-template-columns: 34% minmax(0,1fr);
    grid-template-rows: 1fr;
    min-height: 120px;
  }

  .link-card.is-expanded {
    grid-column: 1;
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
    min-height: auto;
  }

  .link-card::after { display: none; }
  .link-content { align-content: center; gap: 10px; padding: 8px; }
  .link-media { min-height: 130px; height: 100%; }
  .link-media.has-pair { grid-template-columns: 1fr; }
  .link-media.has-pair img:not(:first-child) { display: none; }
  .link-meta { display: none; }
  .link-title { font-size: 0.84rem; }

  .link-card.is-expanded .link-media { min-height: 220px; }
  .link-card.is-expanded .link-media.has-pair { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .link-card.is-expanded .link-media.has-pair img:not(:first-child) { display: block; }

  .link-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

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