@media only screen and (max-width:1750px) {

	.project section article {
		max-width: 980px;
	}

}

@media only screen and (max-width:1640px) {

	header {
		top: 50px;
		left: 50px;
	}

	nav#projects-filter {
		top: 50px;
		right: 50px;
	}

	.project main {
		padding-top: 50px;
	}

	.regular main {
		padding-top: 180px;
	}

	footer > div {
		padding: 50px;
	}

}

@media only screen and (max-width:1500px) {

	.regular main section,
	.project section article {
		max-width: 850px;
	}

}

@media only screen and (max-width:1400px) {


	.home #projects .projects {
		grid-template-columns: repeat(5, 110px) !important;
	}

	.project section article {
		display: block;
	}

	.regular main section,
	.home .project section article,
	.project section article {
		max-width: 620px;
	}

	.project section article #gallery {
		width: 100%;
		margin-right: 0;
	}

	.project section article #gallery #thumbs {
		grid-template-columns: repeat(4, 1fr);
	}

	.project section article div > span {
		margin-top: 30px;
	}

}

@media only screen and (max-width:990px) {

	p {
		font-size: 18px;
		line-height: 1.3;
	}

	header {
		width: 100%;
		padding: 20px;
		background-color: var(--black);
		top: 0;
		left: 0;
		z-index: 11;
	}

	header nav {
		position: relative;
	}

	header nav > a {
		width: 90px;
		position: relative;
		z-index: 10;
	}

	header nav #mobile {
		width: 32px;
		height: 32px;
		font-size: 32px;
		display: flex;
		align-items: center;
		justify-content: center;
		transform: translateY(-50%);
		color: var(--yellow);
		position: absolute;
		top: 50%;
		right: 0;
	}

	header nav #mobile i {
		transition: all 280ms ease;
		position: absolute;
	}

	header nav #mobile i.fa-times {
		opacity: 0;
		transform: scale(0);
	}

	header.active nav #mobile i.fa-bars {
		opacity: 0;
		transform: scale(0);
	}

	header.active nav #mobile i.fa-times {
		opacity: 1;
		transform: scale(1);
	}

	header nav .menu {
		width: 100%;
		height: 100%;
		padding: 90px 0 30px;
		margin: 0;
		opacity: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		background-color: var(--black);
		transform: scale(0.9);
		transition: all 280ms ease;
		pointer-events: none;
		position: fixed;
		top: 0;
		left: 0;
	}

	header nav ul li {
		margin-bottom: 30px;
	}

	header nav .contact {
		width: 100%;
		padding: 0 20px;
		margin: 0;
		opacity: 0;
		transform: scale(0.9);
		transition: all 280ms ease;
		display: flex;
		justify-content: space-between;
		pointer-events: none;
		position: fixed;
		bottom: 0;
		left: 0;
	}

	header.active nav .menu,
	header.active nav .contact {
		opacity: 1;
		transform: scale(1);
		pointer-events: all;
	}

	nav#projects-filter {
		display: none;
	}

	.home #intro article {
		padding: 50px 20px;
	}

	.home #intro article h1,
	.home #services h2 {
		font-size: 42px;
	}

	.home #intro article p,
	.home #services p {
		font-size: 24px;
		line-height: 1.3;
	}

	.home #services {
		padding: 150px 20px 0;
	}

	.home .project section article,
	.project section article {
		width: 100%;
		max-width: none;
		padding: 0 20px;
	}

	.home .project .close, 
	.project .close {
	   right: 20px;
	   top: 10px;
	 }

	.home #projects .projects {
		grid-template-columns: repeat(3, 110px) !important;
	}

	.project section article div h1 {
		margin-top: 20px;
		font-size: 50px;
	}

	.project section article div h1::after {
		clear: both;
	}

	.regular h1 {
		font-size: 58px;
	}

	.regular main section,
	.home .project section article {
		padding: 0 20px;
	}

	.about #team {
		margin-top: 100px;
		grid-template-columns: 1fr;
		gap: 50px;
	}

	.about #team article {
		width: 100%;
		flex-direction: column;
	}
	
	.about #team article h3 span.line {
		width: 100%;
		margin-left: 0
	}

	.about #team article::after {
		width: 0;
		height: 150px;
		border-top: 0;
		border-left: 1px solid var(--yellow);
		right: 30px;
	}

	.about #team article figure {
		margin-right: 0;
		margin-bottom: 30px;
		position: relative;
	}

	.services #services {
		margin-top: 100px;
	}

	.services #services article {
		width: 100%;
		flex-direction: column;
	}

	.services #services article figure {
		width: 100%;
		min-width: auto;
		height: 0;
		padding-bottom: 100%;
		margin-right: 0;
		margin-bottom: 30px;
		position: relative;
	}

	.services #services article figure::after {
		content: '';
		height: 150px;
		border-left: 1px solid var(--yellow);
		transform: translateY(50%);
		position: absolute;
		right: 30px;
		bottom: 0;
	}

	.services #services article div h3::after {
		display: none;
	}

	.services #services article div p {
		font-size: 18px;
		line-height: 1.3;
	}

	#contact {
		padding: 20px;
		display: block;
		overflow: auto;
	}

	#contact .close {
		top: 24px;
		right: 7px;
		z-index: 10;
	}

	#contact article h3 {
		font-size: 25px;
	}

	footer {
		margin-top: 100px;
	}

	footer > div {
		grid-template-columns: 1fr;
		gap: 30px;
		text-align: center;
	}

	footer > div > div {
		line-height: 1.8;
	}

	footer > div > span {
		display: flex;
		justify-content: center;
	}

	.project #cta {
		margin: 90px 20px 0;
		text-align: center;
	}

	#contact .wpcf7-form .ajax-loader {
		right: 0;
		left: 0;
		margin: 20px auto 20px;
		top: 100%;
	}

	#contact {
		padding: 80px 20px 20px 20px;
	}

	#contact article {
		height: 100%;
		margin: auto;
	}

	#contact.active ul {
		display: none;
	}

}

@media only screen and (max-width:720px) {

	.home #services .services article:nth-child(2) {
		margin: 0 50px;
	}

	.wpcf7 .block.last {
		flex-direction: column;
		align-items: flex-start;
	}

	.wpcf7 .block.last [type="submit"] {
		margin-top: 20px;
	}

	#contact .wpcf7 .policy .privacy-info.active {
		height: 100%;
	}

}

@media only screen and (max-width:650px) {

	.home #projects {
		padding-top: 110px;
		padding-bottom: 50px;
	}

	.home #projects .projects {
		grid-template-columns: repeat(3, 110px) !important;
	}

	.home #services .services {
		padding-bottom: 100px;
		flex-direction: column;
	}

	.home #services .services article:nth-child(2) {
		margin: 50px 0;
	}

	.home #services .services article figure {
		height: auto;
		padding: 30px 0 25px;
		flex-direction: column;
		border-bottom: 0;
	}

	.home #services .services article figure img {
	}

	.home #services .services article figure figcaption {
		margin-top: 30px;
		border-top: 4px solid #fff;
		transform: none;
		position: static;
	}

	.home #services .services article figure figcaption h3 {
		margin-bottom: 0;
	}

	.project section article #gallery #thumbs {
		grid-template-columns: repeat(3, 1fr);
	}

}

@media only screen and (max-width:500px) {

	footer > div #copy {
		display: flex;
		flex-direction: column;
		gap: 15px;
	}

	footer > div #copy p,
	footer > div #copy a {
		width: 100%;
		float: left;
	}
	
	footer > div #copy span {
		display: none;
	}

}

@media only screen and (max-width:450px) {

	.project section article #gallery #thumbs {
		grid-template-columns: repeat(2, 1fr);
	}

}

@media only screen and (max-width:420px) {

	.home #projects .projects {
		grid-template-columns: repeat(2,110px) !important;
	}

	.home #projects .projects article {
		grid-column: auto !important;
		grid-row: auto !important;
	}

	.home #projects .projects article.border {
		display: none !important;
	}

	#cookies-eu-banner {
		padding: 20px;
	}

}