.gallery-section .section-title {
	display: flex;
	text-align: left;
	justify-content: space-between;
	align-items: flex-end;
}

.gallery-section .section-title .title {
	width: 50%;
}

.gallery-section {
	background: #ffffff;
	padding: 90px 0;
	margin: 0;
}

.gallery-section .title-text {
	width: 34%;
}

.gallery-section .section-title p {
	max-width: 100%;
}

.gallery-section .section-title .title h2 {
	margin: 0;
}

.category-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 245px;
	gap: 20px;
	grid-auto-flow: dense;
}

.category-grid .card {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	display: block;
	text-decoration: none;
}

.category-grid .card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: 1s;
}

.category-grid .card:hover img {
	transform: scale(1.08);
}

.category-grid .card::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, .15), transparent);
}

.category-grid .card:nth-child(5n+1) {
	grid-row: span 2;
}

.category-grid .overlay {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	color: #fff;
	z-index: 2;
}

.category-grid .overlay span {
	display: inline-block;
	background: rgba(23, 21, 20, .78);
	color: #fff;
	border-radius: 30px;
	padding: 10px 14px;
	font-weight: 800;
	font-size: 13px;
	line-height: normal;
}

.category-grid .overlay h3 {
	font-size: 16px;
	color: #ffffff;
	margin: 12px 0 0 0;
	letter-spacing: -.03em;
}

.category-grid .card:first-child .overlay h3 {
	font-size: 34px;
	color: #ffffff;
	margin: 0;
	letter-spacing: -.03em;
}

.category-grid .card:first-child .overlay {
	left: 26px;
	bottom: 26px;
	right: 26px;
}

.category-grid .overlay p {
	font-size: 18px;
	line-height: 1.6;
}

.category-grid .badge {
	position: absolute;
	left: 18px;
	bottom: 18px;
	background: #333;
	color: #fff;
	padding: 10px 18px;
	border-radius: 40px;
	z-index: 2;
}

@media (max-width:1199px) {
	.gallery-section {
		padding: 60px 0;
	}

	.category-grid .card:first-child .overlay h3 {
		font-size: 26px;
	}

	.category-grid .overlay h3 {
		font-size: 14px;
	}

	.category-grid .overlay span {
		font-size: 11px;
		padding: 8px 10px;
	}

}

@media (max-width:991px) {

	.gallery-section {
		padding: 40px 0;
	}

	.gallery-section .section-title .title {
		width: 100%;
		margin-bottom: 10px;
	}

	.gallery-section .title-text {
		width: 100%;
	}

	.gallery-section .section-title {
		flex-wrap: wrap;
	}

	.gallery-section .section-title p {
		max-width: 100%;
	}

	.category-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 20px;
	}

	.category-grid .card:nth-child(5n+1) {
		grid-column: 1 / -1;
		grid-row: span 2;
	}

	.category-grid .card {
		grid-column: auto;
	}

}

@media (max-width:767px) {
	.category-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 220px;
	}

	.card:nth-child(5n+1) {
		grid-column: auto;
		grid-row: auto;
	}

	.category-grid .card:first-child .overlay {
		left: 16px;
		bottom: 16px;
	}

	.category-grid .overlay span {
		font-size: 13px;
		padding: 10px 14px;
	}
}