.events-section {
  background-color: var(--colorPrimary);
  padding-top: 100px;
  padding-bottom: 100px;
}

.events-section .wrapper {
  width: 100%;
  height: 400px;
  display: flex;
}

.events-section .wrapper .left {
  height: 100%;
  width: 40%;
}

.events-section .wrapper .left .buttons {
  width: 100%;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.events-section .wrapper .left .buttons .nav {
  margin: 0 20px;
  width: 40px;
  height: 40px;
  border: none;
  aspect-ratio: 1;
  border-radius: 100%;
  background-color: var(--colorSecondary);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.events-section .wrapper .left .buttons .nav i {
  color: white;
  font-size: 30px;
}
.carousel {
  height: calc(100% - 50px);
  width: 100%;
  /* perspective: 400px; */
  /* margin-top: 5%; */
}
.carousel .carousel-item {
  width: 300px;
  height: 300px;
  aspect-ratio: 1 / 1;
  /* height: 500px; */
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  animation: animate 2s infinite alternate;
  border-radius: 5px;
  background-color: white;
  overflow: hidden;
}

.carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.events-section .info {
  width: 60%;
  height: 100%;
  padding-left: 60px;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.events-section .info .name {
  font-size: 40px;
  font-weight: bold;
  color: var(--colorSecondary);
  margin-bottom: 30px;
}

.events-section .info .text {
  /* color: var(--textLight); */
  color: white;
}

@keyframes animate {
  to {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  }
}

@media (max-width: 768px) {
  .events-section .wrapper {
    flex-direction: column;
    height: unset;
  }

  .events-section .wrapper .left {
    width: 100%;
    height: 400px;
    margin-bottom: 20px;
  }

  .carousel {
    width: 100%;
    /* height: 400px; */
    margin-bottom: 20px;
  }

  .events-section .info {
    width: 100%;
    height: unset;
    padding-left: 0;
  }
}
