main {
  width: 100%;
  min-height: 100vh;
}

/* Home banner carousel */
.swiper-container {
  width: 100%;
  height: 100vh;
  color: #000;
}
.swiper-wrapper {
  height: 100%;
}
.swiper-slide {
  position: relative;
  height: 100%;
}
.swiper-slide a {
  width: 100%;
  height: 100%;
}
.swiper-pagination {
  bottom: 1rem !important;
}
/* The mobile hero can be a separate upload, so the template wraps <img> in
   <picture>. A bare <picture> is inline, so the img's height:100% resolves
   against a box we did not intend. Chromium still computes the full height,
   but that is its own behaviour rather than a guarantee, and an inline box
   also brings baseline whitespace. Give <picture> the same box as the <a> so
   the result is identical with or without the wrapper. */
.swiper-slide a picture {
  display: block;
  width: 100%;
  height: 100%;
}
.swiper-slide a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.content {
  position: absolute;
  bottom: 5rem;
  left: 50%;
  transform: translateX(-50%);
}
.bottom {
  margin-top: 50px;
  display: flex;
  align-items: center;
}
.bottom a {
  width: 100px;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  background: #000;
  color: #fff;
  text-align: center;
}
.bottom a:first-of-type {
  margin-right: 50px;
}

/* Home introduction */
.b-main {
  text-align: center;
  padding: 50px 0px;
}
.b-main .Introduction-title {
  width: 300px;
  margin: 10px auto 70px;
}
.b-main .Introduction-title img {
  object-fit: contain;
  width: 100%;
}
.b-main .b-main-content {
  max-width: 820px;
  margin: 0px auto;
  padding: 0 30px;
  text-align: center;
}
.b-main .b-main-content p {
  width: auto !important;
  max-width: 760px !important;
  margin: 0 auto 14px !important;
  font-size: 12px !important;
  line-height: 1.9 !important;
  text-align: center !important;
}
.b-main a {
  width: 120px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  background: #000;
  color: #fff;
  font-size: 14px;
  margin: 40px auto 0px;
}

/* Home product carousel */
.carousel-container {
  background: #f2f2f2;
  width: 100%;
  height: fit-content;
  overflow: hidden;
}
.swiper-container1 {
  width: 100%;
  height: fit-content;
  position: relative;
  overflow: hidden;
}
.swiper-container1 .swiper-slide {
  position: relative;
}
.swiper-container1 .swiper-slide a {
  width: 100%;
}
.swiper-container1 .swiper-slide a img {
  width: 100%;
}
.carousel-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 3.5rem;
}
.carousel-content p {
  text-align: center;
  font-size: 16px;
  margin-bottom: 10px;
  white-space: nowrap;
  color: #585858;
}
.carousel-content a {
  font-size: 25px;
  white-space: nowrap;
}
.swiper-button-prev img,
.swiper-button-next img {
  width: 100%;
  height: 100%;
}
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

/* Space recommendations */
.d-main {
  padding: 30px 0px;
}
.d-main > div:first-child {
  font-size: 14px;
  text-align: center;
  margin: 10px 0px;
  color: #414141;
}
.d-main .aesthetics-title {
  font-size: 32px;
  text-align: center;
  margin: 30px 0px;
}
.d-main .d-main-content {
  padding-top: 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0px 30px;
  column-gap: 30px;
}
.d-main .more-aesthetics {
  margin: 50px auto;
  background: #000;
  color: #fff;
  width: 130px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 13px;
}

@media screen and (max-width: 1100px) {
  .b-main .b-main-content {
    max-width: 820px;
    margin: 0px auto;
  }
  .b-main .b-main-content p {
    width: 100%;
    max-width: 100%;
  }
}

@media screen and (max-width: 750px) {
  .content {
    bottom: 10rem;
  }
  /* Keep enough height for a mobile hero while showing substantially more of
     the original 1.96:1 composition than the old square crop. */
  main > .swiper-container {
    height: auto;
    aspect-ratio: 3 / 2;
  }
  main > .swiper-container > .swiper-wrapper > .swiper-slide,
  main > .swiper-container > .swiper-wrapper > .swiper-slide a {
    height: 100%;
  }
  main > .swiper-container > .swiper-wrapper > .swiper-slide a img {
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .swiper-container-horizontal > .swiper-pagination-bullets,
  .swiper-pagination-custom,
  .swiper-pagination-fraction {
    bottom: 1rem;
  }

  .b-main .b-main-content {
    max-width: 100%;
    margin: 0px auto;
    width: 90%;
    padding: 0;
  }
  .b-main .Introduction-title {
    margin: 10px auto 35px;
    width: 60%;
  }
  /* Home product carousel */
  .carousel-container {
    height: 270px;
  }
  .carousel-container .swiper-container1 {
    height: 100%;
  }
  .swiper-container1 .swiper-slide {
    padding: 20px 30px;
  }
  .swiper-slide a {
    height: 100%;
  }
  .swiper-slide a img {
    object-fit: cover;
    height: 100%;
  }
  .swiper-button-next {
    right: 0px !important;
    width: 20px !important;
    height: 30px !important;
  }
  .swiper-button-prev {
    left: 0px !important;
    width: 20px !important;
    height: 30px !important;
  }
  .carousel-content {
    bottom: 1rem;
  }
  .carousel-content p {
    font-size: 14px;
    margin-bottom: 5px;
  }
  .carousel-content a {
    font-size: 18px;
  }

  /* Space recommendations */
  .d-main {
    padding: 25px 0px;
  }
  .d-main > div:first-child {
    margin: 0px;
  }
  .d-main .aesthetics-title {
    font-size: 20px;
    margin: 7px 0px;
  }
  .d-main .d-main-content {
    padding-top: 8px;
    grid-template-columns: repeat(2, 1fr);
    margin: 0px 15px;
    gap: 25px 10px;
  }
  .d-main .more-aesthetics {
    margin: 50px auto 20px;
  }
}
