.nh48-quick-footer {
    --nh48-footer-grid-min: clamp(200px, 42vw, 360px);
    --nh48-footer-surface: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
    --nh48-footer-card: color-mix(in srgb, #141833 70%, rgba(10, 12, 26, 0.55) 30%);
    --nh48-footer-border: #ffffff;
    --nh48-footer-ink: var(--ink, #ffffff);
    --nh48-footer-accent: var(--accent, #22c55e);
    margin: 32px 0 0;
    width: 100%;
    max-width: none;
    background: var(--nh48-footer-surface);
    border: 0;
    border-top: 1px solid var(--nh48-footer-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: clamp(16px, 2vw, 22px) 0 0;
    color: var(--nh48-footer-ink);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    height: auto;
    max-height: none;
    overflow: visible;
    text-align: center;
    box-sizing: border-box;
    border-radius: 0;
    position: relative;
    isolation: isolate;
  }

  .nh48-quick-footer__header {
    text-align: center;
    max-width: 1080px;
    margin: 0 auto 0;
    padding: 0 clamp(16px, 3vw, 32px);
  }

  .nh48-quick-footer__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 9px 12px;
    margin: 2px auto 0;
    border-radius: 14px;
    border: 1px solid var(--nh48-footer-border);
    background: var(--nh48-footer-card);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .nh48-quick-footer__sort-button {
    appearance: none;
    border: 1px solid var(--nh48-footer-border);
    background: color-mix(in srgb, var(--nh48-footer-card) 70%, #000 30%);
    color: var(--nh48-footer-ink);
    border-radius: 12px;
    padding: 8px 13px;
    font-weight: 800;
    letter-spacing: 0.25px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  }

  .nh48-quick-footer__sort-button:hover,
  .nh48-quick-footer__sort-button:focus-visible {
    outline: none;
    border-color: var(--nh48-footer-accent);
    background: color-mix(in srgb, var(--nh48-footer-card) 60%, var(--nh48-footer-accent) 40%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nh48-footer-accent) 24%, transparent);
    transform: translateY(-1px);
  }

  .nh48-quick-footer__sort-button.is-active {
    background: color-mix(in srgb, var(--nh48-footer-card) 40%, var(--nh48-footer-accent) 60%);
    border-color: var(--nh48-footer-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nh48-footer-accent) 24%, transparent);
  }

  .nh48-quick-footer__eyebrow {
    display: none;
  }

  .nh48-quick-footer__header h2 {
    margin: 4px 0 4px;
    font-size: clamp(19px, 2.4vw, 24px);
    letter-spacing: 0.35px;
    color: var(--nh48-footer-accent);
  }

  .nh48-quick-footer__header p {
    margin: 0 0 4px;
    color: color-mix(in srgb, var(--nh48-footer-ink) 80%, #cbd5e1 20%);
    line-height: 1.45;
    font-size: 0.95rem;
  }

  .nh48-quick-footer .nh48-quick-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    justify-items: stretch;
    gap: clamp(12px, 2vw, 18px);
    width: 100%;
    max-width: none;
    margin: 6px auto 0;
    padding: clamp(8px, 2vw, 14px) clamp(12px, 2.5vw, 18px);
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 500px;
    min-height: 0;
    flex: 1 1 auto;
    scrollbar-width: thin;
    scrollbar-color: var(--nh48-footer-accent) color-mix(in srgb, var(--nh48-footer-card) 80%, #000 20%);
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y proximity;
  }

  /* Desktop: Keep cards centered in one horizontal row */
  @media (min-width: 801px) {
    .nh48-quick-footer .nh48-quick-footer__grid {
      display: flex;
      flex-direction: row;
      flex-wrap: nowrap;
      align-items: stretch;
      justify-content: space-between;
      gap: clamp(8px, 1.5vw, 16px);
      width: 100%;
      max-width: none;
      margin: 6px auto 0;
      padding: 12px clamp(16px, 3vw, 32px);
      overflow-x: auto;
      overflow-y: hidden;
      max-height: none;
      min-height: 0;
    }

    .nh48-quick-footer .nh48-quick-footer__group {
      flex: 1 1 clamp(170px, 12vw, 240px);
      min-width: clamp(160px, 12vw, 220px);
      max-width: none;
      border: 1px solid var(--nh48-footer-border);
      border-radius: 14px;
      padding: 12px 14px;
      background: var(--nh48-footer-card);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.28);
      text-align: center;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: flex-start;
    }

    .nh48-quick-footer__group h2 {
      margin: 0 0 6px;
      font-size: 13px;
      letter-spacing: 0.1px;
      color: var(--nh48-footer-ink);
      line-height: 1.2;
    }

  .nh48-quick-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    align-items: stretch;
  }

    .nh48-quick-footer__link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 6px 8px;
      min-height: 32px;
      text-align: left;
      border-radius: 8px;
      border: 1px solid color-mix(in srgb, var(--nh48-footer-accent) 85%, var(--nh48-footer-ink) 15%);
      color: #ffffff;
      text-decoration: none;
      background: color-mix(in srgb, var(--nh48-footer-card) 50%, var(--nh48-footer-accent) 50%);
      transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
      line-height: 1.2;
      white-space: nowrap;
      width: 100%;
      font-size: 0.85rem;
      box-sizing: border-box;
    }

    .nh48-quick-footer__link-label {
      display: inline-flex;
      align-items: center;
      flex: 1;
      min-width: 0;
    }

    .nh48-quick-footer__link-thumb {
      width: 28px;
      height: 28px;
      border-radius: 6px;
      object-fit: cover;
      flex-shrink: 0;
      background: rgba(15, 23, 42, 0.75);
      box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

    .nh48-quick-footer__link:hover,
    .nh48-quick-footer__link:focus-visible {
      border-color: var(--nh48-footer-accent);
      box-shadow: 0 0 0 2px color-mix(in srgb, var(--nh48-footer-accent) 28%, transparent);
      background: color-mix(in srgb, var(--nh48-footer-card) 40%, var(--nh48-footer-accent) 60%);
      transform: translateY(-1px);
      outline: none;
    }
  }

  /* Mobile/Tablet: Keep original stacked layout */
  @media (max-width: 800px) {
    .nh48-quick-footer .nh48-quick-footer__grid {
      grid-template-columns: 1fr;
      max-height: 500px;
      overflow-x: hidden;
      overflow-y: auto;
      padding: 8px clamp(14px, 4vw, 22px) 10px;
    }

    .nh48-quick-footer .nh48-quick-footer__group {
      max-width: 100%;
    }
  }

  /* Base styles (non-desktop) */
  .nh48-quick-footer .nh48-quick-footer__group {
    border: 1px solid var(--nh48-footer-border);
    border-radius: 14px;
    padding: clamp(12px, 2vw, 16px);
    background: var(--nh48-footer-card);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.28);
    min-width: 0;
    max-width: none;
    width: 100%;
    text-align: center;
    scroll-snap-align: start;
  }

  .nh48-quick-footer__group h2 {
    margin: 0 0 8px;
    font-size: 15px;
    letter-spacing: 0.2px;
    color: var(--nh48-footer-ink);
  }

  .nh48-quick-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 7px;
    width: 100%;
  }

  .nh48-quick-footer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    min-height: 40px;
    text-align: left;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--nh48-footer-accent) 85%, var(--nh48-footer-ink) 15%);
    color: #ffffff;
    text-decoration: none;
    background: color-mix(in srgb, var(--nh48-footer-card) 50%, var(--nh48-footer-accent) 50%);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
    line-height: 1.32;
    white-space: normal;
    width: 100%;
    box-sizing: border-box;
  }

  .nh48-quick-footer__link-label {
    display: inline-flex;
    align-items: center;
    flex: 1;
    min-width: 0;
  }

  .nh48-quick-footer__link-thumb {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(15, 23, 42, 0.75);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  .nh48-quick-footer__link:hover,
  .nh48-quick-footer__link:focus-visible {
    border-color: var(--nh48-footer-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--nh48-footer-accent) 28%, transparent);
    background: color-mix(in srgb, var(--nh48-footer-card) 40%, var(--nh48-footer-accent) 60%);
    transform: translateY(-1px);
    outline: none;
  }

  .nh48-quick-footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-top: 1px solid var(--nh48-footer-border);
    padding: 12px clamp(16px, 3vw, 32px) 12px;
    font-size: 14px;
    text-align: center;
    width: min(1800px, 100%);
    margin: 0 auto;
    box-sizing: border-box;
  }

  .nh48-quick-footer__meta-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    flex: 1 1 320px;
    min-width: 0;
  }

  .nh48-quick-footer__meta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: center;
  }

  .nh48-quick-footer__meta-links a {
    color: #f8fafc;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid color-mix(in srgb, var(--nh48-footer-ink) 60%, var(--nh48-footer-accent) 40%);
    background: color-mix(in srgb, var(--nh48-footer-card) 55%, #000 45%);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  }

  .nh48-quick-footer__meta-links a:hover,
  .nh48-quick-footer__meta-links a:focus-visible {
    color: #ffffff;
    background: color-mix(in srgb, var(--nh48-footer-card) 45%, var(--nh48-footer-accent) 55%);
    border-color: color-mix(in srgb, var(--nh48-footer-accent) 60%, transparent);
    outline: none;
  }

  .nh48-quick-footer__meta-links a.nh48-quick-footer__meta-link--instagram,
  .nh48-quick-footer__meta-links a[href*="instagram.com/nate_dumps_pics"] {
    background: #22c55e;
    border-color: #16a34a;
    color: #f0fdf4;
    font-weight: 700;
  }

  .nh48-quick-footer__meta-links a.nh48-quick-footer__meta-link--instagram:hover,
  .nh48-quick-footer__meta-links a.nh48-quick-footer__meta-link--instagram:focus-visible,
  .nh48-quick-footer__meta-links a[href*="instagram.com/nate_dumps_pics"]:hover,
  .nh48-quick-footer__meta-links a[href*="instagram.com/nate_dumps_pics"]:focus-visible {
    background: #16a34a;
    border-color: #15803d;
    color: #ffffff;
  }

  .nh48-quick-footer__media {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    flex: 0 1 auto;
    max-width: 520px;
  }

  .nh48-quick-footer__media-image {
    width: clamp(144px, 14vw, 256px);
    height: auto;
    border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--nh48-footer-ink) 30%, transparent);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    object-fit: cover;
    flex-shrink: 0;
  }

  .nh48-quick-footer__media-caption {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    color: color-mix(in srgb, var(--nh48-footer-ink) 70%, #cbd5e1 30%);
  }

  .nh48-quick-footer__media-title {
    font-weight: 700;
    color: var(--nh48-footer-ink);
  }

  .nh48-quick-footer__media-description {
    line-height: 1.35;
  }

  .nh48-quick-footer__media-metadata {
    margin: 0;
    display: grid;
    gap: 4px;
  }

  .nh48-quick-footer__media-metadata div {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px;
  }

  .nh48-quick-footer__media-metadata dt {
    font-weight: 600;
    color: color-mix(in srgb, var(--nh48-footer-ink) 85%, #cbd5e1 15%);
  }

  .nh48-quick-footer__media-metadata dd {
    margin: 0;
  }

  .nh48-quick-footer__legal {
    color: color-mix(in srgb, var(--nh48-footer-ink) 80%, #cbd5e1 20%);
  }

  @media (max-width: 1024px) {
    .nh48-quick-footer .nh48-quick-footer__grid {
      grid-template-columns: 1fr;
      max-height: 500px;
      overflow-x: hidden;
      overflow-y: auto;
      scroll-snap-type: y proximity;
      justify-content: center;
      justify-items: stretch;
      width: 100%;
      padding: 8px clamp(14px, 4vw, 22px) 10px;
    }

    .nh48-quick-footer .nh48-quick-footer__group {
      max-width: 100%;
    }
  }

  @media (max-width: 768px) {
    .nh48-quick-footer {
      margin: 24px auto 10px;
      padding: 14px clamp(12px, 4vw, 18px) 0;
      width: min(720px, 100%);
      min-height: 0;
      max-height: none;
    }

    .nh48-quick-footer .nh48-quick-footer__grid {
      gap: 12px;
      padding: 6px 8px 10px;
      max-height: 420px;
      min-height: 0;
    }

    .nh48-quick-footer__list {
      gap: 6px;
    }

    .nh48-quick-footer__link {
      justify-content: space-between;
      gap: 8px;
      min-height: 38px;
      padding: 8px 9px;
    }

    .nh48-quick-footer__meta {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }

    .nh48-quick-footer__meta-main {
      align-items: center;
      text-align: center;
    }

    .nh48-quick-footer__meta-links {
      justify-content: center;
    }

    .nh48-quick-footer__media {
      flex-direction: column;
      align-items: center;
      max-width: 100%;
    }

    .nh48-quick-footer__media-image {
      width: clamp(144px, 40vw, 220px);
    }

    .nh48-quick-footer__media-caption {
      text-align: center;
    }
  }
