.custom_grid_content {
	width: 100%;
	height: auto;
	padding: 50px 5%;
	min-height: 80vh;
}

.custom_grid_container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.custom_grid_heading {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding-bottom: 50px;
	gap: 10px;
}

.custom_grid_heading > h1 {
	width: 100%;
	text-align: center;
	color: black;
	font-family: var(--font);
	text-transform: uppercase;
}

.parent {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	grid-auto-rows: 200px;
	gap: 8px;
}

.parent > div {
	--offset: calc((var(--cycle) - 1) * 5);
}

.div1 {
	grid-column: 1 / span 1;
	grid-row: calc(1 + var(--offset)) / span 2;
}

.div2 {
	grid-column: 2 / span 2;
	grid-row: calc(1 + var(--offset)) / span 2;
}

.div3 {
	grid-column: 4 / span 2;
	grid-row: calc(1 + var(--offset)) / span 3;
}

.div4 {
	grid-column: 1 / span 2;
	grid-row: calc(3 + var(--offset)) / span 3;
}

.div5 {
	grid-column: 3 / span 1;
	grid-row: calc(3 + var(--offset)) / span 2;
}

.div6 {
	grid-column: 3 / span 1;
	grid-row: calc(5 + var(--offset)) / span 1;
}

.div7 {
	grid-column: 4 / span 2;
	grid-row: calc(4 + var(--offset)) / span 2;
}

.parent > div > img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 1024px) {
	.parent {
		grid-template-columns: repeat(3, 1fr);
		grid-auto-rows: 300px;
	}

	.parent > div {
		grid-column: auto !important;
		grid-row: auto !important;
		height: 300px;
	}
}

@media (max-width: 768px) {
	.parent {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: 250px;
	}

	.parent > div {
		grid-column: auto !important;
		grid-row: auto !important;
		height: 250px;
	}
}

@media (max-width: 500px) {
	.parent {
		grid-template-columns: 1fr;
		grid-auto-rows: 200px;
	}

	.parent > div {
		height: 200px;
	}
}
