.custom-lightbox {
	display: inline-block;
	max-width: 100%;
	line-height: 0;
	cursor: pointer;
}

.custom-lightbox img {
	display: block;
	max-width: 100%;
	height: auto;
}

.custom-lightbox-container {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.85);
}

.custom-lightbox-container.is-open {
	display: flex;
}

.custom-lightbox-col {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: min(100% - 40px, 690px);
	height: min(100% - 40px, 690px);
}

.custom-lightbox-loaded-image {
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
    height: 100%;
	overflow: hidden;
	line-height: 0;
}

.custom-lightbox-loaded-image img {
	display: block;
	max-width: 100%;
	max-height: min(100% - 40px, 600px);
	width: auto;
	height: auto;
	object-fit: contain;
}

.custom-lightbox-loaded-title {
	height: 60px;
	width: 100%;
	color: #fff;
	font-size: 24px;
	line-height: 60px;
	font-family: "Fjalla One";
    font-weight: 400;
    text-transform: uppercase;	
	text-align: center;
	background: #000
}

.custom-lightbox-loaded-title:empty {
	display: none;
	margin-top: 0;
}

.custom-lightbox-close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	padding: 0.25rem 0.5rem;
	color: #fff;
	cursor: pointer;
	user-select: none;
	opacity: 0.85;
	transition: opacity 0.15s ease;
	width: 50px;
	height: 50px;
	background: #C58840 url(../img/X.svg) no-repeat center center;
}

.custom-lightbox-close:hover {
	opacity: 1;
}
