﻿
/* Trigger */

.exhibition-lightbox-trigger {
	display: block;
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: zoom-in;
}

	.exhibition-lightbox-trigger > img {
		display: block;
		width: 100%;
	}

.exhibition-lightbox-indicator {
	position: absolute;
	right: 14px;
	bottom: 14px;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	color: white;
	background: rgba(180, 180, 180, .55);
	font-size: 16px;
	font-weight: normal;
	opacity: 0;
	transition: opacity .2s ease;
	direction: ltr;
	gap: 2px;
}



[dir="rtl"] .exhibition-lightbox-indicator {
	right: auto;
	left: 14px;
}

.exhibition-lightbox-trigger:hover
.exhibition-lightbox-indicator {
	opacity: 1;
}


/* Overlay */

body.nolan-lightbox-open {
	overflow: hidden;
}

.nolan-lightbox {
	position: fixed;
	inset: 0;
	z-index: 20000;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	opacity: 0;
	transition: opacity .25s ease, visibility .25s ease;
}

	.nolan-lightbox.is-open {
		visibility: visible;
		opacity: 1;
	}


	.nolan-lightbox button:focus {
		outline: none;
		box-shadow: none;
	}

	.nolan-lightbox button:focus-visible {
		outline: 2px solid rgba(255, 255, 255, .75);
		outline-offset: 3px;
	}


	.nolan-lightbox .nolan-lightbox-container:focus {
		outline: none;
		box-shadow: none;
	}

	.nolan-lightbox .nolan-lightbox-container:focus-visible {
		outline: 2px solid rgba(255, 255, 255, .75);
		outline-offset: 3px;
	}





.nolan-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .94);
}

.nolan-lightbox-container {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 65px 90px 25px;
}

.nolan-lightbox-close {
	position: absolute;
	top: 18px;
	right: 25px;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	color: white;
	background: rgba(255,255,255,.12);
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
	z-index: 5;
	border: none;
}

.nolan-lightbox-counter {
	position: absolute;
	top: 30px;
	left: 25px;
	color: white;
	font-size: 14px;
	direction: ltr;
}



.nolan-lightbox[dir="rtl"] .nolan-lightbox-close {
	right: auto;
	left: 25px;
	border: none;
}

.nolan-lightbox[dir="rtl"] .nolan-lightbox-counter {
	left: auto;
	right: 25px;
}



/* Image stage */

.nolan-lightbox-stage {
	width: 100%;
	height: calc(100% - 105px);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 0;
	user-select: none;
	-webkit-user-select: none;
	touch-action: pan-y;
}

.nolan-lightbox-image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	user-select: none;
	-webkit-user-drag: none;
	border-radius: 8px;
}


	.nolan-lightbox-image.is-slide-out-left {
		animation: nolan-lightbox-slide-out-left .25s ease forwards;
	}

	.nolan-lightbox-image.is-slide-out-right {
		animation: nolan-lightbox-slide-out-right .25s ease forwards;
	}

	.nolan-lightbox-image.is-slide-in-left {
		animation: nolan-lightbox-slide-in-left .3s ease forwards;
	}

	.nolan-lightbox-image.is-slide-in-right {
		animation: nolan-lightbox-slide-in-right .3s ease forwards;
	}

@keyframes nolan-lightbox-slide-out-left {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(-100%);
		opacity: 0;
	}
}

@keyframes nolan-lightbox-slide-out-right {
	from {
		transform: translateX(0);
		opacity: 1;
	}

	to {
		transform: translateX(100%);
		opacity: 0;
	}
}

@keyframes nolan-lightbox-slide-in-left {
	from {
		transform: translateX(-100%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes nolan-lightbox-slide-in-right {
	from {
		transform: translateX(100%);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Navigation */

.nolan-lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 65px;
	border: 0;
	border-radius: 8px;
	color: white;
	background: rgba(255,255,255,.12);
	font-size: 27px;
	cursor: pointer;
	transition: background .2s ease;
	z-index: 3;
}

	.nolan-lightbox-nav:hover,
	.nolan-lightbox-close:hover {
		background: rgba(255,255,255,.25);
		border: none;
	}

.nolan-lightbox-prev {
	left: 20px;
}

.nolan-lightbox-next {
	right: 20px;
}


/* Caption */

.nolan-lightbox-caption {
	min-height: 28px;
	margin-top: 10px;
	color: rgba(255,255,255,.9);
	font-size: 14px;
	text-align: center;
}


/* Thumbnails */

.nolan-lightbox-thumbnails {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	max-width: 750px;
	height: 65px;
	margin-top: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 5px;
	direction: inherit;
	scrollbar-width: thin;
}

.nolan-lightbox-thumbnail {
	flex: 0 0 65px;
	width: 65px;
	height: 48px;
	padding: 2px;
	border: 2px solid transparent;
	border-radius: 5px;
	background: transparent;
	opacity: .55;
	cursor: pointer;
	transition: opacity .2s ease, border-color .2s ease;
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
}

	.nolan-lightbox-thumbnail.active {
		border-color: white;
		opacity: 1;
	}

	.nolan-lightbox-thumbnail img {
		display: block;
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 2px;
	}


/* Loading and error */

.nolan-lightbox-loader {
	width: 42px;
	height: 42px;
	border: 4px solid rgba(255, 255, 255, .2);
	border-top-color: white;
	border-radius: 50%;
	animation: nolan-lightbox-spin .8s linear infinite;
}

	.nolan-lightbox-loader[hidden],
	.nolan-lightbox-error[hidden],
	.nolan-lightbox-image[hidden] {
		display: none;
	}

.nolan-lightbox-error {
	color: rgba(255, 255, 255, .85);
	font-size: 15px;
	text-align: center;
}

@keyframes nolan-lightbox-spin {
	to {
		transform: rotate(360deg);
	}
}


/* Mobile */

@media (max-width: 767.98px) {

	.nolan-lightbox-container {
		padding: 65px 12px 15px;
	}

	.nolan-lightbox-close {
		top: 12px;
		right: 12px;
		width: 40px;
		height: 40px;
		border: none;
	}

	.nolan-lightbox-counter {
		top: 25px;
		left: 15px;
	}

	.nolan-lightbox[dir="rtl"] .nolan-lightbox-close {
		right: auto;
		left: 12px;
		border: none;
	}

	.nolan-lightbox[dir="rtl"] .nolan-lightbox-counter {
		left: auto;
		right: 15px;
	}



	.nolan-lightbox-stage {
		height: calc(100% - 100px);
	}

	.nolan-lightbox-nav {
		width: 34px;
		height: 48px;
		font-size: 21px;
		background: rgba(0,0,0,.35);
	}

	.nolan-lightbox-prev {
		left: 5px;
	}

	.nolan-lightbox-next {
		right: 5px;
	}

	.nolan-lightbox-thumbnails {
		justify-content: flex-start;
	}

	.exhibition-lightbox-indicator {
		opacity: 1;
	}
}


/* RTL navigation */

.nolan-lightbox[dir="rtl"] .nolan-lightbox-prev {
	left: auto;
	right: 20px;
	transform: translateY(-50%);
}

.nolan-lightbox[dir="rtl"] .nolan-lightbox-next {
	right: auto;
	left: 20px;
	transform: translateY(-50%);
}

/* RTL mobile navigation */

@media (max-width: 767.98px) {

	.nolan-lightbox[dir="rtl"] .nolan-lightbox-prev {
		left: auto;
		right: 5px;
	}

	.nolan-lightbox[dir="rtl"] .nolan-lightbox-next {
		right: auto;
		left: 5px;
	}
}





.nolan-lightbox-thumbnails {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, .35) transparent;
}

	/* Chrome / Edge / Safari */

	.nolan-lightbox-thumbnails::-webkit-scrollbar {
		height: 6px;
	}

	.nolan-lightbox-thumbnails::-webkit-scrollbar-track {
		background: transparent;
	}

	.nolan-lightbox-thumbnails::-webkit-scrollbar-thumb {
		background: rgba(255, 255, 255, .35);
		border-radius: 10px;
	}

		.nolan-lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
			background: rgba(255, 255, 255, .55);
		}





.nolan-lightbox-thumbnails {
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

	.nolan-lightbox-thumbnails.is-dragging {
		cursor: grabbing;
		scroll-behavior: auto;
	}

.nolan-lightbox-thumbnail {
	cursor: pointer;
}
