/*
 * Internship - Programmes.
 *
 * Read from cp-all-designer css/career.css:924-976 and css/geniversity.css:25-89,
 * which loads after it and wins where the two differ.
 *
 * Colour, type, padding and the measures arrive from the Style tab and are not
 * repeated here.
 */

/* geniversity.css:25-27 — three to a row */
.custom-internship-programmes .custom-internship-programmes__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* career.css:932-943 — the words stand at the card's foot */
.custom-internship-programmes .custom-internship-programmes__card {
	position: relative;
	isolation: isolate;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-sizing: border-box;
	min-width: 0;
	overflow: hidden;
}

/* career.css:944-949 — the photograph fills the card and eases larger under the pointer */
.custom-internship-programmes .custom-internship-programmes__picture {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-color: #0E1E54;
}

.custom-internship-programmes .custom-internship-programmes__picture > img {
	height: 100%;
	max-width: none;
	transition: transform 1100ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-internship-programmes .custom-internship-programmes__card:hover .custom-internship-programmes__picture > img {
	transform: scale(1.04);
}

/* geniversity.css:68-77 — a wash at the head, and a deep one rising from the foot */
.custom-internship-programmes .custom-internship-programmes__card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(8, 16, 38, 0.42) 0%, rgba(8, 16, 38, 0) 24%),
		linear-gradient(0deg,
			rgba(8, 16, 38, 0.86) 0px,
			rgba(8, 16, 38, 0.68) 120px,
			rgba(8, 16, 38, 0.42) 240px,
			rgba(8, 16, 38, 0.1) 330px,
			rgba(8, 16, 38, 0) 390px);
}

/* career.css:958 */
.custom-internship-programmes .custom-internship-programmes__body {
	display: grid;
	justify-items: start;
}

/* career.css:960-967 */
.custom-internship-programmes .custom-internship-programmes__card-title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
}

.custom-internship-programmes .custom-internship-programmes__sub {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 400;
	line-height: 1.55;
	letter-spacing: 0;
}

.custom-internship-programmes .custom-internship-programmes__act {
	display: flex;
}

@media (prefers-reduced-motion: reduce) {
	.custom-internship-programmes .custom-internship-programmes__picture > img {
		transition: none;
	}
	.custom-internship-programmes .custom-internship-programmes__card:hover .custom-internship-programmes__picture > img {
		transform: none;
	}
}

/* ------------------------------------------------------------------ */
/* Tablet — 768px to 1024px (geniversity.css:79-83)                    */
/* ------------------------------------------------------------------ */

@media (max-width: 1024px) {
	.custom-internship-programmes .custom-internship-programmes__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ------------------------------------------------------------------ */
/* Mobile — up to 767px (geniversity.css:84-89, drawn at 640)          */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.custom-internship-programmes .custom-internship-programmes__cards {
		grid-template-columns: minmax(0, 1fr);
	}
}
