

html {
  box-sizing: border-box;
  font-family:'helvetica neue';
}

body {
	background-color: #e6e1e1;
	margin: 0;
}

*, *:before, *:after {
  box-sizing: inherit;
}

header {
	font-size: 18px;
	margin: 0 auto;
	padding: 2em 5em 0;
}


h1 {
  text-align: center;
}

.contain {
	-ms-flex-pack: justify;
	-ms-flex-wrap: wrap;
	-webkit-box-pack: justify;
	display: -ms-flexbox;
	display: -webkit-box;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	margin: 0 auto;
	overflow: hidden;
	padding: 2em 4em;
}

.item {
	width: calc(25% - 1rem);
	-webkit-transition: all 0.2s;
	background: #fff;
	box-shadow: 0 0 10px 2px rgba(0,0,0,0.2);
	height: 250px;
/*	justify-content: center;
*/	list-style: none;
	margin-bottom: 2rem;
	padding: 1rem;
	position: relative;
	transition: all 0.2s;
}

.item a {
	text-decoration: none;
}

.item:hover {
	-webkit-transform: scale(1.1);
	box-shadow: 0 0 15px 4px rgba(0,0,0,0.05);
	transform: scale(1.1);
	z-index: 2;
}

.item img {
	-o-object-fit: cover;
	height: 170px;
	margin-left: -1rem;
	margin-top: -1rem;
	object-fit: cover;
	width: calc(100% + 2rem);
}

@media only screen and (max-width: 991px) {
  .item {
    width: calc(30% - 1rem);
  }
}

@media only screen and (max-width: 767px) {
  header {
    padding: 2em 1em;
  }

  .items {
    padding: 1em;
  }

  .item {
    width: 100%;
  }
}