.vb-species-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 22px 20px 30px;
}

.vb-species-heading {
  margin: 0 0 24px;
  font-size: clamp(1.55rem, 1.28rem + 1vw, 2.05rem);
  line-height: 1.1;
  color: #6b6b6b;
}

.vb-species-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  align-items: start;
}

.vb-species-card {
  margin: 0;
}

.vb-species-trigger {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
  transition: transform 180ms ease, opacity 180ms ease;
}

.vb-species-trigger:hover,
.vb-species-trigger:focus {
  transform: translateY(-1px);
  opacity: 0.96;
  outline: none;
}

.vb-species-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.vb-species-name {
  margin: 8px 0 0;
  font-size: 0.84rem;
  line-height: 1.25;
  text-align: center;
  color: #6e6a62;
}

.vb-checklist-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.vb-checklist-button,
.vb-checklist-button:link,
.vb-checklist-button:visited,
.vb-checklist-button:hover,
.vb-checklist-button:focus,
.vb-checklist-button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #85c09c;
  color: #173122;
  text-decoration: none !important;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  box-shadow: none;
  transition: transform 180ms ease, background-color 180ms ease;
}

.vb-checklist-button:hover,
.vb-checklist-button:focus {
  background: #6fb186;
  transform: translateY(-1px);
  outline: none;
}

.vb-lightbox[hidden] {
  display: none;
}

.vb-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.84);
  display: grid;
  place-items: center;
  padding: 20px;
}

.vb-lightbox-dialog {
  position: relative;
  width: min(94vw, 1280px);
  max-height: 94vh;
}

.vb-lightbox-figure {
  margin: 0;
}

.vb-lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(94vh - 80px);
  object-fit: contain;
  border-radius: 16px;
  background: #111;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  touch-action: pan-y;
}

.vb-lightbox-caption {
  margin-top: 10px;
  color: #f4f3ef;
  text-align: center;
  font-size: 0.95rem;
}

.vb-lightbox-close,
.vb-lightbox-nav {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 180ms ease, transform 180ms ease;
}

.vb-lightbox-close:hover,
.vb-lightbox-close:focus,
.vb-lightbox-nav:hover,
.vb-lightbox-nav:focus {
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}

.vb-lightbox-close {
  top: 0;
  right: 0;
}

.vb-lightbox-prev {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.vb-lightbox-next {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.vb-species-error {
  padding: 18px 20px;
  border-radius: 12px;
  background: #f5ebe7;
  color: #7b3d25;
}

@media (max-width: 1024px) {
  .vb-species-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .vb-species-section {
    padding: 18px 14px 24px;
  }

  .vb-species-heading {
    margin-bottom: 20px;
  }

  .vb-species-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .vb-species-name {
    font-size: 0.8rem;
  }

  .vb-checklist-wrap {
    margin-top: 14px;
  }

  .vb-checklist-button,
  .vb-checklist-button:link,
  .vb-checklist-button:visited,
  .vb-checklist-button:hover,
  .vb-checklist-button:focus,
  .vb-checklist-button:active {
    min-width: 92px;
    min-height: 27px;
    padding: 6px 11px;
    font-size: 0.92rem;
  }

  .vb-lightbox-prev,
  .vb-lightbox-next {
    top: auto;
    bottom: 0;
    transform: none;
  }

  .vb-lightbox-prev {
    left: calc(50% - 58px);
  }

  .vb-lightbox-next {
    right: calc(50% - 58px);
  }
}
