.n3-production-gallery {
	--n3-gallery-accent: var(--fs-color-primary, var(--primary-color, #ffb400));
	--n3-gallery-accent-shadow: color-mix(in srgb, var(--n3-gallery-accent) 26%, transparent);
	--n3-gallery-gap: 10px;
	width: min(100%, var(--n3-section-width, 1340px));
	margin-right: auto;
	margin-left: auto;
	font-family: inherit;
}

.n3-production-gallery__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 0 0 30px;
}

.n3-production-gallery__filter {
	align-items: center;
	background: #fff;
	border: 1px solid #e7e7e7;
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
	color: #1f2933;
	cursor: pointer;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	gap: 7px;
	line-height: 1.2;
	min-height: 38px;
	padding: 0 14px;
	text-transform: uppercase;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
	white-space: nowrap;
	margin: 0;
}

.n3-production-gallery__filter:hover,
.n3-production-gallery__filter.is-active {
	background: var(--n3-gallery-accent);
	border-color: var(--n3-gallery-accent);
	box-shadow: 0 6px 14px var(--n3-gallery-accent-shadow);
	color: #111827;
}

.n3-production-gallery__filter-icon,
.n3-production-gallery__item-icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.n3-production-gallery__filter-icon svg {
	height: 15px;
	width: 15px;
}

.n3-production-gallery__filter-img {
	display: block;
	height: 15px;
	object-fit: contain;
	width: 15px;
}

.n3-production-gallery__grid {
	display: grid;
	gap: var(--n3-gallery-gap);
	grid-template-columns: repeat(12, minmax(0, 1fr));
}

.n3-production-gallery__item {
	border-radius: 4px;
	cursor: pointer;
	display: block;
	grid-column: span 4;
	min-width: 0;
	overflow: hidden;
	position: relative;
	text-decoration: none;
	transform: translateY(0);
	transition: opacity .2s ease, transform .2s ease;
	will-change: transform, opacity;
}

.n3-production-gallery__item.is-compact {
	grid-column: span 3;
}

.n3-production-gallery__item.is-hidden {
	display: none;
}

.n3-production-gallery__item:hover {
	transform: translateY(-2px);
}

.n3-production-gallery__item:focus {
	outline: 2px solid var(--n3-gallery-accent);
	outline-offset: 2px;
}

.n3-production-gallery__image {
	aspect-ratio: 1.7 / 1;
	background:
		linear-gradient(135deg, rgba(21, 27, 34, 0.18), rgba(21, 27, 34, 0.68)),
		linear-gradient(145deg, #334155, #0f172a 48%, #2f3f48);
	background-position: center;
	background-size: cover;
	position: relative;
}

.n3-production-gallery__item.is-compact .n3-production-gallery__image {
	aspect-ratio: 1.45 / 1;
}

.n3-production-gallery__image::before {
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .76) 100%);
	content: "";
	inset: 0;
	position: absolute;
}

.n3-production-gallery__overlay {
	align-items: center;
	bottom: 0;
	color: #fff;
	display: flex;
	gap: 8px;
	left: 0;
	padding: 14px 14px 12px;
	position: absolute;
	right: 0;
	z-index: 1;
}

.n3-production-gallery__item-icon {
	color: #fff;
	margin-bottom: 1px;
	opacity: .95;
}

.n3-production-gallery__item-icon svg {
	height: 24px;
	width: 24px;
}

.n3-production-gallery__copy {
	display: block;
	min-width: 0;
}

.n3-production-gallery__title,
.n3-production-gallery__text {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.n3-production-gallery__title {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

.n3-production-gallery__text {
	color: rgba(255, 255, 255, .86);
	font-size: 11px;
	line-height: 1.35;
	margin-top: 2px;
}

.n3-production-gallery__more-wrap {
	display: flex;
	justify-content: center;
	margin-top: 20px;
}

.n3-production-gallery__more {
	align-items: center;
	background: transparent;
	border: 0;
	color: #2f343b;
	cursor: pointer;
	display: inline-flex;
	font-size: 12px;
	font-weight: 700;
	gap: 8px;
	letter-spacing: 0;
	line-height: 1;
	padding: 8px 10px;
	text-transform: uppercase;
}

.n3-production-gallery__more[hidden] {
	display: none;
}

.n3-production-gallery__more-icon {
	border: 1px solid var(--n3-gallery-accent);
	border-radius: 50%;
	height: 16px;
	position: relative;
	width: 16px;
}

.n3-production-gallery__more-icon::before,
.n3-production-gallery__more-icon::after {
	background: var(--n3-gallery-accent);
	content: "";
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.n3-production-gallery__more-icon::before {
	height: 1px;
	width: 7px;
}

.n3-production-gallery__more-icon::after {
	height: 7px;
	width: 1px;
}

.n3-gallery-lightbox-open {
	overflow: hidden;
}

.n3-gallery-lightbox {
	align-items: center;
	background: rgba(0, 0, 0, .88);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	position: fixed;
	transition: opacity .2s ease;
	z-index: 99999;
}

.n3-gallery-lightbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.n3-gallery-lightbox__figure {
	margin: 0;
	max-height: 86vh;
	max-width: min(88vw, 980px);
	position: relative;
	text-align: right;
}

.n3-gallery-lightbox__image {
	box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
	display: block;
	max-height: 82vh;
	max-width: 100%;
	object-fit: contain;
}

.n3-gallery-lightbox__caption {
	color: rgba(255, 255, 255, .9);
	font-size: 13px;
	line-height: 1;
	margin-top: 10px;
	text-align: right;
}

.n3-gallery-lightbox__close,
.n3-gallery-lightbox__nav {
	background: transparent;
	border: 0;
	color: rgba(255, 255, 255, .78);
	cursor: pointer;
	margin: 0;
	padding: 0;
	position: absolute;
	transition: color .2s ease, opacity .2s ease;
	z-index: 2;
}

.n3-gallery-lightbox__close:hover,
.n3-gallery-lightbox__nav:hover {
	color: #fff;
}

.n3-gallery-lightbox__close {
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	right: calc(50% - min(44vw, 490px));
	top: 8vh;
}

.n3-gallery-lightbox__nav {
	font-size: 80px;
	line-height: 1;
	opacity: .82;
	top: 50%;
	transform: translateY(-50%);
}

.n3-gallery-lightbox__nav--prev {
	left: 24px;
}

.n3-gallery-lightbox__nav--next {
	right: 24px;
}

@media (max-width: 849px) {
	.n3-production-gallery__filters {
		gap: 8px;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.n3-production-gallery__item,
	.n3-production-gallery__item.is-compact {
		grid-column: span 6;
	}

	.n3-gallery-lightbox__close {
		right: 18px;
		top: 18px;
	}

	.n3-gallery-lightbox__nav {
		font-size: 54px;
	}
}

@media (max-width: 549px) {
	.n3-production-gallery__filter {
		font-size: 11px;
		min-height: 34px;
		padding: 0 11px;
	}

	.n3-production-gallery__item,
	.n3-production-gallery__item.is-compact {
		grid-column: span 12;
	}

	.n3-gallery-lightbox__figure {
		max-width: 92vw;
	}

	.n3-gallery-lightbox__nav--prev {
		left: 8px;
	}

	.n3-gallery-lightbox__nav--next {
		right: 8px;
	}
}
