/* Downloads page. Desktop (lg+) design 2000 x 551, positioned in cqw / %; below lg the items stack. */

.dl-panel {
	position: relative;
	overflow: hidden;
	container-type: inline-size;
	background: #393635;
	color: #fff;
}
.dl-panel__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Mobile / tablet: centred stack */
.dl-panel__inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
	padding: 4rem 1rem 4.5rem;
}
.dl-title {
	margin: 0 0 .5rem;
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: .01em;
	text-transform: uppercase;
	text-align: center;
	color: #fff;
}
.dl-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	width: 100%;
	max-width: 22rem;
}
.dl-item__cover {
	display: block;
	width: 100%;
	border: 3px solid #4d4a4a;
	background: #4d4a4a;
	line-height: 0;
}
.dl-item__cover img { display: block; width: 100%; height: auto; }

.dl-btn {
	display: block;
	width: 100%;
	max-width: 16rem;
	padding: .55rem 1rem;
	background: #d56157;
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	transition: filter .15s ease;
}
.dl-btn:hover,
.dl-btn:focus-visible { color: #fff; filter: brightness(.92); }

/* A portrait cover is narrower so it does not tower over the page */
.dl-item--portrait { max-width: 15rem; }

/* Desktop: a row of covers sat on a shared baseline, so any mix of landscape and portrait covers works.
   Measurements follow the 2000px design (title at 22%, covers from 35% of its 551px height). */
@media (min-width: 992px) {
	.dl-panel { min-height: 27.55cqw; }
	.dl-panel__inner {
		flex-direction: row;
		justify-content: center;
		align-items: flex-end;
		gap: 10cqw;
		padding: 9.65cqw 0 6cqw;
	}

	.dl-title {
		position: absolute;
		left: 0;
		right: 0;
		top: 6.2cqw;
		margin: 0;
		font-size: .98cqw;
		line-height: 1.2;
	}

	.dl-item {
		width: 15.65cqw;
		max-width: none;
		gap: 1.35cqw;
	}
	.dl-item--portrait { width: 14cqw; max-width: none; }

	.dl-item__cover { border-width: .12cqw; }

	.dl-btn {
		width: 11.75cqw;
		max-width: none;
		padding: .38cqw 0;
		font-size: .8cqw;
		line-height: 1.2;
	}
}
