/* =====================================================================
   THE COIN ATLAS: the collection page (collection.html).
   Every photo, grouped by country, as a grid of plates. The plate,
   top bar and viewer styles come from country.css.
   ===================================================================== */

.collection-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.collection-tools-label {
  margin-right: 0.25rem;
  color: var(--text-muted);
}

.filter-btn[aria-pressed="true"] {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

/* Country names in a row, like the index of a book */
.country-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin-top: 1.25rem;
  padding: 0.9rem 0;
  border-block: 1px solid var(--border);
  font-size: 0.95rem;
}

.country-jump a {
  color: var(--brand-600);
}

/* One section per country */
.collection-country {
  margin-top: 2.75rem;
  scroll-margin-top: 80px;
}

.collection-country-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px double var(--border-input);
}

.collection-country-head .flag {
  width: 36px;
  align-self: center;
}

.collection-country-name {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
}

.collection-country-count {
  color: var(--text-muted);
}

.collection-country-link {
  margin-left: auto;
  font-weight: 700;
}

/* Grid of plates (instead of the sideways row used on country pages) */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 1.75rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.collection-grid .plate-caption {
  margin-top: 0.6rem;
}

.collection-grid .plate-title {
  font-size: 1.05rem;
}

.page-collection .gallery-empty {
  margin-top: 2rem;
}
