#productsColors {
  padding: 3rem 0;
}

#productsColors .content {
  width: 80%;
  margin: 0 auto;
}

#productsColors .content h2 {
  font-size: 2rem;
}

#productsColors .product-lists-container {
  margin: 2rem 0;
  width: 100%;
  overflow-x: auto;
  gap: 1rem;
}

#productsColors .product-lists-container div {
  width: 15%;
}

#productsColors .product-lists-container div img {
  width: 100%;
}

#productsColors .product-lists-container div span {
  font-size: 2rem;
}

.vehicle-img {
  width: 70%;
  margin: 1.5rem auto;
}

.vehicle-img img {
  width: 100%;
}

.colors-containers {
  gap: 1rem;
}

.colors-containers > div {
  width: 50px;
  height: 50px;
  border-radius: 0.5rem;
}

.active {
  opacity: 1 !important;
}

.not-active {
  opacity: 0.5;
}

.color-active {
  border: 3px solid rgb(180, 165, 111);
}
/* ------------------------------------------------------------ */
/* Section Gallery */
#gallery {
  padding: 3rem 0;
}

#gallery .content {
  width: calc(100% - 2rem);
  padding: 0 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

#gallery .content > div {
  width: calc(50% - 0.5rem);
  gap: 1rem;
}

#gallery .left > div,
#gallery .right > div {
  overflow: hidden;
}

#gallery .content > div > div {
  cursor: pointer !important;
}

#gallery .content > div > div:hover .back-img {
  transform: scale(1.2);
}

#gallery .box-1 {
  height: 1000px;
}

#gallery .box-2 {
  height: 1000px;
}

#gallery .back-img {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-clip: border-box;
  transition: all 0.5s ease;
}

#gallery .box-1 .back-img {
  background-image: url("/img/main-page/gallery/off-road.webp");
}

#gallery .box-2 .back-img {
  background-image: url("/img/main-page/gallery/history.webp");
}

#gallery .text-title {
  top: 30px;
  left: 30px;
  text-align: end;
}

#gallery .text-title h2 {
  color: var(--white);
}

#gallery .text-content {
  width: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

#gallery .text-content p {
  font-size: 2.5rem;
  color: rgb(175, 175, 175);
  margin-bottom: 1rem;
}

#gallery .text-content button {
  padding: 0.7rem 2rem;
  background-color: transparent;
  border: 1px solid black;
  font-size: 1.2rem;
}

/* ---------------------------------------- */
/* News Slider */
section.news {
  margin: 3rem 0;
}

section.news .content {
  height: 500px;
}

section.news .content > div {
  overflow: hidden;
  width: calc(100% / 3);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: width 0.4s ease;
  position: relative;
}

section.news .content > div:nth-child(1) {
  background-image: url("/img/main-page/news/1.webp");
}

section.news .content > div:nth-child(2) {
  background-image: url("/img/main-page/news/2.webp");
}

section.news .content > div:nth-child(3) {
  background-image: url("/img/main-page/news/3.webp");
}

section.news .content > div.active {
  width: 50%;
}

section.news .content > div.minimized {
  width: 25%;
}

section.news .content div > .news-content {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    0deg,
    rgba(24, 48, 76, 0.6),
    rgba(24, 48, 76, 0.6)
  );
  transition: all 1.4s ease !important;
}

section.news .content div > .news-content:hover {
  background-image: linear-gradient(
    0deg,
    rgba(24, 48, 76, 0.9),
    rgba(24, 48, 76, 0)
  );
}

section.news .content div > .news-content:hover .news-content-text {
  bottom: 0;
}

.news .news-content-text {
  padding: 2rem 0;
  position: absolute;
  bottom: -100%;
  right: 0;
  color: var(--white);
}

.news .news-content-text p {
  font-size: 1.2rem;
}
/* ----------------------------------------------- */
/* Dealerships */
/* #241c11, #294074 */
section.dealerships > .content {
  background-image: radial-gradient(circle at center, #2a5196, #294074);
}

section.dealerships > .content svg {
  display: block;
}

section.dealerships > .content img {
  margin: 0;
  padding: 0;
}
/* ----------------------------------------------- */

/* Responsive */
@media screen and (max-width: 1200px) {
  #gallery .box-1 {
    height: 600px;
  }

  #gallery .box-2 {
    height: 600px;
  }

  #gallery .text-content p {
    font-size: 1.5rem;
  }

  #gallery .text-content button {
    padding: 0.5rem 2rem;
    font-size: 1rem;
  }

  #productsColors .product-lists-container div {
    width: 20%;
  }
}

@media screen and (max-width: 1000px) {
  #productsColors .content {
    width: 90%;
  }
}

@media screen and (max-width: 768px) {
  #gallery .content {
    flex-direction: column;
  }

  #gallery .content > div {
    width: 100%;
  }
  /* Product Colors */
  #productsColors .content {
    width: 100%;
  }

  #productsColors .product-lists-container div {
    width: 30%;
  }

  .vehicle-img {
    width: 95%;
    margin: 0 auto;
  }

  .colors-containers {
    margin-top: 1.5rem;
  }
}
