/* YouTube Handle Feed — inherits the theme's font and text color. Override the variables below to restyle. */
.yhf {
	--yhf-gap: 24px;
	--yhf-radius: 6px;
	--yhf-accent: #e00;          /* play button hover + subscribe hover */
	--yhf-accent-text: #fff;
	--yhf-play-bg: rgba(0, 0, 0, .65);
	margin: 0;
}

.yhf .yhf__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: var(--yhf-gap);
	grid-template-columns: repeat(var(--yhf-cols, 4), minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.yhf:not(.yhf--cols-1) .yhf__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.yhf .yhf__grid { grid-template-columns: minmax(0, 1fr); }
}

.yhf .yhf__item { margin: 0; padding: 0; list-style: none; }
.yhf .yhf__item::before { content: none; display: none; }

.yhf .yhf__link,
.yhf .yhf__playing {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: inherit;
	text-decoration: none;
}

.yhf .yhf__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
	border-radius: var(--yhf-radius);
}

.yhf .yhf__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--yhf-radius);
	background: #000;
}

.yhf .yhf__thumb img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

.yhf .yhf__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 64px;
	height: 44px;
	margin: -22px 0 0 -32px;
	border-radius: 12px;
	background: var(--yhf-play-bg);
	transition: background-color .15s ease;
}

.yhf .yhf__play::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	margin: -9px 0 0 -6px;
	border-style: solid;
	border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent #fff;
}

.yhf .yhf__link:hover .yhf__play,
.yhf .yhf__link:focus-visible .yhf__play { background: var(--yhf-accent); }

.yhf .yhf__title {
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #000;
}

.yhf .yhf__link:hover .yhf__title { text-decoration: underline; }

.yhf .yhf__date { font-size: .875em; opacity: .8; }

.yhf .yhf__more { margin: 32px 0 0; text-align: center; }

.yhf .yhf__subscribe {
	display: inline-block;
	padding: 12px 28px;
	border: 2px solid currentColor;
	border-radius: var(--yhf-radius);
	color: inherit;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.yhf .yhf__subscribe:hover,
.yhf .yhf__subscribe:focus-visible {
	background: var(--yhf-accent);
	border-color: var(--yhf-accent);
	color: var(--yhf-accent-text);
}

.yhf .yhf__subscribe:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.yhf .yhf__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.yhf .yhf__playing .yhf__thumb iframe,
.yhf-modal iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Lightbox */
.yhf-modal {
	width: min(960px, 92vw);
	max-width: none;
	max-height: none;
	padding: 0;
	border: 0;
	background: #000;
	overflow: visible;
}

.yhf-modal::backdrop { background: rgba(0, 0, 0, .85); }

.yhf-modal__frame { aspect-ratio: 16 / 9; }

.yhf-modal__close {
	position: absolute;
	right: 0;
	top: -48px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 34px;
	line-height: 1;
	cursor: pointer;
}

.yhf-modal__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
	.yhf .yhf__play,
	.yhf .yhf__subscribe { transition: none; }
}
