@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;
}

#wilkins h2,
#mcclintock h2,
#meselson h2 {
  width: calc(100% - var(--bio-left-col) - var(--bio-gap) - 50px);
  margin-left: 0;
}

#wilkins .bio-main,
#mcclintock .bio-main,
#meselson .bio-main {
  grid-template-columns: minmax(0, 1fr) var(--bio-left-col);
}

#wilkins .portrait-frame,
#mcclintock .portrait-frame,
#meselson .portrait-frame {
  order: 2;
  justify-self: end;
}

#wilkins .bio-text,
#mcclintock .bio-text,
#meselson .bio-text {
  order: 1;
  margin-left: 0;
  margin-right: 50px;
}

#watson-crick h2 {
  width: 100%;
  margin-left: 0;
  text-align: center;
}

#watson-crick .bio-main {
  display: block;
}

.unit04-duo-figures {
  display: grid;
  grid-template-columns: repeat(2, 358px);
  gap: 148px;
  justify-content: center;
  margin-bottom: 28px;
}

.unit04-duo-figures .portrait-frame {
  margin: 0;
}

.unit04-duo-text {
  width: 100%;
  margin-left: 0;
}

.unit04-inline-paper {
  margin: 28px auto 0;
  width: 350px;
}

.unit04-paper-photo {
  display: block;
  width: 350px;
  height: 512px;
  margin: 0 auto;
  object-fit: cover;
  border: 5px solid #c3df4f;
  background: #f2f3e4;
}

.unit04-foot-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 213px;
  gap: 34px;
  align-items: center;
}

.unit04-foot-with-image .bio-foot {
  margin-top: 0;
}

.unit04-foot-image-frame {
  width: 213px;
  height: 217px;
  margin: 0;
  border: 5px solid #f8f8f0;
  padding: 8px;
  background: #f2f3e4;
}

.unit04-foot-image {
  display: block;
  width: 193px;
  height: 197px;
  object-fit: cover;
}

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

.unit04-object-grid-two {
  display: grid;
  grid-template-columns: 256px 385px;
  gap: 44px;
  justify-content: center;
  align-items: start;
}

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

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

.unit04-object-photo-rotor-left,
.unit04-object-photo-rotor-right,
.unit04-object-photo-cary,
.unit04-object-photo-spinco {
  display: block;
  background: #f4f3e8;
}

.unit04-object-figure-bottom {
  width: max-content;
  margin: 20px auto 0;
}

.unit04-object-photo-rotor-left {
  width: 230px;
  height: 287px;
  border: none;
  object-fit: cover;
}

.unit04-object-photo-rotor-right {
  width: 359px;
  height: 287px;
  border: none;
  object-fit: cover;
}

.unit04-object-photo-cary {
  width: 426px;
  height: 315px;
  border: none;
  object-fit: cover;
}

.unit04-object-photo-spinco {
  width: 388px;
  height: 482px;
  border: none;
  object-fit: cover;
}

.unit04-object-photo-rotor-bottom {
  display: block;
  width: 235px;
  height: 291px;
  margin: 0 auto;
  border: none;
  background: #f4f3e8;
  object-fit: cover;
}

.unit04-object-link {
  margin: 10px 0 0;
  text-align: center;
}

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

.unit04-object-copy {
  width: min(980px, 92vw);
  margin: 34px auto 0;
  color: #fff;
}

.unit04-object-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  text-align: justify;
  text-indent: 2em;
  font-weight: 400;
}

.unit04-object-copy-center {
  width: min(980px, 92vw);
  margin: 28px auto 0;
  color: #fff;
  font-size: 16px;
  line-height: 1.85;
  text-align: center;
}

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

  #wilkins h2,
  #mcclintock h2,
  #meselson h2 {
    width: 100%;
    margin-left: 0;
  }

  #wilkins .bio-main,
  #mcclintock .bio-main,
  #meselson .bio-main {
    grid-template-columns: 1fr;
  }

  #wilkins .portrait-frame,
  #mcclintock .portrait-frame,
  #meselson .portrait-frame {
    order: initial;
    justify-self: start;
  }

  #wilkins .bio-text,
  #mcclintock .bio-text,
  #meselson .bio-text {
    order: initial;
    margin-right: 0;
  }

  .unit04-duo-figures {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
  }

  .unit04-inline-paper,
  .unit04-paper-photo {
    width: min(100%, 350px);
  }

  .unit04-paper-photo {
    height: auto;
  }

  .unit04-foot-with-image {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .unit04-foot-image-frame {
    margin: 0 auto;
  }

  .unit04-object-grid-two {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .unit04-object-photo-rotor-left,
  .unit04-object-photo-rotor-right,
  .unit04-object-photo-cary,
  .unit04-object-photo-spinco {
    width: min(100%, 740px);
    height: auto;
  }

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

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

  .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;
  }
}
