@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Source+Sans+3:ital,wght@0,200..900;1,200..900&display=swap');

.w-90{
    width: 90%;
}

.project-carousel{
  margin: auto;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

.carousel-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;                   
  margin-bottom: 1rem;
}

.carousel-content:nth-child(2n + 1) .project__carousel__item:nth-child(2n) {
  aspect-ratio: 518.51 / 458.83;
}
.carousel-content:nth-child(2n + 1) .project__carousel__item:nth-child(2n + 1) {
  aspect-ratio: 518.51 / 543.7;
}

.carousel-content:nth-child(2n) .project__carousel__item:nth-child(2n){
  aspect-ratio: 518.51 / 543.7;
}

.carousel-content:nth-child(2n) .project__carousel__item:nth-child(2n + 1){
  aspect-ratio: 518.51 / 458.83;
}

.project__carousel__item {
  background-color: white;
  height: fit-content;
  margin-bottom: 1rem;
  overflow: hidden;
  display: block;
  width: 100%;
  border-radius: 33.15px;
}

.project__carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 33.15px;
}

.carousel__container{
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1920 / 3455.16;
}

@keyframes carousel-slide-vertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(calc(-100% - 1rem));
  }
}

.project-link{
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  margin-block: 1rem;
  cursor: pointer;
  margin-left: 33.15px;
}


.project-carousel{
  animation: carousel-slide-vertical 20s linear infinite;
}

.project-link__text{
  font-family: "Source Sans 3", serif;
  font-size: 34.48px;
  font-weight: 600;
  line-height: 43.34px;
  color: #380873;
}

h2.title{
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  font-family: "Montserrat", serif;
  line-height: 64.87px;
  color: #310566;
}

.color-2{
  color: #FFC300;
}

.text__underline{
  width: 66.67px;
  height: 10.81px;
  border-radius: 20.53px;
  background-color: #FFC300;
  margin-left: 1rem;
  position: relative;
  margin-bottom: 2rem;
}

.text__underline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -1rem;
  transform: translateY(-50%);
  width: 10.81px;
  height: 10.81px;
  border-radius: 50%;
  background-color: #FFC300;
}

/* on mobile do on row */
@media (max-width: 768px) {
  .project-carousel{
    width: 95%;
    gap: 10px;
  }

  .carousel-content{
    gap: 0;
  }

  .project__carousel__item img{
    border-radius: 16px;
  }

  .project__carousel__item{
    border-radius: 16px;
    margin-bottom: 0;
  }

  .project-link{
    margin-left: 16px;
  }

  h2.title{
    font-size: 30px;
    margin-bottom: 0;
  }

  .text__underline{
    margin-bottom: 1rem;
  }

  .project-link__text{
    font-size: 16px;
  }

  .project-link svg{
    width: 20px;
    height: 20px;
  }

  .carousel-content:nth-child(2n + 1) .project__carousel__item:nth-child(2n) {
    aspect-ratio: 4 / 5;
  }
  .carousel-content:nth-child(2n + 1) .project__carousel__item:nth-child(2n + 1) {
    aspect-ratio: 9 / 16;
  }
  
  .carousel-content:nth-child(2n) .project__carousel__item:nth-child(2n){
    aspect-ratio: 9 / 16;
  }
  
  .carousel-content:nth-child(2n) .project__carousel__item:nth-child(2n + 1){
    aspect-ratio: 4 / 5;
  }
}