/**
 * ROKK - Download centre (template-downloads.php): range buttons and the
 * download cards, which build on the case study card. Loaded on that
 * template only.
 */

/* Range buttons ------------------------------------------------------------- */

.downloads__intro {
	max-width: 900px;
	margin-bottom: clamp(28px, 2.5vw, 48px);
	color: var(--white);
}

.download-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: clamp(32px, 2.9vw, 56px);
}

.download-filter {
	display: inline-flex;
	align-items: center;
	gap: .35em;
	min-height: 40px;
	padding: 0 18px;
	border: 1px solid var(--white);
	border-radius: var(--radius);
	color: var(--white);
	font-size: 1rem;
	font-weight: var(--fw-bold);
	text-decoration: none;
	transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}

.download-filter:hover {
	border-color: var(--red);
	color: var(--white);
	background: rgba(204, 7, 30, .4);
}

.download-filter[aria-current] {
	border-color: var(--red);
	background: var(--red);
}

.download-filter__count {
	font-weight: var(--fw-regular);
}

/* Cards ---------------------------------------------------------------------- */

.download-grid {
	padding: 0;
	list-style: none;
}

.download-grid__item > .download-card {
	height: 100%;
}

/* Machine cut-outs are shown whole, on a darker panel. */
.download-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	background: rgba(0, 0, 0, .28);
}

.download-card__image {
	width: auto;
	max-width: 100%;
	height: 100%;
	object-fit: contain;
	transition: transform .5s var(--ease);
}

.download-card:hover .download-card__image {
	transform: scale(1.04);
}

.download-card__details {
	margin-bottom: 20px;
	color: #ddd;
}
