<div class="col-md-3 col-sm-6 col-xs-12 center wow fadeInUp" data-wow-delay="0.2s" style="visibility: hidden; animation-delay: 0.2s; animation-name: none;">
<div class="thumb-links" style="width:100%;">
<img src="@item.projectImageURL" alt="@item.projectCompany">
</div>
</div>
and CSS
.thumb-links {
display: block;
position: relative;
z-index: 2;
text-align: center;
cursor: pointer;
height: 270px;}
@media (max-width: 767px) {
.thumb-links {
max-width: 370px;
margin-left: auto;
margin-right: auto;
}}
.thumb-links img {
height: auto;
vertical-align:middle;
-moz-transition: 0.5s all ease;
-webkit-transition: 0.5s all ease;
-o-transition: 0.5s all ease;
transition: 0.5s all ease;}
images widths and heights are different than each others I cant get them properly. they are going to top of thumb-links.