/*---------------------------------------------------------------------------*\
	#Lightbox
\*---------------------------------------------------------------------------*/

.lightbox {
	position: fixed;
	background: #fff;
	width: 100%;
	height: 100%;
	top: 100%;
	left: 0;
	opacity: 0;
	z-index: 1000;
	
		transition: opacity .25s, top .01s .24s ;
}

	.lightbox--active {
		top: 0;
		opacity: 1;
	
	transition: opacity .25s;
	}

.lightbox_wrapper {
	position: relative;
}


.lightbox_container,
.lightbox_wrapper,
.lightbox__content,
.lightbox__content_container,
.lightbox__content_wrapper {
	height: 100%;
	width: 100%;
}


.lightbox__templates {
	display: none;
}


@media ( orientation: landscape ) {
	
	.lightbox_container {
		padding: 2rem 8rem 2rem 2rem;
	}
	
}


@media ( orientation: portrait ) {
	
	.lightbox_container {
		padding: 8rem 2rem 2rem 2rem;
	}
	
}





/*---------------------------------------------------------------------------*\
	#Close
\*---------------------------------------------------------------------------*/

.lightbox__close {
	position: absolute;
	background-color: var( --wp--preset--color--ir-primary-green );
	background-image: linear-gradient( 35deg, var( --wp--preset--color--ir-darker-primary-green ) 0%, var( --wp--preset--color--ir-primary-green ) 50%, var( --wp--preset--color--ir-brighter-primary-green ) 100% );
	background-position: 0 0;
	background-size: 200% 100%;
	color: #fff;
	cursor: pointer;
	font-size: 2rem;
	line-height: 1;
	width: auto;
	height: auto;
	border: none;
	border-radius: .5rem;
	padding: 1rem;
	transition: background .25s;
}

	.lightbox__close:where( :focus, :hover, :active ) {
		background-position: 100% 0;
	}


@media ( orientation: landscape ) {
	
	.lightbox__close {
		top: 0;
		right: -6rem;
	}
	
}


@media ( orientation: portrait ) {
	
	.lightbox__close {
		top: -6rem;
		right: 0;
	}
	
}





/*---------------------------------------------------------------------------*\
	#Image
\*---------------------------------------------------------------------------*/

.lightbox__image,
.lightbox__image_container,
.lightbox__image_wrapper {
	height: 100%;
	width: 100%;
}


.lightbox__image_wrapper {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	height: 100%;
}


.lightbox__img {
	display: block;
	object-position: center;
	object-fit: scale-down;
	height: auto;
	width: auto;
	max-height: 100%;
	max-width: 100%;
	border-radius: .5rem;
}

.lightbox__image-caption {
	color: #808080;
	font-size: 1.6rem;
	text-align: center;
	padding: 2rem 2rem 0;
}
