/* Hoteler Gallery Light — thumbnail grid (rules NextGEN Basic Thumbnails applied to this markup) + lightbox */

.ngg-galleryoverview {
	overflow: hidden;
	margin-top: 40px;
	margin-bottom: 50px;
	width: 100%;
	clear: both;
	display: block !important;
	min-height: 100px;
}

.ngg-gallery-thumbnail-box {
	float: left;
	max-width: 100% !important;
}

.ngg-gallery-thumbnail {
	text-align: center;
	max-width: 100% !important;
	background-color: #fff;
	border: 1px solid #a9a9a9;
	margin: 5px;
}

.ngg-gallery-thumbnail a {
	display: block;
	margin: 4px;
	border: none;
	box-shadow: none;
}

.ngg-gallery-thumbnail img {
	display: block;
	margin: 0;
	padding: 0;
	position: relative;
	max-width: 100% !important;
	height: auto;
}

.ngg-navigation {
	clear: both;
	padding: 10px 0;
	text-align: center;
	font-size: .9em;
}

.ngg-navigation a,
.ngg-navigation span {
	display: inline-block;
	margin: 0 2px;
	padding: 2px 8px;
	border: 1px solid #ddd;
}

.ngg-navigation span.current {
	font-weight: bold;
	border-color: #999;
}

/* ---------------- Lightbox ---------------- */

.hgl-lb {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: #000;
	color: #fff;
	font: 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.hgl-lb[hidden] {
	display: none;
}

html.hgl-lb-open {
	overflow: hidden;
}

.hgl-lb-stage {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 54px;
	overflow: hidden;
	touch-action: pan-y;
}

.hgl-lb.hgl-no-carousel .hgl-lb-stage {
	bottom: 40px;
}

.hgl-lb-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	will-change: transform;
	-webkit-user-drag: none;
}

.hgl-lb-spinner {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 86px;
	height: 86px;
	margin: -43px 0 0 -43px;
	color: #fff;
	opacity: 0;
	pointer-events: none;
	animation: hgl-spin 1s steps(8) infinite;
	animation-play-state: paused;
}

/* Short delay so cached images don't flash the spinner. */
.hgl-lb.hgl-loading .hgl-lb-spinner {
	opacity: 1;
	animation-play-state: running;
	transition: opacity .15s .12s;
}

@keyframes hgl-spin {
	to { transform: rotate(360deg); }
}

.hgl-lb button {
	appearance: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	line-height: 0;
	cursor: pointer;
}

.hgl-lb button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.hgl-lb svg {
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.hgl-lb-counter {
	position: absolute;
	top: 10px;
	left: 10px;
	font-size: 11px;
	line-height: 1;
	text-shadow: 0 0 2px #000;
}

.hgl-lb-close {
	position: absolute;
	top: 9px;
	right: 6px;
	width: 34px;
	height: 34px;
	border-radius: 50% !important;
	background: #fff !important;
	color: #555 !important;
	opacity: .5;
	transition: opacity .2s;
}

.hgl-lb-prev,
.hgl-lb-next {
	position: absolute;
	top: calc(50% - 27px);
	width: 48px;
	height: 48px;
	color: #fff !important;
	opacity: .5;
	transform: translateY(-50%);
	transition: opacity .2s;
}

.hgl-lb-prev svg,
.hgl-lb-next svg {
	width: 30px;
	height: 60px;
	margin: -6px 9px;
	overflow: visible;
}

.hgl-lb-prev { left: 20px; }
.hgl-lb-next { right: 20px; }

.hgl-lb-close:hover,
.hgl-lb-prev:hover,
.hgl-lb-next:hover {
	opacity: 1;
}

.hgl-lb-bar button:hover {
	color: #fff !important;
}

.hgl-lb-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 54px;
	padding: 6px 10px;
	background: rgba(0, 0, 0, .7);
	font-size: 11px;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: #bbb;
}

.hgl-lb.hgl-no-carousel .hgl-lb-caption {
	bottom: 40px;
}

.hgl-lb-caption[hidden] {
	display: none;
}

.hgl-lb-caption p {
	margin: 4px 0 0;
	text-transform: none;
}

.hgl-lb-bar {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 54px;
	display: flex;
	align-items: center;
	background: #000;
}

.hgl-lb.hgl-no-carousel .hgl-lb-bar {
	height: 40px;
}

.hgl-lb-bar > button {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	padding: 9px !important;
	color: #ddd !important;
}

.hgl-lb-strip {
	flex: 1 1 auto;
	display: flex;
	height: 54px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
}

.hgl-lb-strip::-webkit-scrollbar {
	display: none;
}

.hgl-lb-strip button {
	flex: 0 0 70px;
	height: 54px;
	opacity: .5;
	transition: opacity .2s;
}

.hgl-lb-strip button[aria-current="true"],
.hgl-lb-strip button:hover {
	opacity: 1;
}

.hgl-lb-strip img {
	width: 70px;
	height: 54px;
	object-fit: cover;
	display: block;
}

@media (max-width: 600px) {
	.hgl-lb-prev { left: 0; }
	.hgl-lb-next { right: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.hgl-lb-img {
		transition: none !important;
	}
	.hgl-lb-spinner {
		animation-duration: 3s;
	}
}
