/*
 * Internship - Gallery.
 *
 * Read from cp-all-designer css/geniversity.css:1100-1176 (.ygal).
 *
 * Colour, type, padding, the corner and the measures arrive from the Style tab
 * and are not repeated here.
 */

/* geniversity.css:1100-1107 — four across, the first twice as large */
.custom-internship-gallery .custom-internship-gallery__wall {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.custom-internship-gallery .custom-internship-gallery__picture {
	min-width: 0;
	margin: 0;
	aspect-ratio: 3 / 2;
	list-style: none;
}

.custom-internship-gallery .custom-internship-gallery__picture:first-child {
	grid-column: span 2;
	grid-row: span 2;
	aspect-ratio: auto;
}

/* geniversity.css:1110-1111 — three: one large beside two */
.custom-internship-gallery .custom-internship-gallery__wall[data-custom-count="3"] {
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.custom-internship-gallery .custom-internship-gallery__wall[data-custom-count="3"] .custom-internship-gallery__picture:first-child {
	grid-column: auto;
}

/* geniversity.css:1112-1127 — a leaf of a press, the picture drawing in a little under the pointer */
.custom-internship-gallery .custom-internship-gallery__press {
	display: block;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	overflow: hidden;
	background: #F5F8FC;                   /* --g100 */
	box-shadow: 0 2px 6px rgba(22, 65, 140, 0.06), 0 16px 34px -16px rgba(22, 65, 140, 0.28);
	cursor: zoom-in;
}

.custom-internship-gallery .custom-internship-gallery__press > img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
	transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-internship-gallery .custom-internship-gallery__press:hover > img {
	transform: scale(1.05);
}

.custom-internship-gallery .custom-internship-gallery__press:focus-visible {
	outline: 4px solid #50A3D5;             /* geniversity.css measures 3px */
	outline-offset: 4px;
}

/* geniversity.css:1124-1128 — the story under a rule */
.custom-internship-gallery .custom-internship-gallery__story {
	margin-right: auto;
	margin-left: auto;
	border-top: 2px solid #EEF2F7;         /* geniversity.css:1128 measures 1px */
}

/* geniversity.css:1134-1138; heavily enough that Kadence's first-heading rule (0,3,2) does not take its top margin */
.custom-internship-gallery .custom-internship-gallery__inner .custom-internship-gallery__story .custom-internship-gallery__story-title {
	margin: 8px 0 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
}

/* geniversity.css:1139-1148 — each figure a pill */
.custom-internship-gallery .custom-internship-gallery__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.custom-internship-gallery .custom-internship-gallery__fact {
	margin: 0;
	padding: 6px 14px;
	border-radius: 1000px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	list-style: none;
}

.custom-internship-gallery .custom-internship-gallery__fact b {
	font-weight: 700;
}

/* geniversity.css:1149-1153 */
.custom-internship-gallery .custom-internship-gallery__story-body {
	margin-top: 16px;
}

.custom-internship-gallery .custom-internship-gallery__story-body .custom-internship-gallery__story-text {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-style: normal;
	font-weight: 300;
	line-height: 1.8;
	letter-spacing: 0;
}

.custom-internship-gallery .custom-internship-gallery__story-body .custom-internship-gallery__story-text + .custom-internship-gallery__story-text {
	margin-top: 14px;
}

/* geniversity.css:1158-1176 — where to read more, each link a pill that fills under the pointer */
.custom-internship-gallery .custom-internship-gallery__sources {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 20px 0 0;
	padding: 0;
}

.custom-internship-gallery .custom-internship-gallery__sources-label {
	margin-right: 4px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;                      /* app.css:174, the page's own */
	color: var(--custom-internship-gallery-link, #16418C);
}

.custom-internship-gallery .custom-internship-gallery__source {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	border: 2px solid var(--custom-internship-gallery-edge, #E2E8F0);   /* geniversity.css:1166 measures 1px */
	border-radius: 1000px;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--custom-internship-gallery-link, #16418C);
	text-decoration: none;
	transition: background-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
	            color 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.custom-internship-gallery .custom-internship-gallery__source::after {
	content: "\2197";
	margin-left: 6px;
	font-size: 12px;
}

.custom-internship-gallery .custom-internship-gallery__source:hover {
	border-color: var(--custom-internship-gallery-on, #16418C);
	background-color: var(--custom-internship-gallery-on, #16418C);
	color: #FFFFFF;
}

/* ------------------------------------------------------------------ */
/* Two across from 860 down — geniversity.css:1129-1133                */
/* ------------------------------------------------------------------ */

@media (max-width: 860px) {
	.custom-internship-gallery .custom-internship-gallery__wall,
	.custom-internship-gallery .custom-internship-gallery__wall[data-custom-count="3"] {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.custom-internship-gallery .custom-internship-gallery__picture:first-child {
		grid-column: 1 / -1;
		grid-row: auto;
		aspect-ratio: 3 / 2;
	}
}

@media (prefers-reduced-motion: reduce) {
	.custom-internship-gallery .custom-internship-gallery__press > img,
	.custom-internship-gallery .custom-internship-gallery__source {
		transition: none;
	}
	.custom-internship-gallery .custom-internship-gallery__press:hover > img {
		transform: none;
	}
}
