.aspek-portfolio-servicos {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px;
	padding-top: 40px;
	margin: 0 auto;
	max-width: 1119px;
}

.aspek-servico-card {
	position: relative;
	overflow: hidden;
	min-width: 0;
	aspect-ratio: 1 / 1;
	background: #d9d9d9;
}

.aspek-servico-card__link,
.aspek-servico-card__image,
.aspek-servico-card__img,
.aspek-servico-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.aspek-servico-card__link {
	position: relative;
	color: #fff;
	text-decoration: none;
}

.aspek-servico-card__img {
	object-fit: cover;
	transition: transform .5s ease;
}

.aspek-servico-card__placeholder {
	background: #d9d9d9;
}

.aspek-servico-card__overlay {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 30px;
	background: rgba(24, 96, 104, .6);
	transition: height .5s ease, background-color .5s ease;
}

.aspek-servico-card__title {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	padding: 0 10px;
	color: #fff;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	transform: translateY(-50%);
}

.aspek-servico-card:hover .aspek-servico-card__overlay,
.aspek-servico-card:focus-within .aspek-servico-card__overlay {
	height: 100%;
	background: rgba(24, 96, 104, .72);
}

.aspek-servico-card:hover .aspek-servico-card__img,
.aspek-servico-card:focus-within .aspek-servico-card__img {
	transform: scale(1.03);
}

.aspek-servico-card__link:focus-visible {
	outline: 3px solid #167589;
	outline-offset: 3px;
}

@media (max-width: 963px) {
	.aspek-portfolio-servicos {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 840px) {
	.aspek-portfolio-servicos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}
}

@media (max-width: 560px) {
	.aspek-portfolio-servicos {
		grid-template-columns: 1fr;
		max-width: 320px;
		gap: 24px;
	}
}
