.homepage main {
  padding-top: 0;
}

main {
  /* max-width: calc(100% - 40rem); */
  /* margin-left: auto; */
}

.slideshow,
.slider img {
  /* height: 100vh; */
}

.slider img {
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.slideshow .slick-slide {
  position: relative;
  overflow: hidden;
}

/* .slideshow .slick-slide::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.45);
} */

.slideshow .slick-slide .sliderCaption {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  letter-spacing: 1.2rem;
  text-align: center;
}

.slideshow .slick-slide .sliderCaption::after {
  content: "";
  position: absolute;
  bottom: 0;
  background-color: #fff;
  width: 100vw;
  bottom: -2rem;
  height: 0.5rem;
  left: 300%;
  -webkit-transition: 0.8s;
  -o-transition: 0.8s;
  transition: 0.8s;
  -webkit-transition-duration: 1s;
  -o-transition-duration: 1s;
  transition-duration: 1s;
}

.slideshow .slick-slide.slick-active .sliderCaption::after {
  left: 0;
}

.about-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 5rem;
  margin: 0 auto;
  margin-block: 8rem;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding-inline: 20px;
}

.about {
  /* margin-top: var(--margin-top); */
  /* max-width: var(--max-width-main); */
  max-width: 50%;
  text-align: center;
  max-width: 60rem;
}

.about > h1 {
  font-size: 4.6rem;
  line-height: 1.2;
  color:black;
  margin-bottom: 3rem;
  font-weight: 700;
}

.about-img {
  -webkit-box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  padding: 1rem;
  border-radius: 10px 0 10px 0;
}

.about-img img {
  border-radius: 10px 0 10px 0;
}
.about > p {
  font-size: 2.2rem;
  color:black;
  line-height: 1.4;
  margin-bottom: 3rem;
}

.about > a {
  font-size: 2.2rem;
  color:black;
  position: relative;
}

.about > a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background-color: var(--primary);
  bottom: 0;
  right: 0;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.about > a:hover::before {
  width: 0;
}

.random-cars {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  max-height: 40rem;
  margin-bottom: 10rem;
  -webkit-box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px,
    rgba(0, 0, 0, 0.23) 0px 6px 6px;
  box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
  /* border-top: 2px solid var(--primary);
	border-bottom: 2px solid var(--primary); */
  max-width: 1920px;
  margin: auto;
}

.random-cars img {
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.random-cars>div {
  flex-basis: 50%;
}
.explore-more {
  text-align: center;
  /* background-color: var(--secondary-opacity); */
  margin-bottom: 10rem;
}

.explore-more a {
  color: white;
  -webkit-transition: color 0.3s;
  -o-transition: color 0.3s;
  transition: color 0.3s;
  font-size: 40px;
  text-shadow: -1px -1px 0 black, 1px -1px 0 black,
    -1px 1px 0 black, 1px 1px 0 black;
}

.explore-more a:hover {
  color: black;
}

/* newModule 1 */
.cars-home {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 2rem 1fr 2rem 1fr 2rem 1fr;
  grid-template-columns: repeat(4, 1fr);
  /* grid-template-rows: repeat(5, 1fr); */
  grid-column-gap: 2rem;
  grid-row-gap: 4rem;
  padding-inline: 20px;
}

.car_article_home {
  -webkit-box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.car_article_home img {
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  width: 100%;
  -o-object-fit: contain;
  object-fit: contain;
  margin-bottom: 3rem;
}

.car_article_home:hover img {
  -webkit-transform: scale(1.05);
  -ms-transform: scale(1.05);
  transform: scale(1.05);
  -webkit-filter: brightness(50%);
  filter: brightness(50%);
  border-radius: 10px;
  /* margin:0; */
}

.car_article_home h2 {
  margin: 0;
  background-color: var(--primary);
  position: absolute;
  bottom: 0;
  width: 100%;
  padding-inline: 1rem;
  color: black;
  width: 100%;
}

.car_article_home:hover h2 {
  background-color: var(--secondary);
  color: white;
}

.car_article_home p {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  font-size: 30px;
  display: none;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
  color: white;
  border: 1px solid white;
  margin: 0;
  padding: 1rem 2rem;
  line-height: 1;
  text-align: center;
}

.car_article_home:hover p {
  display: block;
}

@media screen and (max-width: 1520px) {
  .cars-home {
    -ms-grid-columns: (1fr) [3];
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (max-width: 1240px) {
  .homepage main {
    max-width: 100%;
    padding-top: 13.9rem;
  }

  .slideshow,
  .slider img {
    /* height: calc(100vh - 14.8rem); */
	  max-height: 62rem;
  }

  .slideshow .slick-slide .sliderCaption {
    font-size: 3.8rem;
  }

  .about > h1 {
    font-size: 2.8rem;
  }

  .about > p,
  .about > a {
    font-size: 1.8rem;
  }

  .gallery__wrapper {
    gap: 1.5rem;
  }

  .gallery__wrapper > div:nth-child(1),
  .gallery__wrapper > div:nth-child(2),
  .gallery__wrapper > div:nth-child(3) {
    height: 18rem;
  }

  .gallery__wrapper > div {
    height: 22rem;
  }

  .gallery__all > a {
    padding: 1.5rem 2rem;
    font-size: 1.8rem;
  }

  .car_article_home p {
    font-size: 25px;
    line-height: 1;
    text-align: center;
    padding: 1rem;
  }
}

@media screen and (max-width: 1024px) {
  .about {
    max-width: unset;
    margin: 0 auto;
    margin-top: 20px;
  }
  .about-container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-inline: 20px;
    margin-block: 2rem;
    margin-bottom: 5rem;
  }

  .about-img {
    margin: 0 auto;
    padding: 0;
    max-width: unset;
  }

  .random-cars {
    margin-bottom: 5rem;
  }

  .cars-home {
    -ms-grid-columns: (1fr) [2];
    grid-template-columns: repeat(2, 1fr);
  }

  .explore-more {
    margin-bottom: 6rem;
  }
}

@media screen and (max-width: 640px) {
  .homepage main {
    padding-top: 0;
  }

  .about-container {
    padding-inline: 10px;
    margin-block: 2rem;
    gap: 2rem;
    margin-top: 0rem;
  }

  .about-img img {
    border-radius: 10px;
  }

  .about > h1 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
  }

  .about > p,
  .about > a {
    font-size: 1.6rem;
  }

  .about > p {
    margin-bottom: 2rem;
  }

  .gallery__all > a {
    font-size: 1.6rem;
  }

  .slideshow .slick-slide .sliderCaption {
    font-size: 2.4rem;
    /* width: 85%; */
    line-height: 1.4;
    letter-spacing: 2px;
  }

  .gallery__wrapper {
    gap: 0.5rem;
  }

  .random-cars {
    margin-bottom: 2rem;
    -webkit-box-shadow: unset;
    box-shadow: unset;
  }

  .explore-more {
    margin-bottom: 2rem;
  }

  .explore-more a {
    font-size: 30px;
    text-shadow: unset;
    color: var(--primary);
  }

  .explore-more a:hover {
    color: black;
  }

  .slider img {
    min-height: 300px;
  }

  .car_article_home p {
    font-size: 26px;
  }

  .cars-home {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding-inline: 10px;
    gap: 10px;
  }

  .car_article_home img {
    margin-bottom: 2rem;
  }

  .car_article_home h2 {
    padding-block: 0.5rem;
  }
}

.activities__block:nth-child(2) > .activities__block--text {
  z-index: 2;
}
