/* ============================================================
   grid.css — Archive gallery grid view
   Loaded by the archive grid page only. Depends on site.css.
   ============================================================ */

#grid-view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  background: var(--bg);
}

#grid-inner {
  padding: 10px 20px 30px;
}

#grid-header {
  padding: 20px 0 20px;
}

#grid-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #1a1a1a;
  text-transform: none;
  margin: 0;
}

.grid-empty {
  font-family: 'Raleway', sans-serif;
  font-size: 0.9rem;
  color: #888;
  padding: 40px 0;
}

/* ── ARCHIVE GRID ────────────────────────────────────────── */

#archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  justify-content: start;
}

.grid-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.grid-card-image {
  overflow: hidden;
}

.grid-card-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3/2;
  /* No hover animation — removed for .net */
}

.grid-card-placeholder {
  background: #e0e0e0;
  aspect-ratio: 3/2;
}

.grid-card-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  color: #888;
  padding: 8px 0 0;
  text-transform: lowercase;
}

.grid-card-caption {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  color: #aaa;
  padding: 3px 0 0;
  line-height: 1.4;
}

/* ── MOBILE ──────────────────────────────────────────────── */

@media (max-width: 768px) {
  #grid-inner { padding-left: 56px; padding-right: 20px; }
  #archive-grid { justify-content: center; }
}
