/* CSS for Shop By Model Section */

    .hsd-shop-by-model-container {
        display: flex;
        justify-content: space-around;
        flex-wrap: wrap;
    }
    .hsd-car-model {
        flex: 0 0 30%; /* Adjusts the flex basis to 30%, allowing 3 items per row */
        max-width: 30%;
        box-sizing: border-box;
        margin: 0 15px; /* Adjust the side margins as needed */
        text-align: center;
    }
    .hsd-car-model img {
        width: 100%;
        height: auto;
        display: block;
}
    .hsd-car-model a {
        text-decoration: none;
        color: black; /* Or any color you want for the text */
    }
    .hsd-car-model a img {
  transition: transform 0.3s ease; /* smooth zoom effect */
}

.hsd-car-model a:hover img {
  transform: scale(1.1); /* zoom to 110% */
}
    .hsd-car-model p {
        margin-top: 0; /* Removes the default margin from the paragraph */
        font-weight: bold;
    }
    @media (max-width: 768px) {
        .hsd-car-model {
            flex: 1 1 50%; /* Two items per row on medium screens */
        }
    }
    @media (max-width: 480px) {
        .hsd-car-model {
            flex: 1 1 100%; /* One item per row on small screens */
        }
    }

    /* Content w/ Lifestyles customizable root variables */
:root {
  /* cwl = Content w/ Lifestyles */

  /* Accent Class */
  --hsd-mod-cwl-50-50-accent-background-color: #000;
  --hsd-mod-cwl-50-50-accent-text-color: #fff;
  --hsd-mod-cwl-50-50-accent-link-color: #fff;
}

/* Module Parent */
.hsd-mod-content-w-lifestyle-50-50 {
  display: grid;
  grid-template-columns: 50% 50%;
  align-items: center;
  justify-items: center;
  max-width: 1440px;
  width: 100%;
  margin: 1rem auto;
}

/* Image Cont */
.hsd-mod-cwl-50-50-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
}
.hsd-mod-cwl-50-50-img img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Content Cont */
.hsd-mod-cwl-50-50-content {
  margin: 1rem;
  padding: 4rem;
  box-sizing: border-box;
}

/*  ** Optional Classes ** */

/* Reverse Class */
/* (swaps image and content position when added) */
.hsd-mod-cwl-50-50-reverse {
  grid-template-columns: 50% 50%;
}
.hsd-mod-cwl-50-50-reverse .hsd-mod-cwl-50-50-content {
  order: 1;
}

/* Accent styling */
.hsd-mod-cwl-50-50-accent {
  color: var(--hsd-mod-cwl-50-50-accent-text-color) !important;
  background-color: var(--hsd-mod-cwl-50-50-accent-background-color);
}
.hsd-mod-cwl-50-50-accent a {
  color: var(--hsd-mod-cwl-50-50-accent-link-color) !important;
}

/* Media Query for mobile */
@media screen and (max-width: 767px) {
  /* Module Parent */
  .hsd-mod-content-w-lifestyle-50-50 {
    grid-template-columns: 1fr;
  }

  /* Content Cont */
  .hsd-mod-cwl-50-50-content {
    margin: 1rem;
    padding: 1rem;
  }

  /* Have the content above the image */
  .hsd-mod-content-w-lifestyle-50-50 .hsd-mod-cwl-50-50-content {
    order: 2;
  }
}
