/* Home Page Card Scroller */
.wrapper {
  max-width: 1100px;
  width: 100%;
  position: relative;
}
.wrapper i {
  top: 50%;
  height: 50px;
  width: 50px;
  cursor: pointer;
  font-size: 1.25rem;
  position: absolute;
  text-align: center;
  line-height: 50px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 6px rgba(0,0,0,0.23);
  transform: translateY(-50%);
  transition: transform 0.1s linear;
  z-index: 2;
  background: #000000bf;
}
.wrapper i:active{
  transform: translateY(-50%) scale(0.85);
}
.wrapper i:first-child{
  left: -22px;
  color: white;
}
.wrapper i:last-child{
  right: -22px;
  color: white;
}
.wrapper .carousel{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 3) - 12px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  border-radius: 8px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar {
  display: none;
}
.carousel.no-transition {
  scroll-behavior: auto;
}
.carousel.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.carousel.dragging .card {
  cursor: grab;
  user-select: none;
}
.carousel :where(.card, .img) {
  display: flex;
  justify-content: center;
  align-items: center;
}
.carousel .card {
  position: relative;
  scroll-snap-align: start;
  list-style: none;
  background: #fff;
  cursor: pointer;
  border-radius: 2px;
  height: 400px;
  overflow: hidden;
  border: 3px solid #fff;
  transition: border 0.4s ease;
}
.carousel .card:hover {
  border: 2px solid #c7c7c7;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel .card .img-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 16px;
  color: white;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}
.carousel .card h2 {
  font-weight: 500;
  color: #ffffff;
  width: fit-content;
  font-size: 1.4rem;
  border-radius: 50px;
  font-weight: 500;
  margin-left: 20px;
}

.card-button {
  height: 35px;
  width: 35px;
  color: #ffffff;
  background: none;
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid #ffffff;
  transform: rotate(-45deg);
  transition: 0.2s ease;
}

@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: 100%;
  }
}