
   .view{
        height: 100vh;           
        width: 100%;             
        display: flex;
        justify-content: center;
        align-items: center;    
      
    }

    .car-card{
        display: flex;
        flex-direction: row;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%), #E1E2E1;
        border-radius: 24px;
        padding: 10px;
        width: 95%;
        max-width: 1400px;
        height: 70%;
        
        color: white;
        padding: 0;
}

    
    .image-gallery {
        flex: 2;
        display: flex;
        flex-direction: column;
        height: auto;
        padding: 20px;
        min-width: 0; 
    }

    .main-image {
    border-radius: 15px;
    aspect-ratio: 16/9;              /* keep the same shape at any size           */
    object-fit:cover; 
    width: 100%;
    height: 80%;
    max-height: 450px;
    object-fit: cover;
    }

    .thumbnails {
    display: flex;
     flex-wrap: wrap; 
    gap: 10px;
    margin-top: 10px;
    
    }

    .thumbnail {
    border-radius: 10px;
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    }

    .thumbnail.active {
    border-color: #007BFF;
    }


.car-info-card {
    width: 35%;
    height: 100%;
    
    border-bottom-right-radius: 24px;
    border-top-right-radius: 24px;
    background-color: #0D1B2A;
    display: flex;
    flex-direction: column;

}

.car-info-card h2 {
    color: #E1E2E1;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.car-info-card p {
    color: #E1E2E1;
    font-size: 1.6rem;
    margin: 10px 0;
}

.car-info-card h2, p{
    padding: 0 20px;
}

.car-info-card .btn {
  margin-top: auto;
  margin-bottom: 10px;  
  padding: 20px 20px;}

.link-btn {
    background: #E1E2E1;
    color: #0D1B2A;
    border-radius: 12px;
    padding: 10px 20px;
    text-decoration: none;
    font-size: clamp(1rem, 4vw, 2rem);
    font-weight: bold;
}


@media (max-width: 1300px) {
  /* 1) Allow the viewport wrapper to grow, instead of always 100vh */
  .view {
    height: auto;             /* remove height:100vh */
    padding: 20px 0;           /* optional breathing room */
  }

  /* 2) Stack the card vertically and let it size to content */
  .car-card {
    flex-direction: column;
    width: 90%;       /* or whatever your mobile max is */
    margin: 0 auto 20px;      /* center and add bottom gap */
    height: auto;             /* remove any fixed height */
  }

  /* 3) Make both halves fill the card naturally */
  .image-gallery{
    width: 95%;
    height: auto;             /* remove the 100% height */
    flex: 0 0 auto;           /* sizing driven by content */
    padding: 10 0px;
    align-self: center;          /* optional padding */

  }
  .car-info-card {
    width: 100%;
    flex: 0 0 auto;           /* sizing driven by content */
    height: auto;   
    padding:0;    
    border-bottom-left-radius: 24px;     /* if you want inner padding */
    border-top-right-radius: 0;     /* if you want inner padding */
 
  }
  

  /* 4) Ensure images stay proportional */
  .main-image {
    width: 100%;
    height: auto;             /* drop the 80% / max-height */
    max-height: none;
    aspect-ratio: auto;       /* optional—lets the browser just size via the image */
  }

  .thumbnail {
    flex: 0 0 calc(50% - 10px); /* two per row */
    width: calc(50% - 50px);
    height: auto;               /* let height scale to width */
    object-fit: cover;
  }
  .thumbnails {
    max-height: none;         /* remove any 100px cap */
  }

  /* 5) Make sure your info card can grow with its text */
  .car-info-card {
    min-height: 0;            /* reset the 400px min if you had one */
  }
}

