@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");

.gallery {
  position: absolute;
  width: 100vw;
  height: 90vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #eee;
  border-radius: 20px;
}

.slider {
  position: absolute;
  inset: 80px 200px 80px 80px;
  /* background: #eee; */
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.slider .slides {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 320px;
  background-image: var(--img);
  background-position: center;
  background-size: cover;
  transition: 0.5s;
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.slider .slides:nth-child(1),
.slider .slides:nth-child(2) {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(0);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0);
  background-size: cover;
}

.slider .slides:nth-child(3) {
  background-size: cover;
  left: calc(50% + 240px);
  filter: grayscale(1);
}

.slider .slides:nth-child(4) {
  background-size: cover;
  left: calc(50% + 500px);
  filter: grayscale(1);
}

.slider .slides:nth-child(5) {
  background-size: cover;
  left: calc(50% + 760px);
  filter: grayscale(1);
}

.slider .slides:nth-child(6) {
  background-size: cover;
  left: calc(50% + 1020px);
  filter: grayscale(1);
  opacity: 0;
}
.slider .slides:nth-child(n + 7):nth-child(-n + 25) {
  background-size: cover;
  left: calc(50% + 1020px);
  filter: grayscale(1);
  opacity: 0;
}

.button {
  position: absolute;
  bottom: 15px;
  display: flex;
  gap: 20px;
  background-color: #eee;
}

.button span {
  position: relative;
  width: 50px;
  height: 50px;
  background-color: #111111ad;

  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  /* box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25); */
  box-shadow: inset 0px 0px 15px 4px rgba(0, 0, 0, 0.75);
}

.button span::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border-top: 4px solid #fff;
  border-left: 4px solid #fff;
  transform: rotate(315deg) translate(2px, 2px);
}

.button span:nth-child(2)::before {
  transform: rotate(135deg) translate(2px, 2px);
}

/* MEDIA QUERIES */

@media (max-width: 900px) {
  .gallery {
    height: 82vh;
  }
  .slider {
    position: absolute;
    inset: 40px 40px 300px 40px;
  }
  .slider .slides {
    width: 100px;
    height: 100px;
    top: initial;
    bottom: -170px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
  }

  .slider .slides:nth-child(1),
  .slider .slides:nth-child(2) {
    top: initial;
    bottom: 0px;
  }
  .slider .slides:nth-child(3) {
    left: 0px;
  }
  .slider .slides:nth-child(4) {
    left: 120px;
  }
  .slider .slides:nth-child(5) {
    left: 240px;
  }
  .button {
    bottom: 90px;
  }
}
