body {
  padding: 40px 0; background-color: #ccc;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 20px;
  align-items: stretch;  
}

.grid > article {
  border: 1px solid #ccc;
  box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.3);border-bottom: 5px solid rgb(75, 135, 139);
}

.grid > article img {
   width: 100%; height: 341px;
}

.grid .text {
  padding: 20px;
}


.btn-primary {
  background-color: rgb(15, 72, 109); border: 2px blueviolet; color: rgb(255, 255, 255); font-weight1: bold; text-align: left; 
}





@media only screen and (max-width: 610px){ 
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 20px;
  align-items: stretch;
}
 
.grid > article img {
   width: 100%; height: 421px;
}
} 

