/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

#lc{
  margin-left: 6%; 
  font-family: 'Lobster', cursive; 
  font-size: 60px;
}
.wrapper i {
  top: 50%;
  height: 50px;
  width: 50px;
  cursor: pointer;
  font-size: 1.25rem;
  position: absolute;
  text-align: center;
  line-height: 50px;
  background: #d3db7b;
  border-radius: 50%;
  color: black;
  box-shadow: 0 3px 6px rgba(0,0,0,0.23);
  transform: translateY(-50%);
  transition: transform 0.1s linear;
}
.wrapper i:active{
  transform: translateY(-50%) scale(0.85);
}
.wrapper i:first-child{
  left: -22px;
}
.wrapper i:last-child{
  right: -22px;
}
.wrapper .carousel{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 4) - 5px);
  overflow-x: hidden;
  scroll-snap-type: x mandatory;
  gap: 25px;
  border-radius: 15px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel.no-transition{
  scroll-behavior: auto; /*This is for auto scroll when nothing is happening*/
}
.carousel.dragging {
  scroll-snap-type: none;  /*This is for no fixed points while dragging*/
  scroll-behavior: auto;
}
.carousel.dragging .card {
  cursor: grab;
  user-select: none;    /*user cannot select any text from the cards*/
}
.carousel :where(.card, .img) {
  display: flex;
}

.carousel .card {
  scroll-snap-align: start;
  height: 392px;
  list-style: none;
  background-color: rgb(255, 132, 32);
  cursor: pointer;
  flex-direction: column;
  border-radius: 15px;
  box-shadow: rgba(0, 0, 0, 0.662) 0px 5px 15px 0px;
}
.card .img img {
  width: 350px;
  height: 205px;
  overflow:hidden;
  border-radius: 15px 15px 0 0;
  object-fit:cover;
}
.carousel .card h2 {
  font-weight: 500;
  font-size: 25px;
  margin: 23px 0px 0px 2px;
  color: #ffffff;
}
.carousel .card span {
  color: #ffffff;
  font-size: 17px;
  margin: 10px 10px 0px 2px;
}

@media screen and (max-width: 900px) {
  .wrapper .carousel {
    grid-auto-columns: calc((100% / 2) - 9px);
  }
}

@media screen and (max-width: 600px) {
  .wrapper .carousel {
    grid-auto-columns: calc((100%) + 37px);
    margin-bottom: -10px;
  }
  .wrapper i:first-child{
    left: -15px;
  }
  .wrapper i:last-child{
    right: -15px;
  }
  #lc{
    font-size: 40px;
  }
  .carousel .card h2 {
    font-weight: 600;
    font-size: 25px;
    margin: 23px 0px 0px -10px;
  }
  .carousel .card span {
    color: #6A6D78;
    font-size: 17px;
    margin: 10px 10px 0px 15px;
  }
  .carousel .card {
    height: 362px;
  }
}