@import url("https://fonts.googleapis.com/css2?family=Montserrat&display=swap");
@-webkit-keyframes carousel-animate {
  0% {
    visibility: hidden;
    opacity: 0;
    transform: translateX(200%) scale(0.7);
  }
  3%, 10% {
    visibility: visible;
    opacity: 0.8;
    transform: translateX(100%) scale(0.9);
  }
  13%, 20% {
    visibility: visible;
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  23%, 30% {
    visibility: visible;
    opacity: 0.8;
    transform: translateX(-100%) scale(0.9);
  }
  33% {
    visibility: visible;
    opacity: 0;
    transform: translateX(-200%) scale(0.9);
  }
  100% {
    visibility: hidden;
    opacity: 0;
    transform: translateX(-200%) scale(0.7);
  }
}
@keyframes carousel-animate {
  0% {
    visibility: hidden;
    opacity: 0;
    transform: translateX(200%) scale(0.3);
  }
  3%, 10% {
    visibility: visible;
    opacity: 0.8;
    transform: translateX(100%) scale(0.6);
  }
  13%, 20% {
    visibility: visible;
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  23%, 30% {
    visibility: visible;
    opacity: 0.8;
    transform: translateX(-100%) scale(0.6);
  }
  33% {
    visibility: visible;
    opacity: 0;
    transform: translateX(-200%) scale(0.3);
  }
  100% {
    visibility: hidden;
    opacity: 0;
    transform: translateX(-200%) scale(0.1);
  }
}
:root {
  --light: 0;
  --light: 0;
  --max-width-post: 420px;
  --primary: hsl(
  	calc(64 + 220 * var(--light)),
  	calc(77% - 7% * var(--light)),
  	calc(79% - 56% * var(--light))
  );
  --bg: hsl(
  	calc(284 - 220 * var(--light)),
  	calc(70% + 7% * var(--light)),
  	calc(23% + 56% * var(--light))
  );
  --text-primary: hsl(
  	calc(60 * var(--light)),
  	calc(19% * var(--light)),
  	calc(97% - 89% * var(--light))
  );
  --font-size-sm: clamp(0.7rem, 0.91vw + 0.47rem, 1.2rem);
  --font-size-base: clamp(0.88rem, 1.14vw + 0.59rem, 1.5rem);
  --font-size-md: clamp(1.09rem, 1.42vw + 0.74rem, 1.88rem);
  --font-size-lg: clamp(1.37rem, 1.78vw + 0.92rem, 2.34rem);
  --font-size-xl: clamp(1.71rem, 2.22vw + 1.15rem, 2.93rem);
  --font-size-xxl: clamp(2.14rem, 2.77vw + 1.44rem, 3.66rem);
  --font-size-xxxl: clamp(2.67rem, 3.47vw + 1.8rem, 4.58rem);
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

@supports (height: 100dvh) {
  body {
    height: 90dvh;
  }
}

.container {
  --container-padding-horizontal: 32px;
  position: relative;
background-color: rgb(255,255,255, 0.3);
  padding-inline: var(--container-padding-horizontal);
  display: grid;
  place-items: center;
  height: 70%;
}

.carousel {
  pointer-events: none;
  position: absolute;
  -webkit-padding-before: 67px;
          padding-block-start: 67px;
  -webkit-padding-after: max(24px, calc(29px + var(--font-size-md)));
          padding-block-end: max(24px, calc(29px + var(--font-size-md)));
  perspective: 100px;
  width: 100%;
}
@media (max-width: 400px) {
  .carousel {
    -webkit-padding-after: 52px;
            padding-block-end: 52px;
  }
}
.carousel__wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  height: 31.2vh;
}
.carousel .item {
  position: absolute;
  max-width: 400px;
  height: 100%;
  margin-inline: var(--container-padding-horizontal);
  opacity: 0;
  will-change: transform, opacity;
  -webkit-animation: carousel-animate 27s cubic-bezier(0.37, 0, 0.63, 1) infinite;
          animation: carousel-animate 27s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}
@media (max-width: 568px) {
  .carousel .item {
    margin-inline: calc(var(--container-padding-horizontal) + 1px);
  }
}
.carousel .item:nth-child(1) {
  -webkit-animation-delay: calc(2.7s * -1);
          animation-delay: calc(2.7s * -1);
}
.carousel .item:nth-child(2) {
  -webkit-animation-delay: calc(2.7s * 0);
          animation-delay: calc(2.7s * 0);
}
.carousel .item:nth-child(3) {
  -webkit-animation-delay: calc(2.7s * 1);
          animation-delay: calc(2.7s * 1);
}
.carousel .item:nth-child(4) {
  -webkit-animation-delay: calc(2.7s * 2);
          animation-delay: calc(2.7s * 2);
}
.carousel .item:nth-child(5) {
  -webkit-animation-delay: calc(2.7s * 3);
          animation-delay: calc(2.7s * 3);
}
.carousel .item:nth-child(6) {
  -webkit-animation-delay: calc(2.7s * 4);
          animation-delay: calc(2.7s * 4);
}
.carousel .item:nth-child(7) {
  -webkit-animation-delay: calc(2.7s * 5);
          animation-delay: calc(2.7s * 5);
}
.carousel .item:nth-child(8) {
  -webkit-animation-delay: calc(2.7s * 6);
          animation-delay: calc(2.7s * 6);
}
.carousel .item:nth-child(9) {
  -webkit-animation-delay: calc(2.7s * 7);
          animation-delay: calc(2.7s * 7);
}
.carousel .item:nth-child(10) {
  -webkit-animation-delay: calc(2.7s * 7);
          animation-delay: calc(2.7s * 7);
}
.carousel .item:last-child {
  -webkit-animation-delay: calc(-2.7s * 2);
          animation-delay: calc(-2.7s * 2);
}
.carousel img {
  max-width: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  height: 100%;
}