
p{
	font-size: 110%;
}
.image-gallery img{
    flex-wrap: wrap;
    width: 100%;
    margin: 5px;
    max-width: 100%;
  }
  /* img{
    max-width: 100%;
  } */
  
.card2{
    margin-left: auto;
    margin-right: auto;
}

.card:hover {
    box-shadow: 0 8px 17px 0 rgba(0,0,0,0.2);
}

.card {
    display: block; 
    margin-bottom: 20px;
    line-height: 1.42857143;
    background-color: #fff;
    border-radius: 2px;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16); 
    transition: box-shadow .25s; 
}

/* .ให้รูปขนาดเท่ากล่อง */
.img-card img{
    width: 100%;
    height: 300px;
    object-fit:cover; 
    transition: all .25s ease;
} 
.img-card {
    width: 90%;
    height:300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5%;
    margin-bottom: 1.5%;
    border-top-left-radius:2px;
    border-top-right-radius:2px;
    display:block;
    overflow: hidden;
}

.card-content {
    padding:1%;
    text-align:left;
}
a:link{
    color: #000000;
    text-decoration: none;
}
a:hover{
    color: #000000 !important;
    text-decoration: none !important;
}
a:visited{
    color: #000000;
    text-decoration: none;
}

@media screen and (max-width:922px) {
    .reward{
        width: 12%;
    }
    .card2{
        width: 90%;
         }
    .img-card {
        width: 90%;
        height:350px;
    }
    .img-card img{
        width: 100%;
        height: 350px;
  }
  section h1{
    font-size: 171%;
  } 

}
@media screen and (max-width:768px) {
    .reward{
        width: 12%;
    }
    .card2{
        width: 90%;
    }
    .reward1{
        width: 10%;
        margin-top: 5%;
    }
    .img-card {
        width: 90%;
        height:300px;
    }
    .img-card img{
        width: 100%;
        height: 300px;
  }
  section h1{
    font-size: 171%;
  }
}
@media screen and (max-width:576px) {
    .img-card {
        width: 90%;
        height:200px;
    }
    .img-card img{
        width: 100%;
        height: 200px;
  } 
}
