@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

|* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to left top, #031a9a, #8b53ff);
  padding: 0 35px;
  font-family: "Poppins", sans-serif;
}

.wrapper {
  max-width: 1100;
  width: 100%;
  position: relative;
}

.wrapper i {
  height: 50px;
  width: 50px;
  background-color: #fff;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.wrapper i:first-child {
  /* left: -15px; */
  left: 10px;
}

.wrapper i:last-child {
  right: -25px;
}
.wrapper .carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 3) - 12px);
  gap: 16px;
  overflow: hidden;
}

.carousel .card {
  height: 342px;
  list-style: none;
  background-color: #fff;
  border-radius: 8px;
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.carousel .card {
  cursor: grab;
  user-select: none;
}

.carousel :where(.card, .img) {
  display: flex;
  justify-content: center;
  align-items: center;
}

.card .img {
  width: 150px;
  height: 150px;
  background-color: #8b53ff;
  border-radius: 50%;
  cursor: pointer;
}

.card .img img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
}

.card h2 {
  font-size: 1.56rem;
  font-weight: 500;
  margin: 30px 0 5px;
}

.card span {
  color: #6a6d78;
  font-size: 1.31rem;
}

@media screen and (max-width: 900px) {
  .wrapper .carousel {
    grid-auto-columns: calc((100% / 2) - 9px);
  }
}

@media screen and (max-width: 600px) {
  body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(to left top, #031a9a, #8b53ff);
    padding: 0;
  }

  .wrapper {
    max-width: 100%;
    /* width: 100%; */
    position: relative;
    right: 1.1em;
  }
  .wrapper .carousel {
    grid-auto-columns: 100%;
  }
}
