.embla-lecture {
  position: relative;
  margin: auto;
  --slide-spacing: 18px;
  --slide-size: calc((100% - (var(--slide-spacing) * 2)) / 3); /* PCは3枚均等 */
  --button-size: 6.4rem;
}

@media (width < 769px) {
  .embla-lecture {
    --slide-spacing: 20px;
    --slide-size: 76.9%; /* 1.3枚表示 (=100/1.3) */
    width: 100vw;
    margin-inline: calc(50% - 50vw);
  }
}

.embla-lecture__viewport {
  overflow: hidden;
  position: relative;
  padding: 2px;
}

.embla-lecture__container {
  display: flex;
  touch-action: pan-y pinch-zoom;
  margin-left: calc(var(--slide-spacing) * -1);
  max-width: 1000px;
}

.embla-lecture__slide {
  flex: 0 0 var(--slide-size);
  min-width: 0;
  padding-left: var(--slide-spacing);
  display: flex;
}

.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 {
  display: grid;
  gap: 1.2rem;
  margin-top: 40px;
}

.embla-lecture__buttons {
  position: absolute;
  margin: auto;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: fit-content;
}

@media (width < 769px) {
  .embla-lecture__buttons {
    width: 83vw;
  }
}
@media (width < 472px) {
  .embla-lecture__buttons {
    width: 90%;
  }
}

.embla-lecture__button {
  -webkit-tap-highlight-color: rgba(var(--text-high-contrast-rgb-value), 0.5);
  appearance: none;
  background-color: transparent;
  touch-action: manipulation;
  display: inline-flex;
  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);
  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 {
  background-color: #CCCCCC;
  touch-action: manipulation;
  display: inline-flex;
  cursor: pointer;
  border: 0;
  padding: 0;
  margin: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
}
@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 {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  content: "";
  box-shadow: inset 0 0 0 0.2rem var(--detail-medium-contrast);
}
@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: #C5A235;
}
