.gallery-lightbox[hidden] {
	display: none;
}

.gallery-lightbox {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 72px;
	background: rgba(13, 17, 24, 0.94);
	touch-action: pan-y;
}

.gallery-lightbox__content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.gallery-lightbox__image {
	display: block;
	max-width: 100%;
	max-height: calc(100% - 42px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.gallery-lightbox__caption {
	min-height: 24px;
	margin: 12px 0 0;
	color: #fff;
	font-size: 14px;
	text-align: center;
}

.gallery-lightbox__button {
	position: absolute;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.72);
	border-radius: 50%;
	background: rgba(23, 32, 43, 0.78);
	color: #fff;
	font: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.gallery-lightbox__button:hover {
	border-color: #fba605;
	background: #17202b;
}

.gallery-lightbox__button:focus-visible {
	outline: 3px solid #fba605;
	outline-offset: 3px;
}

.fp-grid .fp-card:focus-visible {
	outline: 3px solid #fba605;
	outline-offset: 2px;
}

.gallery-lightbox__close {
	top: 20px;
	right: 22px;
	font-size: 32px;
}

.gallery-lightbox__previous {
	top: 50%;
	left: 20px;
	transform: translateY(-50%);
}

.gallery-lightbox__next {
	top: 50%;
	right: 20px;
	transform: translateY(-50%);
}

@media (max-width: 600px) {
	.gallery-lightbox {
		padding: 72px 14px 58px;
	}

	.gallery-lightbox__image {
		max-height: calc(100% - 52px);
	}

	.gallery-lightbox__button {
		width: 44px;
		height: 44px;
		background: rgba(23, 32, 43, 0.9);
	}

	.gallery-lightbox__close {
		top: 12px;
		right: 12px;
	}

	.gallery-lightbox__previous {
		left: 10px;
	}

	.gallery-lightbox__next {
		right: 10px;
	}

	.gallery-lightbox__caption {
		font-size: 13px;
	}
}
