/*
Theme Name: Twin Valley Kadence Child V11
Description: Product-specific template for Twin Valley Controls, inheriting Kadence.
Author: Twin Valley Controls
Version: 11.0.0
Template: kadence
Text Domain: tvc-kadence-child-v11
*/

.tvc-product-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: start;
	gap: clamp(24px, 3vw, 40px);
}

.tvc-product-media,
.tvc-product-description {
	min-width: 0;
}

.tvc-gallery-main {
	position: relative;
	overflow: hidden;
	margin: 0;
	border-radius: 15px;
	background: var(--global-palette7);
}

.tvc-gallery-image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.tvc-gallery-arrow,
.tvc-gallery-toggle {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--global-palette2);
	cursor: pointer;
}

.tvc-gallery-arrow:hover,
.tvc-gallery-arrow:focus,
.tvc-gallery-toggle:hover,
.tvc-gallery-toggle:focus {
	background: transparent;
	box-shadow: none;
	color: var(--global-palette2);
}

.tvc-gallery-arrow::before,
.tvc-gallery-toggle::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	border-radius: inherit;
	background: var(--global-palette7);
	content: "";
	opacity: 0.8;
	pointer-events: none;
}

.tvc-gallery-arrow:hover::before,
.tvc-gallery-toggle:hover::before {
	opacity: 1;
}

.tvc-gallery-arrow > span,
.tvc-gallery-toggle > span {
	position: relative;
	z-index: 1;
}

.tvc-gallery-arrow svg,
.tvc-gallery-toggle svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.tvc-gallery-arrow {
	top: 50%;
	width: 38px;
	height: 48px;
	transform: translateY(-50%);
}

.tvc-gallery-previous {
	left: 0;
	border-radius: 0 4px 4px 0;
}

.tvc-gallery-next {
	right: 0;
	border-radius: 4px 0 0 4px;
}

.tvc-gallery-toggle {
	right: 10px;
	bottom: 10px;
	width: 42px;
	height: 42px;
	border-radius: 4px;
}

.tvc-gallery-image[data-gallery-open] {
	cursor: zoom-in;
}

.tvc-lightbox {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
}

.tvc-lightbox::before {
	position: absolute;
	inset: 0;
	background: var(--global-palette4);
	content: "";
	opacity: 0.8;
	pointer-events: none;
}

.tvc-lightbox-stage {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 64px 56px;
	box-sizing: border-box;
}

.tvc-lightbox-image {
	display: block;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 4px;
}

.tvc-lightbox .tvc-lightbox-close {
	top: 10px;
	right: 10px;
	bottom: auto;
}

.tvc-gallery-play-icon {
	display: none;
}

.tvc-gallery.is-paused .tvc-gallery-pause-icon {
	display: none;
}

.tvc-gallery.is-paused .tvc-gallery-play-icon {
	display: inline;
}

.tvc-gallery-arrow:focus-visible,
.tvc-gallery-toggle:focus-visible,
.tvc-gallery-dot:focus-visible {
	outline: 3px solid var(--global-palette1);
	outline-offset: 3px;
}

.tvc-gallery-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
}

.tvc-gallery-dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 1px solid var(--global-palette2);
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
}

.tvc-gallery-dot.is-active {
	background: var(--global-palette2);
}

.tvc-product-description > :first-child {
	margin-top: 0;
}

.tvc-product-description > :last-child {
	margin-bottom: 0;
}

.tvc-product-layout-no-gallery {
	grid-template-columns: 1fr;
}

.tvc-product-ctas {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 4vw, 64px);
	margin-top: clamp(48px, 7vw, 96px);
}

.tvc-product-cta {
	text-align: center;
}

.tvc-product-cta p {
	margin: 0 0 28px;
}

.tvc-product-cta .kb-buttons-wrap {
	display: flex;
	justify-content: center;
}

@media (max-width: 767px) {
	.tvc-product-layout,
	.tvc-product-ctas {
		grid-template-columns: 1fr;
	}

	.tvc-product-ctas {
		gap: 40px;
	}

	.tvc-product-cta p {
		margin-bottom: 18px;
	}
}
