.tvb-picture-carousel {
	--tvb-pc-main-ratio: 3/2;
	--tvb-pc-main-fit: contain;
	--tvb-pc-main-bg: #f3f3f3;
	--tvb-pc-thumb-width: 86px;
	--tvb-pc-thumb-height: 58px;
	--tvb-pc-gap: 6px;
	--tvb-pc-active-color: #333333;
	position: relative;
	width: 100%;
	max-width: 100%;
	outline: none;
}

.tvb-pc-main-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: var(--tvb-pc-main-ratio);
	overflow: hidden;
	background: var(--tvb-pc-main-bg);
}

.tvb-pc-main-image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: var(--tvb-pc-main-fit);
	object-position: center center;
	transition: opacity .22s ease;
}

.tvb-pc-main-image.is-changing {
	opacity: .18;
}

.tvb-pc-arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 44px;
	height: 54px;
	padding: 0;
	border: 0;
	transform: translateY(-50%);
	background: rgba(0,0,0,.42);
	color: #fff;
	font-size: 30px;
	line-height: 54px;
	text-align: center;
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s ease, background .2s ease;
}

.tvb-pc-main-wrap:hover .tvb-pc-arrow,
.tvb-pc-arrow:focus-visible {
	opacity: 1;
}

.tvb-pc-arrow:hover {
	background: rgba(0,0,0,.68);
}

.tvb-pc-prev {
	left: 8px;
}

.tvb-pc-next {
	right: 8px;
}

.tvb-pc-thumbs {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
	gap: var(--tvb-pc-gap);
	width: 100%;
	margin-top: 7px;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
	scroll-behavior: smooth;
	padding-bottom: 2px;
}

.tvb-pc-thumb {
	flex: 0 0 var(--tvb-pc-thumb-width);
	width: var(--tvb-pc-thumb-width);
	height: var(--tvb-pc-thumb-height);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 2px solid transparent;
	background: transparent;
	cursor: pointer;
	opacity: .72;
	overflow: hidden;
	transition: opacity .18s ease, border-color .18s ease;
	box-sizing: border-box;
}

.tvb-pc-thumb:hover,
.tvb-pc-thumb:focus-visible,
.tvb-pc-thumb.is-active {
	opacity: 1;
}

.tvb-pc-thumb.is-active {
	border-color: var(--tvb-pc-active-color);
}

.tvb-pc-thumb:focus-visible {
	outline: 2px solid var(--tvb-pc-active-color);
	outline-offset: 2px;
}

.tvb-pc-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

@media (hover: none) {
	.tvb-pc-arrow {
		opacity: .72;
	}
}

@media (max-width: 767px) {
	.tvb-pc-arrow {
		width: 38px;
		height: 48px;
		line-height: 48px;
		font-size: 26px;
	}

	.tvb-pc-prev {
		left: 5px;
	}

	.tvb-pc-next {
		right: 5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tvb-pc-main-image,
	.tvb-pc-arrow,
	.tvb-pc-thumb,
	.tvb-pc-thumbs {
		transition: none;
		scroll-behavior: auto;
	}
}

/* Extra bescherming tegen Divi/theme button- en image-stijlen. */
.tvb-picture-carousel button.tvb-pc-arrow,
.tvb-picture-carousel button.tvb-pc-thumb {
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	text-decoration: none;
}

.tvb-picture-carousel .tvb-pc-thumbs .tvb-pc-thumb {
	display: block;
	max-width: none;
}

/* Play / pauze knop voor de diavoorstelling. */
.tvb-pc-play {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 34px;
	margin: 0;
	padding: 6px 10px;
	border: 0;
	border-radius: 2px;
	background: rgba(0,0,0,.58);
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease, background .18s ease;
}

.tvb-pc-main-wrap:hover .tvb-pc-play,
.tvb-pc-play:focus-visible {
	opacity: 1;
	pointer-events: auto;
}

.tvb-pc-play:hover,
.tvb-pc-play.is-playing {
	background: rgba(0,0,0,.76);
}

.tvb-pc-play-icon {
	display: inline-block;
	min-width: 12px;
	font-size: 11px;
	line-height: 1;
	text-align: center;
}

.tvb-picture-carousel button.tvb-pc-play {
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
	text-decoration: none;
}

/* Op toestellen zonder hover moet Play wel bereikbaar blijven. */
@media (hover: none) {
	.tvb-pc-play {
		opacity: .78;
		pointer-events: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tvb-pc-play {
		transition: none;
	}
}


/* Fotonaam onderaan op de grote foto. */
.tvb-pc-photo-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 9px 12px;
	background: linear-gradient(to top, rgba(0,0,0,.68), rgba(0,0,0,.08));
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	text-shadow: 0 1px 2px rgba(0,0,0,.55);
	pointer-events: none;
	box-sizing: border-box;
}

.tvb-pc-photo-name.is-empty {
	display: none;
}

@media (max-width: 767px) {
	.tvb-pc-photo-name {
		padding: 8px 10px;
		font-size: 13px;
	}
}
