#hero {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 40rem;
}

#hero-main {
    flex: 1 1 auto;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#hero-front{
    width:80%;
}

.foursquare {
    flex: 0 0 40rem;
    display: flex;
    flex-wrap: wrap;
    height: 40rem;
    width: 40rem;
}

.foursquare-image {
    flex: 0 0 50%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}





#home-search-thumbnail-grid {
    display: grid;
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.search-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* or 1 / 1 for perfect squares */
    object-fit: cover;
    display: block;
}



#home-search-box {

    /* center horizontally & vertically */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* optional constraints & padding */
    width: 100%;
    max-width: 860px;
    /* adjust as needed */
    padding: 0 1rem;
    /* so the inputs don’t hit the edges */

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;

    padding: 4rem;

}

#home-search-bar {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
}

#home-search-input {
    max-width: 39rem;
    width: 90%;
}


#testimonials {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 40rem;
}


#testimonial-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
}


@media(max-width:1220px){


    #happy-clients-image {
        width: 40rem;
        height: 40rem;
    }
}


@media(max-width:1040px) {

    #home-search-box {
        padding: 2rem;
        width: 90%;
        max-width: auto;
    }

    #home-search-thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #home-search-bar {
        flex-direction: column;
        align-items: center;
    }

    #testimonials{
      height:50rem;
    }
}

@media(max-width:704px) {
    .foursquare {
        flex: 0;
        width: 100%;
        height: auto;
    }

    #happy-clients-image {
        width: 100%;
        aspect-ratio: 1 / 1;
        height:auto;
    }
}