/* ==========================================================================
   Who you'll hear from (speaker, dark section)
   ========================================================================== */

.speaker {
  border-radius: var(--radius-section);
  background: var(--c-dark);
  color: var(--c-white);
}

.speaker__inner {
  display: flex;
  align-items: center;
  gap: 64px;
}

.speaker__photo {
  flex: 0 0 500px;
  height: 560px;
  border-radius: 24px;
  overflow: hidden;
}

.speaker__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 95%;
  /* the default (hero) shot is mirrored as in the design */
  transform: scaleX(-1);
}

/* a real photo uploaded in the admin (WordPress adds "attachment-*") */
.speaker__photo img[class*="attachment-"] {
  object-position: 50% 30%;
  transform: none;
}

.speaker__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.speaker__name {
  margin-top: 26px;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.0417em;
}

.speaker__role {
  margin-top: 12px;
  font-size: 19.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--c-orange);
}

.speaker__bio {
  margin-top: 26px;
  font-size: 18px;
  line-height: 160%;
  font-weight: 400;
}

.speaker__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  font-size: 17px;
  line-height: 20px;
  transition: color 0.2s var(--ease);
}

.speaker__link img {
  width: 20px;
  height: 20px;
}

.speaker__link:hover {
  color: var(--c-orange);
}

.speaker__hosted {
  align-self: stretch;
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.speaker__hosted-label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.speaker__badges {
  display: flex;
  align-items: center;
  gap: 52px;
  margin-top: 17px;
}

.speaker__badges img {
  flex: none;
}

.sec-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 17px;
}

.speaker__disclaimer {
  margin-top: 17px;
  font-size: 14px;
  font-style: italic;
  line-height: 21px;
  color: #888c95;
}

/* ==========================================================================
   Speaker: tablet / mobile (photo on top)
   ========================================================================== */
@media (max-width: 1199px) {
  .speaker {
    padding-top: 72px;
  }

  .speaker__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .speaker__photo {
    flex: none;
    height: 530px;
  }

  .speaker__photo img {
    object-position: 50% 40%;
  }

  .speaker__name {
    font-size: 42px;
  }

  .speaker__badges {
    gap: 20px;
  }

  .speaker__disclaimer {
    font-style: normal;
  }

}

@media (max-width: 767px) {
  .speaker {
    padding: 16px var(--gutter) 24px;
  }

  .speaker__inner {
    gap: 24px;
  }

  .speaker__photo {
    height: 292px;
    border-radius: 16px;
  }

  .speaker__name {
    margin-top: 16px;
    font-size: 30px;
    line-height: 1.2;
  }

  .speaker__hosted {
    margin-top: 24px;
    padding-top: 24px;
  }

  .speaker__role {
    margin-top: 12px;
  }

  .speaker__bio {
    margin-top: 20px;
  }
}