/* Card-tile grid for /videos and /videoCategories -- same layout concept
   as webroot/to-process/tiling.jpg (thumbnail, bold title, snippet, meta
   line) but recolored to the site's own existing palette instead of that
   reference's dark theme: white background, var(--site-accent, #FE5BAE) pink accent (the
   site's actual `a` link color, styles.css:170), black/gray text. */

.video-tile-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px 24px;
	margin: 20px 0;
}

.video-tile-grid-3col {
	grid-template-columns: repeat(3, 1fr);
}

@media only screen and (max-width: 768px) {
	.video-tile-grid,
	.video-tile-grid-3col {
		grid-template-columns: 1fr;
	}
}

/* .video-tile-card is the grid cell; .video-tile-link is the actual
   clickable <a> wrapping thumb/title/desc/meta. Tag pills sit in their own
   sibling <div> outside that <a> -- they're links to /tags/view/{slug}
   themselves, and nesting an <a> inside another <a> is invalid HTML. */
.video-tile-card {
	display: block;
}

.video-tile-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.video-tile-link:hover,
.video-tile-link:focus {
	text-decoration: none;
	color: inherit;
}

.video-tile-link:hover .video-tile-title {
	text-decoration: underline;
}

.video-tile-tags {
	margin-top: 4px;
}

.video-tile-tags .label {
	margin-right: 4px;
	margin-bottom: 4px;
	display: inline-block;
}

.video-tile-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	overflow: hidden;
	border-radius: 4px;
}

.video-tile-thumb img,
.video-tile-thumb video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.video-tile-badge {
	position: absolute;
	left: 10px;
	bottom: 10px;
	background: var(--site-accent, #FE5BAE);
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .02em;
	padding: 4px 10px;
	border-radius: 3px;
}

.video-tile-title {
	color: var(--site-accent, #FE5BAE);
	font-weight: 700;
	text-transform: uppercase;
	font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 18px;
	line-height: 1.3;
	margin: 12px 0 6px;
}

.video-tile-desc {
	color: #555;
	font-size: 14px;
	line-height: 1.45;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.video-tile-meta {
	color: #888;
	font-size: 13px;
}

.video-tile-meta .glyphicon {
	font-size: 11px;
	margin-right: 3px;
}
