@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-chen::before {
  display: none;
}

.unit02-gallery-chen .gallery-grid {
  justify-content: center;
  justify-items: center;
}

.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::before {
  display: none;
}

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

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

#chen-zhen h2,
#tan-jiazhen h2,
#griffith h2 {
  width: calc(100% - var(--bio-left-col) - var(--bio-gap) - 50px);
  margin-left: 0;
}

#chen-zhen .bio-main,
#tan-jiazhen .bio-main,
#griffith .bio-main {
  grid-template-columns: minmax(0, 1fr) var(--bio-left-col);
}

#chen-zhen .portrait-frame,
#tan-jiazhen .portrait-frame,
#griffith .portrait-frame {
  order: 2;
  justify-self: end;
}

#chen-zhen .bio-text,
#tan-jiazhen .bio-text,
#griffith .bio-text {
  order: 1;
  margin-left: 0;
  margin-right: 50px;
}

.unit02-inline-figure {
  margin: 0 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;
}

img[src="../assets/images/02-fruitflyandmouse/chen-zhen-1928-paper.jpg"].gallery-photo.gallery-photo-specimen {
  width: 276px;
  height: 413px;
  object-fit: cover;
}

img[src="../assets/images/02-fruitflyandmouse/tsinghua-natural-science-faculty-1925.jpg"].gallery-photo.gallery-photo-specimen {
  width: 574px;
  height: 384px;
  object-fit: cover;
}

img[src="../assets/images/02-fruitflyandmouse/morgan-and-tan-jiazhen.jpg"].gallery-photo.gallery-photo-specimen {
  width: 332px;
  height: 250px;
  object-fit: cover;
}

.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-section-manual h2 {
  font-size: 20px;
}

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

.unit02-object-section-manual .unit02-object-copy {
  text-align: center;
}

.unit02-object-copy p {
  margin: 0 0 10px;
  font-size: 14px;
  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-section-manual .unit02-object-grid {
  width: max-content;
  margin: 0 auto;
  gap: 28px;
  justify-content: center;
}

.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 {
  width: min(920px, 100%);
  margin: 0 auto;
  grid-template-columns: 252px 456px 252px;
  gap: 0px;
  align-items: start;
  justify-content: center;
}

.unit02-object-figure-wide {
  position: relative;
  align-self: center;
  padding-top: 42px;
  isolation: isolate;
}

.unit02-object-figure-wide::before,
.unit02-object-figure-wide::after {
  content: "";
  position: absolute;
  top: 42px;
  bottom: 0;
  width: 24px;
  background-image: url("../assets/images/home/card_bg.png");
  background-repeat: no-repeat;
}

.unit02-object-figure-wide::before {
  left: -24px;
  background-position: 100% 100%;
}

.unit02-object-figure-wide::after {
  right: -24px;
}

.unit02-object-photo-tall {
  width: 252px;
  height: 364px;
  object-fit: cover;
}

.unit02-object-photo-wide {
  width: 456px;
  max-width: none;
  height: 279px;
  object-fit: cover;
  border: 5px solid #f8f8f0;
}

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

  #chen-zhen h2,
  #tan-jiazhen h2,
  #griffith h2 {
    width: 100%;
    margin-left: 0;
  }

  #chen-zhen .bio-main,
  #tan-jiazhen .bio-main,
  #griffith .bio-main {
    grid-template-columns: 1fr;
  }

  #chen-zhen .portrait-frame,
  #tan-jiazhen .portrait-frame,
  #griffith .portrait-frame {
    order: initial;
    justify-self: start;
  }

  #chen-zhen .bio-text,
  #tan-jiazhen .bio-text,
  #griffith .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);
  }
}

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