.gallery-lightbox {
	position: fixed;
	inset: 0;
	box-sizing: border-box;
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 56px 72px 28px;
	border: 0;
	background: rgba(10, 12, 14, .94);
	color: #fff;
	align-items: center;
	justify-content: center;
}

.gallery-lightbox[open] {
	display: flex;
}

.gallery-lightbox::backdrop {
	background: rgba(10, 12, 14, .88);
}

.gallery-lightbox img {
	display: block;
	width: auto;
	height: auto;
	max-width: calc(100vw - 144px);
	max-height: calc(100vh - 100px);
	object-fit: contain;
	border-radius: 10px;
}

.gallery-lightbox button {
	position: absolute;
	display: grid;
	place-items: center;
	box-sizing: border-box;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .15);
	color: #fff;
	font: 32px/1 Arial, sans-serif;
	cursor: pointer;
}

.gallery-lightbox button:hover,
.gallery-lightbox button:focus-visible {
	background: rgba(255, 255, 255, .3);
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.gallery-lightbox .gallery-lightbox-close {
	top: 12px;
	right: 16px;
	font-size: 32px;
}

.gallery-lightbox .gallery-lightbox-prev {
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
}

.gallery-lightbox .gallery-lightbox-next {
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
}

@media (max-width: 600px) {
	.gallery-lightbox {
		padding: 54px 48px 24px;
	}

	.gallery-lightbox img {
		max-width: calc(100vw - 96px);
		max-height: calc(100vh - 100px);
	}

	.gallery-lightbox button {
		width: 38px;
		height: 38px;
		font-size: 27px;
	}

	.gallery-lightbox .gallery-lightbox-close {
		right: 10px;
		font-size: 27px;
	}

	.gallery-lightbox .gallery-lightbox-prev {
		left: 5px;
	}

	.gallery-lightbox .gallery-lightbox-next {
		right: 5px;
	}
}
