.home-directions {
	position: relative;
	z-index: 1;
}

.home-directions__content {
	padding: 0 105px;
	column-gap: 30px;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.home-directions__content .home-directions__item {
	position: relative;
}

.home-directions__item-bg {
	overflow: hidden;
	height: 0;
	padding-top: 118.1%;
	position: relative;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.home-directions__content .home-directions__item:nth-of-type(1)::before,
.home-directions__content .home-directions__item:nth-of-type(4)::before {
	content: "";
	position: absolute;
	z-index: -1;
	border: 1px solid var(--color2);
	pointer-events: none;
	top: -15px;
	bottom: -15px;
}

.home-directions__content .home-directions__item:nth-of-type(1)::before {
	left: -15px;
	right: 15px;
	border-bottom-left-radius: 131px;
}

.home-directions__content .home-directions__item:nth-of-type(4)::before {
	left: 15px;
	right: -15px;
	border-top-right-radius: 131px;
}

@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {

	.home-directions__content .home-directions__item:nth-of-type(1)::before,
	.home-directions__content .home-directions__item:nth-of-type(4)::before {
		border: 1px solid transparent;
		background: var(--gradient1) border-box;
	    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	    -webkit-mask-composite: xor;
	    mask-composite: exclude;
	}

}

.home-directions__content .home-directions__item:nth-of-type(1) .home-directions__item-bg {
	border-bottom-left-radius: 131px;
}

.home-directions__content .home-directions__item:nth-of-type(4) .home-directions__item-bg {
	border-top-right-radius: 131px;
}

.home-directions__item-heading {
	height: 54.29%;
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	background: var(--gradient2);
	display: flex;
	align-items: center;
	color: var(--color3);
	justify-content: flex-end;
	text-align: center;
	flex-direction: column;
	padding: 0 15px 54px 15px;
}

.home-directions__item-btn {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 19px;
}

@media (max-width: 1399px) {

	.home-directions__content {
		padding: 0 60px;
	}

	.home-directions__content .home-directions__item:nth-of-type(1)::before,
	.home-directions__content .home-directions__item:nth-of-type(4)::before {
		top: -12px;
		bottom: -12px;
	}

	.home-directions__content .home-directions__item:nth-of-type(1)::before {
		left: -12px;
		right: 12px;
		border-bottom-left-radius: 100px;
	}

	.home-directions__content .home-directions__item:nth-of-type(4)::before {
		left: 12px;
		right: -12px;
		border-top-right-radius: 100px;
	}

	.home-directions__content .home-directions__item:nth-of-type(1) .home-directions__item-bg {
		border-bottom-left-radius: 100px;
	}

	.home-directions__content .home-directions__item:nth-of-type(4) .home-directions__item-bg {
		border-top-right-radius: 100px;
	}

	.home-directions__item-heading {
		height: 54.4%;
		padding-bottom: 45px;
	}

	.home-directions__item-btn {
		bottom: 16px;
	}

}

@media (max-width: 1023px) {

	.home-directions__content {
		padding: 0 30px;
		column-gap: 15px;
	}

	.home-directions__content .home-directions__item:nth-of-type(1)::before,
	.home-directions__content .home-directions__item:nth-of-type(4)::before {
		top: -8px;
		bottom: -8px;
	}

	.home-directions__content .home-directions__item:nth-of-type(1)::before {
		left: -8px;
		right: 8px;
		border-bottom-left-radius: 70px;
	}

	.home-directions__content .home-directions__item:nth-of-type(4)::before {
		left: 8px;
		right: -8px;
		border-top-right-radius: 70px;
	}

	.home-directions__content .home-directions__item:nth-of-type(1) .home-directions__item-bg {
		border-bottom-left-radius: 70px;
	}

	.home-directions__content .home-directions__item:nth-of-type(4) .home-directions__item-bg {
		border-top-right-radius: 70px;
	}

	.home-directions__item-heading {
		height: 60.13%;
		padding: 0 8px 37px 8px;
	}

}

@media (max-width: 767px) {

	.home-directions {
		margin-top: 49px;
	}

	.home-directions__content {
		grid-template-columns: repeat(2, 1fr);
		padding: 0 7px;
		column-gap: 8px;
		row-gap: 23px;
	}

	.home-directions__content .home-directions__item:nth-of-type(1)::before,
	.home-directions__content .home-directions__item:nth-of-type(4)::before {
		top: -7px;
		bottom: 21px;
	}

	.home-directions__content .home-directions__item:nth-of-type(1)::before {
		left: -7px;
		right: 7px;
		border-bottom-left-radius: 0;
		border-top-left-radius: 70px;
	}

	.home-directions__content .home-directions__item:nth-of-type(4)::before {
		left: 7px;
		right: -7px;
		border-top-right-radius: 0;
		border-bottom-right-radius: 70px;
	}

	.home-directions__content .home-directions__item:nth-of-type(1) .home-directions__item-bg {
		border-bottom-left-radius: 0;
		border-top-left-radius: 70px;
	}

	.home-directions__content .home-directions__item:nth-of-type(4) .home-directions__item-bg {
		border-top-right-radius: 0;
		border-bottom-right-radius: 70px;
	}

	.home-directions__item-bg {
		padding-top: 116.23%;
	}

	.home-directions__item-heading {
		height: 45.45%;
		padding: 0 3px 19px 3px;
	}

	.home-directions__item-btn {
		position: static;
		margin: 14px auto 0 auto;
		transform: translateX(0);
	}

}
