.embla-lecture {
  position: relative;
  margin: auto;
  --slide-spacing: 18px;
  --slides-per-view: 3;
  --slide-size: calc((100% - (var(--slide-spacing) * (var(--slides-per-view) - 1))) / var(--slides-per-view));
  --button-size: 6.4rem;
  @media (width < 769px) {
    --slide-spacing: 20px;
    --slides-per-view: 1.3;
  }
}

@media (width < 769px) {
  .embla-lecture {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
  }
}
.embla-lecture__viewport {
  overflow: hidden;
  padding: 2px;
}

.embla-lecture__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
  max-width: 1000px;
  justify-content: space-between;
  @media (width < 769px) {
    margin-left: calc(var(--slide-spacing) * -1);
  }
}

.embla-lecture__slide {
  display: flex;
  flex: 0 0 var(--slide-size);
  @media (width < 769px) {
    padding-left: var(--slide-spacing);
  }
}

.embla-lecture__slide__number {
  border-radius: 12px;
  background: linear-gradient(0deg, #fff 0%, #fff 100%), #f0f5f9;
  border: 1px solid var(--Dify-border-gray, #E5E5E5);
  display: grid;
  justify-items: center;
  grid-template-rows: auto 1fr;
  gap: 16px;
  padding: 20px;
}

.embla-lecture__slide__number img {
  width: 175px;
}

.embla-lecture__slide__number .context {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 15px;
}

.embla-lecture__slide__number .context .profile {
  text-align: center;
}

.embla-lecture__slide__number .context .profile .name {
  color: var(--color-black-90);
  font-size: 20px;
  font-weight: bold;
  line-height: 1.6;
}

.embla-lecture__slide__number .context .profile .position {
  font-size: 12px;
  line-height: 1.6;
}

.embla-lecture__slide__number .context .explain-container .explain {
  color: var(--color-black-90);
  font-size: 14px;
  line-height: 1.6;
}

.embla-lecture__controls {
  gap: 1.2rem;
  margin-top: 40px;
  display: none;
  @media (width < 769px) {
    display: grid;
  }
}

.embla-lecture__buttons {
  position: absolute;
  margin: auto;
  inset: -52px -50% 0 -50%;
  justify-content: space-between;
  align-items: center;
  width: calc(100% + var(--button-size));
  height: -moz-fit-content;
  height: fit-content;
  display: none;
  @media (width < 769px) {
    display: flex;
    width: 83vw;
  }
}

@media (width < 472px) {
  .embla-lecture__buttons {
    display: flex;
    width: 90%;
  }
}

.embla-lecture__button {
  -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
  width: var(--button-size);
  height: var(--button-size);
  z-index: 1;
  border-radius: 50%;
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (width < 1080px) {
  .embla-lecture__button {
    width: 4rem;
    height: 4rem;
  }
}

.embla-lecture__button:disabled {
  color: var(--detail-high-contrast);
}

.embla-lecture__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
}
@media (width < 1080px) {
  .embla-lecture__dots {
    gap: 8px;
  }
}

@media (width < 472px) {
  .embla-lecture__dots {
    width: 100%;
  }
}

.embla-lecture__dot {
  -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: var(--color-black-30);
  touch-action: manipulation;
  display: inline-flex;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
@media (width < 1080px) {
  .embla-lecture__dot {
    width: 1rem;
    height: 1rem;
  }
}
@media (width < 472px) {
  .embla-lecture__dot {
    width: 0.7rem;
    height: 0.7rem;
  }
}

.embla-lecture__dot:after {
  box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  content: "";
}
@media (width < 1080px) {
  .embla-lecture__dot:after {
    width: 1rem;
    height: 1rem;
  }
}
@media (width < 472px) {
  .embla-lecture__dot:after {
    width: 0.7rem;
    height: 0.7rem;
  }
}

.embla-lecture__dot--selected {
  background-color: var(--Dify-thema-blue, #2C44D7);
}
