.works-gallery {
	margin-top: 50px;
	margin-bottom: 24px;
}

.works-gallery h2 {
	font-size: 36px;
	font-weight: 500;
	text-transform: uppercase;
	color: #1f3b1c;
	margin: 0 0 24px;
}

.foogallery.foogallery-container,
.foogallery-container.fg-default {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
	gap: 14px !important;
	width: 100% !important;
	max-width: 100% !important;
	padding: 0 !important;
	justify-content: stretch !important;
	align-items: stretch !important;
}

.foogallery .fg-item {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	float: none !important;
	border-radius: 16px;
	overflow: hidden;
	background: #f3f3f3;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.foogallery .fg-item-inner,
.foogallery .fg-thumb,
.foogallery .fg-image-wrap {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
}

.foogallery .fg-image,
.foogallery img.fg-image {
	width: 100% !important;
	height: 220px !important;
	object-fit: cover !important;
	border-radius: 16px;
	display: block !important;
}

.foogallery .fg-caption {
	display: none !important;
}

.foogallery .fg-item:hover .fg-image {
	transform: scale(1.04);
	transition: transform 0.3s ease;
}

.container:has(.foogallery),
.ld-page:has(.foogallery) {
	overflow: visible;
}

@media (max-width: 991px) {
	.foogallery.foogallery-container,
	.foogallery-container.fg-default {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 768px) {
	.works-gallery h2 {
		font-size: 24px;
	}

	.foogallery.foogallery-container,
	.foogallery-container.fg-default {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 10px !important;
	}

	.foogallery .fg-image,
	.foogallery img.fg-image {
		height: 160px !important;
	}
}
