.fn-species-profile {
  margin: 2rem 0;
}

.fn-species-profile dl {
  display: grid;
  gap: 1px;
  border: 1px solid #d8d8d8;
  background: #d8d8d8;
}

.fn-profile-row {
  display: grid;
  grid-template-columns: minmax(9rem, .28fr) 1fr;
  background: #fff;
}

.fn-profile-row dt,
.fn-profile-row dd {
  margin: 0;
  padding: clamp(12px, 1.35vw, 20px) clamp(14px, 1.7vw, 26px);
}

.fn-profile-row dt {
  display: flex;
  align-items: center;
  color: #4a4a4a;
  font-weight: 700;
  background: #f3f3f1;
}

.fn-profile-row dd {
  display: grid;
  align-items: center;
  background: #fff;
}

.fn-profile-row dd > :first-child {
  margin-top: 0;
}

.fn-profile-row dd > :last-child {
  margin-bottom: 0;
}

.fn-observations {
  margin: 2.5rem 0;
}

.fn-observation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 28px);
}

.fn-observation-card {
  display: grid;
  gap: .55rem;
}

.fn-observation-card__meta {
  display: grid;
  gap: .15rem;
}

.fn-observation-card time,
.fn-observation-card__meta span {
  color: #526158;
  font-size: clamp(1rem, 1.08vw, 1.22rem);
  font-weight: 700;
}

.fn-observation-card__meta span {
  font-size: clamp(.9rem, .95vw, 1.06rem);
}

.fn-lightbox-trigger {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: zoom-in;
}

.fn-observation-card img,
.fn-no-photo {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: #edf0ea;
}

.fn-no-photo {
  display: grid;
  place-items: center;
  color: #66736c;
}

.fn-lightbox {
  width: min(92vw, 1180px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
}

.fn-lightbox::backdrop {
  background: rgba(10, 15, 12, .78);
}

.fn-lightbox-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(16px, 2vw, 28px);
  border-radius: 10px;
  background: #fffdf8;
}

.fn-lightbox-header {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  color: #17211d;
  font-weight: 800;
}

.fn-lightbox-note {
  margin: -.35rem 0 .1rem;
  color: #526158;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 700;
  line-height: 1.6;
}

.fn-lightbox-main {
  display: block;
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 6px;
}

.fn-lightbox-thumbs {
  display: flex;
  justify-content: center;
  gap: .65rem;
  overflow-x: auto;
  padding-bottom: .2rem;
}

.fn-lightbox-thumbs button {
  flex: 0 0 auto;
  width: 92px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
}

.fn-lightbox-thumbs button.is-active {
  border-color: #17211d;
}

.fn-lightbox-thumbs img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
}

.fn-lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #17211d;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 640px) {
  .fn-profile-row {
    grid-template-columns: 1fr;
  }
}
