.open-source-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
}

.peripheral-shots {
  display: grid;
  gap: 1.4rem;
  margin-top: 1.6rem;
}

:is(.peripheral-workbench, .peripheral-shots, .firmware-screenshot) a {
  display: block;
  cursor: zoom-in;
}

:is(.peripheral-workbench, .peripheral-shots, .firmware-screenshot) img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
}

:is(.peripheral-workbench, .peripheral-shots, .firmware-screenshot) a:hover img {
  border-color: var(--signal);
}

:is(.peripheral-workbench, .peripheral-shots, .firmware-screenshot) figcaption {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.5;
}

.peripheral-dialog {
  max-width: 28rem;
}

.corsair-development,
.firmware-project p {
  margin-top: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

.firmware-project {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: clamp(1.8rem, 4vw, 3.5rem);
  padding-top: clamp(1.8rem, 4vw, 3.5rem);
  border-top: 1px solid var(--rule);
}

.firmware-project h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  overflow-wrap: anywhere;
}

.firmware-project .peripheral-source {
  margin-top: 1.25rem;
}

@media (max-width: 680px) {
  .open-source-intro,
  .firmware-project {
    grid-template-columns: 1fr;
  }
}
