.slide-grid {
  position: relative;
}
.slide-grid h4 {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
}

.slide-wrapper {
  overflow: hidden;
}

.slide {
  display: flex;
}

.slide:hover {
  will-change: transform;
}

.slide > li {
  flex-shrink: 0;
  width: 90vw;
  max-width: fit-content;
  margin: 0 20px;
  border-radius: 4px;
  transform: scale(0.8);
  margin-top: 20px;
  transition: 0.4s;
  display: grid;
  justify-items: center;
}

.slide li.active {
  opacity: 1;
  transform: scale(1);
}

[data-control="slide"] li a {
  display: block;
}

.arrow-nav > * {
  top: 50%;
}

.next {
  position: absolute;
  right: 100px;
}

.prev {
  position: absolute;
  left: 100px;
}

.next,
.prev {
  transform: translateY(-50%) scale(0.8);
  cursor: pointer;
  transition: 0.3s;
}

.next:hover,
.prev:hover {
  transform: translateY(-50%) scale(1);
}

.slide-grid {
  position: relative;
}

.custom-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.custom-controls li {
  height: 15px;
  width: 15px;
  border: 1px solid var(--main-cor);
  transition: 0.3s;
  cursor: pointer;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.custom-controls li.active {
  background-color: var(--main-cor);
}
@media only screen and (min-width: 0px) and (max-width: 650px) {
  .next,
  .prev {
    position: absolute;
    max-width: 60px;
  }
  .next {
    right: 10px;
  }
  .prev {
    left: 10px;
  }
}
