.text-box-video-section {
  overflow: hidden;
  position: relative;
  width: 100%;
}
.text-box-video-section .text-box-video-section__media {
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  bottom: 0;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;

  iframe {
    height: 100%;
    inset: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
  }

  @media screen and (min-width: 769px) {
    iframe {
      height: 150%;
      left: -150%;
      top: -25%;
      max-width: none;
      width: 400%;
    }
  }

  @media screen and (min-width: 1280px) {
    iframe {
      height: 300%;
      left: auto;
      top: -100%;
      width: 100%;
    }
  }
}

.text-box-text-section {
  position: relative;
  height: fit-content;
  width: 100%;
  z-index: 2;
  padding: 0 0.5rem 0.5rem 0.5rem;
}
.text-box-text-section .text-box-text-section__inner {
  margin-top: -0.5rem;
  width: auto;
  padding: 3rem;
  background-color: rgb(var(--color-background));
  display: flex;
  flex-direction: column;
  gap: 2rem;
  &.left {
    align-items: start;
  }
  &.right {
    align-items: end;
  }
  .subtitle {
    font-size: 1.6rem;
    letter-spacing: 0.3rem;
  }
  h2 {
    margin: 0;
  }
  .button {
    gap: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .text-box-video-section {
    display: flex;
    flex-direction: column;
    height: auto;
  }
  .text-box-video-section .text-box-video-section__media {
    height: 24rem;
    position: relative;

    left: -150%;
    width: 400%;
  }
}

@media screen and (min-width: 769px) {
  .text-box-text-section {
    height: 100%;
    position: absolute;
    width: 100%;
    padding: 5rem;
    inset: 0;
    background-color: transparent !important;
  }
  .text-box-text-section .text-box-text-section__inner {
    min-width: 380px;
    padding: 3rem;
    margin: 0;
  }
}
