.nfs-fg-single-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 24px 80px;
}

.nfs-fg-single-title {
	margin-bottom: 8px;
}

.nfs-fg-single-content {
	margin-top: 16px;
}

.nfs-fg-gallery {
	columns: 4 260px;
	column-gap: 16px;
	margin: 24px 0;
}

@media (max-width: 900px) {
	.nfs-fg-gallery {
		columns: 3 200px;
	}
}

@media (max-width: 600px) {
	.nfs-fg-gallery {
		columns: 2 150px;
	}
}

.nfs-fg-item {
	margin: 0 0 16px;
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #f0f0f0;
	break-inside: avoid;
	display: inline-block;
	width: 100%;
}

.nfs-fg-item img {
	display: block;
	width: 100%;
	height: auto;
	transition: transform 0.3s ease;
}

.nfs-fg-lightbox-link:hover img {
	transform: scale(1.03);
}

/* Lightbox-Overlay */
.nfs-fg-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 24px;
}

.nfs-fg-lightbox-figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 100%;
	max-height: 100%;
}

.nfs-fg-lightbox-overlay img {
	max-width: 100%;
	max-height: 80vh;
	object-fit: contain;
}

.nfs-fg-lightbox-caption {
	color: #fff;
	text-align: center;
	font-size: 0.95em;
	margin-top: 12px;
	max-width: 80ch;
	padding: 0 16px;
}

.nfs-fg-lightbox-close,
.nfs-fg-lightbox-prev,
.nfs-fg-lightbox-next {
	position: absolute;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 1.5rem;
	line-height: 1;
	padding: 10px 14px;
	border-radius: 4px;
}

.nfs-fg-lightbox-close {
	top: 16px;
	right: 16px;
}

.nfs-fg-lightbox-prev {
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
}

.nfs-fg-lightbox-next {
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
}
