/* Pullco video blocks (front end and editor). */

/* ---------- Hero-video ---------- */

.pullco-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 320px;
	margin-top: 0;
	margin-bottom: 0;
	padding: 60px 40px;
	overflow: hidden;
	background: #2b2e34;
}

@media (min-width: 768px) {
	.pullco-hero {
		min-height: calc(100vh - var(--pullco-header, 82px) - var(--wp-admin--admin-bar--height, 0px));
	}
}

.pullco-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pullco-hero__overlay {
	position: absolute;
	inset: 0;
	background: #7e8dff;
	opacity: 0.2;
	pointer-events: none;
}

.pullco-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
}

.pullco-hero__title {
	position: relative;
	max-width: 800px !important;
	margin: 0 auto !important;
	font-size: clamp(20px, 5vw, 44px);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
}

.pullco-hero__title::before,
.pullco-hero__title::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 160px;
	height: 1px;
	background: #fff;
	transform: translateX(-50%);
}

.pullco-hero__title::before {
	top: -24px;
}

.pullco-hero__title::after {
	bottom: -24px;
}

@media (min-width: 768px) {
	.pullco-hero__title::before,
	.pullco-hero__title::after {
		width: 354px;
	}

	.pullco-hero__title::before {
		top: -40px;
	}

	.pullco-hero__title::after {
		bottom: -40px;
	}
}

/* ---------- Video met play-knop ---------- */

.pullco-video {
	position: relative;
	margin: 0;
}

.pullco-video video {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.pullco-video__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--pullco-black, #000);
	transition: color 0.4s, opacity 0.4s;
}

.pullco-video__play[hidden] {
	display: none;
}

.pullco-video__play svg {
	width: 93px;
	height: 93px;
}

.pullco-video__play:hover,
.pullco-video__play:focus-visible {
	color: var(--pullco-red, #e04646);
}

.pullco-video.is-playing .pullco-video__play {
	opacity: 0;
	visibility: hidden;
}

/* Editor: placeholder when no video has been chosen yet */
.pullco-video-leeg {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 24px;
	background: #f5f5f5;
	color: #2b2e34;
	text-align: center;
}
