slideshow-v3 {
  height: 90vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
}

.slideshow-v3 slideshow-v3-item {
  position: absolute;
  inset: 0;
}
.slideshow-v3 slideshow-v3-item .xo-image,
.slideshow-v3 slideshow-v3-item img {
  width: 100%;
  height: 100%;
  z-index: 0;
}

slideshow-v3-list {
  height: 100%;
}

.slideshow-v3__content {
  position: absolute;
  top: 10%;
  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);
}
@media (min-width: 768px) {
  .slideshow-v3__content {
    top: 20%;
  }
}

.slideshow-v3__title {
  font-family: var(--font-custom-family);
  font-size: 5em;
  font-weight: bold;
  line-height: 1.3em;
}
.slideshow-v3__title span {
  color: rgba(var(--color-accent));
}

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

.slideshow-v3__buttons {
  margin-top: 6rem;
}
@media (max-width: 767px) {
  .slideshow-v3__buttons {
    display: grid;
    grid-template-columns: repeat(2, 13rem);
    grid-template-rows: 4rem;
    gap: 1rem;
    margin-top: 3rem;
  }
}

/* thumbail */
slideshow-v3-thumbnail {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 2rem;
}

.slideshow-v3 slideshow-v3-thumbnail-item {
  position: relative;
  width: 15rem;
  height: 22rem;
  flex-shrink: 0;
  border-radius: 3rem;
  overflow: hidden;
}
.slideshow-v3 slideshow-v3-thumbnail-item .xo-image,
.slideshow-v3 slideshow-v3-thumbnail-item img {
  width: 100%;
  height: 100%;
  border-radius: 3rem;
}

slideshow-v3-thumbnail-item:last-child {
  box-shadow: 0px 5px 10px rgba(255, 255, 255, 0.2392156863) !important;
}

/* animation */
slideshow-v3-item:first-child {
  z-index: 1;
}

/* animation text in first item */
slideshow-v3-item:first-child .slideshow-v3__title,
slideshow-v3-item:first-child .slideshow-v3__des,
slideshow-v3-item:first-child .slideshow-v3__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-v3-item:first-child .slideshow-v3__title {
  animation-delay: 1.2s !important;
}

slideshow-v3-item:first-child .slideshow-v3__des {
  animation-delay: 1.4s !important;
}

slideshow-v3-item:first-child .slideshow-v3__buttons {
  animation-delay: 1.6s !important;
}

/* create animation when next click */
slideshow-v3.next slideshow-v3-item:first-child .xo-image {
  width: 150px;
  height: 220px;
  position: absolute;
  bottom: 50px;
  left: 50%;
  border-radius: 3rem;
  animation: showImage 0.5s linear 1 forwards;
  background-color: #ccc;
}

@keyframes showImage {
  to {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
}
slideshow-v3.next slideshow-v3-thumbnail-item:last-child {
  overflow: hidden;
  animation: showThumbnail 0.5s linear 1 forwards;
}

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

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

slideshow-v3.prev slideshow-v3-item:nth-child(2) .xo-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  animation: outFrame 0.5s linear 1 forwards;
  background-color: #ccc;
}

@keyframes outFrame {
  to {
    width: 150px;
    height: 220px;
    bottom: 50px;
    left: 50%;
    border-radius: 3rem;
  }
}
slideshow-v3.prev slideshow-v3-thumbnail-item:first-child {
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}

slideshow-v3.next .slideshow-v3__arrows button,
slideshow-v3.prev .slideshow-v3__arrows button {
  pointer-events: none;
}

slideshow-v3.prev slideshow-v3-item:nth-child(2) .slideshow-v3__title,
slideshow-v3.prev slideshow-v3-item:nth-child(2) .slideshow-v3__des,
slideshow-v3.prev slideshow-v3-item:nth-child(2) .slideshow-v3__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-v3__content {
    padding-right: 0;
  }
  .slideshow-v3__title {
    font-size: 30px;
  }
}
/* arrows */
.slideshow-v3__arrows {
  position: absolute;
  top: 80%;
  right: 52%;
  z-index: 100;
  width: 30rem;
  max-width: 30%;
  display: flex;
  gap: 1rem;
  align-items: center;
}