.collection-page .explorer-root {
  max-width: 1380px;
  margin: 0 auto;
  padding: 15px;
  font-family: 'Jura', sans-serif;
}

.collection-page .collection-header h1 a {
  color: black;
  text-decoration: none;
}

.collection-page .collection-header h1 a:hover,
.collection-page .collection-header h1 a:focus-visible {
  text-decoration: underline;
}


.collection-page .explorer-panel {
  border: 3px solid black;
  padding: 1em;
  margin-bottom: 1.5em;
  background: rgba(255, 255, 255, 0.28);
}

.collection-page .filter-row,
.collection-page .trait-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75em;
}

.collection-page .filter-row {
  grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(150px, 1fr));
  margin-bottom: 0.75em;
}

.collection-page .filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  font-weight: 700;
}

.collection-page .filter-field span {
  font-size: 0.84em;
  text-transform: lowercase;
}

.collection-page input,
.collection-page select {
  width: 100%;
  max-width: none;
  min-height: 44px;
  border: 2px solid black;
  border-radius: 8px;
  background: transparent;
  color: black;
  font-family: inherit;
  font-size: 1rem;
  padding: 0.65em 0.75em;
}

.collection-page select {
  cursor: pointer;
}

.collection-page .filter-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  margin-top: 1em;
  font-weight: 700;
}

.collection-page .mini-button {
  border: 2px solid black;
  border-radius: 8px;
  background: transparent;
  color: black;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.65em 1em;
}

.collection-page .collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1em;
  align-items: start;
}

.collection-page .dream-card {
  border: 3px solid black;
  background: transparent;
  color: black;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  padding: 0;
  text-align: left;
  width: 100%;
}

.collection-page .dream-card:hover,
.collection-page .dream-card:focus-visible {
  background: black;
  color: var(--bg-color);
  outline: none;
}

.collection-page .dream-card img {
  aspect-ratio: 1;
  border: none;
  border-bottom: 3px solid black;
  display: block;
  max-width: none;
  object-fit: cover;
  width: 100%;
}

.collection-page .dream-card:hover img,
.collection-page .dream-card:focus-visible img {
  border-bottom-color: var(--bg-color);
}

.collection-page .dream-card-copy {
  display: grid;
  gap: 0.35em;
  min-height: 5.25em;
  padding: 0.75em;
}

.collection-page .dream-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.collection-page .dream-meta {
  font-size: 0.86rem;
}

.collection-page .load-row {
  display: flex;
  justify-content: center;
  min-height: 5em;
}

.collection-page .load-row .button {
  margin: 1.5em auto;
}

.collection-page .detail-panel {
  align-items: center;
  background: rgba(235, 235, 235, 0.92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 1em;
  position: fixed;
  z-index: 10;
}

.collection-page .detail-panel.is-open {
  display: flex;
}

.collection-page .detail-card {
  background: var(--bg-color);
  border: 3px solid black;
  display: grid;
  grid-template-columns: minmax(260px, 520px) minmax(260px, 420px);
  max-height: calc(100vh - 2em);
  max-width: 980px;
  overflow: auto;
  position: relative;
  width: 100%;
}

.collection-page .detail-close {
  background: var(--bg-color);
  border: 2px solid black;
  border-radius: 8px;
  color: black;
  cursor: pointer;
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  height: 42px;
  position: absolute;
  right: 0.75em;
  top: 0.75em;
  width: 42px;
}

.collection-page .detail-media {
  background: black;
}

.collection-page .detail-media img,
.collection-page .detail-media video {
  border: none;
  display: block;
  max-height: calc(100vh - 2em);
  max-width: none;
  object-fit: contain;
  width: 100%;
}

.collection-page .detail-copy {
  padding: 1.25em;
}

.collection-page .detail-copy h2 {
  font-family: 'Orbitron', sans-serif;
  margin: 0 3rem 1rem 0;
}

.collection-page .detail-attributes {
  display: grid;
  gap: 0.5em;
  margin: 1em 0;
}

.collection-page .detail-attribute {
  border-bottom: 1px solid black;
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding-bottom: 0.4em;
}

.collection-page .detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
  margin-top: 1.25em;
}

.collection-page .detail-links a {
  border: 2px solid black;
  border-radius: 8px;
  color: black;
  font-weight: 700;
  padding: 0.65em 0.8em;
  text-decoration: none;
}

.collection-page .empty-state {
  border: 3px solid black;
  grid-column: 1 / -1;
  padding: 2em;
  text-align: center;
}

@media (max-width: 760px) {
  .collection-page .filter-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .collection-page .filter-row {
    grid-template-columns: 1fr;
  }

  .collection-page .collection-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .collection-page .detail-card {
    grid-template-columns: 1fr;
  }

  .collection-page .detail-media img,
  .collection-page .detail-media video {
    max-height: 52vh;
  }
}