/* Base */
body {
  margin: 0;
  background: #050608;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
}

/* Links */
a:visited {
  color: #fff;
}

/* Header */
.nm-header {
  padding: 2rem 2rem;
}

.nm-header h1 {
  margin: 0;
  font-size: 2.4rem;
}

.nm-subtitle {
  /* opacity: 0.7; */
  margin-bottom: 0;
}

/* Gallery */
.nm-main {
  padding: 1.5rem 2.5rem 3rem;
  max-width: 1600px; /* limit gallery width */
  margin: 0 auto; /* center whole gallery block */
}

.nm-gallery {
  display: grid;
  /* min 260px, max 320px */
  grid-template-columns: repeat(auto-fill, minmax(260px, 360px));
  gap: 1.5rem;
  justify-content: center;
}

/* Card */
.nm-card {
  background: #161821;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Thumbnail */
.nm-thumb {
  height: 220px;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: #222;
}

/* Card content */
.nm-card-body {
  padding: 1rem;
}

.nm-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.3rem;
}

.nm-card-desc {
  font-size: 0.9rem;
  /* opacity: 0.7; */
}

/* Tags */
.nm-tags {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.nm-tag {
  font-size: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  opacity: 0.9;
}

/* Footer */
.nm-footer {
  padding: 1rem 2.5rem;
  opacity: 0.5;
  font-size: 0.8rem;
}
