/* ==========================================================================
   Keynotes
   ========================================================================== */

.keynotes-list {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1rem 0;
}

.keynote {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: flex-start;
  padding: 3rem 0;
  border-bottom: 1px solid var(--light-gray);
  position: relative;
}

.keynote:after {
  content: "//";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  background: var(--cream);
  padding: 0 .75rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--light-gray);
}

.keynote:first-child {
  padding-top: 0;
}

.keynote:last-child {
  border-bottom: none;
  padding-bottom: 0;

  &:after {
    display: none;
  }
}


.keynote:nth-child(even) {
  grid-template-columns: 2fr 1fr;
}

.keynote:nth-child(even) .keynote-photo {
  order: 2;
}

.keynote-photo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.keynote-photo img {
  aspect-ratio: 4/5;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  /* max-height: 400px; */
}

.keynote-photo-placeholder {
  aspect-ratio: 4/5;
  width: 100%;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--light-gray) 0%, #d0cdc8 100%);
  max-height: 600px;
  max-width: 400px;
}

h2.keynote-name {
  font-size: 1.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  /* margin: 0 0 0.25rem 0; */
  border-bottom: 3px solid var(--light-plum);
  width: fit-content;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.keynote-title {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--warmer-gray);
  margin-bottom: 0.15rem;
}

.keynote-affiliation {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--plum);
  margin-bottom: 1.5rem;
}

.keynote-bio {
  font-size: 1.05rem;
  color: var(--warmer-gray);
  line-height: 1.8;
}

.keynote-bio p {
  margin: 0;
}

.keynote-bio p + p {
  margin-top: 1rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
  .keynote {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .keynote:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .keynote:nth-child(even) .keynote-photo {
    order: 0;
  }

  .keynote-photo img {
    max-width: 300px;
  }

  .keynote-name {
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .keynote {
    padding: 2rem 0;
  }

  .keynote-photo img {
    max-width: 100%;
    aspect-ratio: 1;
  }

  .keynote-name {
    font-size: 1.3rem;
  }

  .keynote-bio {
    font-size: 1rem;
  }
}
