.fg-gallery {
	width: 100%;
}

.fg-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 40px;
	padding-bottom: 40px;
	border-bottom: 1px solid #62647C;
}

.fg-tabs__button {
	appearance: none;
	background: #FFFDF0;
	color: #222060;
	font-size: 1rem;
	line-height: 1;
	border-radius: 12px;
	padding: 10px 15px;
	cursor: pointer;
	transition: all .2s ease;
    box-shadow: none;
    font-weight: 400;
}

.fg-tabs__button:hover,
.fg-tabs__button.is-active {
	background: #222060;
	border-color: #222060;
	color: #FFFDF0;
}

.fg-grid {
	column-count: 3;
	column-gap: 20px;
	transition: opacity .2s ease;
}

.fg-grid.is-loading {
	opacity: .45;
	pointer-events: none;
}

.fg-item {
	position: relative;
	display: block;
	width: 100%;
	margin-bottom: 20px;
	break-inside: avoid;
	overflow: hidden;
	border-radius: 20px;
	background: #f3f3f3;
}

.fg-item img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 20px;
	transition: transform .35s ease;
}

@media (hover: hover) and (pointer: fine) {
	.fg-item:hover img {
		transform: scale(1.05);
	}
}

.fg-item__label {
	position: absolute;
	top: 20px;
	right: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border-radius: 12px;
	background: rgba(34, 32, 96, .20);
	color: #FFFDF0;
	font-size: 0.9rem;
	line-height: 1;
	backdrop-filter: blur(6px);
}

.fg-empty {
	margin: 0;
	color: #777;
}

@media (max-width: 1024px) {
	.fg-grid {
		column-count: 2;
	}
}

@media (max-width: 767px) {
	.fg-tabs {
		gap: 10px;
		margin-bottom: 30px;
	}

	.fg-grid {
		column-count: 1;
		column-gap: 0;
	}

	.fg-item {
		margin-bottom: 10px;
	}

	.fg-item img,
	.fg-item:hover img,
	.fg-item:focus img,
	.fg-item:active img {
		transform: none !important;
	}
}