@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;
  font-size: 30px;
}

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

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

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

.unit03-object-grid-narrow {
  width: min(760px, 100%);
  margin: 0 auto;
}

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

.unit03-object-photo-wide {
  display: block;
  width: min(100%, 1080px);
  height: auto;
  margin: 0 auto;
  border: 8px solid #c3df4f;
  background: #f4f3e8;
}

.unit03-object-photo-manual {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0 auto;
  border: 8px solid #c3df4f;
  background: #f4f3e8;
}

.unit03-object-link {
  margin: 18px 0 0;
  text-align: center;
}

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

.unit03-object-photo-coleman {
  width: min(100%, 582px);
  height: 484px;
  object-fit: cover;
}

.unit03-object-photo-handbook,
.unit03-object-photo-glass {
  width: min(100%, 406px);
  height: 527px;
  object-fit: cover;
}

.unit03-object-photo-g1955 {
  width: min(100%, 651px);
  height: 527px;
  object-fit: cover;
}

.unit03-object-section-no-border::before {
  display: none;
}

.unit03-object-copy-small p {
  font-size: 14px;
}

#schrodinger .bio-main {
  display: block;
}

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

.unit03-schrodinger-figures {
  display: grid;
  grid-template-columns: repeat(2, 358px);
  gap: 30px;
  justify-content: space-around;
}

.unit03-book-frame,
.unit03-schrodinger-figures .portrait-frame {
  margin: 0;
}

.unit03-book-frame {
  width: 358px;
  height: 481px;
  border: 5px solid #c3df4f;
  padding: 8px;
  background: #f2f3e4;
}

.unit03-book-cover {
  width: 332px;
  height: 455px;
  display: block;
  object-fit: contain;
  background: #f2f3e4;
}

.unit03-schrodinger-text {
  width: 100%;
  margin-left: 0;
  padding-top: 24px;
}

#luria h2,
#tatum h2,
#mccarty h2,
#chase h2 {
  width: calc(100% - var(--bio-left-col) - var(--bio-gap) - 50px);
  margin-left: 0;
}

#luria .bio-main,
#tatum .bio-main,
#mccarty .bio-main,
#chase .bio-main {
  grid-template-columns: minmax(0, 1fr) var(--bio-left-col);
}

#luria .portrait-frame,
#tatum .portrait-frame,
#mccarty .portrait-frame,
#chase .portrait-frame {
  order: 2;
  justify-self: end;
}

#luria .bio-text,
#tatum .bio-text,
#mccarty .bio-text,
#chase .bio-text {
  order: 1;
  margin-left: 0;
  margin-right: 50px;
}

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

  #luria h2,
  #tatum h2,
  #mccarty h2,
  #chase h2 {
    width: 100%;
    margin-left: 0;
  }

  #luria .bio-main,
  #tatum .bio-main,
  #mccarty .bio-main,
  #chase .bio-main {
    grid-template-columns: 1fr;
  }

  #luria .portrait-frame,
  #tatum .portrait-frame,
  #mccarty .portrait-frame,
  #chase .portrait-frame {
    order: initial;
    justify-self: start;
  }

  #luria .bio-text,
  #tatum .bio-text,
  #mccarty .bio-text,
  #chase .bio-text {
    order: initial;
    margin-right: 0;
  }

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

  .unit03-schrodinger-figures {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

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