@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 微軟正黑體;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 0 35px;
  background: #e4dcdc;
}

.wrapper {
  max-width: 1100px;
  width: 100%;
  position: relative;
  top: 32px;
}
.wrapper i {
  height: 44px;
  width: 44px;
  background: rgba(139, 47, 49, 0.4);
  text-align: center;
  line-height: 44px;
  border-radius: 50%;
  cursor: pointer;
  position: absolute;
  top:42%;
  font-size: 1.25 rem;
  transform: translateY(-50%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  z-index: 100;
  color: #fff;
}
.wrapper i:first-child {
  left: 20px;
}
.wrapper i:last-child {
  right: -48px;
}
i#left {
    left: -48px;
}
.wrapper .carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% / 3) - 40px);
  gap: 0px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: 0;
}

.carousel::-webkit-scrollbar {
  display: none;
}
.carousel :where(.card, .img) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel.dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.carousel.no-transition {
  scroll-behavior: auto;
}
.carousel.dragging .card {
  cursor: grab;
  user-select: none;
}
.carousel .card {
  scroll-snap-align: start;
  height: 480px;
  list-style: none;
  background: #fff;
  border-radius: 8px;
  border: solid 1px #ddd;
  display: flex;
  cursor: pointer;
  width: 84%;
  padding-bottom: 15px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.card .img {
  background: #007bff;
  width: 145px;
  height: 145px;
  border-radius: 50%;
}
.card .img img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #87b3fc;
}
.card span {
  color: #6a6d78;
  font-size: 1.31rem;
}

footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: #8b2f31;
  color: white;
  text-align: center;
}

h3 {
  font-size: 20px;
  font-weight: 900;
}

h5 {
  font-size: 14px;
  font-weight: 600;
  padding: 4px 16px;
}

h2.title {
  text-align: center;
  font-weight: 900;
}

.navbar-toggler {
  visibility: hidden;
}

h6 {
  font-size: 12px;
  font-weight: 700;
}

@media screen and (max-width: 992px) {
  .wrapper .carousel {
    grid-auto-columns: calc((100% / 2) - 9px);
  }
  h2.title {
  font-size: 20px;
  font-weight: 900;
  }
  .wrapper i:first-child {
  left: 20px;
}
  .wrapper i:last-child {
    right: -32px;
  }
  i#left {
      left: -32px;
  }
}
@media screen and (max-width: 767px) {
  .wrapper .carousel {
    grid-auto-columns: calc(100%);
  }
  .wrapper {
    top: 32px;
  }

  h2.title {
    font-weight: 600;
  }
}
@media screen and (max-width: 414px) {
  h2.title {
  font-size: 16px;
  font-weight: 900;
  }
  .wrapper {
    top: -24px;
  }
  .carousel .card {
    width:84%;
    height:464px;
  }
  
  .wrapper .carousel {
    gap: 0px;
  }
  .wrapper i:first-child {
  left: 20px;
}
  .wrapper i:last-child {
    right: -20px;
  }
  i#left {
      left: -20px;
}
}