/*
 * Internship - Role.
 *
 * Read from cp-all-designer css/career.css:1372-1401, 1981-2087 and
 * css/geniversity.css:228-410. The ways to try and the closing line are
 * internship - try's (internship-try.css); this sheet holds what differs.
 *
 * Colour, type, padding and the measures arrive from the Style tab and are not
 * repeated here.
 */

/* career.css:1374-1377 — the words beside the pictures, half and half */
.custom-internship-role .custom-internship-try__role {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
}

.custom-internship-role .custom-internship-try__copy {
	min-width: 0;
}

/* career.css:1378-1379 */
/* Kadence takes the top margin off a widget's first heading (0,3,2): the title's own, heavily enough to stand */
.custom-internship-role .custom-internship-try .custom-internship-try__copy .custom-internship-try__title {
	margin-top: 4px;
}

.custom-internship-role .custom-internship-try__copy .custom-internship-try__intro {
	margin-top: 16px;
}

/* geniversity.css:240-250 — the programme's mark, its height set and its width its own */
.custom-internship-role .custom-internship-try__copy .custom-internship-try__logo {
	display: block;
	width: auto;
	max-width: 100%;
	margin-top: 0;
	margin-right: 0;
	margin-left: 0;
}

/* career.css:2055-2087 — one leaf frame; two pictures take turns in it */
.custom-internship-role .custom-internship-try__media {
	position: relative;
	min-width: 0;
	overflow: hidden;
	border-radius: 4px 40px 4px 40px;
	box-shadow: 0 18px 44px -14px rgba(22, 65, 140, 0.2);   /* --sh, app.css:160 */
	background-color: #F5F8FC;                              /* --g100, app.css:62 */
}

.custom-internship-role .custom-internship-try__shot {
	position: absolute;
	inset: 0;
}

.custom-internship-role .custom-internship-try__shot > img {
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
	box-shadow: none;
}

.custom-internship-role .custom-internship-try__media[data-custom-turns] .custom-internship-try__shot {
	opacity: 0;
	animation: custom-internship-role-turn 10s infinite;
}

/* the first stands in view before any turn is taken */
.custom-internship-role .custom-internship-try__media[data-custom-turns] .custom-internship-try__shot:first-child {
	opacity: 1;
}

.custom-internship-role .custom-internship-try__media[data-custom-turns] .custom-internship-try__shot:nth-child(2) {
	animation-delay: -5s;
}

@keyframes custom-internship-role-turn {
	0%       { opacity: 1; }
	45%      { opacity: 1; }
	50%, 95% { opacity: 0; }
	100%     { opacity: 1; }
}

/* career.css:1994-1999 — each way rises in .4s after the one before, the line after them */
.custom-internship-role .custom-internship-try__item:nth-child(2) { --custom-internship-try-delay: 400ms; }
.custom-internship-role .custom-internship-try__item:nth-child(3) { --custom-internship-try-delay: 800ms; }
.custom-internship-role .custom-internship-try__item:nth-child(4) { --custom-internship-try-delay: 1200ms; }
.custom-internship-role .custom-internship-try__item:nth-child(n+5) { --custom-internship-try-delay: 1600ms; }

.custom-internship-role .custom-internship-try__end[data-custom-reveal] {
	transition-delay: 1700ms;
}

/* career.css:2041-2044 — three ways stand three to the row: internship-try.css counts the columns for any number up to four */

/* ------------------------------------------------------------------ */
/* A screen tall on a desktop — geniversity.css:269-401, at 1920 × 1080 */
/* ------------------------------------------------------------------ */

/* These are the layout's own figures: on a desktop they stand over what the
   Style tab gives the band's parts, which is the as-tall-as-its-content
   layout's (the selectors outweigh Elementor's, 0,5,0). */

@media (min-width: 1025px) {
	/* the band is a screen tall; what stands in it is centred */
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] {
		display: flex;
		flex-direction: column;
		min-height: 100vh;
	}
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] > .custom-internship-try__inner {
		display: flex;
		flex: 1 0 auto;
		flex-direction: column;
		justify-content: center;
		width: 100%;
	}
	/* the row of words and pictures takes what is left, up to 46 --incu (496.8) */
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] .custom-internship-try__role {
		flex: 1 0 auto;
		align-items: stretch;
		max-height: 498px;
	}
	/* the mark at the top of the words, the title and its line under it, what is left below them */
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] .custom-internship-try__copy {
		display: flex;
		flex-direction: column;
		align-self: stretch;
	}
		.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] .custom-internship-try__copy .custom-internship-try__logo {
		align-self: flex-start;
		height: 170px;                     /* clamp(9.8 --incu, 40 --incu − 232, 170) */
		margin-bottom: 64px;               /* clamp(2 --incu, 15.5 --incu − 101.5, 64) */
	}
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] .custom-internship-try__copy .custom-internship-try__title {
		margin-top: 0;
		font-size: 46px;                   /* min(56, 4.2 --incu): 45.36 */
	}
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] .custom-internship-try__copy .custom-internship-try__intro {
		margin-top: 14px;                  /* min(16, 1.3 --incu): 14.04 */
	}
	/* the pictures fill the row's height */
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] .custom-internship-try__media {
		height: auto;
		min-height: 394px;                 /* min(432, 36.5 --incu): 394.2 */
	}
	/* geniversity.css:372-386 — the ways to try and the line close up */
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] .custom-internship-try__items {
		margin-top: 40px;                  /* 7.2 --incu − 36.8: 40.96 */
	}
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] .custom-internship-try__item {
		padding-top: 20px;                 /* 2.8 --incu − 11.2: 19.04 */
		padding-bottom: 20px;
		gap: 10px;                         /* 0.95 --incu: 10.26 */
	}
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] .custom-internship-try__icon {
		width: 36px;
		height: 36px;
	}
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] .custom-internship-try__item-text {
		line-height: 1.6;
	}
	.custom-internship-role .custom-internship-try.custom-internship-try--screen[data-custom-partner-band] .custom-internship-try__end {
		margin-top: 40px;
		font-size: 28px;
	}
}

/* ------------------------------------------------------------------ */
/* One column from 900 down — career.css:1397-1401                     */
/* ------------------------------------------------------------------ */

@media (max-width: 900px) {
	.custom-internship-role .custom-internship-try__role {
		grid-template-columns: minmax(0, 1fr);
	}
	/* the picture leads, where the band has no mark */
	.custom-internship-role .custom-internship-try__media {
		order: -1;
	}
	/* geniversity.css:402-410 — a programme reads mark → words → pictures, the mark centred */
	.custom-internship-role .custom-internship-try--screen .custom-internship-try__media {
		order: 0;
	}
	.custom-internship-role .custom-internship-try--screen .custom-internship-try__copy .custom-internship-try__logo {
		margin-right: auto;
		margin-left: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-internship-role .custom-internship-try__media[data-custom-turns] .custom-internship-try__shot {
		animation: none;
	}
	.custom-internship-role .custom-internship-try__end[data-custom-reveal] {
		transition-delay: 0ms;
	}
}
