
.nikeli-product-gallery {
	--nikeli-gallery-thumb-size: 54px;
	--nikeli-gallery-thumb-gap: 8px;
	--nikeli-gallery-main-bg: transparent;
	--nikeli-gallery-main-max-height-desktop: none;
	--nikeli-gallery-main-max-height-tablet: var(--nikeli-gallery-main-max-height-desktop);
	--nikeli-gallery-main-max-height-mobile: var(--nikeli-gallery-main-max-height-tablet);
	--nikeli-gallery-main-active-max-height: var(--nikeli-gallery-main-max-height-desktop);
	--nikeli-gallery-thumb-border: rgba(0, 0, 0, 0.12);
	--nikeli-gallery-thumb-active-border: #222;
	--nikeli-gallery-main-zoom-scale: 1.75;
}

.nikeli-product-gallery-widget--auto-height {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	--container-widget-height: auto !important;
	--container-widget-align-self: stretch !important;
	align-self: stretch !important;
}

.nikeli-product-gallery-widget--auto-height > .elementor-widget-container {
	display: block !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible !important;
}

.nikeli-product-gallery--empty,
.nikeli-gallery-placeholder {
	display: block;
	padding: 1rem;
	background: var(--nikeli-gallery-main-bg);
	color: #666;
	min-height: 200px;
}

.nikeli-product-gallery--with-images .nikeli-gallery__inner {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
}

.nikeli-gallery-thumbs {
	display: flex;
	flex-direction: column;
	gap: var(--nikeli-gallery-thumb-gap);
	flex-shrink: 0;
	min-width: var(--nikeli-gallery-thumb-size);
}

.nikeli-gallery-thumb {
	width: var(--nikeli-gallery-thumb-size);
	flex-shrink: 0;
}

.nikeli-gallery-thumb a {
	display: block;
	border: 2px solid var(--nikeli-gallery-thumb-border);
	border-radius: 4px;
	overflow: hidden;
	text-decoration: none;
	transition: border-color 0.2s ease;
}

.nikeli-gallery-thumb a:hover {
	border-color: rgba(0, 0, 0, 0.25);
}

.nikeli-gallery-thumb--active a,
.nikeli-gallery-thumb.nikeli-gallery-thumb--active a {
	border-color: var(--nikeli-gallery-thumb-active-border);
}

.nikeli-gallery-thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 100 / 150;
	object-fit: cover;
	vertical-align: middle;
}

.nikeli-product-gallery .nikeli-gallery-main {
	flex: 0 1 auto;
	width: fit-content;
	max-width: 100%;
	min-width: 0;
	position: relative;
	align-self: flex-start;
}

.nikeli-product-gallery--auto-height .nikeli-gallery-main {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
}

.nikeli-product-gallery .nikeli-gallery-main__wrap {
	position: relative;
	width: fit-content;
	max-width: 100%;
	background: var(--nikeli-gallery-main-bg);
	box-shadow: none !important;
}

.nikeli-product-gallery--auto-height .nikeli-gallery-main__wrap {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	overflow: visible;
}

.nikeli-product-gallery .nikeli-gallery-main__item {
	display: none;
	width: auto;
	max-width: 100%;
	line-height: 0;
}

.nikeli-product-gallery--auto-height .nikeli-gallery-main__item {
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
}

.nikeli-product-gallery .nikeli-gallery-main__item--active {
	display: block;
}

.nikeli-product-gallery .nikeli-gallery-main__link {
	display: inline-block;
	width: auto;
	max-width: 100%;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	line-height: 0;
	overflow: hidden;
	background: transparent !important;
	box-shadow: none !important;
	cursor: zoom-in;
}

.nikeli-product-gallery .nikeli-gallery-main__link:focus,
.nikeli-product-gallery .nikeli-gallery-main__link:focus-visible,
.nikeli-gallery-thumb a:focus,
.nikeli-gallery-thumb a:focus-visible {
	outline: none;
	box-shadow: none;
}

.nikeli-product-gallery .nikeli-gallery-main__img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: var(--nikeli-gallery-main-active-max-height) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	vertical-align: middle;
	border-radius: 0;
	box-sizing: border-box;
	margin: 0 auto;
	box-shadow: none !important;
	transform-origin: var(--nikeli-gallery-zoom-origin-x, 50%) var(--nikeli-gallery-zoom-origin-y, 50%);
	transition: transform 220ms ease;
	will-change: transform;
}

.nikeli-product-gallery .nikeli-gallery-main__item--variation .nikeli-gallery-main__img {
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: var(--nikeli-gallery-main-active-max-height) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	box-sizing: border-box;
	margin: 0 auto;
	box-shadow: none !important;
}

.nikeli-product-gallery .nikeli-gallery-main__link.is-zooming .nikeli-gallery-main__img {
	transform: scale(var(--nikeli-gallery-main-zoom-scale));
}

.nikeli-product-gallery--square-frame .nikeli-gallery-main {
	aspect-ratio: 1 / 1;
	flex: 0 1 auto;
	width: 100%;
	max-width: var(--nikeli-gallery-main-active-max-height);
}

.nikeli-product-gallery--square-frame .nikeli-gallery-main__wrap,
.nikeli-product-gallery--square-frame .nikeli-gallery-main__item,
.nikeli-product-gallery--square-frame .nikeli-gallery-main__item--active,
.nikeli-product-gallery--square-frame .nikeli-gallery-main__link {
	height: 100% !important;
}

.nikeli-product-gallery--square-frame .nikeli-gallery-main__link {
	display: block;
	width: 100%;
}

.nikeli-product-gallery--square-frame .nikeli-gallery-main__img,
.nikeli-product-gallery--square-frame .nikeli-gallery-main__item--variation .nikeli-gallery-main__img {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: auto !important;
	height: auto !important;
	transform: translate(-50%, -50%) !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
}

@media (max-width: 1024px) {
	.nikeli-product-gallery--auto-height {
		--nikeli-gallery-main-active-max-height: var(--nikeli-gallery-main-max-height-tablet);
	}
}

@media (max-width: 767px) {
	.nikeli-product-gallery--auto-height {
		--nikeli-gallery-main-active-max-height: var(--nikeli-gallery-main-max-height-mobile);
	}

	.nikeli-product-gallery--with-images .nikeli-gallery__inner {
		flex-direction: column;
	}

	.nikeli-product-gallery--with-images .nikeli-gallery-main {
		order: -1 !important;
		width: 100%;
		max-width: 100%;
	}

	.nikeli-product-gallery--with-images .nikeli-gallery-thumbs {
		order: 1 !important;
		flex-direction: row;
		flex-wrap: wrap;
		min-width: 0;
		width: 100%;
	}

	.nikeli-gallery-thumb {
		width: var(--nikeli-gallery-thumb-size);
	}
}
