.container-slideshow {
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: auto;
}

.slider {
  display: flex;
  width: calc(100% * var(--index));
  transition: transform 0.4s ease-in;
  transform: translateX(0);
}

.slider__slide {
  width: 100%;
  display: grid;
  align-items: center;
  overflow: hidden;
  position: relative;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom;
  /*border-radius: 15px;*/
}

.slider__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  /*background: radial-gradient(*/
  /*    circle,*/
  /*    rgba(9, 9, 121, 0.5) 27%,*/
  /*    rgba(5, 5, 74, 0.85) 97%*/
  /*);*/
}

.slider__slide__image {
  width: 100%;
}

@media only screen and (max-width: 650px) {
  .slider__slide {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 1fr);
    height: calc(100vw * 0.7);
  }

  .indicators {
    bottom: 10% !important;
    gap: 1rem !important;
  }

  .indicators div {
    width: 10px !important;
  }
}

.prev,
.next,
.indicators {
  z-index: 10000;
  position: absolute;
}

.prev,
.next {
  width: 4rem;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 2rem;
  color: white;
}

.prev:hover,
.next:hover {
  opacity: 1;
}

.prev {
  top: 50%;
  left: 2%;
  transform: translateY(-50%);
}

.next {
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
}

.indicators {
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(var(--index), 1fr);
  gap: 2rem;
  text-align: center;
  font-size: 1.5rem;
  justify-items: center;
}

.indicators div {
  background-color: #fff;
  cursor: pointer;
  opacity: 0.3;
  transition: all 0.3s ease;
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.indicators div:hover {
  opacity: 0.6;
}

.active {
  opacity: 1 !important;
}

.slider__slide__details {
  padding: 5rem;
  padding-left: 10rem;
  z-index: 100;
  grid-column: 1 / span 1;
  grid-row: 1/-1;
  position: absolute;
}
.slider__slide__details h1 {
  font-size: 7rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #f1f6f5;
}
.slider__slide__details p {
  font-size: 1.3rem;
  color: #f1f6f5;
  margin-bottom: 4rem;
}
.slider__slide__details a {
  font-size: 1.3rem;
  color: #f1f6f5;
  padding: 1rem 2rem;
  background-color: #88a47c;
  border-radius: 50px;
}
