* {
  padding: 0;
  margin: 0;
  font-family: "poppins", sans-serif;
  box-sizing: border-box;
}

body {
  background: #191919;
}

.gallery {
  width: 900px;
  height: 300px;
  display: flex;
  overflow-x: auto;
}

.gallery div {
  width: 100%;
  display: grid;
  grid-template-columns: auto auto auto;
  grid-gap: 20px;
  padding: 10px;
  flex: none;
}

.gallery div img {
  width: 100%;
  filter: grayscale(100%);
  transition: transform 0.5s;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10% auto;
}

#backBtn,
#nextBtn {
  width: 50px;
  cursor: pointer;
  margin: 40px;
}

.gallery div img:hover {
  filter: grayscale(0);
  cursor: pointer;
  transform: scale(1.1);
}

@media screen and (max-width: 480px) {
  body {
    padding: 10px;
    font-size: 14px;
  }

  .gallery-container {
    width: 100%;
    padding: 5px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  h1 {
    font-size: 20px;
    text-align: center;
  }
}

@media screen and (min-width: 481px) and (max-width: 768px) {
  .gallery-container {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  h1 {
    font-size: 24px;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .gallery-container {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
  }
}
