/*
 * Image lightbox (js/lightbox.js) in the look of Elementor's single-image lightbox, which opened every link to an
 * image file on the site while Elementor's frontend script was loaded (kit "global image lightbox"): dark backdrop,
 * the image centred with 70px around it (none at the sides on phones), a light close icon at the top right.
 * Values from Elementor 4.3 (dialog-type-lightbox, .elementor-lightbox-item/-image, .dialog-lightbox-close-button).
 */
.sd-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background-color: rgba(0, 0, 0, .8);
	-webkit-user-select: none;
	user-select: none;
}

.sd-lightbox .sd-lightbox__item {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 100%;
	margin: auto;
	padding: 70px;
	position: relative;
}

@media (max-width: 767px) {
	.sd-lightbox .sd-lightbox__item {
		padding: 70px 0;
	}
}

.sd-lightbox .sd-lightbox__image {
	max-width: 100%;
	max-height: 100%;
	border: none;
	border-radius: 2px;
	box-shadow: 0 0 30px rgba(0, 0, 0, .3), 0 0 8px -5px rgba(0, 0, 0, .3);
}

.sd-lightbox .sd-lightbox__close {
	position: absolute;
	top: 0;
	inset-inline-end: .75em;
	z-index: 2;
	display: flex;
	margin: 13px 0 0;
	padding: .25em;
	border: 0;
	background: none;
	color: hsla(0, 0%, 93%, .9);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: all .3s;
}

.sd-lightbox .sd-lightbox__close:hover,
.sd-lightbox .sd-lightbox__close:focus-visible {
	color: #fff;
}

.sd-lightbox .sd-lightbox__close svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}
