@import url('./research.css');

/* The existing photos now illustrate their corresponding entrance buttons. */
body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:first-child {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  min-height: clamp(240px, 24vw, 325px);
}

body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:first-child::before,
body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:first-child::after {
  content: none;
}

body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:first-child > * {
  grid-column: 1;
}

body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:nth-child(2) {
  grid-template-columns: minmax(0, 1fr);
}

body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:nth-child(2) > button {
  --entry-photo: url('./research-lab.jpg');
  --entry-photo-position: 52% 48%;
  grid-template-columns: minmax(0, 1fr) minmax(0, 35%);
  column-gap: clamp(18px, 3.4vw, 49px);
  padding: clamp(20px, 2.6vw, 38px);
}

body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:nth-child(2) > button + button {
  --entry-photo: url('./research-campus.jpg');
  --entry-photo-position: center 46%;
}

body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:nth-child(2) > button > * {
  grid-column: 1;
  min-width: 0;
}

body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:nth-child(2) > button::after {
  content: '';
  grid-area: 1 / 2 / -1 / 3;
  align-self: stretch;
  justify-self: stretch;
  min-height: 165px;
  border: 1px solid var(--research-rule);
  border-radius: 7px;
  background-color: #dce2e9;
  background-image: linear-gradient(rgb(27 76 110 / 11%), rgb(27 76 110 / 11%)), var(--entry-photo);
  background-position: center, var(--entry-photo-position);
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(.26) saturate(.56);
  pointer-events: none;
}

@media (max-width: 690px) {
  body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:first-child {
    min-height: 0;
  }

  body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:nth-child(2) > button {
    grid-template-columns: minmax(0, 1fr) minmax(0, 34%);
    column-gap: 12px;
    padding: clamp(14px, 4.3vw, 22px);
  }

  body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:nth-child(2) h2 {
    font-size: clamp(20px, 5.7vw, 27px);
  }

  body > .min-h-dvh.bg-paper.text-ink > .max-w-3xl > div:nth-child(2) > button::after {
    align-self: center;
    min-height: 0;
    width: 100%;
    aspect-ratio: 1;
  }
}
