/* Site-specific overrides layered on top of the HTML5 UP theme. */

.site-nav {
	background: #f4f4f4;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1.25em;
	padding: 0.55em 1em;
	position: relative;
	z-index: 10;
}

.site-nav a {
	border-bottom: 0;
	color: #222;
	font-size: 0.85em;
	text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
	color: #499ebf !important;
}

.site-nav a[aria-current="page"] {
	font-weight: 600;
}

#header .image.avatar {
	aspect-ratio: 1;
	overflow: hidden;
}

#header .image.avatar img {
	height: 100%;
	object-fit: cover;
	object-position: center top;
	width: 100%;
}

.research-summary {
	margin: 0 0 0.8em 0;
}

.highlight-projects {
	margin: 0.25em 0 1.8em 0;
	position: relative;
}

.highlight-projects h3 {
	font-size: 1.05em;
	margin: 0 0 0.55em 0;
}

.highlight-carousel {
	position: relative;
}

.highlight-carousel-viewport {
	overflow-x: auto;
	scroll-behavior: smooth;
	scrollbar-width: none;
}

.highlight-carousel-viewport::-webkit-scrollbar {
	display: none;
}

.highlight-track {
	display: flex;
	gap: 0.9em;
	padding: 0.15em 0.05em 0.35em 0.05em;
	width: max-content;
}

.highlight-card {
	background: #fff;
	border: solid 1px rgba(73, 158, 191, 0.18);
	border-radius: 8px;
	box-shadow: 0 0.45em 1.15em rgba(78, 118, 142, 0.08);
	flex: 0 0 clamp(14em, 29vw, 17.5em);
	overflow: hidden;
}

.highlight-media-link {
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #eef7fb 0%, #dbeaf5 56%, #f4f7f8 100%);
	border-bottom: 0;
	display: block;
	position: relative;
}

.highlight-media-link video,
.highlight-media-link img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.highlight-video-placeholder {
	display: block;
	height: 100%;
	position: relative;
	width: 100%;
}

.highlight-video-placeholder:before {
	border-bottom: 0.62em solid transparent;
	border-left: 0.95em solid rgba(73, 158, 191, 0.55);
	border-top: 0.62em solid transparent;
	content: "";
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-40%, -50%);
}

.highlight-video-placeholder:after {
	border: solid 1px rgba(73, 158, 191, 0.28);
	border-radius: 50%;
	content: "";
	height: 3.2em;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 3.2em;
}

.highlight-description {
	color: #787878;
	font-size: 0.82em;
	line-height: 1.35;
	margin: 0;
	min-height: 2.8em;
	padding: 0.45em 0.65em 0.55em;
}

.highlight-nav {
	align-items: center;
	background: rgba(255, 255, 255, 0.55);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 0.25em 0.9em rgba(45, 88, 110, 0.16);
	color: #3d7897 !important;
	display: flex;
	font-size: 1.4em;
	height: 2.05em;
	justify-content: center;
	line-height: 1;
	margin: 0;
	opacity: 0.78;
	padding: 0;
	position: absolute;
	top: 42%;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, background-color 0.2s ease;
	width: 2.05em;
	z-index: 2;
}

.highlight-nav:hover,
.highlight-nav:focus {
	background: rgba(255, 255, 255, 0.86);
	opacity: 1;
}

.highlight-nav-prev {
	left: 0.35em;
}

.highlight-nav-next {
	right: 0.35em;
}

.awards-list {
	border-top: solid 2px rgba(73, 158, 191, 0.55);
	margin: -0.65em 0 1.8em 0;
}

.award-item {
	align-items: baseline;
	border-bottom: solid 1px rgba(144, 144, 144, 0.16);
	display: grid;
	gap: 1.2em;
	grid-template-columns: minmax(0, 1fr) max-content;
	line-height: 1.25;
	padding: 0.12em 0;
}

.award-title {
	color: #666;
	font-size: 0.9em;
	line-height: 1.25;
}

.award-year {
	color: #3d7897;
	font-size: 0.82em;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.25;
	white-space: nowrap;
}

.opening-highlight {
	color: rgb(222, 95, 95);
}

.opening-panel {
	background: #fff7f7;
	border: solid 2px #e98585;
	border-radius: 8px;
	box-shadow: 0 0.75em 2em rgba(143, 64, 64, 0.08);
	color: #b83f3f;
	margin: 0 0 2.4em 0;
	padding: 1.5em 1.8em 1.6em;
}

.opening-panel h3,
.opening-panel h4,
.opening-panel p,
.opening-panel li {
	color: #b83f3f;
}

.opening-panel-title {
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.75em 0;
	text-align: center;
}

.opening-panel-subtitle {
	font-size: 1.05em;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 1.35em 0;
	text-align: center;
}

.opening-panel h4 {
	font-size: 1em;
	font-weight: 700;
	margin: 1.2em 0 0.45em 0;
}

.opening-panel ul {
	margin: 0 0 0.9em 1.1em;
	padding-left: 1em;
}

.opening-panel li {
	font-size: 0.88em;
	font-weight: 600;
	line-height: 1.55;
	padding-left: 0.25em;
}

.opening-panel a {
	color: #a93434;
	font-weight: 700;
}

.compact-list {
	line-height: 1.4;
}

.news-actions {
	margin-top: 0;
}

.button.news-toggle {
	background-color: #84b2e4;
	border: 0;
	color: #fff !important;
	font-size: 0.8em;
	line-height: 1;
	padding: 0.75em 1.25em;
}

.publication-badge {
	border-bottom: 0;
	display: inline-block;
	margin-left: 0.5em;
	vertical-align: middle;
}

.publication-badge img {
	vertical-align: middle;
}

.publication-links a {
	margin-right: 0.35em;
}

.publication-placeholder {
	align-items: center;
	aspect-ratio: 16 / 9;
	background: #eef4f7;
	border: 0;
	border-radius: 8px;
	color: #787878;
	display: flex;
	flex-direction: column;
	justify-content: center;
	line-height: 1.35;
	padding: 1em;
	text-align: center;
}

.publication-placeholder:hover {
	color: #599bd1 !important;
}

.publication-placeholder-title {
	color: #5f5f5f;
	display: block;
	font-size: 1.4em;
	font-weight: 600;
}

.publication-media {
	aspect-ratio: 16 / 9;
	background: #f7f7f7;
	overflow: hidden;
}

.publication-media img,
.publication-media video {
	height: 100%;
	object-fit: contain;
	width: 100%;
}

.group-grid {
	display: grid;
	gap: 1.25em;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0 0 2em 0;
}

.group-grid-featured {
	grid-template-columns: minmax(0, 1fr);
}

.group-card {
	border: solid 2px #efefef;
	border-radius: 8px;
	display: grid;
	gap: 1em;
	grid-template-columns: 7em minmax(0, 1fr);
	padding: 1em;
}

.group-photo {
	aspect-ratio: 1;
	border-radius: 8px;
	display: block;
	height: auto;
	object-fit: cover;
	object-position: center top;
	width: 100%;
}

.group-photo-wenhui {
	object-position: center 54%;
}

.group-photo-placeholder {
	align-items: center;
	background: #f4f4f4;
	color: #787878;
	display: flex;
	font-size: 0.8em;
	justify-content: center;
}

.group-member-body h3 {
	margin-bottom: 0.25em;
}

.group-member-body p {
	font-size: 0.85em;
	line-height: 1.55;
	margin-bottom: 0.5em;
}

.group-member-body p:last-child {
	margin-bottom: 0;
}

.group-role {
	color: #787878;
	font-weight: 600;
}

@media screen and (max-width: 736px) {
	.site-nav {
		justify-content: center;
		flex-wrap: wrap;
		gap: 0.8em;
	}

	.about-justify {
		text-align: left !important;
	}

	.highlight-track {
		gap: 0.75em;
	}

	.highlight-card {
		flex-basis: min(78vw, 18em);
	}

	.highlight-nav {
		height: 1.85em;
		width: 1.85em;
	}

	.group-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.group-card {
		grid-template-columns: 5.5em minmax(0, 1fr);
		padding: 0.85em;
	}
}
