.my-video-section {
  display: block;
  width: 100%;
  padding: 16px;
}

body.my-video-section-modal-open {
  overflow: hidden;
}

.my-video-section__media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: var(--my-video-section-aspect-ratio-pc, 16/9);
  background-color: rgb(var(--color-image-background));
}

.my-video-section__image {
  width: 100%;
  height: 100%;
}

.my-video-section__image img,
.my-video-section__image svg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.my-video-section__image--mobile {
  display: none;
}

.my-video-section__image--desktop {
  display: block;
}

.my-video-section__video-player,
.my-video-section__video-player .theme-video-media,
.my-video-section__video-player .theme-video-media__poster,
.my-video-section__video-player .theme-video-media__media {
  width: 100%;
  height: 100%;
}

.my-video-section__video-player .theme-video-media__play-button {
  display: none;
}

.my-video-section__video-player .theme-video-media__poster img,
.my-video-section__video-player .theme-video-media__poster svg,
.my-video-section__video-player .theme-video-media__media video,
.my-video-section__video-player .theme-video-media__media iframe {
  object-fit: cover;
  object-position: center;
}

.my-video-section__preview-video--mobile,
.my-video-section__full-video-player--mobile {
  display: none;
}

.my-video-section__preview-video--desktop,
.my-video-section__full-video-player--desktop {
  display: block;
}

.my-video-section__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-color: rgba(14, 20, 36, calc(var(--my-video-section-overlay-opacity, 40) / 100));
  pointer-events: none;
}

.my-video-section__content-wrap {
  position: absolute;
  z-index: 2;
  top: 200px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  text-align: center;
}

.my-video-section__content {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 680px;
  padding: 0 24px;
}

.my-video-section__title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 59px;
  color: #fff;
}

.my-video-section__desc {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 34px;
  color: rgb(255 255 255 / 82%);
}

.my-video-section__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 30px;
}

.my-video-section__button {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 24px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  border-radius: 24px;
  overflow: hidden;
}

.my-video-section__button .my-video-section__button-text {
  position: relative;
  z-index: 1;
}

.my-video-section__button--link {
  color: var(--color-black-1);
  background-color: #fff;
}

.my-video-section__button--link::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 0;
  height: calc(100% - 2px);
  background-color: var(--color-main-hover);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.my-video-section__button--link:hover::before {
  width: calc(100% - 2px);
}

.my-video-section__button--play {
  color: #fff;
  cursor: pointer;
  background: unset;
  border: 2px solid #fff;
  padding: 10px 24px;
}

.my-video-section__button--play:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.my-video-section__play-icon {
  width: 18px;
  height: 18px;
}

.my-video-section__full-video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
}

.my-video-section__full-video-modal.is-open {
  display: flex;
}

.my-video-section__full-video-backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--color-black-1);
}

.my-video-section__full-video-dialog {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100vw - 48px));
}

.my-video-section__full-video-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.my-video-section__full-video-wrapper {
  width: 100%;
  overflow: hidden;
  background: #000;
  border-radius: 8px;
}

.my-video-section__full-video-player,
.my-video-section__full-video-player .theme-video-media,
.my-video-section__full-video-player .theme-video-media__poster,
.my-video-section__full-video-player .theme-video-media__media {
  width: 100%;
  height: 100%;
}

@media (max-width: 991px) {
  .my-video-section__media {
    aspect-ratio: var(--my-video-section-aspect-ratio-mobile, 9/16);
  }

  .my-video-section__preview-video--desktop,
  .my-video-section__full-video-player--desktop {
    display: none;
  }

  .my-video-section__preview-video--mobile,
  .my-video-section__full-video-player--mobile {
    display: block;
  }

  .my-video-section {
    padding: var(--main-padding);
  }

  .my-video-section__image--mobile {
    display: block;
  }

  .my-video-section__image--desktop {
    display: none;
  }

  .my-video-section__content-wrap {
    top: 60px;
  }

  .my-video-section__content {
    padding: 0 15px;
  }

  .my-video-section__title {
    font-size: 20px;
    line-height: 30px;
  }

  .my-video-section__desc {
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 22px;
  }

  .my-video-section__buttons {
    gap: 16px;
    flex-direction: column;
    width: fit-content;
    margin: 0 auto;
    margin-top: 16px;
  }

  .my-video-section__button {
    width: 100%;
    min-width: 147px;
    min-height: 32px;
    padding: 6px 16px;
    font-size: 14px;
    line-height: 20px;
  }

  .my-video-section__button--play {
    padding: 4px 16px;
  }

  .my-video-section__play-icon {
    width: 16px;
    height: 16px;
  }

  .my-video-section__full-video-dialog {
    width: calc(100vw - 24px);
  }
}
