body {
  margin: 0;
  padding: 0;
}

.gallery-scrolling-section {
  background: url("");
}

.gallery-scrolling-div {
  padding: 70px 70px;
}
.gallery-scrolling-heading {
  display: flex;
  justify-content: space-between;
}
.gallery-scrolling-heading button {
  padding: 14px 29px;
  border-radius: 15px;
  background: transparent;
  font-family: Poppins;
  font-weight: 400;
  font-style: Regular;
  font-size: 16px;
  leading-trim: NONE;
  line-height: 100%;
  letter-spacing: 1%;
  border: 1px solid #1c3f94;
  color: #1c3f94;
}

.gallery {
  max-width: 100%;

  margin: auto;
  padding: 20px;
  border-radius: 15px;
  background: white;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.carousel {
  height: 70vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.col img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* Scroll UP direction */
@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Scroll DOWN direction */
@keyframes scrollDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Assign speed and direction */
.col.up {
  animation: scrollUp 22s linear infinite;
}

.col.down {
  animation: scrollDown 22s linear infinite;
}



/* ------------------------ */
/* RESPONSIVE DESIGN ADDED  */
/* ------------------------ */

@media (max-width: 1200px) {
  .gallery-scrolling-div {
    padding: 50px;
  }

  .carousel {
    height: 60vh;
    gap: 15px;
  }

  .gallery-scrolling-heading button {
    padding: 12px 22px;
    font-size: 14px;
  }
}

@media (max-width: 1500px) {
    .gallery-scrolling-section {

    margin-top: 34px;
}
  .gallery-scrolling-heading {
    flex-wrap: wrap;
    gap: 10px;
  }

  .gallery-scrolling-heading button {
    flex: 1 1 30%;
    text-align: center;
  }

  .carousel {
    grid-template-columns: repeat(3, 1fr);
    height: 55vh;
  }
}

@media (max-width: 768px) {
    .gallery-scrolling-section {

    margin-top: 34px;
}
  .gallery-scrolling-div {
    padding: 30px;
  }

  .carousel {
    grid-template-columns: repeat(2, 1fr);
    height: 50vh;
  }

  .gallery {
    padding: 15px;
  }
}

@media (max-width: 576px) {
    .gallery-scrolling-section {

    margin-top: 34px;
}
  .gallery-scrolling-heading button {
    flex: 1 1 45%;
    font-size: 13px;
    padding: 10px 16px;
  }

  .carousel {
    grid-template-columns: 1fr;
    height: 45vh;
  }

  .col img {
    border-radius: 10px;
  }
}

@media (max-width: 400px) {
  .gallery-scrolling-section {

    margin-top: 34px;
}
  .gallery-scrolling-div {
    padding: 20px;
  }

  .carousel {
    height: 40vh;
  }

  .gallery-scrolling-heading button {
    flex: 1 1 100%;
  }
}
