.a_container{
    display: flex;
    justify-content: center; /* Horizontally center the grid */
}

.a_grid_container{
/*    width: 540px;*/
    display: flex;
    justify-content: center; /* Horizontally center the grid */

}

.a_grid{
    align-items: center; /* Vertically center the images within the grid */
    display: flex;
    flex-wrap: wrap;
}


.a_grid .property_brief{
    margin: 6px 6px 12px 6px;
    border: solid thin black;
    position: relative;
}

.a_grid .property_brief img{
    max-width: 528px;
    width: 100%; /* Adjusts to the width of the parent */
    height: auto; /* Maintains aspect ratio */
}


.property_address{
    padding: .5rem 1rem 1rem 1rem;
}

.property_address a{
    font-size: 1rem;
}

.property_status{
    position: absolute;
    top: 0px;
    left: 0px;
/*    transform: translate(-50%, -50%);*/
    color: white;
    background-color: red;
    font-size: 24px;
    text-align: center;
    padding: 0px 8px;
}

.property_status_under_offer{
    background-color: orange;
}

.property_status_sold{
    background-color: red;
}

@media screen and (min-width: 540px) {

    .a_grid_container{
        width: 520px;
    }

    .a_grid .property_brief img{
        width: 246px;
    }
}

@media screen and (min-width: 576px) {}

@media screen and (min-width: 768px) {
    .a_grid_container{
        width: 720px;
    }
    .a_grid .property_brief img{
        width: 226px;
    }
}

@media screen and (min-width: 992px) {
    .a_grid_container{
        width: 960px;
    }
    .a_grid .property_brief img{
        width: 306px;
    }
}

@media screen and (min-width: 1200px) {
    .a_grid_container{
        width: 1170px;
    }
    .a_grid .property_brief img{
        width: 278.5px;
    }
}

@media screen and (min-width: 1300px) {
    .a_grid_container{
        width: 1270px !important;
    }
    .a_grid .property_brief img{
        width: 303.5px;
    }

}

@media screen and (min-width: 1400px) {
    .a_grid_container{
        width: 1370px !important;
    }
    .a_grid .property_brief img{
        width: 260px;
    }
}

