.bkg-product-gallery {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid rgba(20, 20, 20, 0.12);
}

.bkg-product-gallery__header {
	margin-bottom: 18px;
}

.bkg-product-gallery__title {
	margin: 0;	
	line-height: 1.2;
}

.bkg-product-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 4px;
}

.bkg-product-gallery__item {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #f3f1ec;
	box-shadow: none;
	cursor: zoom-in;
	appearance: none;
	-webkit-appearance: none;
}

.bkg-product-gallery__item:focus-visible {
	outline: 3px solid #2f6f73;
	outline-offset: 3px;
}

.bkg-product-gallery__image {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transition: transform 220ms ease, filter 220ms ease;
}

.bkg-product-gallery__item:hover .bkg-product-gallery__image,
.bkg-product-gallery__item:focus-visible .bkg-product-gallery__image {
	transform: scale(1.04);
	filter: saturate(1.04);
}

.bkg-product-gallery__caption {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 10px;
	padding: 7px 10px;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.92);
	color: #1f2626;
	font-size: 0.9rem;
	line-height: 1.35;
	text-align: left;
}

.bkg-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	background: rgba(0, 0, 0, 0.88);
}

.bkg-lightbox.is-open {
	display: block;
}

.bkg-lightbox__backdrop {
	position: absolute;
	inset: 0;
	background: transparent;
}

.bkg-lightbox__stage {
	position: absolute;
	inset: 0 102px;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.bkg-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: 100vh;
	border-radius: 0;
	box-shadow: none;
	object-fit: contain;
	pointer-events: auto;
}

.bkg-lightbox__counter {
	position: fixed;
	top: 16px;
	left: 6px;
	z-index: 3;
	margin: 0;
	color: #e7e7e7;
	font-family: Arial, sans-serif;
	font-size: 22px;
	line-height: 1;
	letter-spacing: 0;
}

.bkg-lightbox__close {
	position: fixed;
	top: 8px;
	right: 14px;
	z-index: 3;
	width: 42px;
	height: 42px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #e7e7e7;
	font-family: Arial, sans-serif;
	font-size: 46px;
	font-weight: 200;
	line-height: 38px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	padding: 0;
	text-align: center;
	box-shadow: none;
}

.bkg-lightbox__nav {
	position: fixed;
	top: 50%;
	z-index: 3;
	width: 62px;
	height: 62px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #e7e7e7;
	font-family: Arial, sans-serif;
	font-size: 66px;
	font-weight: 200;
	line-height: 50px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	padding: 0;
	text-align: center;
	box-shadow: none;
	transform: translateY(-50%);
}

.bkg-lightbox__nav--prev {
	left: 30px;
}

.bkg-lightbox__nav--next {
	right: 30px;
	border: 3px solid rgba(231, 231, 231, 0.92);
	color: #b6905f;
	font-size: 58px;
	line-height: 48px;
}

.bkg-lightbox button:hover,
.bkg-lightbox button:focus {
	background: transparent;
	color: #fff;
}

.bkg-lightbox__nav--next:hover,
.bkg-lightbox__nav--next:focus {
	color: #caa06a;
}

.bkg-lightbox__nav[hidden] {
	display: none;
}

.bkg-lightbox__close:focus-visible,
.bkg-lightbox__nav:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

.bkg-lightbox-open {
	overflow: hidden;
}

@media (max-width: 768px) {
	.bkg-lightbox__stage {
		inset: 0 54px;
	}

	.bkg-lightbox__nav {
		width: 44px;
		height: 54px;
		font-size: 52px;
		line-height: 42px;
	}

	.bkg-lightbox__nav--prev {
		left: 8px;
	}

	.bkg-lightbox__nav--next {
		right: 8px;
		border-width: 2px;
		font-size: 46px;
		line-height: 38px;
	}

	.bkg-lightbox__counter {
		top: 14px;
		left: 8px;
		font-size: 18px;
	}

	.bkg-lightbox__close {
		top: 8px;
		right: 8px;
		font-size: 40px;
	}
}

@media (max-width: 600px) {
	.bkg-product-gallery {
		margin-top: 28px;
		padding-top: 22px;
	}

	.bkg-product-gallery__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 4px;
	}

	.bkg-product-gallery__caption {
		display: none;
	}
}
