.gallery {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px
}

@media(max-width:900px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr)
	}
}

@media(max-width:560px) {
	.gallery {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px
	}
}

.gallery .g-item {
	border-radius: 10px;
	overflow: hidden;
	background: var(--bg-2);
	border: 1px solid var(--line);
	transition: transform .3s, box-shadow .3s
}

.gallery .g-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 16px 32px rgba(15, 50, 100, .12)
}

.gallery .g-item img {
	width: 100%;
	height: auto;
	display: block;
	transition: transform .5s
}

.gallery .g-item:hover img {
	transform: scale(1.06)
}

.gallery .g-item .cap {
	padding: 14px 16px;
	text-align: center;
	font-size: 16px;
	color: var(--text-dim)
}