/**
 * ===================================================================
 * Videos grid
 *
 * Loaded on the videos page and the video_type / video_tag archives
 * via decibel_child_enqueue_videos_styles() (decibel_is_videos()).
 *
 * The parent theme renders each card title at opacity .44, white, no
 * text-shadow, straight onto the thumbnail - unreadable on lighter
 * frames, and it only reaches full opacity on hover. This pins the
 * title to the bottom over a permanent gradient scrim, clamps it to
 * two lines so it can't ride up into the play button, and gives the
 * filter row a real segmented-control look.
 *
 * NB: the theme sets html { font-size: 10px }, so 1rem = 10px here.
 * ===================================================================
 */

/* --- Card title: permanent scrim + legible text ------------------- */

body.is-videos .entry-video .video-summary::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 58%;
	background: linear-gradient(to top,
		rgba(10, 8, 7, 0.82) 0%,
		rgba(10, 8, 7, 0.5) 40%,
		rgba(10, 8, 7, 0) 100%);
	pointer-events: none;
	z-index: 0;
}

body.is-videos .entry-video .video-summary-inner {
	position: relative;
	z-index: 1;
	opacity: 1 !important;
	transform: none !important;
	text-align: left;
	padding: 16px 20px;
}

body.is-videos .entry-video .video-summary-inner .entry-title {
	font-size: clamp(1.4rem, 1.4vw, 1.55rem);
	line-height: 1.32;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Subtle cover zoom + keyboard focus ring, matching the other grids. */
body.is-videos .entry-video .img-bg {
	transition: transform .5s cubic-bezier(.33, .02, 0, .94), opacity .3s ease;
}

body.is-videos .entry-video:hover .img-bg,
body.is-videos .entry-video:focus-within .img-bg {
	transform: scale(1.05);
}

body.is-videos .entry-video .entry-link-mask:focus-visible {
	outline: 3px solid #c74735;
	outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
	body.is-videos .entry-video .img-bg,
	body.is-videos .entry-video:hover .img-bg,
	body.is-videos .entry-video:focus-within .img-bg {
		transition: none;
		transform: none;
	}
}

/* --- Filter row: segmented control ------------------------------- */

body.is-videos .category-filter-video ul {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 auto clamp(2.6rem, 4vw, 3.6rem);
	padding: 4px;
	list-style: none;
	border: 1px solid rgba(26, 26, 26, 0.18);
}

body.is-videos .category-filter-video li {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.is-videos .category-filter-video .filter-link {
	display: block;
	padding: 8px 18px;
	font-family: "Oswald", "Helvetica Neue", Arial, sans-serif;
	font-size: 1.3rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #1a1a1a;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

body.is-videos .category-filter-video .filter-link:hover,
body.is-videos .category-filter-video .filter-link:focus-visible {
	color: #c74735;
}

body.is-videos .category-filter-video .filter-link.active {
	background: #1a1a1a;
	color: #fff;
}
