@import "../discovermendel/styles.css";

.hero-card {
  width: 980px;
  min-height: 240px;
  padding: 46px 44px 34px;
}

.hero-card h1 {
  margin-bottom: 20px;
}

.hero-card .quote {
  margin-top: 26px;
}

.unit02-figures {
  padding-top: 34px;
}

.unit02-figures .scientists-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 46px 38px;
  padding: 32px 58px 34px;
}

.unit02-gallery {
  padding-top: 26px;
  padding-bottom: 28px;
}

.unit02-gallery::before {
  width: min(860px, 92vw);
}

.unit02-gallery .container {
  width: min(860px, 92vw);
}

.unit02-gallery .gallery-grid {
  gap: 30px;
}

.unit02-gallery .gallery-photo {
  width: min(100%, 432px);
  height: auto;
  max-height: none;
}

.unit02-gallery .gallery-item figcaption {
  width: min(100%, 432px);
  font-size: 12px;
  line-height: 1.7;
}

.unit02-gallery-single .gallery-grid {
  grid-template-columns: 1fr;
  justify-items: center;
}

.unit02-gallery-single .gallery-photo {
  width: min(100%, 320px);
}

.unit02-gallery-wide .gallery-photo {
  width: min(100%, 380px);
}

.unit02-inline-figure {
  margin: 22px 0 6px;
  width: 100%;
}

.unit02-inline-figure .gallery-photo {
  width: 100%;
  height: auto;
  max-height: none;
}

.unit02-inline-figure figcaption {
  width: 100%;
  margin-top: 12px;
  color: #fff;
  font-size: 12px;
  line-height: 1.7;
  text-align: left;
}

.unit02-bio-textonly .container {
  --bio-left-col: 358px;
  --bio-gap: 30px;
  width: min(980px, 92vw);
  color: #ffffff;
}

.unit02-bio-textonly h2 {
  width: 100%;
  margin-left: 0;
  padding-left: 0;
  text-align: center;
}

.unit02-textonly-copy {
  width: 100%;
  margin: 0 auto;
}

.unit02-bio-textonly .bio-text p {
  color: #fff;
  line-height: 1.95;
  font-weight: 400;
  margin-bottom: 14px;
  text-align: justify;
  text-indent: 2em;
  font-size: 14px;
}

.unit02-object-section {
  position: relative;
  padding: 56px 0 84px;
}

.unit02-object-section .container {
  width: min(1280px, 92vw);
}

.unit02-object-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(980px, 92vw);
  border-top: 1px solid #ffffff;
  transform: translateX(-50%);
}

.unit02-object-section h2 {
  margin: 0 0 34px;
  color: #fff;
  font-size: 30px;
  font-weight: 500;
  text-align: center;
}

.unit02-object-copy {
  width: min(920px, 100%);
  margin: 0 auto 52px;
  color: #fff;
  text-align: center;
}

.unit02-object-copy p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.85;
}

.unit02-object-copy a {
  text-decoration: underline;
}

.unit02-object-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: start;
}

.unit02-object-figure {
  margin: 0;
}

.unit02-object-photo {
  display: block;
  width: 320px;
  height: 394px;
  margin: 0 auto;
  background: #f4f3e8;
  object-fit: cover;
}

.unit02-object-grid-klett {
  grid-template-columns: 320px minmax(380px, 1fr) 320px;
  gap: 42px;
  align-items: start;
  justify-content: center;
}

.unit02-object-figure-wide {
  align-self: center;
  padding-top: 142px;
}

.unit02-object-photo-tall {
  width: 320px;
  height: 394px;
  object-fit: cover;
}

.unit02-object-photo-wide {
  width: 100%;
  max-width: 900px;
  height: auto;
  aspect-ratio: 904 / 394;
  object-fit: cover;
  border: 16px solid #f8f8f0;
}

#jacob h2,
#sanger h2,
#gilbert h2 {
  width: calc(100% - var(--bio-left-col) - var(--bio-gap) - 50px);
  margin-left: 0;
}

#jacob .bio-main,
#sanger .bio-main,
#gilbert .bio-main {
  grid-template-columns: minmax(0, 1fr) var(--bio-left-col);
}

#jacob .portrait-frame,
#sanger .portrait-frame,
#gilbert .portrait-frame {
  order: 2;
  justify-self: end;
}

#jacob .bio-text,
#sanger .bio-text,
#gilbert .bio-text {
  order: 1;
  margin-left: 0;
  margin-right: 50px;
}

.unit05-object-section .container {
  width: min(980px, 92vw);
}

.unit05-object-grid-two {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 56px;
  justify-content: center;
  align-items: start;
}

.unit05-object-grid-single {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
}

.unit05-object-figure {
  margin: 0;
  border: 5px solid #c3df4f;
  padding: 8px;
  background: #f2f3e4;
  line-height: 0;
}

.unit05-object-photo-system-left,
.unit05-object-photo-system-right,
.unit05-object-photo-oligo {
  display: block;
  background: #f4f3e8;
  object-fit: cover;
}

.unit05-object-photo-system-left {
  width: 381px;
  height: 287px;
}

.unit05-object-photo-system-right {
  width: 359px;
  height: 287px;
}

.unit05-object-photo-oligo {
  width: 426px;
  height: 315px;
}

.unit05-object-link {
  margin: 24px 0 0;
  text-align: center;
}

.unit05-object-link a {
  color: #fff;
  font-size: 14px;
  line-height: 1.7;
  text-decoration: underline;
}

.unit05-object-copy {
  width: 100%;
  margin: 0 auto 34px;
  color: #fff;
  text-align: left;
}

.unit05-object-copy p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6em;
}

@media (max-width: 980px) {
  .unit02-figures .scientists-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 32px;
  }

  #jacob h2,
  #sanger h2,
  #gilbert h2 {
    width: 100%;
    margin-left: 0;
  }

  #jacob .bio-main,
  #sanger .bio-main,
  #gilbert .bio-main {
    grid-template-columns: 1fr;
  }

  #jacob .portrait-frame,
  #sanger .portrait-frame,
  #gilbert .portrait-frame {
    order: initial;
    justify-self: start;
  }

  #jacob .bio-text,
  #sanger .bio-text,
  #gilbert .bio-text {
    order: initial;
    margin-right: 0;
  }

  .unit02-object-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .unit02-object-grid-klett {
    grid-template-columns: 1fr;
  }

  .unit05-object-grid-two {
    grid-template-columns: 1fr;
    gap: 28px;
    justify-items: center;
  }

  .unit05-object-photo-system-left,
  .unit05-object-photo-system-right,
  .unit05-object-photo-oligo {
    width: min(100%, 100%);
    height: auto;
  }

  .unit02-object-figure-wide {
    padding-top: 0;
  }

  .unit02-object-photo-wide {
    width: min(100%, 720px);
  }
}

@media (max-width: 680px) {
  .hero-card {
    width: min(90vw, 720px);
    padding: 34px 24px 28px;
  }

  .unit02-figures .scientists-grid {
    grid-template-columns: 1fr;
    padding-inline: 24px;
  }
}
