/* Default layout */
.car-listing {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

/* For screens 1280px and below */
@media (max-width: 1280px) {
    .car-listing {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* For screens 1023px and below */
@media (max-width: 1023px) {
    .car-listing {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* For screens 768px and below (corrected this media query) */
@media (max-width: 768px) {
    .car-listing {
        grid-template-columns: repeat(2, 1fr);
         margin-bottom: 30px;
    }
}

.car-item {
    background: white;
}


.car-item a {
    text-decoration: none !important;
}

.car-item a:hover {
    text-decoration: underline !important;
     color: #c72026 !important;
}

.car-item a h2 {
    font-size: 15px;
    letter-spacing: 1px;
    font-family: Verdana;
    font-weight: 700;
    margin: 10px 0;
       line-height: 27px !important;
    transition: 0.75s;
}

.car-item a h2:hover {
       color: #c72026 !important;
    }
.car-item a h2 span {
    letter-spacing: normal;
}    


.thumbnail {
    display: inline-block;
    position: relative; 
}

.normal-img {
    width: 100%;
    height: auto;
}

.overlay-img {
    z-index: 1000 !important;
    /* Hidden by default */
    display: none;
    position: fixed;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    height: 80vh !important;
    width: auto;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4) !important;
}




