/* Product Videos — fixed 16:9; full row under gallery; width matches Reviews */

/* Forces a new full-width row under Blocksy .product-entry-wrapper (flex gallery+summary) */
.vv-product-videos-break {
	display: block !important;
	float: none !important;
	clear: both !important;
	flex: 0 0 100% !important;
	flex-basis: 100% !important;
	width: 100% !important;
	max-width: 100% !important;
	align-self: stretch !important;
	grid-column: 1 / -1 !important;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.product > .vv-product-videos-break {
	clear: both !important;
	width: 100% !important;
	max-width: 100% !important;
}

.vv-product-videos {
	--vv-pv-ink: #0f1111;
	--vv-pv-muted: #565959;
	--vv-pv-line: #d5d9d9;
	--vv-pv-bg: #000;
	--vv-pv-aside-w: 280px;
	--vv-pv-gap: 14px;
	display: block;
	float: none;
	clear: both;
	box-sizing: border-box;
	/* Vertical rhythm only — width/centering from .is-width-constrained */
	margin-block: 1.75rem 2rem;
	margin-inline: auto;
	padding: 0;
}

.vv-product-videos__heading {
	margin: 0 0 0.7rem;
	color: var(--vv-pv-ink);
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-align: left;
}

.vv-product-videos__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--vv-pv-aside-w);
	gap: 0 var(--vv-pv-gap);
	align-items: stretch;
	width: 100%;
}

.vv-product-videos__stage {
	min-width: 0;
	width: 100%;
}

/* Fixed 16:9 stage — height MUST follow width (no max-height or ratio breaks) */
.vv-product-videos__player-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
	background: var(--vv-pv-bg);
	border-radius: 2px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vv-product-videos__player {
	display: block;
	width: 100%;
	height: 100%;
	background: #000;
	object-fit: contain;
}

/* Native fullscreen ignores page stage constraints */
.vv-product-videos__player:fullscreen,
.vv-product-videos__player:-webkit-full-screen {
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	max-height: none !important;
	border-radius: 0 !important;
	object-fit: contain !important;
	background: #000 !important;
}

.vv-product-videos__player-wrap:fullscreen,
.vv-product-videos__player-wrap:-webkit-full-screen {
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	max-height: none !important;
	aspect-ratio: auto !important;
	border-radius: 0 !important;
	background: #000 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.vv-product-videos__player-wrap:fullscreen .vv-product-videos__player,
.vv-product-videos__player-wrap:-webkit-full-screen .vv-product-videos__player {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: contain !important;
}

.vv-product-videos__player-wrap:fullscreen .vv-product-videos__overlay,
.vv-product-videos__player-wrap:-webkit-full-screen .vv-product-videos__overlay {
	display: none !important;
}

.vv-product-videos__overlay {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	z-index: 2;
	padding: 12px 14px 28px;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.2) 55%, transparent 100%);
}

.vv-product-videos__now-author {
	margin: 0;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.25;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.vv-product-videos__now-title {
	margin: 0.2rem 0 0;
	color: rgba(255, 255, 255, 0.95);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.35;
	max-width: 85%;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.vv-product-videos__aside {
	min-width: 0;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--vv-pv-line);
	border-radius: 2px;
	background: #fff;
	overflow: hidden;
	align-self: stretch;
	min-height: 0;
}

.vv-product-videos__aside-title {
	flex: 0 0 auto;
	margin: 0;
	padding: 10px 12px;
	border-bottom: 1px solid var(--vv-pv-line);
	color: var(--vv-pv-ink);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.3;
}

.vv-product-videos__list {
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
	-webkit-overflow-scrolling: touch;
}

.vv-product-videos__list > li {
	margin: 0;
	border-bottom: 1px solid var(--vv-pv-line);
}

.vv-product-videos__list > li:last-child {
	border-bottom: 0;
}

.vv-product-videos__item {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: pointer;
	color: inherit;
	font: inherit;
}

.vv-product-videos__item:hover {
	background: #f7fafa;
}

.vv-product-videos__item.is-active {
	background: #eaeded;
}

/* Fixed landscape thumbs */
.vv-product-videos__thumb {
	position: relative;
	flex: 0 0 96px;
	width: 96px;
	height: 54px;
	border-radius: 2px;
	overflow: hidden;
	background: #1a1a1a;
}

.vv-product-videos__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 1 !important; /* never wait on image-snap */
	background: #1a1a1a;
}

.vv-product-videos__thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(160deg, #3a3a3a, #151515);
}

.vv-product-videos__dur {
	position: absolute;
	right: 3px;
	bottom: 3px;
	padding: 1px 4px;
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.82);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
	z-index: 1;
}

.vv-product-videos__playing {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	padding: 3px 4px;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-align: center;
	text-transform: uppercase;
	line-height: 1.2;
	z-index: 1;
}

.vv-product-videos__meta {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1 1 auto;
}

.vv-product-videos__item-title {
	color: var(--vv-pv-ink);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vv-product-videos__item-author {
	color: var(--vv-pv-muted);
	font-size: 0.75rem;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}


/* Review card video — same tile size as review photos (144×144) */
.vv-review-card__video {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 8px;
}

.vv-review-card__photos + .vv-review-card__video {
	margin-top: 8px;
}

.vv-review-card__video-tile {
	position: relative;
	display: block;
	overflow: hidden;
	width: 144px;
	height: 144px;
	max-width: 144px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: #f3f3f3;
	line-height: 0;
	flex: 0 0 auto;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.vv-review-card__video-tile:hover .vv-review-card__video-play {
	transform: translate(-50%, -50%) scale(1.06);
	background: rgba(0, 0, 0, 0.72);
}

.vv-review-card__video-img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover !important;
	margin: 0 !important;
	border-radius: 8px;
	opacity: 1 !important; /* never wait on image-snap */
}

.vv-review-card__video-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(160deg, #3a3a3a, #151515);
	border-radius: 8px;
}

.vv-review-card__video-play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.58);
	color: #fff;
	font-size: 0.85rem;
	line-height: 1;
	transform: translate(-50%, -50%);
	pointer-events: none;
	transition: transform 0.15s ease, background 0.15s ease;
	padding-left: 2px; /* optical center for ▶ */
}

.vv-review-card__video-dur {
	position: absolute;
	right: 6px;
	bottom: 6px;
	z-index: 1;
	padding: 2px 6px;
	border-radius: 4px;
	background: rgba(0, 0, 0, 0.78);
	color: #fff;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.25;
	font-variant-numeric: tabular-nums;
}

/* Inline review-video lightbox */
.vv-review-video-lb {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(0, 0, 0, 0.82);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, visibility 0.18s ease;
}

.vv-review-video-lb.is-open {
	opacity: 1;
	visibility: visible;
}

.vv-review-video-lb__panel {
	position: relative;
	width: min(920px, 100%);
	max-height: min(80vh, 100%);
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.vv-review-video-lb__video {
	display: block;
	width: 100%;
	max-height: min(80vh, 100%);
	aspect-ratio: 16 / 9;
	background: #000;
	object-fit: contain;
}

.vv-review-video-lb__close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
}

.vv-review-video-lb__close:hover {
	background: rgba(0, 0, 0, 0.75);
}

html.vv-review-video-lb-open,
html.vv-review-video-lb-open body {
	overflow: hidden;
}

/* Review form video field */
.vv-reviews-form__video {
	margin: 0 0 1rem;
}

.vv-reviews-form__video-add {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}

.vv-reviews-form__video-add input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.vv-reviews-form__video-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.45rem 0.9rem;
	border: 1px dashed #b9c4be;
	border-radius: 8px;
	background: #f7faf8;
	color: #2f5c4a;
	font-size: 0.875rem;
	font-weight: 600;
}

.vv-reviews-form__video-add:hover .vv-reviews-form__video-btn {
	border-color: #2f5c4a;
}

.vv-reviews-form__video-name {
	margin: 0.4rem 0 0;
	color: #444;
	font-size: 0.8125rem;
}

@media (max-width: 720px) {
	.vv-product-videos {
		--vv-pv-aside-w: 100%;
	}

	.vv-product-videos__layout {
		grid-template-columns: 1fr;
		gap: 10px 0;
	}

	.vv-product-videos__aside {
		height: auto;
		max-height: 280px;
	}

	.vv-product-videos__list {
		max-height: 220px;
	}
}

@media (max-width: 560px) {
	.vv-review-card__video-tile {
		width: 120px;
		height: 120px;
		max-width: 120px;
	}
}
