.museum-brand .nordwand-mark {
  display: block;
  width: clamp(67px, 8vw, 112px);
  flex: none;
}

.museum-brand .nordwand-mark img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

/* Older HTML may briefly show the opaque lockup while it reloads. */
.museum-brand .nordwand-mark:has(img[src$="/nordwand-lockup.webp"]) {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4.58;
  mix-blend-mode: screen;
}

.museum-brand .nordwand-mark img[src$="/nordwand-lockup.webp"] {
  position: absolute;
  top: 0;
  left: -9.05%;
  width: 116.65%;
  max-width: none;
  transform: translateY(-33.9%);
  filter: grayscale(1) contrast(2) invert(1);
}

.utilities #mountain-switch {
  width: auto;
  white-space: nowrap;
}

.museum-brand > small { margin: 0; white-space: nowrap; }

#collection-dialog {
  padding: 0;
  backdrop-filter: none;
  background: #fff;
  scroll-padding-top: calc(var(--header-height, 100px) + 12px);
}

html[data-museum-view="collection"] {
  scroll-padding-top: calc(var(--header-height, 100px) + 12px);
}

#collection-page {
  --collection-ink: #181818;
  --collection-muted: #555;
  padding: 0 0 32px;
  background: #fff;
  color: var(--collection-ink);
  color-scheme: light;
  font-family: var(--museum-font-sans);
}

#collection-page :focus-visible {
  outline: 2px solid #303030;
  outline-offset: 4px;
}

.collection-shell { width: min(1392px, 90%); margin-inline: auto; }

#collection-page .museum-site-chrome {
  position: sticky;
  top: 0;
  z-index: 5;
  color: var(--color-text-main);
  font: 400 14px/1.7 var(--font-family-sans);
  font-feature-settings: normal;
}

#collection-page .site-header {
  position: relative;
  box-shadow: 0 1px 0 var(--color-border);
}

#collection-page .site-header.scrolled {
  box-shadow: 0 1px 6px rgb(0 0 0 / .06);
}

#collection-page .museum-language {
  color-scheme: light;
  color: #181818;
  background: #fff;
  border-color: #ccc;
}

#collection-dialog .mobile-menu {
  position: absolute;
  top: 100%;
}

#collection-page .museum-site-chrome :focus-visible {
  outline: 2px solid #303030 !important;
  outline-offset: 4px;
}

.collection-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 14px;
}

#collection-page [data-collection-close] {
  width: 32px;
  height: 32px;
  padding: 0;
  color: #222;
  font-size: 22px;
  line-height: 1;
}
#collection-page [data-collection-close]:hover { background: #f3f3f3; }

.collection-cover {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.5fr);
  align-items: stretch;
  margin-block: 12px clamp(24px, 2.6vw, 42px);
  background: #f5f5f3;
}

#collection-page .collection-intro {
  align-self: center;
  padding: clamp(25px, 4vw, 62px);
}

#collection-page .collection-intro h1 {
  max-width: none;
  margin: 0;
  font: 800 clamp(36px, 4.1vw, 72px)/1.1 var(--museum-font-sans);
  letter-spacing: -.08em;
}

#collection-page .collection-intro p {
  max-width: 23em;
  margin: 16px 0 0;
  color: #4c4c4c;
  font-size: clamp(13px, 1.2vw, 16px);
  line-height: 1.85;
  letter-spacing: 0;
}

.collection-browse {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 30px;
  margin-top: 23px;
  padding: 0 15px;
  background: #202020;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.collection-browse:hover { background: #404040; }

.collection-cover-image {
  position: relative;
  min-width: 0;
  min-height: clamp(295px, 26vw, 420px);
  margin: 0;
  background: #5d514f;
}

.collection-cover-image > a { display: block; position: absolute; inset: 0; overflow: hidden; }
.collection-cover-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.collection-cover-image > a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(transparent, #101015aa);
  pointer-events: none;
}

.collection-cover-image > a > span {
  position: absolute;
  z-index: 1;
  bottom: 35px;
  left: 21px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.collection-cover-image > a:hover > span { text-decoration: underline; text-underline-offset: 4px; }
.collection-cover-image figcaption { position: absolute; bottom: 12px; left: 21px; color: #fff; font-size: 10px; }
.collection-cover-image figcaption a { text-decoration: none; }
.collection-cover-image figcaption a:hover { text-decoration: underline; }

.collection-filter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(176px, 21vw, 280px);
  align-items: start;
  gap: 0 24px;
  border-bottom: 1px solid var(--collection-line);
}

#collection-page .collection-categories {
  gap: 0 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

#collection-page .collection-categories button {
  position: relative;
  min-height: 47px;
  padding: 0 0 3px;
  color: var(--collection-muted);
  font-size: 13px;
  text-decoration: none;
}

#collection-page .collection-categories button span { color: #666; margin-left: 4px; font-size: 11px; }
#collection-page .collection-categories button[aria-pressed=true] { color: #161616; font-weight: 700; }
#collection-page .collection-categories button[aria-pressed=true]::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: #222;
}

#collection-page .collection-tools { display: contents; }
#collection-page #peak-search {
  width: 100%;
  min-height: 43px;
  margin-bottom: 6px;
  padding: 0 12px;
  border: 1px solid #bfbfbf;
  background: #fff;
  color: #222;
  font-size: 16px;
}
#collection-page #peak-search::placeholder { color: #666; }
#collection-page .collection-tools nav { grid-column: 1 / -1; gap: 4px 19px; margin: 0; padding: 5px 0; }
#collection-page .collection-tools nav button { min-height: 38px; color: #666; font-size: 12px; }
#collection-page .collection-tools nav button[aria-pressed=true] { color: #181818; text-decoration: underline; }
#collection-page #collection-message { color: #444; }
#collection-page .collection-count { margin: 16px 0 12px; color: #555; font-size: 12px; letter-spacing: 0; }

#collection-page .peak-list { gap: 22px; }
#collection-page .peak-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: auto;
  min-width: 0;
  background: #f5f5f3;
  color: #191919;
}
#collection-page .collection-card-media { aspect-ratio: 1.72; overflow: hidden; background: #e5e4e1; }
#collection-page .collection-card-media img { filter: none; }
#collection-page .collection-card-caption { position: relative; flex: 1; padding: 13px 36px 16px 15px; }
.collection-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: #595959; font-size: 11px; }
#collection-page .collection-card-caption h2 {
  margin: 5px 0 0;
  font: 700 clamp(16px, 1.6vw, 25px)/1.3 var(--museum-font-sans);
  letter-spacing: -.025em;
}
.collection-card-arrow { position: absolute; right: 14px; bottom: 15px; font-size: 15px; }
#collection-page .peak-card:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
#collection-page .brand-cover { flex: none; aspect-ratio: 1.72; }
#collection-page .atlas-card-copy { padding: 13px 15px 16px; }
#collection-page .atlas-card-copy :is(span, p, i), #collection-page .peak-empty { color: #595959; }
#collection-page .atlas-card-copy h2 { font-size: clamp(17px, 1.8vw, 24px); font-weight: 700; }
#collection-page .collection-foot { position: static; margin-top: 38px; padding-block: 13px; border-top: 1px solid #ddd; color: #555; font-size: 11px; }
#collection-page .collection-foot a { text-decoration: none; }

@media (max-width: 760px) {
  .collection-shell { width: calc(100% - 36px); }
  .collection-cover { grid-template-columns: 1fr; margin-block: 12px 24px; }
  #collection-page .collection-intro { padding: 24px; }
  .collection-cover-image { min-height: 210px; }
  .collection-filter { grid-template-columns: minmax(0, 1fr); gap: 0; }
  #collection-page #peak-search { grid-row: 1; margin-bottom: 9px; }
  #collection-page .collection-categories { gap: 0 14px; }
  #collection-page .collection-categories button { font-size: 12px; }
  #collection-page .peak-list { gap: 15px; }
}
