.nga-recently-viewed {
  margin-block: 64px;
  color: var(--text, #101828);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.nga-recently-viewed__header h2 {
  margin: 0 0 20px;
  color: var(--navy-950, #0a1322);
  font: 600 30px/1.25 "Space Grotesk", system-ui, sans-serif;
}

.nga-recently-viewed__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.nga-recent-card {
  overflow: hidden;
  border: 1px solid var(--border, #e4e9f0);
  border-radius: 10px;
  background: #fff;
  transition: transform 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out;
}

.nga-recent-card:hover {
  border-color: var(--blue-600, #2e6bd6);
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.nga-recent-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.nga-recent-card img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 6px;
  background: #eef2f7;
  object-fit: contain;
}

.nga-recent-card__body {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.nga-recent-card__body strong {
  font-size: 16px;
  font-weight: 600;
}

.nga-recent-card__body span {
  color: var(--text-2, #475467);
  font: 14px/1.4 "IBM Plex Mono", ui-monospace, monospace;
}

@media (max-width: 900px) {
  .nga-recently-viewed__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .nga-recently-viewed__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .nga-recent-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nga-recent-card {
    transition: none;
  }
}
