.lapidus-shortcode.conference-event {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: white;
  border-radius: 16px;
}

.lapidus-shortcode.conference-event p,
.lapidus-shortcode.conference-event span {
  font-family: "Sen", sans-serif;
}

.hidden {
  display: none;
}

.lapidus-shortcode.conference-event > hgroup {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

h3.conference-event-title {
  margin: 0;
  max-width: 75%;
}

p.conference-event-subtitle {
  font-family: "Spectral", serif !important;
  font-size: 20px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.2;
  margin: 0;
}

.conference-event-type {
  position: absolute;
  inset: 0 0 auto auto;
  transform: translate(29.3%) rotate(45deg);
  transform-origin: top left;
  background: #f7b700;
  box-shadow: 0 0 0 999px #f7b700;
  clip-path: inset(0 -100%);
  z-index: 1;
  text-align: center;
  width: 110px;
  padding-bottom: 5px;
  line-height: 1;
  white-space: nowrap;
}

.conference-event-type span {
  font-size: 15px;
}

.conference-event-type-icon {
  position: absolute;
  inset: 0 0 auto auto;
  display: flex;
  align-items: start;
  justify-content: end;
  padding: 0.5rem;
  background: #f7b700;
}

.conference-event-type-icon div:first-of-type {
  position: absolute;
  inset: 0 99% auto auto;
  width: 32px;
  height: 100%;
  background: #f7b700;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.conference-event-type-icon div:last-of-type {
  position: absolute;
  inset: 99% 0 auto auto;
  width: 100%;
  height: 32px;
  background: #f7b700;
  clip-path: polygon(0 0, 100% 100%, 100% 0);
}

.conference-event-type-icon svg {
  width: 32px;
  height: 32px;
}

.conference-event-description-wrapper {
  position: relative;
}

.conference-event-description {
  overflow: hidden;
  transition: max-height 0.4s ease;
  mask-image: none;
  font-size: 16px;
  line-height: 20px;
}

.conference-event-description.collapsed {
  max-height: 96px;
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.lapidus-shortcode button.conference-event-read-more,
.lapidus-shortcode button.conference-event-read-more:focus,
.lapidus-shortcode button.conference-event-read-more:active,
.lapidus-shortcode button.conference-event-read-more:hover {
  all: unset;
  float: inline-end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Sen", sans-serif;
  font-size: 16px;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 0.15rem;
  cursor: pointer;
}

.lapidus-shortcode button.conference-event-read-more:hover {
  text-underline-offset: 0.3rem;
}

.conference-event-read-more svg {
  width: 28px;
  height: 28px;
}

.conference-event-speaker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.conference-event-speaker > div {
  display: flex;
  align-items: stretch;
  gap: 1rem;
}

.conference-event-speaker > div > div {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.conference-event-speaker > div > div > hgroup {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  margin-top: 0.25rem;
}

.conference-event-speaker > div > div > hgroup > p {
  margin: 0 !important;
  font-size: 14px;
  line-height: 18px;
}

h4.conference-event-speaker-name {
  margin: 0;
}

.lapidus-shortcode button.conference-event-speaker-read-more,
.lapidus-shortcode button.conference-event-speaker-read-more:focus,
.lapidus-shortcode button.conference-event-speaker-read-more:active,
.lapidus-shortcode button.conference-event-speaker-read-more:hover {
  all: unset;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Sen", sans-serif;
  font-size: 16px;
  line-height: 20px;
  text-decoration: underline;
  text-underline-offset: 0.15rem;
  cursor: pointer;
}

.lapidus-shortcode button.conference-event-speaker-read-more:hover {
  text-underline-offset: 0.3rem;
}

.conference-event-speaker-read-more svg {
  width: 28px;
  height: 28px;
}

.conference-event-speaker-bio {
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 16px;
  line-height: 20px;
}

.conference-event-speaker-bio.collapsed {
  max-height: 0;
}

.lapidus-shortcode.conference-event img.conference-event-speaker-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.conference-event-description,
.conference-event-speaker-bio {
  will-change: max-height;
}
