/* carousel */
.slideshow-v2__carousel {
  height: 90vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0 0 0 0;
}

.slideshow-v2__item img {
  box-shadow: 0px 5px 10px rgba(255, 255, 255, 0.2392156863) !important;
}

.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item .slideshow-v2__content {
  position: absolute;
  top: 20%;
  width: 130rem;
  max-width: 80%;
  left: 50%;
  transform: translateX(-50%);
  padding-right: 30%;
  box-sizing: border-box;
  color: rgba(var(--color-foreground));
  text-shadow: 0 5px 10px rgba(var(--color-background), 0.15);
  z-index: 1;
}

.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item .slideshow-v2__author {
  font-family: "Bebas Neue", sans-serif;
  font-weight: bold;
  letter-spacing: 10px;
}

.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item .slideshow-v2__title,
.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item .slideshow-v2__topic {
  font-size: 5em;
  font-weight: bold;
  line-height: 1.3em;
}

.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item .slideshow-v2__topic {
  color: rgba(var(--color-accent));
}

.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item .slideshow-v2__buttons {
  display: grid;
  grid-template-columns: repeat(2, 130px);
  grid-template-rows: 40px;
  gap: 5px;
  margin-top: 60px;
}

/* thumbail */
.slideshow-v2__thumbnail {
  position: absolute;
  bottom: 50px;
  left: 50%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 20px;
}

.slideshow-v2__thumbnail .slideshow-v2__item {
  width: 150px;
  height: 220px;
  flex-shrink: 0;
  position: relative;
}

.slideshow-v2__thumbnail .slideshow-v2__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.slideshow-v2__thumbnail .slideshow-v2__item .slideshow-v2__content {
  color: rgba(var(--color-foreground));
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
}

.slideshow-v2__thumbnail .slideshow-v2__item .slideshow-v2__content .slideshow-v2__title {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 500;
}

.slideshow-v2__thumbnail .slideshow-v2__item .slideshow-v2__content .slideshow-v2__description {
  font-weight: 300;
}

.slideshow-v2__des {
  margin-top: 2rem;
}

/* arrows */
.slideshow-v2__arrows {
  position: absolute;
  top: 80%;
  right: 52%;
  z-index: 100;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
}

.slideshow-v2__arrows button {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(238, 238, 238, 0.2666666667);
  border: none;
  color: #fff;
  font-weight: bold;
  transition: 0.5s;
}

.slideshow-v2__arrows button:hover {
  background-color: #fff;
  color: #000;
}

/* animation */
.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item:nth-child(1) {
  z-index: 1;
}

/* animation text in first item */
.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item:nth-child(1) .slideshow-v2__content .slideshow-v2__author,
.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item:nth-child(1) .slideshow-v2__content .slideshow-v2__title,
.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item:nth-child(1) .slideshow-v2__content .slideshow-v2__topic,
.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item:nth-child(1) .slideshow-v2__content .slideshow-v2__des,
.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item:nth-child(1) .slideshow-v2__content .slideshow-v2__buttons {
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.3s 0.3s linear 1 forwards;
}

@keyframes showContent {
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
  }
}
.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item:nth-child(1) .slideshow-v2__content .slideshow-v2__title {
  animation-delay: 1.2s !important;
}

.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item:nth-child(1) .slideshow-v2__content .slideshow-v2__topic {
  animation-delay: 1.4s !important;
}

.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item:nth-child(1) .slideshow-v2__content .slideshow-v2__des {
  animation-delay: 1.6s !important;
}

.slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item:nth-child(1) .slideshow-v2__content .slideshow-v2__buttons {
  animation-delay: 1.8s !important;
}

/* create animation when next click */
.slideshow-v2__carousel.next .slideshow-v2__list .slideshow-v2__item:nth-child(1) img {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 30px;
  animation: showImage 0.5s linear 1 forwards;
}

@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}
.slideshow-v2__carousel.next .slideshow-v2__thumbnail .slideshow-v2__item:nth-last-child(1) {
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}

.slideshow-v2__carousel.prev .slideshow-v2__list .slideshow-v2__item img {
  z-index: 100;
}

@keyframes showThumbnail {
  from {
    width: 0;
    opacity: 0;
  }
}
.slideshow-v2__carousel.next .slideshow-v2__thumbnail {
  animation: effectNext 0.5s linear 1 forwards;
}

@keyframes effectNext {
  from {
    transform: translateX(150px);
  }
}
/* prev click */
.slideshow-v2__carousel.prev .slideshow-v2__list .slideshow-v2__item:nth-child(2) {
  z-index: 2;
}

.slideshow-v2__carousel.prev .slideshow-v2__list .slideshow-v2__item:nth-child(2) img {
  animation: outFrame 0.5s linear 1 forwards;
  position: absolute;
  bottom: 0;
  left: 0;
}

@keyframes outFrame {
  to {
    width: 150px;
    height: 220px;
    bottom: 50px;
    left: 50%;
    border-radius: 20px;
  }
}
.slideshow-v2__carousel.prev .slideshow-v2__thumbnail .slideshow-v2__item:nth-child(1) {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}

.slideshow-v2__carousel.next .slideshow-v2__arrows button,
.slideshow-v2__carousel.prev .slideshow-v2__arrows button {
  pointer-events: none;
}

.slideshow-v2__carousel.prev .slideshow-v2__list .slideshow-v2__item:nth-child(2) .slideshow-v2__content .slideshow-v2__author,
.slideshow-v2__carousel.prev .slideshow-v2__list .slideshow-v2__item:nth-child(2) .slideshow-v2__content .slideshow-v2__title,
.slideshow-v2__carousel.prev .slideshow-v2__list .slideshow-v2__item:nth-child(2) .slideshow-v2__content .slideshow-v2__topic,
.slideshow-v2__carousel.prev .slideshow-v2__list .slideshow-v2__item:nth-child(2) .slideshow-v2__content .slideshow-v2__des,
.slideshow-v2__carousel.prev .slideshow-v2__list .slideshow-v2__item:nth-child(2) .slideshow-v2__content .slideshow-v2__buttons {
  animation: contentOut 1.5s linear 1 forwards !important;
}

@keyframes contentOut {
  to {
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}
@media screen and (max-width: 678px) {
  .slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item .slideshow-v2__content {
    padding-right: 0;
  }
  .slideshow-v2__carousel .slideshow-v2__list .slideshow-v2__item .slideshow-v2__content .slideshow-v2__title {
    font-size: 30px;
  }
}