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

.media .heading-component {
  @media (max-width: 768px) {
    padding-top: 60px;
  }

  .english {
    font-size: 180px;
    @media (max-width: 768px) {
      font-size: 88px;
    }
  }
}

.media-carousel-caption {
  border-top: 1px solid #E6E6E9;
  border-bottom: 1px solid #E6E6E9;
  margin: 64px calc(50% - 50vw) 0;
  width: 100vw;
  height: 150px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  @media (max-width: 768px) {
    height: 110px;
    margin-top: 50px;
  }
  .media-carousel-caption__item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    visibility: hidden;
    opacity: 0;
    width: max-content;
    &.is-active {
      visibility: visible;
      opacity: 1;
    }
  }
}

.splide.splide--media {
  width: 100vw;
  margin-inline: calc(50% - 50vw);  
  margin-top: 40px;
  @media (max-width: 768px) {
    margin-top: 24px;
  }

  .splide__track {
    position: relative;

    .splide__list {
      align-items: flex-end;

      .splide__slide {
        width: min(75%, 692px);
        overflow: hidden;
        cursor: pointer;
        transition: opacity 0.5s;
        opacity: 0.5;

        @media (max-width: 768px) {
          width: calc(100vw * (231 / 375));
        }

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

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

    .splide__arrows {
      position: absolute;
      top: 0;
      right: 0;
      bottom: 0;
      left: 0;
      width: min(100%, 890px);
      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;
          }
        }
      }
    }
  }

  .media-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    @media (max-width: 768px) {
      margin-top: calc(100vw * (20 / 375));
    }
    .media-pagination__arrow {
      width: 12px;
      height: 12px;

      & svg {
        width: 100%;
        height: 100%;
        object-fit: contain;

        &.media-pagination__prev {
          transform: scaleX(-1);
        }
      }
    }
  
    .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: #D9D9D9;
        cursor: pointer;
  
        &.is-active {
          background-color: #1E293B;
        }
      }
    }
  }
}

.media-modal {
  position: fixed;
  top: calc(50% + 80px);
  left: 50%;
  translate: -50% -50%;
  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;
  }

  .media-modal__inner {
    /* display: flex;
    flex-direction: column;
    gap: 15px; */
    width: 95vw;
    z-index: 9999;
  }

  .media-modal__close {
    width: 24px;
    margin-left: auto;
    cursor: pointer;
    z-index: 9999;
  }

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

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

  /* .media-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;
  } */

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