/* BD Gated Video v1.2.0 */

.bd-gated-video {
	position: relative;
	width: 100%;
	--bd-gv-ratio: 16 / 9;
}

.bd-gv-stage {
	position: relative;
	width: 100%;
	aspect-ratio: var(--bd-gv-ratio);
	background: #111;
	border-radius: 6px;
	overflow: hidden;
}

.bd-gv-stage iframe,
.bd-gv-stage video,
.bd-gv-poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.bd-gv-poster {
	object-fit: cover;
}

/* Overlay + play button */
.bd-gv-overlay {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.25);
	border: 0;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease;
}

.bd-gv-overlay:hover,
.bd-gv-overlay:focus-visible {
	background: rgba(0, 0, 0, 0.4);
}

.bd-gv-play {
	width: 74px;
	height: 74px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	position: relative;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease;
}

.bd-gv-overlay:hover .bd-gv-play {
	transform: scale(1.07);
}

.bd-gv-play::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 54%;
	transform: translate(-50%, -50%);
	border-style: solid;
	border-width: 14px 0 14px 23px;
	border-color: transparent transparent transparent #111;
}

/* Modal */
.bd-gv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000; /* above Elementor sticky headers */
	display: none;
}

.bd-gv-modal.bd-gv-open {
	display: block;
}

.bd-gv-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
}

.bd-gv-modal-dialog {
	position: relative;
	max-width: 520px;
	width: calc(100% - 32px);
	margin: 8vh auto 0;
	background: #fff;
	border-radius: 8px;
	padding: 32px 28px 24px;
	max-height: 84vh;
	overflow-y: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.bd-gv-modal-title {
	margin: 0 0 12px;
}

.bd-gv-modal-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 4px;
}

.bd-gv-modal-close:hover {
	color: #000;
}

body.bd-gv-modal-open {
	overflow: hidden;
}

/* Fallback for browsers without aspect-ratio (Safari < 15) */
@supports not (aspect-ratio: 16 / 9) {
	.bd-gv-stage {
		height: 0;
		padding-top: 56.25%;
	}
}
