.preloc-gallery-lightbox-trigger {
	cursor: zoom-in;
}

.preloc-gallery-lightbox-trigger:focus-visible {
	outline: 3px solid var(--preloc-accent, #a45b24);
	outline-offset: 3px;
}

body.preloc-lightbox-open {
	overflow: hidden;
}

.preloc-lightbox[hidden] {
	display: none;
}

.preloc-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px;
	background: rgba(18, 15, 12, .94);
	color: #fff;
}

.preloc-lightbox__panel {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.preloc-lightbox__figure {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	align-items: center;
	justify-items: center;
	width: 100%;
	height: 100%;
	margin: 0;
}

.preloc-lightbox__image {
	display: block;
	max-width: min(100%, 1400px);
	max-height: calc(100vh - 116px);
	object-fit: contain;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.preloc-lightbox__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 16px;
	width: min(100%, 960px);
	min-height: 28px;
	margin-top: 16px;
	color: rgba(255, 255, 255, .86);
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
}

.preloc-lightbox__counter {
	font-weight: 700;
}

.preloc-lightbox .preloc-lightbox__button {
	position: absolute;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--preloc-accent, #a45b24);
	color: #fff;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	transition: opacity .18s ease, background .18s ease, border-color .18s ease;
}

.preloc-lightbox .preloc-lightbox__button:hover,
.preloc-lightbox .preloc-lightbox__button:focus-visible {
	background: var(--preloc-accent, #a45b24);
	color: #fff;
	opacity: .72;
}

.preloc-lightbox .preloc-lightbox__button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.preloc-lightbox .preloc-lightbox__button span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1em;
	height: 1em;
	font-size: 34px;
	font-weight: 300;
	line-height: 1;
}

.preloc-lightbox__close {
	top: 0;
	right: 0;
}

.preloc-lightbox__close span {
	position: relative;
	top: 1px;
	font-size: 30px;
}

.preloc-lightbox__arrow {
	top: 50%;
	transform: translateY(-50%);
}

.preloc-lightbox__arrow--prev {
	left: 0;
}

.preloc-lightbox__arrow--prev span {
	position: relative;
	top: -3px;
	left: -2px;
}

.preloc-lightbox__arrow--next {
	right: 0;
}

.preloc-lightbox__arrow--next span {
	position: relative;
	top: -3px;
	left: 2px;
}

@media (max-width: 700px) {
	.preloc-lightbox {
		padding: 18px;
	}

	.preloc-lightbox__image {
		max-height: calc(100vh - 128px);
	}

	.preloc-lightbox__button {
		width: 42px;
		height: 42px;
	}

	.preloc-lightbox__arrow--prev {
		left: 6px;
	}

	.preloc-lightbox__arrow--next {
		right: 6px;
	}
}
