/* Page-specific styles; leaves your global layout alone */

/* search row */
#archive-search .search-row {
  display: flex;
  gap: .75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: .5rem;
}
#archive-search input[type="search"] {
  flex: 1 1 640px;
  max-width: 820px;
  padding: .7rem 1rem;
  border-radius: 28px;
  border: 2px solid var(--primary-color);
  background: rgba(0,0,0,.25);
  color: var(--primary-color);
}
#archive-search .pill {
  padding: .55rem 1.1rem;
  border-radius: 24px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  cursor: pointer;
}
.result-count { text-align: center; opacity: .9; margin-top: .25rem; }

/* grids */
.archives-grid,
.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
  gap: 1.25rem;
}

/* IMAGE CARDS */
.archive-card {
  background: var(--overlay-color);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 0 14px rgba(0,0,0,.45);
}
.archive-card .img-link {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}
.archive-card img {
  width: 100%;
  height: 180px;            /* ensures consistent scale */
  object-fit: cover;        /* key: scale/crop nicely */
  display: block;
}
.archive-card figcaption {
  margin-top: .5rem;
  font-size: .9rem;
  color: var(--primary-color);
  word-break: break-word;
  text-align: center;
  opacity: .9;
}

/* PDF CARDS */
.pdf-card {
  background: var(--overlay-color);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 0 14px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.pdf-thumb-wrap {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1a;
}
.pdf-thumb {
  width: 100%;
  height: 180px;            /* same height as images */
  object-fit: cover;
  display: block;
}
.pdf-title {
  display: block;
  margin-top: .55rem;
  text-align: center;
  color: var(--primary-color);
  text-decoration: none;
  font-size: .92rem;
  word-break: break-word;
}
.pdf-title:hover,
.pdf-title:focus { text-decoration: underline; }

.empty-note { text-align: center; opacity: .9; }
