.gift-processes {
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
  background-color: #fff;
  user-select: none;
}

.gift-processes .cards {
  display: flex;
  flex-wrap: wrap;
  gap: 21px;
  justify-content: center;
}

.gift-processes .cards .card {
  background: #fff;
  border-radius: 20px;
  width: calc(33.333% - 20px);
  padding: 20px;
  align-items: center;
  gap: 24px;
}

.gift-processes .cards .card .detail {
  text-align: start;
}

.gift-processes .cards .card .detail strong {
  font-size: 24px;
}

.gift-processes .cards .card .detail p {
  margin-top: 10px;
}

.gift-processes .cards .card p {
  font-size: 19px !important;
  color: #000 !important;
}


.gift-processes .cards .card img {
  max-width: 100%;
  height: 200px;
  width: 100%;
  object-fit: contain;
}

.gift-processes .cards .card:nth-child(1) img,
.gift-processes .cards .card:nth-child(2) img,
.gift-processes .cards .card:nth-child(3) img {
  margin-bottom: 39px;
}

.gift-processes .cards .card:nth-child(4),
.gift-processes .cards .card:nth-child(5) {
  display: flex;
  flex-direction: row;
  width: calc(50% - 20px);
  align-items: center;
  justify-content: space-between;
}


.gift-processes .cards .card:nth-child(4) .detail {
  flex:3;
}


.gift-processes .cards .card:nth-child(4) picture {
  flex:2;
}

.gift-processes .cards .card:nth-child(4) img {
  align-self: flex-end;
}

.gift-processes .cards .card:nth-child(5) img {
  position: absolute;
  bottom: 0px;
  right: 0px;
  max-width: 50%;
}

.gift-processes .cards .card:nth-child(4) h3,
.gift-processes .cards .card:nth-child(4) p{
  text-align: left;
  max-width: 75%;
}

.gift-processes .cards .card:nth-child(5) h3,
.gift-processes .cards .card:nth-child(5) p {
  text-align: left;
  max-width: 55%;
}

.gift-processes .cards .card:nth-child(1) {
  background-color: #ecfff0;
}

.gift-processes .cards .card:nth-child(2) {
  background-color: #fcedff;
}

.gift-processes .cards .card:nth-child(3) {
  background-color: #e6f3ff;
}

.gift-processes .cards .card:nth-child(4) {
  background-color: #dddeff;
}

.gift-processes .cards .card:nth-child(5) {
  background-color: #fdf3c5;
  position: relative;
}

@media only screen and (max-width: 768px) {
  .gift-processes {
    padding: 10px 0;
  }

  .gift-processes .cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    gap: 10px;
    justify-content: flex-start;
    scroll-padding-left: 10px;
    scroll-snap-type: x mandatory;
    padding: 0 10px;
  }

  .gift-processes .cards::-webkit-scrollbar {
    display: none;
  }

  .gift-processes .cards {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .gift-processes .cards .card {
    flex: 0 0 auto;
    min-width: 80%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .gift-processes .cards .card img {
    height: 280px;
    max-height: 280px;
    min-height: 280px;
  }

  .gift-processes .cards .card p {
    font-size: 16px !important;
    margin-bottom: 10px;
  }

  .gift-processes .cards .card strong {
    font-size: 24px;
  }

  .gift-processes .cards .card:nth-child(4),
  .gift-processes .cards .card:nth-child(5) {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
  }

  .gift-processes .cards .card:nth-child(4) img {
    max-width: 100%;
  }

  .gift-processes .cards .card:nth-child(5) img {
    max-width: 100%;
    position: relative;
  }

  .gift-processes .cards .card:nth-child(4) h3,
  .gift-processes .cards .card:nth-child(4) p,
  .gift-processes .cards .card:nth-child(5) h3,
  .gift-processes .cards .card:nth-child(5) p {
    text-align: left;
    max-width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .gift-processes .cards .card {
    min-width: 96%;
    padding: 12px;
  }
}

@media screen and (max-width: 480px) {
  .gift-processes .cards .card:nth-child(1) img,
  .gift-processes .cards .card:nth-child(2) img,
  .gift-processes .cards .card:nth-child(3) img {
    margin-bottom: unset;
  }
}
