/* based on https://github.com/feimosi/baguetteBox.js */
#bmm-lightbox-overlay {
	display: none;
	padding: 3rem;
	grid-template-columns: 1fr 180px;
	opacity: 0;
	position: fixed;
	overflow: hidden;
	top: 0;
	left: 0;
	justify-content: stretch;
	width: 100%;
	height: 100%;
	z-index: 1000000;
	background-color: var(--wp--preset--color--bmm-black);
	transition: opacity .5s ease;
}
#bmm-lightbox-overlay .full-image {
	display: inline-block;
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
}
#bmm-lightbox-overlay .full-image figure {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	height: 100%;
}
#bmm-lightbox-overlay .full-image img {
	display: inline-block;
	height: 85vh;
	width: 100%;
	object-fit: contain;
}
#bmm-lightbox-overlay .full-image figcaption {
	display: block;
	width: auto;
	max-width: 650px;
	text-align: center;
	padding: 0.5rem 1rem;
	line-height: 1.5;
	white-space: normal;
	color: var(--wp--preset--color--bmm-white);
	background-color: var(--wp--preset--color--bmm-black);
	font-family: 'Helvetica Neue', sans-serif;
}
#bmm-lightbox-slider-container {
	grid-column: 1 / 2;
	position: absolute;
	overflow: hidden;
}
#bmm-lightbox-slider {
	position: relative;
	height: 100%;
	width: 100%;
	white-space: nowrap;
	transition: left .4s ease, transform .4s ease;;
}
#bmm-lightbox-slider.bounce-from-right {
	animation: bounceFromRight .4s ease-out;
}
#bmm-lightbox-slider.bounce-from-left {
	animation: bounceFromLeft .4s ease-out;
}
#bmm-lightbox-slider-container,
#bmm-lightbox-nav {
	grid-row: 1 / 2;
}
#bmm-lightbox-nav {
	grid-column: 2 / 3;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-end;
	width: 180px;
	padding: 1rem;
	height: 100%;
	z-index: 1;
	background-color: var(--wp--preset--color--bmm-black);
}
#bmm-lightbox-nav-directions {
	display: flex;
	gap: 0.5rem;
}
.bmm-lightbox-button {
	width: 40px;
	height: 40px;
	cursor: pointer;
	position: relative;
	opacity: 0.8;
	background-color: var(--wp--preset--color--bmm-secondary-blue-10);
	transition: opacity .4s ease;
}
.bmm-lightbox-button::after {
	content: '';
	display: block;
	width: 24px;
	height: 24px;
	position: absolute;
	top: 50%;
	left: 50%;
	translate: -50% -50%;
	background-image: url('../assets/svg/bmm-icons.svg');
	background-size: 456px 72px;
	background-position-y: 0;
}
#bmm-lightbox-position {
	height: 40px;
	align-content: center;
	color: var(--wp--preset--color--bmm-white);
}
.bmm-lightbox-button#close-button {

}
.bmm-lightbox-button#close-button::after {
	background-position-x: -408px;
}
.bmm-lightbox-button#next-button::after, .bmm-lightbox-button#previous-button::after {
	background-position-x: -168px;
}
.bmm-lightbox-button#next-button::after {
	rotate: -90deg;
}
.bmm-lightbox-button#previous-button::after {
	rotate: 90deg;
}
.bmm-lightbox-button:focus, .bmm-lightbox-button:hover {
	opacity: 1;
}
.bmm-lightbox-button#close-button {
}
@keyframes bounceFromRight {
	0%, 100% {
		translate: 0 0;
	}
	50% {
		translate: -30px 0;
	}
}
@keyframes bounceFromLeft {
	0%, 100% {
		translate: 0 0;
	}
	50% {
		translate: 30px 0;
	}
}

@media screen and (max-width: 919px) {
	#bmm-lightbox-overlay.visible {
		display: none!important;
		opacity: 0;
	}
}
@media screen and (min-width: 920px) {
	#bmm-lightbox-overlay.visible {
		opacity: 1;
	}
}