/* EB YouTube Videos — front-end styles */

.eb-videos {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	width: 100%;
}

.eb-videos__item {
	min-width: 0;
}

/* ---------- Video frame (shared by iframe + facade modes) ---------- */
.eb-videos__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #000;
	display: block;
	border: 0 solid transparent;
}

.eb-videos__frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Facade (click-to-play) ---------- */
.eb-videos__facade {
	cursor: pointer;
	padding: 0;
}

.eb-videos__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.eb-videos__facade:hover .eb-videos__thumb {
	transform: scale(1.04);
}

.eb-videos__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 72px;
	height: 50px;
	background: #c8102e;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease, filter 0.2s ease;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.eb-videos__facade:hover .eb-videos__play {
	transform: translate(-50%, -50%) scale(1.08);
	filter: brightness(1.1);
}

.eb-videos__play-icon {
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 11px 0 11px 19px;
	border-color: transparent transparent transparent #ffffff;
	margin-left: 4px;
}

/* ---------- Caption ---------- */
.eb-videos__caption {
	margin-top: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 15px;
}

/* ---------- Responsive safety net ---------- */
/* Column count per device is set from the Elementor panel; this just
   guarantees single column on small phones if a large count was chosen. */
@media (max-width: 480px) {
	.eb-videos {
		grid-template-columns: 1fr !important;
	}
}

/* ---------- See More ---------- */
.eb-videos__item--hidden {
	display: none;
}

.eb-videos__item--revealing {
	animation: eb-video-reveal 0.4s ease both;
}

@keyframes eb-video-reveal {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.eb-videos__more {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 36px auto 0;
	background: none;
	border: 0;
	padding: 18px 40px 14px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.25s ease;
}

.eb-videos__more-label {
	transition: color 0.25s ease;
}


.eb-videos__more-label {
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ffffff;
	line-height: 1;
}

/* Chevron: two borders of a rotated square, like the sample's red V */
.eb-videos__more-chevron {
	width: 28px;
	height: 28px;
	border: solid #c8102e;
	border-width: 0 4px 4px 0;
	transform: rotate(45deg);
	margin-top: -8px;
	transition: border-color 0.25s ease, transform 0.2s ease;
}

.eb-videos__more:hover .eb-videos__more-chevron {
	transform: rotate(45deg) translate(3px, 3px);
}

/* ---------- Self-hosted videos ---------- */
.eb-videos__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #000;
}

/* Blank placeholder when a self-hosted video has no poster */
.eb-videos__thumb--blank {
	background: linear-gradient(135deg, #2a2a2a, #111);
}
