@keyframes rayOfLight {

  0% {
    top: -40%;
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  55% {
    opacity: 1;
  }

  100% {
    top: 120%;
    opacity: 0;
  }
}

.directions__grid {
	display: -ms-grid;
	display: grid;
	-ms-grid-columns: (1fr)[4];
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	max-width: 1200px;
	margin: 20px auto;
}

.directions__grid:last-child {
    margin-bottom: 0;
}
.directions__grid:first-child {
    margin-top: 0;
}

.direction-card {
	overflow: hidden;
	background-color: #e5e5e5;
	text-decoration: none;
	color: #1a1a1a;
	position: relative;
	-webkit-transition: background-color 0.2s ease, -webkit-transform 0.2s ease;
	transition: background-color 0.2s ease, -webkit-transform 0.2s ease;
	-o-transition: background-color 0.2s ease, transform 0.2s ease;
	transition: background-color 0.2s ease, transform 0.2s ease;
	transition: background-color 0.2s ease, transform 0.2s ease, -webkit-transform 0.2s ease;
	will-change: transform;
	padding-bottom: 56.2%; 
}
.direction-card.direction-card--svg .direction-card__pic {
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
}
.direction-card.direction-card--svg .direction-card__img {
	display: block;
	object-fit: none;
	width: auto;
	height: auto;
	max-width: 100%;
}
.direction-card::after {
    content: "";
    position: absolute;
    top: -140%;
    left: -12%;
    width: 124%;
    height: 12%;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.12) 18%, rgba(255, 255, 255, 0.55) 42%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.48) 58%, rgba(255, 255, 255, 0) 100%);
    mix-blend-mode: screen;
    filter: blur(5px);
}

@media (hover: hover) {
	.direction-card:hover::after {
		animation: 3500ms 0ms forwards rayOfLight;
	}
}

.direction-card__content,
.direction-card__pic {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.direction-card__pic {
	z-index: 1;
}

.direction-card__content {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	gap: 8px;
	padding: 20px;
	z-index: 2;
}

.direction-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.direction-card__title {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	word-wrap: break-word;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	    -ms-hyphens: auto;
	        hyphens: auto;
}

.direction-card__text {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: #333;
	word-wrap: break-word;
	overflow-wrap: break-word;
	-webkit-hyphens: auto;
	    -ms-hyphens: auto;
	        hyphens: auto;
}

@media (max-width: 1024px) {
	.directions__grid {
		-ms-grid-columns: (1fr)[2];
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.directions__grid {
		-ms-grid-columns: 1fr;
		grid-template-columns: 1fr;
	}

	.direction-card__content {
		padding: 16px;
	}

	.direction-card__title {
		font-size: 16px;
	}

	.direction-card__text {
		font-size: 13px;
	}
}

.animation .direction-card:nth-child(1):after {
	animation: 550ms 100ms forwards rayOfLight;
}
.animation .direction-card:nth-child(2):after {
	animation: 550ms 250ms forwards rayOfLight;
}
.animation .direction-card:nth-child(3):after {
	animation: 550ms 350ms forwards rayOfLight;
}
.animation .direction-card:nth-child(4):after {
	animation: 550ms 450ms forwards rayOfLight;
}
.animation .direction-card:nth-child(5):after {
	animation: 550ms 550ms forwards rayOfLight;
}
.animation .direction-card:nth-child(6):after {
	animation: 550ms 650ms forwards rayOfLight;
}
.animation .direction-card:nth-child(7):after {
	animation: 550ms 750ms forwards rayOfLight;
}
.animation .direction-card:nth-child(8):after {
	animation: 550ms 850ms forwards rayOfLight;
}