/*! SMVP Touched Vintage - productgalerij */
.tv-gallery {
	position: relative;
	margin: 0;
	opacity: 1 !important;
	--tv-g-gap: 10px;
	--tv-g-line: #16151c;
}

.tv-gallery__main {
	display: flex;
	align-items: flex-start;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	outline: none;
}

.tv-gallery__main::-webkit-scrollbar {
	display: none;
}

.tv-gallery__main:focus-visible {
	outline: 2px solid var(--tv-g-line);
	outline-offset: 2px;
}

.tv-gallery__slide {
	position: relative;
	flex: 0 0 100%;
	width: 100%;
	margin: 0 !important;
	overflow: hidden;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.tv-gallery .tv-gallery__img {
	display: block;
	width: 100%;
	height: auto;
	transform-origin: 50% 50%;
	transition: transform 0.2s ease-out;
}

@media (hover: hover) and (pointer: fine) {
	.tv-gallery__slide {
		cursor: zoom-in;
	}

	.tv-gallery__slide.is-zoomed .tv-gallery__img {
		transition: none;
	}
}

.tv-gallery__nav {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: var(--tv-g-gap);
}

.tv-gallery__thumbs {
	display: flex;
	flex: 1 1 auto;
	gap: var(--tv-g-gap);
	min-width: 0;
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.tv-gallery__thumbs::-webkit-scrollbar {
	display: none;
}

.tv-gallery__thumb {
	flex: 0 0 calc((100% - 3 * var(--tv-g-gap)) / 4);
	margin: 0;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 0;
	background: none;
	cursor: pointer;
	opacity: 0.65;
	transition: opacity 0.2s, border-color 0.2s;
}

.tv-gallery__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.tv-gallery__thumb:hover,
.tv-gallery__thumb.is-active {
	opacity: 1;
}

.tv-gallery__thumb.is-active {
	border-color: var(--tv-g-line);
}

.tv-gallery__thumb:focus-visible,
.tv-gallery__arrow:focus-visible {
	outline: 2px solid var(--tv-g-line);
	outline-offset: 2px;
}

.tv-gallery__arrow {
	display: flex;
	flex: 0 0 28px;
	align-items: center;
	justify-content: center;
	height: 28px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #8a8a8a;
	cursor: pointer;
}

.tv-gallery__arrow:hover {
	color: var(--tv-g-line);
}
