/*!
 * NTM Variation Gallery 2.0 — every rule is scoped to .ntmvg / .ntmvg-lb so themes and other plugins are not affected.
 * Design values come from CSS variables set per gallery (Settings or the Elementor widget).
 */

.ntmvg {
	--ntmvg-drag: 0px;
	--ntmvg-w: 600px;
	--ntmvg-thumb-w: clamp(64px, 15%, 104px);
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--ntmvg-gap);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0 0 1.5em;
	padding: 0;
	float: none;
	box-sizing: border-box;
}
/* Classic themes give "div.images" its column (WooCommerce: 48%, floated) — kept on purpose.
   Inside a block-theme gallery block or an Elementor widget, the wrapper already sets the width. */
.wp-block-woocommerce-product-image-gallery .ntmvg.images,
.elementor-widget-woocommerce-product-images .ntmvg.images,
.elementor-widget-ntm_variation_gallery .ntmvg.images,
.woocommerce .wp-block-woocommerce-product-image-gallery div.product div.ntmvg.images,
.woocommerce div.product .wp-block-woocommerce-product-image-gallery div.ntmvg.images,
.woocommerce div.product .elementor-widget-woocommerce-product-images div.ntmvg.images,
.woocommerce div.product .elementor-widget-ntm_variation_gallery div.ntmvg.images { width: 100%; float: none; margin-bottom: 0; }
.ntmvg *,
.ntmvg *::before,
.ntmvg *::after { box-sizing: border-box; }
.ntmvg button { font: inherit; letter-spacing: normal; text-transform: none; }

/* ---------- Main frame ---------- */

.ntmvg__main { position: relative; min-width: 0; flex: 1 1 auto; }
/* Invisible; only gives the gallery a natural width like a normal product image (see render()). */
.ntmvg .ntmvg__sizer { display: block; height: 0; max-width: 100%; margin: 0; padding: 0; visibility: hidden; pointer-events: none; }

.ntmvg__stage {
	position: relative;
	width: 100%;
	aspect-ratio: var(--ntmvg-ratio);
	background: var(--ntmvg-bg);
	border: var(--ntmvg-bw) solid var(--ntmvg-bc);
	border-radius: var(--ntmvg-r);
	overflow: hidden;
	outline: none;
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
	isolation: isolate;
	perspective: 1600px;
}
.ntmvg__stage:focus-visible { box-shadow: 0 0 0 3px var(--ntmvg-accent); }

.ntmvg__track { position: absolute; inset: 0; transform-style: preserve-3d; }

.ntmvg .ntmvg__slide {
	position: absolute;
	inset: 0;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform var(--ntmvg-speed) var(--ntmvg-ease), opacity var(--ntmvg-speed) var(--ntmvg-ease), visibility 0s;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	will-change: transform, opacity;
}
.ntmvg .ntmvg__slide.is-far {
	visibility: hidden;
	transition: transform var(--ntmvg-speed) var(--ntmvg-ease), opacity var(--ntmvg-speed) var(--ntmvg-ease), visibility 0s linear var(--ntmvg-speed);
}
.ntmvg.is-instant .ntmvg__slide,
.ntmvg.is-dragging .ntmvg__slide { transition: none !important; }
.ntmvg .ntmvg__slide.is-active { z-index: 3; }

.ntmvg .ntmvg__link {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	text-decoration: none;
	cursor: zoom-in;
	-webkit-tap-highlight-color: transparent;
}
.ntmvg .ntmvg__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	object-fit: contain;
	pointer-events: none;
}
.ntmvg--fit-cover .ntmvg__img { object-fit: cover; }

/* ---------- Effects (data-pos: -2 … 2, set by the script) ---------- */

/* Slide */
.ntmvg--js.ntmvg--fx-slide .ntmvg__slide[data-pos="0"] { transform: translate3d(var(--ntmvg-drag), 0, 0); }
.ntmvg--js.ntmvg--fx-slide .ntmvg__slide[data-pos="-1"],
.ntmvg--js.ntmvg--fx-slide .ntmvg__slide[data-pos="-2"] { transform: translate3d(calc(-100% + var(--ntmvg-drag)), 0, 0); }
.ntmvg--js.ntmvg--fx-slide .ntmvg__slide[data-pos="1"],
.ntmvg--js.ntmvg--fx-slide .ntmvg__slide[data-pos="2"] { transform: translate3d(calc(100% + var(--ntmvg-drag)), 0, 0); }

/* Fade */
.ntmvg--js.ntmvg--fx-fade .ntmvg__slide { opacity: 0; }
.ntmvg--js.ntmvg--fx-fade .ntmvg__slide[data-pos="0"] { opacity: 1; }

/* Zoom fade */
.ntmvg--js.ntmvg--fx-zoom .ntmvg__slide { opacity: 0; transform: scale(1.14); }
.ntmvg--js.ntmvg--fx-zoom .ntmvg__slide[data-pos="0"] { opacity: 1; transform: scale(1); }

/* 3D cube */
.ntmvg--js.ntmvg--fx-cube .ntmvg__slide { transform-origin: 50% 50% calc(var(--ntmvg-w) / -2); background: var(--ntmvg-bg); }
.ntmvg--js.ntmvg--fx-cube .ntmvg__slide[data-pos="0"] { transform: rotateY(0deg); }
.ntmvg--js.ntmvg--fx-cube .ntmvg__slide[data-pos="-1"] { transform: rotateY(-90deg); }
.ntmvg--js.ntmvg--fx-cube .ntmvg__slide[data-pos="1"] { transform: rotateY(90deg); }

/* 3D flip */
.ntmvg--js.ntmvg--fx-flip .ntmvg__slide { background: var(--ntmvg-bg); }
.ntmvg--js.ntmvg--fx-flip .ntmvg__slide[data-pos="0"] { transform: rotateY(0deg); }
.ntmvg--js.ntmvg--fx-flip .ntmvg__slide[data-pos="-1"] { transform: rotateY(-180deg); }
.ntmvg--js.ntmvg--fx-flip .ntmvg__slide[data-pos="1"] { transform: rotateY(180deg); }

/* 3D coverflow */
.ntmvg--js.ntmvg--fx-coverflow .ntmvg__slide[data-pos="0"] { transform: translate3d(var(--ntmvg-drag), 0, 0); }
.ntmvg--js.ntmvg--fx-coverflow .ntmvg__slide[data-pos="-1"] { transform: translate3d(-68%, 0, -260px) rotateY(42deg); opacity: .55; z-index: 2; }
.ntmvg--js.ntmvg--fx-coverflow .ntmvg__slide[data-pos="1"] { transform: translate3d(68%, 0, -260px) rotateY(-42deg); opacity: .55; z-index: 2; }
.ntmvg--js.ntmvg--fx-coverflow .ntmvg__slide[data-pos="-2"] { transform: translate3d(-110%, 0, -420px) rotateY(50deg); opacity: 0; }
.ntmvg--js.ntmvg--fx-coverflow .ntmvg__slide[data-pos="2"] { transform: translate3d(110%, 0, -420px) rotateY(-50deg); opacity: 0; }

/* 3D cards */
.ntmvg--js.ntmvg--fx-cards .ntmvg__slide {
	inset: 5% 11% 5% 5%;
	background: var(--ntmvg-bg);
	border-radius: calc(var(--ntmvg-r) * .8);
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
}
.ntmvg--js.ntmvg--fx-cards .ntmvg__slide[data-pos="0"] { transform: translate3d(var(--ntmvg-drag), 0, 0); }
.ntmvg--js.ntmvg--fx-cards .ntmvg__slide[data-pos="1"] { transform: translate3d(6%, 0, -60px) rotate(2.5deg) scale(.95); z-index: 2; }
.ntmvg--js.ntmvg--fx-cards .ntmvg__slide[data-pos="2"] { transform: translate3d(12%, 0, -120px) rotate(5deg) scale(.9); z-index: 1; opacity: .85; }
.ntmvg--js.ntmvg--fx-cards .ntmvg__slide[data-pos="-1"],
.ntmvg--js.ntmvg--fx-cards .ntmvg__slide[data-pos="-2"] { transform: translate3d(-120%, 0, 0) rotate(-12deg); opacity: 0; }

/* ---------- Showcase template: neighbours peek in ---------- */

.ntmvg--js.ntmvg--showcase .ntmvg__slide { left: 13%; right: 13%; border-radius: calc(var(--ntmvg-r) * .8); overflow: hidden; }
.ntmvg--js.ntmvg--showcase.ntmvg--fx-slide .ntmvg__slide[data-pos="-1"] { transform: translate3d(calc(-100% - var(--ntmvg-gap) + var(--ntmvg-drag)), 0, 0) scale(.86); opacity: .5; }
.ntmvg--js.ntmvg--showcase.ntmvg--fx-slide .ntmvg__slide[data-pos="1"] { transform: translate3d(calc(100% + var(--ntmvg-gap) + var(--ntmvg-drag)), 0, 0) scale(.86); opacity: .5; }
.ntmvg--js.ntmvg--showcase.ntmvg--fx-slide .ntmvg__slide[data-pos="-2"] { transform: translate3d(calc(-200% + var(--ntmvg-drag)), 0, 0) scale(.8); opacity: 0; }
.ntmvg--js.ntmvg--showcase.ntmvg--fx-slide .ntmvg__slide[data-pos="2"] { transform: translate3d(calc(200% + var(--ntmvg-drag)), 0, 0) scale(.8); opacity: 0; }
.ntmvg--js.ntmvg--showcase .ntmvg__slide:not(.is-active) .ntmvg__link { cursor: pointer; }

/* ---------- Arrows, full-screen button, counter, dots ---------- */

.ntmvg .ntmvg__nav,
.ntmvg .ntmvg__fs {
	position: absolute;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	color: #111;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
	cursor: pointer;
	line-height: 1;
	transition: opacity .2s ease, transform .2s ease, background-color .2s ease, color .2s ease;
}
.ntmvg .ntmvg__nav svg,
.ntmvg .ntmvg__fs svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ntmvg .ntmvg__nav:hover,
.ntmvg .ntmvg__fs:hover,
.ntmvg .ntmvg__nav:focus-visible,
.ntmvg .ntmvg__fs:focus-visible { background: var(--ntmvg-accent); color: #fff; outline: none; }
.ntmvg .ntmvg__nav { top: 50%; margin-top: -22px; }
.ntmvg .ntmvg__nav--prev { left: 14px; }
.ntmvg .ntmvg__nav--next { right: 14px; }
.ntmvg .ntmvg__nav:disabled { opacity: .3 !important; cursor: default; background: rgba(255, 255, 255, .92); color: #111; }
.ntmvg--arrow-square .ntmvg__nav,
.ntmvg--arrow-square .ntmvg__fs { border-radius: 12px; }
.ntmvg--arrow-minimal .ntmvg__nav { background: transparent; box-shadow: none; color: #111; filter: drop-shadow(0 1px 2px rgba(255, 255, 255, .9)); }
.ntmvg--arrow-minimal .ntmvg__nav svg { width: 30px; height: 30px; }
.ntmvg--arrow-minimal .ntmvg__nav:hover { background: transparent; color: var(--ntmvg-accent); }
.ntmvg--arrows-none .ntmvg__nav { display: none; }
@media (hover: hover) and (pointer: fine) {
	.ntmvg--arrows-hover .ntmvg__nav { opacity: 0; }
	.ntmvg--arrows-hover .ntmvg__nav--prev { transform: translateX(-8px); }
	.ntmvg--arrows-hover .ntmvg__nav--next { transform: translateX(8px); }
	.ntmvg--arrows-hover .ntmvg__main:hover .ntmvg__nav,
	.ntmvg--arrows-hover .ntmvg__main:focus-within .ntmvg__nav { opacity: 1; transform: none; }
}
.ntmvg .ntmvg__fs { top: 14px; right: 14px; width: 40px; height: 40px; }
.ntmvg--fs-left .ntmvg__fs { right: auto; left: 14px; }

.ntmvg .ntmvg__counter {
	position: absolute;
	z-index: 6;
	left: 14px;
	bottom: 14px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(17, 17, 17, .62);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: .02em;
	pointer-events: none;
	backdrop-filter: blur(6px);
}
.ntmvg--fs-left .ntmvg__counter { left: auto; right: 14px; }

.ntmvg .ntmvg__dots {
	position: absolute;
	z-index: 6;
	left: 50%;
	bottom: 16px;
	display: none;
	gap: 6px;
	transform: translateX(-50%);
}
.ntmvg--dots .ntmvg__dots { display: flex; }
.ntmvg--dots .ntmvg__counter { display: none; }
.ntmvg .ntmvg__dot {
	width: 8px;
	height: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(17, 17, 17, .28);
	cursor: pointer;
	transition: width .25s ease, background-color .25s ease;
}
.ntmvg .ntmvg__dot.is-active { width: 22px; background: var(--ntmvg-accent); }
.ntmvg.is-single .ntmvg__nav,
.ntmvg.is-single .ntmvg__dots,
.ntmvg.is-single .ntmvg__counter,
.ntmvg.is-single .ntmvg__thumbs { display: none !important; }

/* ---------- Video ---------- */

.ntmvg .ntmvg__play {
	position: absolute;
	z-index: 4;
	top: 50%;
	left: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--ntmvg-accent);
	color: #fff;
	box-shadow: 0 8px 26px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: transform .2s ease;
}
.ntmvg .ntmvg__play:hover { transform: scale(1.08); }
.ntmvg .ntmvg__play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.ntmvg .ntmvg__slide.is-video .ntmvg__link { cursor: pointer; }
.ntmvg .ntmvg__player { position: absolute; inset: 0; z-index: 5; background: #000; }
.ntmvg .ntmvg__player .ntmvg__video { display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
.ntmvg .ntmvg__slide.is-playing .ntmvg__play { display: none; }
/* While a video plays, its own controls need the space. */
.ntmvg.is-playing .ntmvg__fs,
.ntmvg.is-playing .ntmvg__counter,
.ntmvg.is-playing .ntmvg__dots { display: none !important; }
.ntmvg.is-playing .ntmvg__nav { top: 40%; }

/* ---------- Hover zoom ---------- */

.ntmvg .ntmvg__lens {
	position: absolute;
	inset: 0;
	z-index: 4;
	background-color: var(--ntmvg-bg);
	background-repeat: no-repeat;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease;
}
.ntmvg .ntmvg__slide.is-zooming .ntmvg__lens { opacity: 1; }
.ntmvg .ntmvg__slide.is-zooming .ntmvg__link { cursor: crosshair; }

/* ---------- Captions ---------- */

.ntmvg .ntmvg__caption { display: none; }
.ntmvg--captions .ntmvg__caption {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	margin: 0;
	padding: 28px 16px 12px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .55));
	color: #fff;
	font-size: 13px;
	line-height: 1.4;
	pointer-events: none;
}
.ntmvg--captions .ntmvg__counter { bottom: auto; top: 14px; }

/* ---------- Thumbnails ---------- */

.ntmvg .ntmvg__thumbs {
	display: flex;
	gap: var(--ntmvg-gap);
	min-width: 0;
	margin: 0;
	padding: 2px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: none;
	scroll-snap-type: x proximity;
	-webkit-overflow-scrolling: touch;
}
.ntmvg .ntmvg__thumbs::-webkit-scrollbar { display: none; }
.ntmvg .ntmvg__thumb {
	position: relative;
	flex: 0 0 calc((100% - (var(--ntmvg-per) - 1) * var(--ntmvg-gap)) / var(--ntmvg-per));
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--ntmvg-tr);
	background: var(--ntmvg-bg);
	overflow: hidden;
	cursor: pointer;
	scroll-snap-align: start;
	transition: opacity .25s ease, box-shadow .25s ease, transform .25s ease;
}
.ntmvg .ntmvg__thumb img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	object-fit: cover;
	pointer-events: none;
}
.ntmvg .ntmvg__thumb:focus-visible { outline: 2px solid var(--ntmvg-accent); outline-offset: 2px; }
.ntmvg .ntmvg__thumb.is-video::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border-radius: 50%;
	background: var(--ntmvg-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 16px no-repeat;
}
/* Active thumbnail styles */
.ntmvg--thumb-outline .ntmvg__thumb.is-active { box-shadow: inset 0 0 0 2px var(--ntmvg-accent); }
.ntmvg--thumb-outline .ntmvg__thumb.is-active img { transform: scale(.9); border-radius: calc(var(--ntmvg-tr) * .6) !important; }
.ntmvg--thumb-outline .ntmvg__thumb img { transition: transform .25s ease; }
.ntmvg--thumb-fade .ntmvg__thumb { opacity: .45; }
.ntmvg--thumb-fade .ntmvg__thumb:hover,
.ntmvg--thumb-fade .ntmvg__thumb.is-active { opacity: 1; }
.ntmvg--thumb-underline .ntmvg__thumb::before {
	content: "";
	position: absolute;
	left: 18%;
	right: 18%;
	bottom: 6px;
	z-index: 2;
	height: 3px;
	border-radius: 3px;
	background: var(--ntmvg-accent);
	transform: scaleX(0);
	transition: transform .25s ease;
}
.ntmvg--thumb-underline .ntmvg__thumb.is-active::before { transform: scaleX(1); }

/* Classic: thumbnails left / right (bottom on phones) */
@media (min-width: 768px) {
	.ntmvg--thumbs-left,
	.ntmvg--thumbs-right { display: grid; grid-template-columns: var(--ntmvg-thumb-w) minmax(0, 1fr); align-items: stretch; }
	.ntmvg--thumbs-right { grid-template-columns: minmax(0, 1fr) var(--ntmvg-thumb-w); }
	/* Fixed columns, so the image never falls into the thumbnail column. */
	.ntmvg--thumbs-left .ntmvg__thumbs { grid-column: 1; grid-row: 1; }
	.ntmvg--thumbs-left .ntmvg__main { grid-column: 2; grid-row: 1; }
	.ntmvg--thumbs-right .ntmvg__main { grid-column: 1; grid-row: 1; }
	.ntmvg--thumbs-right .ntmvg__thumbs { grid-column: 2; grid-row: 1; }
	/* One image: no thumbnail column at all. */
	.ntmvg--thumbs-left.is-single,
	.ntmvg--thumbs-right.is-single { display: flex; }
	.ntmvg--thumbs-left .ntmvg__thumbs,
	.ntmvg--thumbs-right .ntmvg__thumbs {
		flex-direction: column;
		height: 100%;
		contain: size;
		overflow-x: hidden;
		overflow-y: auto;
		scroll-snap-type: y proximity;
	}
	.ntmvg--thumbs-left .ntmvg__thumb,
	.ntmvg--thumbs-right .ntmvg__thumb { flex: 0 0 auto; width: 100%; }
}

/* Minimal and Showcase: dots instead of thumbnails */
.ntmvg--minimal .ntmvg__thumbs,
.ntmvg--showcase .ntmvg__thumbs { display: none !important; }

/* Modern: floating thumbnail bar on the image */
.ntmvg--modern .ntmvg__thumbs {
	position: absolute;
	z-index: 7;
	left: 50%;
	bottom: 14px;
	max-width: calc(100% - 28px);
	padding: 6px;
	gap: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .72);
	box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transform: translateX(-50%);
}
.ntmvg--modern .ntmvg__thumb { flex: 0 0 46px; width: 46px; border-radius: 50%; }
.ntmvg--modern .ntmvg__thumb.is-active img { border-radius: 50% !important; }
.ntmvg--modern .ntmvg__counter { bottom: auto; top: 14px; }
.ntmvg--modern .ntmvg__nav { margin-top: -44px; }

/* Grid: all images on large screens */
@media (min-width: 1024px) {
	.ntmvg--grid .ntmvg__stage { aspect-ratio: auto; background: none; border: 0; border-radius: 0; overflow: visible; perspective: none; }
	.ntmvg--grid .ntmvg__track { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ntmvg-gap); }
	.ntmvg--grid .ntmvg__slide {
		position: relative;
		inset: auto;
		aspect-ratio: var(--ntmvg-ratio);
		transform: none !important;
		opacity: 1 !important;
		visibility: visible !important;
		background: var(--ntmvg-bg);
		border: var(--ntmvg-bw) solid var(--ntmvg-bc);
		border-radius: var(--ntmvg-r);
		overflow: hidden;
	}
	.ntmvg--grid .ntmvg__slide:first-child { grid-column: 1 / -1; }
	.ntmvg--grid .ntmvg__nav,
	.ntmvg--grid .ntmvg__dots,
	.ntmvg--grid .ntmvg__counter,
	.ntmvg--grid .ntmvg__fs,
	.ntmvg--grid .ntmvg__thumbs { display: none !important; }
}

/* ---------- Phones ---------- */

@media (max-width: 767px) {
	.ntmvg .ntmvg__nav { width: 38px; height: 38px; margin-top: -19px; }
	.ntmvg .ntmvg__nav--prev { left: 8px; }
	.ntmvg .ntmvg__nav--next { right: 8px; }
	.ntmvg .ntmvg__fs { top: 10px; right: 10px; width: 36px; height: 36px; }
	.ntmvg--fs-left .ntmvg__fs { left: 10px; }
	.ntmvg .ntmvg__play { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
	.ntmvg--m-nothumbs .ntmvg__thumbs { display: none !important; }
	.ntmvg--m-nothumbs .ntmvg__dots { display: flex; }
	.ntmvg--m-nothumbs .ntmvg__counter { display: none; }
	.ntmvg--modern .ntmvg__thumb { flex-basis: 38px; width: 38px; }
	.ntmvg--js.ntmvg--showcase .ntmvg__slide { left: 8%; right: 8%; }
}

/* ---------- Variation swap, motion preferences ---------- */

.ntmvg.is-swapping .ntmvg__track,
.ntmvg.is-swapping .ntmvg__thumbs { animation: ntmvg-in .35s ease both; }
@keyframes ntmvg-in { from { opacity: 0; } to { opacity: 1; } }
.ntmvg--reduced .ntmvg__slide { transition-duration: .2s !important; }

/* ---------- Without JavaScript: a swipeable row of images ---------- */

.ntmvg:not(.ntmvg--js) .ntmvg__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.ntmvg:not(.ntmvg--js) .ntmvg__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; }
.ntmvg:not(.ntmvg--js) .ntmvg__nav,
.ntmvg:not(.ntmvg--js) .ntmvg__fs,
.ntmvg:not(.ntmvg--js) .ntmvg__counter { display: none; }
/* Thumbnails stay in place before the script starts, so the layout does not jump. */

/* ---------- Lightbox ---------- */

html.ntmvg-lock,
html.ntmvg-lock body { overflow: hidden !important; }

.ntmvg-lb {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	flex-direction: column;
	background: rgba(12, 12, 14, .95);
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s ease, visibility 0s linear .25s;
	font-family: inherit;
}
.ntmvg-lb *, .ntmvg-lb *::before, .ntmvg-lb *::after { box-sizing: border-box; }
.ntmvg-lb.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.ntmvg-lb__bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; }
.ntmvg-lb__count { flex: 1; font-size: 14px; font-weight: 600; opacity: .85; }
.ntmvg-lb .ntmvg-lb__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	cursor: pointer;
	transition: background-color .2s ease;
}
.ntmvg-lb .ntmvg-lb__btn:hover,
.ntmvg-lb .ntmvg-lb__btn:focus-visible { background: var(--ntmvg-accent, #f95630); outline: none; }
.ntmvg-lb .ntmvg-lb__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ntmvg-lb .ntmvg-lb__zoom svg { fill: currentColor; stroke: none; }
.ntmvg-lb__stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 70px; overflow: hidden; touch-action: none; }
.ntmvg-lb__frame { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; opacity: 0; transform: scale(.97); transition: opacity .25s ease, transform .25s ease; }
.ntmvg-lb__frame.is-in { opacity: 1; transform: none; }
.ntmvg-lb .ntmvg-lb__img {
	display: block;
	max-width: 100% !important;
	max-height: 100% !important;
	width: auto;
	height: auto;
	margin: 0;
	object-fit: contain;
	cursor: zoom-in;
	user-select: none;
	transition: transform .3s ease;
	transform-origin: center;
}
.ntmvg-lb.is-zoomed .ntmvg-lb__img { cursor: grab; transition: none; }
.ntmvg-lb__video { width: min(100%, 150vh); aspect-ratio: 16 / 9; background: #000; }
.ntmvg-lb__video .ntmvg__video { display: block; width: 100%; height: 100%; border: 0; }
.ntmvg-lb .ntmvg-lb__nav { position: absolute; top: 50%; margin-top: -22px; }
.ntmvg-lb .ntmvg-lb__prev { left: 14px; }
.ntmvg-lb .ntmvg-lb__next { right: 14px; }
.ntmvg-lb.is-single .ntmvg-lb__nav { display: none; }
.ntmvg-lb__caption { min-height: 20px; padding: 10px 16px 16px; text-align: center; font-size: 14px; opacity: .85; }
@media (max-width: 767px) {
	.ntmvg-lb__stage { padding: 0 8px; }
	.ntmvg-lb .ntmvg-lb__nav { top: auto; bottom: 14px; margin: 0; }
	.ntmvg-lb__caption { padding-bottom: 70px; }
}
