#slideshow {
  margin-top: 150px;
  position: relative;

  .slideshow-content-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 48px;

    height: calc(100% - 50px);

    border-radius: 36px;
    border: 1px solid #58476f;
    background: #190233;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);

    video,
    img {
      flex: 1;
    }

    .content {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 36px;

      p {
        font-size: 20px;
        line-height: 36px;
      }

      a {
        align-self: center;
      }
    }
  }
}

@media screen and (max-width: 1000px) {
  #slideshow .slideshow-content-block .content {
    gap: 16px;

    p {
      font-size: 14px;
      line-height: 1.2;
    }
  }
}

@media screen and (max-width: 1000px) {
  #slideshow {
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
  }
}

#slideshow .title {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;

  max-width: 500px;
}

@media screen and (max-width: 1000px) {
  #slideshow .title {
    position: static;
  }
}

#slideshow .title h1 {
  font-size: 36px;
  margin: 0;
  text-align: center;
}

@media screen and (max-width: 1000px) {
  #slideshow .title h1 {
    font-size: 24px;
  }
}

#slideshow slideshow-content {
  height: 600px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media screen and (max-width: 1000px) {
  #slideshow slideshow-content {
    height: 320px;
    align-items: center;
    justify-content: center;
  }
}

#slideshow slideshow-content .slideshow-content-block {
  position: absolute;
  /* height: 100%; */

  transform: translateX(50%);
  opacity: 0;

  transition:
    transform 1000ms ease,
    opacity 1500ms ease;

  pointer-events: none;

  > video {
    max-width: 60%;
    border-radius: 24px;
  }
}

@media screen and (max-width: 1000px) {
  #slideshow slideshow-content .slideshow-content-block {
    max-height: 320px;
    max-width: 90%;
    height: unset;
  }
}

@media screen and (max-width: 600px) {
  #slideshow slideshow-content {
    height: 400px;

    .slideshow-content-block {
      height: unset !important;
      max-height: 600px;
      flex-wrap: wrap;
      padding: 16px;

      > video {
        max-width: 100%;
      }
    }
  }
}

@media screen and (max-height: 600px) {
  #slideshow slideshow-content {
    height: 400px;

    .slideshow-content-block {
      flex-wrap: wrap;
      padding: 16px;

      > video {
        flex: unset;
        max-height: 100%;
      }
    }
  }
}

#slideshow slideshow-content .slideshow-content-block:has(~ .active) {
  transform: translateX(-50%);
}

#slideshow slideshow-content .slideshow-content-block.active {
  transform: translateX(0);
  opacity: 1;
  z-index: 1;
  height: calc(100% - 50px);
  pointer-events: all;
}

#slideshow slideshow-nodes {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 2;

  display: flex;
  justify-content: center;
  gap: 8px;
}

@media screen and (max-width: 1000px) {
  #slideshow slideshow-nodes {
    position: static;
  }
}

#slideshow slideshow-nodes node {
  flex: 0 0 24px;
  height: 24px;
  border-radius: 24px;

  background-color: #502a9577;
  cursor: pointer;

  transition:
    background-color 120ms ease,
    flex 300ms ease;
}

#slideshow slideshow-nodes node.active {
  flex: 0 0 70px;
  background-color: #502a95ff;
}

#slideshow slideshow-nodes node:hover {
  background-color: #502a95aa;
}
