.custom-video__wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
	max-width: 100%;
	border-radius: 0.75rem;
	overflow: hidden;
	background: #272727;
	box-shadow: 0 0 80px rgba(70, 200, 248, 0.15);
}

.custom-video__iframe-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.custom-video__yt-container {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Scale API-created iframe to crop YouTube UI */
.custom-video__wrapper[data-youtube="1"] .custom-video__iframe-wrap iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 130%;
	height: 130%;
	border: none;
	transform: translate(-50%, -50%);
	pointer-events: none;
}

.custom-video__wrapper[data-youtube="1"] .custom-video__iframe-wrap {
	pointer-events: none;
}

/* Click overlay: captures clicks and triggers play (hides YT red button) */
.custom-video__play-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.custom-video__play-overlay.is-hidden {
	display: none;
}

.custom-video__video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
	object-fit: cover;
}

/* Re-enable pointer events on wrapper for overlay and controls */
.custom-video__wrapper .custom-video__play-overlay,
.custom-video__wrapper .custom-video__controls {
	pointer-events: auto;
}

.custom-video__video {
	display: block;
}

.custom-video__controls {
	position: absolute;
	left: 1rem;
	bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	z-index: 10;
	pointer-events: auto;
}

.custom-video__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	padding: 0;
	border: none;
	background: transparent;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}

.custom-video__btn:hover {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

.custom-video__btn:focus-visible {
	outline: 2px solid #46c8f8;
	outline-offset: 2px;
}

.custom-video__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.125rem;
	height: 1.125rem;
	color: inherit;
}

.custom-video__icon svg {
	width: 100%;
	height: 100%;
	display: block;
	fill: currentColor;
}

.custom-video__icon--pause,
.custom-video__btn.is-playing .custom-video__icon--play {
	display: none;
}

.custom-video__btn.is-playing .custom-video__icon--pause {
	display: flex;
}

/* By default: show volume-on (sound on), hide volume-off */
.custom-video__icon--volume-off {
	display: none;
}

/* When muted: show volume-off, hide volume-on */
.custom-video__btn.is-muted .custom-video__icon--volume-on {
	display: none;
}

.custom-video__btn.is-muted .custom-video__icon--volume-off {
	display: flex;
}


.custom-video .glow-in {
	height: 1600px;
	left: 50%;
	top: 50%;
	transform: translateX(-50%) translateY(-50%) rotate(62deg);
	width: 280px;
}
