@keyframes scaleUp {
  from {
    transform: scale(0.85);
  }
  to {
    transform: scale(1);
  }
}

.output {
  @media (max-width: 768px) {
    padding-top: 72px;
  }
}

.output .heading-component {
  @media (min-width: 769px) {
    padding-top: min(calc(100vw * (100 / 1280)), 100px);
  }
  .english {
    font-size: min(calc(100vw * (180 / 1280)), 180px);
    @media (max-width: 768px) {
      font-size: calc(100vw * (88 / 375));
    }
  }
}

.splide.splide--output {
  max-width: 100%;
  margin-top: 40px;

  .splide__track {
    position: relative;

    .splide__list {
      align-items: flex-end;

      .splide__slide {
        width: 515px;
        overflow: hidden;
        cursor: pointer;
        @media (max-width: 768px) {
          width: calc(100vw * (231 / 375));
        }

        &.is-active {
          width: 686px;
          @media (max-width: 768px) {
            width: calc(100vw * (256 / 375));
          }
          & img {
            animation: scaleUp 0.5s forwards;
            border-radius: 20px;
            @media (max-width: 768px) {
              border-radius: calc(100vw * (8 / 375));
            }
          }
        }

        & img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          border-radius: 15px;
          transform-origin: center bottom;
          @media (max-width: 768px) {
            border-radius: calc(100vw * (8 / 375));
          }
        }
      }
    }

    .splide__arrows {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: 768px;
      height: 0px;
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      @media (max-width: 768px) {
        width: calc(100vw * (310 / 375));
      }
      .splide__arrow {
        @media (max-width: 768px) {
          width: calc(100vw * (40 / 375));
          height: calc(100vw * (40 / 375));
          & svg {
            width: 100%;
            height: 100%;
            object-fit: contain;
          }
        }
      }
    }
  }
}

.splide.splide--outputThumb {
  max-width: 100%;
  margin-top: 16px;
  @media (max-width: 768px) {
    margin-top: 0px;
  }

  .splide__list {
    .splide__slide {
      width: 228px;
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      @media (max-width: 768px) {
        width: calc(100vw * (60 / 375));
        border-radius: 2px;
      }

      &:not(.is-active) {
        opacity: 0.2;
      }

      & img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
  }

  .splide__arrows {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    gap: 20px;

    .splide__arrow {
      width: 12px;
      height: 12px;
      &.splide__arrow--prev {
        order: -1;
        transform: scaleX(-1);
      }
      & svg {
        width: 100%;
        height: 100%;
        object-fit: contain;
      }
    }

    .splide__pagination {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      transform: translateY(-1px);
      & li {
      }
      & button {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ccc;
        cursor: pointer;

        &.is-active {
          background-color: #333678;
        }
      }
    }
  }
}

.output-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;

  &.is-open {
    visibility: visible;
    opacity: 1;
  }

  .output-modal__inner {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 95vw;
  }

  .output-modal__close {
    width: 24px;
    margin-left: auto;
    cursor: pointer;
  }

  .output-modal__iframeWrapper {
    aspect-ratio: var(--modal-video-aspect-ratio, 16 / 9);
    max-height: calc(100dvh - 300px);
    width: 100%;
    margin: auto;
    & iframe {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }

  .output-modal__typo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1em;
    @media (max-width: 768px) {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  .output-modal__category {
    padding: 8px 10px;
    width: max-content;
    border-radius: 30px;
    background: linear-gradient(90deg, #f9c0ff 0%, #7fbbff 100%);
    color: #000;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
  }

  .output-modal__tags {
    color: #ffffff;
    font-size: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1em;
  }
}

.output-typo {
  display: flex;
  flex-direction: column;
  gap: 14px;
  .output-typo__upper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    @media (max-width: 768px) {
      gap: 24px;
    }
  }
  .output-typo__lower {
    padding-inline: 40px;
    @media (max-width: 768px) {
      padding-inline: calc(100vw * (16 / 375));
      line-height: 1.8;
      font-size: calc(100vw * (14 / 375));
    }
  }
}

.cross-border-bg-wrapper {
  position: relative;
  z-index: auto;
  overflow: hidden;
  .cross-border-bg-wrapper__img {
    position: absolute;
    top: min(calc(100vw * (-400 / 1440)), -400px);
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    @media (max-width: 768px) {
      top: calc(100vw * (120 / 375));
    }
  }
}
