.carousel{
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  margin-top: -50px;
  position: relative;
}
.carousel .list .item{
  position: absolute;
  inset: 0;
  opacity:0;
  transition:opacity .8s ease;
}
.carousel .list .item:nth-child(1){
  opacity:1;
  z-index:2;
}
.carousel .list .item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel .list .item::before {
    content: "";
    position: absolute;
    pointer-events: none;
    top: -0px;
    left: -0px;
    width: calc(100% + 0px + 0px);
    height: calc(100% + 0px + 0px);
    border-color: inherit;
    background: #000000;
    opacity: 0.6;
}


.carousel .list .item .content{
    position: absolute;
    top: 25%;
    width: 1140px;
    max-width: 85%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 5%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 px 10px #0004;
    
}


.author svg {
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 16px;
    color: var(--ast-global-color-1);
    fill: var(--ast-global-color-1);
    margin-right: 10px;
}
.author {
    display: flex;
    align-items: anchor-center;
    padding: 5px 10px;
}
.carousel .list .item .content .author{
    font-size: 14px;
    background-color: #0F172966;
    width: 45%;
    border-radius: 20px;
}
/*.carousel .list .item .content .title{*/
/*    padding-bottom: 53px;*/
 
/*}*/
.carousel .list .item .content .title,
.carousel .list .item .content .topic{
  font-size: 65px;
  line-height: 73px;
  color: #fff;

}
.carousel .list .item .content .topic{
  color: #f1683a;
  padding-bottom: 31px;
}
.carousel .list .item .content .buttons {
    display: grid;
    grid-template-columns: repeat(2, 264px);
    grid-template-rows: 50px;
    gap: 15px;
    margin-top: 20px;
}
.carousel .list .item .content button{
  border: none;
  font-weight: 500;
  border-radius: 30px;
}
.carousel .list .item .content button:hover {
    color: #0f172a;
}
.carousel .list .item .content button:nth-child(2):hover{
    background-color: #565d1896;
    color: #eee;
    border: 1px solid #96a322;
}

.carousel .list .item .content button:nth-child(2){
 background-color: transparent; 
 color: #ffc03d;
 border: 1px solid #ffc03d;
}

.thumbnail{
  position: absolute;
  bottom: 35px;
  left: 50%;
  width: max-content;
  z-index: 100;
  display: flex;
  gap: 20px;
}

/* progress bar inside thumbnails */
.thumbnail .item{
  width:1900px;
  height:180px;
  position:relative;
  border-radius:8px;
  overflow:hidden;
}

.thumbnail .progress{
  position:absolute;
  bottom:0;
  left:0;
  height:4px;
  width:0%;
  background:#f1683a;
}

/* Active progress animation */
.thumbnail .item.active .progress{
  animation: thumbProgress 7s linear forwards;
}

@keyframes thumbProgress{
  from{width:0%;}
  to{width:100%;}
}

/*.thumbnail .time{*/
/*  position: absolute;*/
/*  bottom: -10px;*/
/*  left: 0;*/
/*  height: 4px;*/
/*  background: #f1683a;*/
/*  width: 0%;*/
/*}*/
.thumbnail .item{
  width: 150px;
  height: 180px;
  flex-shrink: 0;
  position: relative;
}
.thumbnail .item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}
.thumbnail .item .content{
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  color:#fff;
}
.thumbnail .item .content .title {
    font-weight: 500;
    font-size: 12px;
    line-height: 15px;
}
.arrows{
  position: absolute;
  top: 80%;
  right: 52%;
  width: 300px;
  max-width: 30%;
  display: flex;
  gap: 10px;
  align-items: center;
}
.arrows button{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #eee4;
  border: none;
  font-family: monospace;
  color: #fff;
  font-weight: bold;
  font-size: large;
  transition: .5s;
  z-index: 100;
}
.arrows button:hover{
  background-color: #eee;
  color: #555;
}
.carousel .list .item:nth-child(1){
  z-index: 1;
}
.carousel .list .item:nth-child(1) .author,
.carousel .list .item:nth-child(1) .title,
.carousel .list .item:nth-child(1) .topic,
.carousel .list .item:nth-child(1) .des,
.carousel .list .item:nth-child(1) .buttons{
  transform: translateY(50px);
  filter: blur(20px);
  opacity: 0;
  animation: showContent 0.5s 1s linear 1 forwards;
}
@keyframes showContent {
  to{
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}
.carousel .list .item:nth-child(1) .title{
  animation-delay: 1.2s;
}
.carousel .list .item:nth-child(1) .topic{
  animation-delay: 1.4s;
}
.carousel .list .item:nth-child(1) .des{
  animation-delay: 1.6s;
}
.carousel .list .item:nth-child(1) .buttons{
  animation-delay: 1.8s;
}

.carousel.next .list .item:nth-child(1) img{
  width: 150px;
  height: 220px;
  position: absolute;
  left: 50%;
  bottom: 50px;
  border-radius: 20px;
  animation: showImage 0.5s linear 1 forwards;
}
@keyframes showImage {
  to{
    width: 100%;
    height: 100%;
    left: 0;
    bottom: 0;
    border-radius: 0;
  }
}

.carousel.next .thumbnail .item:nth-last-child(1){
  width: 0;
  overflow: hidden;
  animation: showThumbnail .5s linear 1 forwards;
}
@keyframes showThumbnail {
  to{
    width: 150px;
  }
}
.carousel.next .thumbnail{
  transform: translateX(150px);
  animation: transformThumbnail .5s linear 1 forwards;
}
@keyframes transformThumbnail {
  to{
    transform: translateY(0);
  }
}

/* effect prev click */
.carousel.prev .list .item:nth-child(2){
  z-index: 2;
}
.carousel.prev .list .item:nth-child(2) img{
  position: absolute;
  bottom: 0;
  left: 0;
  animation: outImage 0.5s linear 1 forwards;
}
@keyframes outImage {
  to{
    width: 150px;
    height: 220px;
    border-radius: 20px;
    left: 50%;
    bottom: 50px;
  }
}
.carousel.prev .thumbnail .item:nth-child(1){
  width: 0;
  overflow: hidden;
  opacity: 0;
  animation: showThumbnail 0.5s linear 1 forwards;
}
.carousel.prev .list .item:nth-child(2) .author,
.carousel.prev .list .item:nth-child(2) .title,
.carousel.prev .list .item:nth-child(2) .topic,
.carousel.prev .list .item:nth-child(2) .des,
.carousel.prev .list .item:nth-child(2) .buttons{
  animation: contentOut 1.5s linear 1 forwards;
}
@keyframes contentOut {
  to{
    transform: translateY(-150px);
    filter: blur(20px);
    opacity: 0;
  }
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
  pointer-events: none;
}


.carousel.next .time,
.carousel.prev .time{
  width: 100%;
  animation: timeRunning 2s linear 1 forwards;
}
@keyframes timeRunning {
  to{
    width: 0;
  }
}
@media screen and (max-width: 678px){
  .carousel .list .item .content{
    padding-right: 0;
  }
  .carousel .list .item .content .title{
    font-size: 30px;
  }
}

@media (max-width:768px){

.thumbnail{
  bottom:20px;
  gap:10px;
}

.thumbnail .item{
  width:90px;
  height:130px;
}

.carousel .list .item .content .title{
  font-size:2.5em;
}

.carousel .list .item .content{
  padding-right:10%;
}

}