/* Product detail video gallery. */
.single-product #tab-maxtel_video .maxtel-product-video-gallery {
	display: grid;
	gap: 1rem;
	width: min(100%, 980px);
	margin-inline: auto;
}

.maxtel-product-video-gallery__viewport {
	position: relative;
}

.maxtel-product-video-gallery__track {
	display: grid;
}

.maxtel-product-video-slide {
	display: grid;
	gap: 0.75rem;
}

.maxtel-product-video-slide[hidden] {
	display: none;
}

.maxtel-product-video-slide__header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.35rem 0.75rem;
	align-items: center;
}

.maxtel-product-video-slide__header h3 {
	margin: 0;
	color: #24364f;
	font-size: clamp(1rem, 1.4vw, 1.25rem);
	line-height: 1.35;
}

.maxtel-product-video-slide__count,
.maxtel-product-video-slide__ratio,
.maxtel-product-video-thumb__index,
.maxtel-product-video-thumb__ratio {
	color: #64748b;
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.maxtel-product-video-slide__count {
	grid-column: 1 / -1;
}

.maxtel-product-video-slide__ratio,
.maxtel-product-video-thumb__ratio {
	padding: 0.25rem 0.45rem;
	border-radius: 999px;
	background: #eef6ff;
	color: #0067a8;
}

.single-product #tab-maxtel_video .maxtel-product-video-embed {
	width: min(100%, 860px);
	max-width: 860px;
	margin-inline: auto;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.maxtel-product-video-embed--wide {
	aspect-ratio: 16 / 9;
}

.maxtel-product-video-embed--vertical {
	aspect-ratio: 9 / 16;
}

.single-product #tab-maxtel_video .maxtel-product-video-embed--vertical {
	width: min(100%, 420px);
	max-width: 420px;
}

.single-product #tab-maxtel_video .maxtel-product-video-embed iframe,
.single-product #tab-maxtel_video .maxtel-product-video-embed video {
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
}

.maxtel-product-video-embed__poster {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: #0f172a;
	cursor: pointer;
	overflow: hidden;
}

.maxtel-product-video-embed__poster img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.28s ease, filter 0.28s ease;
}

.maxtel-product-video-embed__poster:hover img,
.maxtel-product-video-embed__poster:focus-visible img {
	transform: scale(1.02);
	filter: brightness(0.88);
}

.maxtel-product-video-embed__play {
	position: absolute;
	display: grid;
	place-items: center;
	width: 70px;
	height: 50px;
	border-radius: 14px;
	background: #e62117;
	box-shadow: 0 14px 30px rgba(15, 23, 42, 0.28);
}

.maxtel-product-video-embed__play::before {
	content: "";
	width: 0;
	height: 0;
	margin-left: 4px;
	border-top: 11px solid transparent;
	border-bottom: 11px solid transparent;
	border-left: 18px solid #fff;
}

.maxtel-product-video-embed.is-video-playing .maxtel-product-video-embed__poster {
	display: none;
}

.maxtel-product-video-gallery__nav {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #d6e5f2;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
	cursor: pointer;
	transform: translateY(-50%);
}

.maxtel-product-video-gallery__nav::before {
	content: "";
	width: 10px;
	height: 10px;
	border-top: 2px solid #0067a8;
	border-left: 2px solid #0067a8;
}

.maxtel-product-video-gallery__nav--prev {
	left: 0.75rem;
}

.maxtel-product-video-gallery__nav--prev::before {
	transform: rotate(-45deg);
}

.maxtel-product-video-gallery__nav--next {
	right: 0.75rem;
}

.maxtel-product-video-gallery__nav--next::before {
	transform: rotate(135deg);
}

.maxtel-product-video-gallery__playlist {
	display: grid;
	grid-auto-columns: minmax(220px, 1fr);
	grid-auto-flow: column;
	gap: 0.75rem;
	overflow-x: auto;
	padding: 0.15rem 0.1rem 0.4rem;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
}

.maxtel-product-video-thumb {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 0.65rem;
	align-items: center;
	min-width: 0;
	padding: 0.55rem;
	border: 1px solid #dbe7f2;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-align: left;
	cursor: pointer;
	scroll-snap-align: start;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.maxtel-product-video-thumb:hover,
.maxtel-product-video-thumb:focus-visible,
.maxtel-product-video-thumb.is-active {
	border-color: #0b83cf;
	box-shadow: 0 10px 24px rgba(0, 103, 168, 0.13);
	transform: translateY(-1px);
}

.maxtel-product-video-thumb__media {
	display: block;
	width: 76px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 6px;
	background: linear-gradient(135deg, #0f172a, #0067a8);
}

.maxtel-product-video-thumb--vertical .maxtel-product-video-thumb__media {
	width: 52px;
	justify-self: center;
	aspect-ratio: 9 / 16;
}

.maxtel-product-video-thumb__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.maxtel-product-video-thumb__body {
	display: grid;
	gap: 0.25rem;
	min-width: 0;
}

.maxtel-product-video-thumb__title {
	display: -webkit-box;
	overflow: hidden;
	color: #24364f;
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.3;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.maxtel-product-video-thumb__ratio {
	justify-self: start;
}

@media (max-width: 720px) {
	.single-product #tab-maxtel_video .maxtel-product-video-gallery {
		width: 100%;
	}

	.single-product #tab-maxtel_video .maxtel-product-video-embed {
		width: 100%;
		max-width: none;
		box-shadow: none;
	}

	.single-product #tab-maxtel_video .maxtel-product-video-embed--vertical {
		width: min(100%, 360px);
		max-width: 360px;
	}

	.maxtel-product-video-gallery__nav {
		top: auto;
		bottom: 0.75rem;
		transform: none;
	}

	.maxtel-product-video-gallery__nav--prev {
		left: 0.75rem;
	}

	.maxtel-product-video-gallery__nav--next {
		right: 0.75rem;
	}

	.maxtel-product-video-gallery__playlist {
		grid-auto-columns: minmax(210px, 84%);
	}
}
