.header__welcome {
  width: clamp(10rem, 50%, 50rem);
}

.research {
  width: 100%;
  height: auto;
  /* padding: 0 2rem; */
}

.mechanical-research,
.biological-research {
  container-type: inline-size;
  width: 100%;
  height: auto;
  padding: 0 2rem;
}

.mechanical-research__header,
.biological-research__header {

  margin: clamp(1rem, 2.5dvw, 2.5rem);
  padding: clamp(0.5rem, 1.5dvw, 1rem) clamp(1rem, 2.5dvw, 2.5rem);
  border-radius: 0.5rem;
  box-shadow: 0px 1px 2px var(--color-black);
  background-color: var(--color-grey-light);
}

.mechanical-research__header p,
.biological-research__header p {
  font-size: clamp(1rem, 4dvw, 1.1rem);
  text-align: justify;
}

/* .biological-research__header {
  margin-block-start: 10rem;
} */

.space {
  height: clamp(2rem, 7dvw, 5rem);
}

.mechanical-research h2,
.biological-research h2 {
  width: fit-content;
  height: auto;
  font-size: clamp(1.6rem, 3dvw, 2rem);
  margin-block-end: 1rem;
  border-bottom: 1px solid var(--color-black);
  color: var(--color-blue);

}

.mechanical-research p,
.biological-research p {
  line-height: 2em;
}

.research-item {
  width: 100%;
  height: auto;
  margin-block-start: 2rem;
  margin-block-end: 6rem;
  padding: clamp(1rem, 2.5dvw, 2rem) clamp(1rem, 2.5dvw, 2.5rem);
}

/* .research-item:last-child {
  border-bottom: 1px solid var(--color-black);
} */

.research-item h3 {
  font-size: clamp(1.5rem, 1.5cqw, 2rem);
  color: var(--color-blue-darkest);
  padding-block-start: 2rem;
  color: var(--color-muted-sage-green);
  padding: 0.5em 1em;
  border-bottom: 5px solid var(--color-muted-sage-green);
  border-top: 5px solid var(--color-muted-sage-green);
}

.research-item__text {
  margin: 1rem 0;
  line-height: 2em;
  font-size: clamp(1rem, 4dvw, 1.1rem);
  text-align: justify;
}

.twin-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(0.5rem, 2dvw, 1rem);
  height: auto;
  width: 100%;
}

.twin-photos__left,
.twin-photos__right {
  height: auto;
  max-height: 30rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.twin-photos img {
  width: 100%;
  height: 100%;
  max-height: 40rem;
  object-fit: contain;
  overflow: hidden;
}

.twin-photos p {
  font-size: clamp(0.8rem, 1.5cqw, 1rem);
  /* justify-self: end; */
}

.text-below {
  margin: 1rem 0;
}

.text-below ul {
  padding-inline-start: 1rem;
  font-size: clamp(1rem, 4dvw, 1.1rem);
}

.link-paper {
  display: block;
  margin: 1rem 0;
  text-decoration: underline;
}

.repo {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.repo__link {
  font-size: clamp(0.8rem, 2dvw, 1.1rem);
  padding: 1.2em clamp(1.5em, 2dvw, 500em);
  background-color: var(--color-blue-darkest);
  color: var(--color-white);
}

@media (max-width: 768px) {

  .twin-photos {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: clamp(0.8rem, 2dvw, 1rem);
    height: auto;
    width: 100%;
  }

  .twin-photos img {
    width: 100%;
    height: 100%;
    max-height: 40rem;
    object-fit: contain;
  }

  .mechanical-research p,
  .biological-research p {
    line-height: 1.7em;
  }

}