.sub-gallery {
	padding: 80px 20px;
	background: #f8f6f3;
}

.sub-gallery-inner {
	max-width: 1400px;
	margin: 0 auto;
}

.gallery-head {
	text-align: center;
	margin-bottom: 50px;
}

.gallery-head h2 {
	font-size: 42px;
	font-weight: 700;
	color: #111;
	margin-bottom: 10px;
}

.gallery-head p {
	font-size: 16px;
	color: #777;
}

/* masonry style */
.gallery-grid {
	column-count: 4;
	column-gap: 20px;
}

.gallery-item {
	break-inside: avoid;
	margin-bottom: 20px;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.gallery-item a {
	display: block;
}

.gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.4s ease;
}

.gallery-item:hover img {
	transform: scale(1.04);
}

/* tablet */
@media (max-width: 1200px) {
	.gallery-grid {
		column-count: 3;
	}
}

/* small tablet */
@media (max-width: 768px) {
	.sub-gallery {
		padding: 60px 15px;
	}

	.gallery-head h2 {
		font-size: 32px;
	}

	.gallery-grid {
		column-count: 2;
		column-gap: 15px;
	}

	.gallery-item {
		margin-bottom: 15px;
		border-radius: 14px;
	}
}

/* mobile */
@media (max-width: 480px) {
	.gallery-grid {
		column-count: 1;
	}
}