:root {
  color-scheme: light;
  --ink: #151715;
  --muted: #68706a;
  --paper: #f4f0e8;
  --panel: #fffdf8;
  --panel-2: #ece6d9;
  --line: #d8d0c0;
  --forest: #243f33;
  --reed: #7b8a5d;
  --water: #7fa6a6;
  --gold: #c98a35;
  --shadow: 0 20px 50px rgba(21, 23, 21, 0.14);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
}

button,
a {
  font: inherit;
}

.site-header {
  min-height: 96vh;
  background: #14251f;
  color: #fffaf1;
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 58px);
}

.brand,
.nav-links a {
  color: inherit;
  text-decoration: none;
}

.brand {
  font-weight: 850;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255, 250, 241, 0.78);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a[aria-current="page"] {
  color: #fffaf1;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.subpage-header {
  background: #14251f;
  color: #fffaf1;
}

.legal-main {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 48px) 96px;
}

.legal-heading {
  margin-bottom: 30px;
}

.legal-heading .eyebrow {
  color: var(--reed);
}

.legal-heading h1 {
  color: var(--forest);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
}

.legal-heading > p:last-child {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.legal-section {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(20px, 3vw, 30px);
}

.legal-section h2 {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 1.35rem;
}

.legal-section p {
  margin: 0;
  line-height: 1.65;
}

.legal-section .legal-basis {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-details {
  margin: 0;
}

.legal-details > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.25fr) 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.legal-details dt {
  color: var(--muted);
  font-weight: 750;
}

.legal-details dd {
  margin: 0;
}

.legal-details a {
  color: var(--forest);
}

.about-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 48px) 96px;
}

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.65fr);
  align-items: center;
  gap: clamp(34px, 7vw, 90px);
}

.about-intro .eyebrow,
.equipment-section .eyebrow {
  color: var(--reed);
}

.about-intro h1 {
  color: var(--forest);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
}

.about-intro > p {
  max-width: 720px;
  line-height: 1.72;
}

.about-intro .about-lead {
  margin: 24px 0 14px;
  color: var(--forest);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 750;
  line-height: 1.48;
}

.about-intro > p:last-child {
  margin: 0;
}

.portrait-card {
  margin: 0;
}

.portrait-placeholder {
  display: grid;
  aspect-ratio: 4 / 5;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(127, 166, 166, 0.34), rgba(236, 230, 217, 0.84)),
    repeating-linear-gradient(45deg, rgba(36, 63, 51, 0.07) 0 1px, transparent 1px 20px);
  color: var(--forest);
  box-shadow: var(--shadow);
}

.portrait-placeholder span {
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  border: 1px solid rgba(36, 63, 51, 0.28);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 2rem;
  font-weight: 850;
}

.portrait-card figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(42px, 7vw, 78px);
}

.about-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(22px, 3vw, 30px);
}

.about-card h2 {
  margin: 0 0 12px;
  color: var(--forest);
  font-size: 1.35rem;
}

.about-card p {
  margin: 0;
  line-height: 1.68;
}

.about-card p + p {
  margin-top: 12px;
}

.equipment-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
  gap: clamp(26px, 5vw, 64px);
  margin-top: 18px;
  border-radius: 8px;
  background: var(--forest);
  color: #fffaf1;
  padding: clamp(26px, 5vw, 48px);
}

.equipment-section h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.equipment-section .eyebrow {
  color: #bdd5d1;
}

.equipment-list {
  margin: 0;
}

.equipment-list > div {
  border-top: 1px solid rgba(255, 250, 241, 0.18);
  padding: 13px 0;
}

.equipment-list > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.equipment-list dt {
  color: #bdd5d1;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.equipment-list dd {
  margin: 5px 0 0;
  line-height: 1.55;
}

.current-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(42px, 7vw, 88px) clamp(18px, 4vw, 48px) 96px;
}

.current-heading {
  max-width: 780px;
}

.current-heading .eyebrow,
.current-section .eyebrow {
  color: var(--reed);
}

.current-heading h1 {
  color: var(--forest);
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 1;
}

.current-heading > p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.68;
}

.current-section {
  margin-top: clamp(48px, 7vw, 76px);
}

.current-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  padding-bottom: 14px;
}

.current-section-heading .eyebrow {
  margin-bottom: 9px;
}

.current-section-heading h2 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.current-section-heading > span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  white-space: nowrap;
}

.current-section-heading > span strong {
  color: var(--forest);
  font-size: 1.25rem;
}

.current-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.current-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(21, 23, 21, 0.08);
}

.current-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #ded8cc;
}

.current-card-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: filter 180ms ease, transform 180ms ease;
}

.current-card-image:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.015);
}

.current-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: rgba(20, 37, 31, 0.92);
  color: #fffaf1;
  padding: 7px 10px;
  font-size: 0.75rem;
  font-weight: 850;
}

.current-card-body {
  padding: 18px;
}

.current-date {
  margin: 0 0 9px;
  color: var(--reed);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.current-card h3 {
  margin: 0;
  color: var(--forest);
  font-size: 1.3rem;
  line-height: 1.15;
}

.current-names {
  display: grid;
  gap: 3px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.current-location,
.current-detail {
  margin: 12px 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.current-location {
  color: var(--forest);
  font-weight: 750;
}

.current-detail {
  color: var(--muted);
}

.current-empty {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.current-empty strong {
  color: var(--forest);
  font-size: 1.05rem;
}

.current-empty p {
  margin: 7px 0 0;
  line-height: 1.55;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  min-height: calc(96vh - 88px);
  padding: 12px clamp(18px, 4vw, 58px) 56px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #bdd5d1;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 8.8rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 4.6vw, 5.1rem);
  line-height: 0.96;
}

.hero-intro {
  max-width: 560px;
  margin: 24px 0 0;
}

.hero-intro p {
  margin: 0;
  color: rgba(255, 250, 241, 0.74);
  font-size: clamp(0.9rem, 1.15vw, 1.02rem);
  line-height: 1.57;
}

.hero-intro p + p {
  margin-top: 12px;
}

.hero-intro .hero-note {
  color: rgba(255, 250, 241, 0.58);
  font-size: 0.82rem;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-auto-rows: minmax(145px, 24vh);
  gap: 12px;
}

.hero-gallery button,
.photo-button {
  position: relative;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  padding: 0;
}

.hero-gallery button {
  border-radius: 8px;
}

.hero-gallery button:first-child {
  grid-row: span 2;
}

.hero-gallery img {
  height: 100%;
  border: 1px solid rgba(255, 250, 241, 0.18);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
  transition: filter 180ms ease, transform 180ms ease;
}

.hero-gallery button:hover img,
.photo-button:hover img {
  filter: saturate(1.08) contrast(1.04);
  transform: translateY(-2px);
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 48px) 78px;
}

.collection-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: -36px 0 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.collection-bar article {
  background: var(--panel);
  padding: 20px 18px;
  text-align: center;
}

.collection-bar span {
  display: block;
  color: var(--forest);
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  font-weight: 850;
  line-height: 1;
}

.collection-bar p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.region-switcher {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
}

.region-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.region-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--forest);
  cursor: pointer;
  padding: 16px 20px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 850;
  box-shadow: 0 8px 22px rgba(21, 23, 21, 0.06);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.region-button:hover {
  transform: translateY(-1px);
}

.region-button.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fffaf1;
}

.region-summary {
  min-height: 1.35em;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.collection-controls {
  display: grid;
  grid-template-columns: auto minmax(280px, 460px);
  align-items: end;
  justify-content: space-between;
  gap: 12px 22px;
  margin: 0 0 22px;
}

.view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  padding: 4px;
}

.view-button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.view-button.active {
  background: var(--forest);
  color: #fffaf1;
  box-shadow: 0 4px 14px rgba(21, 23, 21, 0.16);
}

.species-search {
  display: grid;
  gap: 6px;
}

.species-search span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.species-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: 0;
  background: var(--panel);
  color: var(--ink);
  padding: 11px 16px;
  font: inherit;
}

.species-search input:focus {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(36, 63, 51, 0.12);
}

.search-status {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  text-align: right;
}

.search-empty {
  display: grid;
  gap: 7px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.62);
  padding: 34px 24px;
  color: var(--muted);
  text-align: center;
}

.search-empty strong {
  color: var(--forest);
  font-size: 1.05rem;
}

.filters {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 calc(clamp(16px, 3.5vw, 48px) * -1) 34px;
  padding: 12px clamp(16px, 3.5vw, 48px);
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(14px);
}

.filter-button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--forest);
  cursor: pointer;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 800;
}

.filter-button.active {
  border-color: var(--forest);
  background: var(--forest);
  color: #fffaf1;
}

.species-list {
  display: grid;
  gap: 34px;
}

.group-section {
  display: grid;
  gap: 18px;
}

.group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.group-heading h2 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.group-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-style: italic;
}

.group-heading span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: right;
}

.subgroup-list {
  display: grid;
  gap: 30px;
}

.subgroup-section {
  display: grid;
  gap: 14px;
}

.subgroup-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-left: 3px solid var(--reed);
  padding-left: 12px;
}

.subgroup-heading h3 {
  margin: 0;
  color: var(--forest);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
}

.subgroup-heading span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  white-space: nowrap;
}

.species-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.species-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(21, 23, 21, 0.08);
}

.species-info {
  display: grid;
  gap: 10px;
  min-height: 100px;
  padding: 18px;
}

.species-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.species-title h3,
.species-title h4 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.12;
}

.count-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--forest);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 850;
}

.name-grid {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.94rem;
}

.name-grid strong {
  color: var(--ink);
}

.latin {
  font-style: italic;
}

.species-cover {
  display: block;
  width: 100%;
  margin-top: auto;
  text-align: left;
}

.species-cover img {
  aspect-ratio: 4 / 3;
  background: #ded8cc;
  object-fit: cover;
  transition: filter 180ms ease, transform 180ms ease;
}

.cover-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 34px 16px 12px;
  background: linear-gradient(to bottom, transparent, rgba(9, 14, 12, 0.82));
  color: #fffaf1;
  font-size: 0.9rem;
  font-weight: 750;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.species-cover.has-metadata:hover .cover-label,
.species-cover.has-metadata:focus-visible .cover-label {
  opacity: 0;
}

.photo-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 34px 10px 9px;
  background: linear-gradient(to bottom, transparent, rgba(9, 14, 12, 0.94) 38%);
  color: #fffaf1;
  font-size: clamp(0.62rem, 0.72vw, 0.74rem);
  line-height: 1.28;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
  transform: translateY(14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.photo-meta span {
  display: block;
  overflow-wrap: anywhere;
}

.photo-meta-primary {
  font-weight: 850;
}

.photo-meta-secondary,
.photo-meta-date,
.photo-meta-location {
  color: rgba(255, 250, 241, 0.84);
}

.species-location {
  color: var(--forest);
  font-size: 0.86rem;
  font-weight: 750;
}

.photo-meta-exposure {
  margin-top: 2px;
  font-weight: 750;
}

.photo-meta-copyright {
  margin-top: 3px;
  color: rgba(255, 250, 241, 0.88);
  font-weight: 750;
}

.hero-photo:hover .photo-meta,
.hero-photo:focus-visible .photo-meta,
.photo-button:hover .photo-meta,
.photo-button:focus-visible .photo-meta {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  margin-top: auto;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(127, 166, 166, 0.28), rgba(255, 253, 248, 0.82)),
    repeating-linear-gradient(45deg, rgba(36, 63, 51, 0.08) 0 1px, transparent 1px 18px);
  color: var(--forest);
  font-weight: 850;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 62px;
  align-items: center;
  gap: 16px;
  background: rgba(11, 15, 13, 0.94);
  opacity: 0;
  padding: 30px;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox figure {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 0;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  /* Unter dem Foto bleibt genügend Platz für Titel und Aufnahmedaten. */
  max-height: calc(100vh - 220px);
  max-height: calc(100dvh - 220px);
  border-radius: 8px;
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.46);
  object-fit: contain;
}

.lightbox figcaption {
  display: grid;
  gap: 5px;
  color: rgba(255, 250, 241, 0.84);
  font-size: 0.95rem;
  font-weight: 750;
  text-align: center;
}

.lightbox-caption-title {
  font-weight: 800;
}

.lightbox-position {
  color: rgba(255, 250, 241, 0.66);
  font-size: 0.82rem;
  font-weight: 550;
}

.lightbox-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 12px;
  max-width: min(920px, calc(100vw - 160px));
  margin-top: 3px;
  border: 1px solid rgba(255, 250, 241, 0.14);
  border-radius: 6px;
  background: rgba(255, 250, 241, 0.07);
  color: rgba(255, 250, 241, 0.82);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 550;
}

.lightbox-meta span {
  display: inline;
}

.lightbox button {
  border: 1px solid rgba(255, 250, 241, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.12);
  color: #fffaf1;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.lightbox button:hover {
  background: rgba(255, 250, 241, 0.22);
  transform: translateY(-1px);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav {
  width: 56px;
  height: 56px;
  font-size: 2.6rem;
  line-height: 0.8;
}

footer {
  border-top: 1px solid var(--line);
  padding: 30px 20px 42px;
  color: var(--muted);
  text-align: center;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--forest);
}

@media (max-width: 1120px) {
  .species-grid,
  .current-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    min-height: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-gallery {
    grid-auto-rows: 160px;
  }

  .group-heading {
    align-items: start;
    flex-direction: column;
  }

  .group-heading span {
    text-align: left;
  }

  .current-section-heading {
    align-items: start;
  }

  .about-hero,
  .equipment-section {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    width: min(100%, 360px);
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  h1 {
    font-size: clamp(3.1rem, 18vw, 5rem);
  }

  .collection-bar {
    grid-template-columns: 1fr;
    margin-top: -24px;
  }

  .region-tabs {
    grid-template-columns: 1fr;
  }

  .collection-controls {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .view-switch {
    width: 100%;
  }

  .search-status {
    text-align: left;
  }

  .species-grid {
    grid-template-columns: 1fr;
  }

  .species-info {
    min-height: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .current-grid {
    grid-template-columns: 1fr;
  }

  .lightbox {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    gap: 8px;
    padding: 16px 8px;
  }

  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
  }

  .lightbox img {
    max-height: calc(100vh - 250px);
    max-height: calc(100dvh - 250px);
  }

  .lightbox-meta {
    max-width: calc(100vw - 32px);
  }
}
