

#mainImg {
    float: left;
    width:  100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    padding-right: 10px;
}


/*
.oneResult{
    display: flex;
    flex-direction: column;
    height: 200px;
}


.imgContainer{
    height: 100%;
    width: 100%;
}
*/

h2 {
    margin-bottom: -2px;
    display: inline;
}

.gridResults{
    display: inline-grid;
    gap: 20px;
    grid-template-columns: repeat(6,1fr);
    grid-template-rows: repeat(2,1fr);
}

.gridItemOneImgContainer{
    grid-column: 1/ span 3;
    grid-row: 1/span 2;
    max-height: 200px;
    /*min-width: 350px;*/
}

.gridTxtContainer{
    grid-column: 4/ span 3;
    grid-row: 1/span 2;
}

/*@media screen and (max-width: 480px){
    img{
        width: 200px;
    }
}*/

/* Mobile-first styles */
@media only screen and (max-width: 767px) {
    .gridResults {
        display: block !important; /* Override existing grid on mobile */
        margin-bottom: 25px;
        padding: 15px;
        background: #f9f9f9;
        border-radius: 8px;
        border-bottom: 1px solid #ddd;
    }

    .gridItemOneImgContainer {
        grid-column: unset !important; /* Remove grid positioning */
        grid-row: unset !important;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        max-height: none;
    }

    .gridTxtContainer {
        grid-column: unset !important; /* Remove grid positioning */
        grid-row: unset !important;
        width: 100%;
    }

    #mainImg {
        width: 100%;
        max-width: 300px; /* Reasonable max size on mobile */
        height: auto;
        object-fit: cover;
        border-radius: 10px;
        padding-right: 0; /* Remove the right padding on mobile */
        max-height: 200px;
    }

    h2 {
        display: block; /* Better for mobile */
        margin-bottom: 8px;
        font-size: 1.2em;
        color: #333;
    }
}

/* Keep your existing desktop styles unchanged - just add some improvements */
@media (min-width: 768px) {
    /* Your existing grid system works fine on desktop, just enhance it slightly */
    .gridResults {
        margin-bottom: 20px; /* Add some spacing between results */
    }
    
    /* Optional: Add a subtle background to make results stand out */
    .gridResults:hover {
        background: #f9f9f9;
        border-radius: 8px;
        transition: background 0.2s ease;
    }
}