.contacts-block {
  margin: 75px 0;
}

.contacts-title {
	width: 100%;
	text-align: center;
	margin-bottom: 25px;
	color: var(--darkred);
}

.contacts {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
}

.contact {
	margin-left: 4px;
	margin-top: 25px;
	text-align: center;
	color: var(--darkred);
	width: calc(25% - 3px);
}

.contact:nth-of-type(4n+1) {
	margin-left: 0;
}

.contact:nth-of-type(-n+4) {
	margin-top: 0;
}

.contact h5 {
	margin: 0;
}

.contact p {
	margin: 0.15em 0;
	line-height: 1.25;
}

p.lastname {
	margin: 0;
	font-size: 20px;
}

.contact a {
	text-decoration: none;
}

.contact a:hover {
	text-decoration: underline;
}

.contact-img {
  height: 0;
  width: 90%;
	margin-left: 5%;
  position: relative;
  margin-bottom: 10px;
  padding-bottom: 90%;
	background-color: rgba(0, 0, 0, 0.2);
}

.contact-img img {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
}



/*Editor only*/


/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Responsive 1450px - 1025px
--------------------------------------------------------------*/
@media screen and (max-width: 1450px) and (min-width: 1025px) {

	.contacts-block {
	  margin: 50px 0;
	}

	.contact {
		margin-left: 4px;
		margin-top: 25px;
		width: calc(25% - 3px);
	}

	.contact:nth-of-type(4n+1) {
		margin-left: 0;
	}

	.contact:nth-of-type(-n+4) {
		margin-top: 0;
	}

	.contact p {
		font-size: 15px;
	}

	p.lastname {
		font-size: 18px;
	}

	.contact-img {
	  width: 90%;
		margin-left: 5%;
	  margin-bottom: 10px;
	  padding-bottom: 90%;
	}

}

/*--------------------------------------------------------------
## Responsive 1024px - 641px
--------------------------------------------------------------*/
@media screen and (max-width: 1024px) and (min-width: 641px) {

  .contacts-block {
	  margin: 35px 0;
	}

	.contact {
		margin-left: 3px;
		margin-top: 20px;
		width: calc(33.33% - 2px);
	}

	.contact:nth-of-type(4n+1) {
		margin-left: 3px;
	}

	.contact:nth-of-type(-n+4) {
		margin-top: 20px;
	}

	.contact:nth-of-type(3n+1) {
		margin-left: 0;
	}

	.contact:nth-of-type(-n+3) {
		margin-top: 0;
	}

	.contact p {
		font-size: 15px;
	}

	p.lastname {
		font-size: 18px;
	}

	.contact-img {
	  width: 90%;
		margin-left: 5%;
	  margin-bottom: 10px;
	  padding-bottom: 90%;
	}

}

/*--------------------------------------------------------------
## Responsive 640px - 300px
--------------------------------------------------------------*/
@media screen and (max-width: 640px) and (min-width: 401px) {

	.contacts-block {
	  margin: 25px 0;
	}

	.contact {
		margin-left: 10px;
		margin-top: 20px;
		width: calc(50% - 5px);
	}

	.contact:nth-of-type(4n+1) {
		margin-left: 10px;
	}

	.contact:nth-of-type(-n+4) {
		margin-top: 20px;
	}

	.contact:nth-of-type(2n+1) {
		margin-left: 0;
	}

	.contact:nth-of-type(-n+2) {
		margin-top: 0;
	}

	.contact p {
		font-size: 14px;
	}

	p.lastname {
		font-size: 18px;
	}

	.contact-img {
	  width: 90%;
		margin-left: 5%;
	  margin-bottom: 10px;
	  padding-bottom: 90%;
	}

}

/*--------------------------------------------------------------
## Responsive 640px - 300px
--------------------------------------------------------------*/
@media screen and (max-width: 400px) and (min-width: 300px) {

	.contacts-block {
	  margin: 25px 0;
	}

	.contact {
		width: 90%;
		margin: 20px 5% 0 5%;
	}

	.contact:nth-of-type(4n+1) {
		margin: 20px 5% 0 5%;
	}

	.contact:nth-of-type(-n+4) {
		margin-top: 20px;
	}

	.contact:first-of-type {
		margin-top: 0;
	}

	.contact p {
		font-size: 15px;
	}

	p.lastname {
		font-size: 18px;
	}

	.contact-img {
	  width: 100%;
		margin-left: 0;
	  padding-bottom: 100%;
	}

}
