/* ==========================================================================
   News: the list in rows of three and the panel a post opens in.
   Measured on the original /news at 1612, 1280, 1024 and 375 pixels wide.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page title
   -------------------------------------------------------------------------- */

.eve-news__head {
	padding: 60px 0 59px;
	text-align: center;
}

.eve-news__title {
	margin: 0;
	font-size: 28px;
	line-height: 1.1;
}

@media (max-width: 767px) {
	.eve-news__head {
		padding: 49px 0 36px;
	}
}

/* --------------------------------------------------------------------------
   The posts
   -------------------------------------------------------------------------- */

.eve-news__grid {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -20px;
}

.eve-news__item {
	width: 100%;
	margin: -20px 0 40px;
	padding: 20px 20px 0;
}

.eve-news__item[hidden] {
	display: none;
}

@media (min-width: 768px) {
	.eve-news__item {
		width: 33.3333%;
	}
}

.eve-news__link {
	display: block;
	color: var(--eve-footer-text);
}

/* The 420 x 254 image fills a 380 x 250 box, stretched as on the original */
.eve-news__image {
	position: relative;
	display: block;
	padding-top: 66.6667%;
}

.eve-news__image img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

@media (min-width: 768px) {
	.eve-news__image {
		padding-top: 65.7143%;
	}
}

@media (min-width: 990px) {
	.eve-news__image {
		padding-top: 65.7895%;
	}
}

.eve-news__text {
	margin-bottom: 31px;
	padding: 0 20px;
}

/* From 768 its own box, as the original's floated column: margins stay inside */
@media (min-width: 768px) {
	.eve-news__text {
		display: flow-root;
	}
}

.eve-news__name-wrap {
	height: 48px;
	margin-bottom: 15px;
}

@media (min-width: 768px) {
	.eve-news__name-wrap {
		height: 65px;
	}
}

@media (min-width: 1280px) {
	.eve-news__name-wrap {
		height: 60px;
	}
}

.eve-news__name {
	margin: 15px 0 18px;
	font-size: 15px;
	color: var(--eve-text);
}

@media (min-width: 1280px) {
	.eve-news__name {
		margin-top: 18px;
		font-size: 18px;
	}
}

/* Cut off with an ellipsis where the box ends, as dotdotdot did */
.eve-news__excerpt {
	display: -webkit-box;
	margin: 0 0 10px;
	overflow: hidden;
	font-size: 12px;
	line-height: 1.7;
	color: var(--eve-footer-text);
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 8;
}

@media (min-width: 768px) {
	.eve-news__excerpt {
		-webkit-line-clamp: 4;
	}
}

@media (min-width: 1280px) {
	.eve-news__excerpt {
		-webkit-line-clamp: 3;
	}
}

/* "Continued" lands on a line of its own, as on the original */
.eve-news__continued {
	display: block;
}

/* "Read more" and "Load more": outlined, the label slides up on hover and a
   copy slides in on a grey fill (the original's "winona" button) */
.eve-winona-news {
	position: relative;
	display: inline-block;
	height: 42px;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.7;
	color: #fff;
	border: 1px solid #fff;
	transition: border-color 0.3s, background-color 0.3s;
	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

.eve-winona-news > span {
	display: block;
	height: 44px;
	padding: 6px 30px;
	transition: transform 0.3s, opacity 0.3s;
	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

.eve-winona-news > span + span {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	padding: 7px 30px;
	opacity: 0;
	transform: translate3d(0, 25%, 0);
}

.eve-news__link:hover .eve-winona-news,
.eve-news__link:focus-visible .eve-winona-news,
.eve-news__loadmore:hover {
	border-color: rgba(69, 72, 74, 0.8);
	background-color: rgba(69, 72, 74, 0.8);
}

.eve-news__link:hover .eve-winona-news > span,
.eve-news__link:focus-visible .eve-winona-news > span,
.eve-news__loadmore:hover > span {
	opacity: 0;
	transform: translate3d(0, -25%, 0);
}

.eve-news__link:hover .eve-winona-news > span + span,
.eve-news__link:focus-visible .eve-winona-news > span + span,
.eve-news__loadmore:hover > span + span {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

/* The small arrow after "Read more" */
.eve-news__more > span::after {
	content: "";
	position: relative;
	top: 1px;
	right: -10px;
	display: inline-block;
	width: 6px;
	height: 10px;
	background: url(../images/news/small-arrow.png);
}

.eve-news__load {
	margin: 35px 0 20px;
	text-align: center;
}

@media (max-width: 767px) {
	.eve-news__loadmore {
		font-size: 12px;
	}
}

/* 40 below, plus the 7 of line gap under the original's inline block */
.eve-news__loadmore {
	margin-bottom: 47px;
	padding: 0;
	font-family: var(--eve-font-semibold);
	background: none;
}

/* --------------------------------------------------------------------------
   The panel
   -------------------------------------------------------------------------- */

.eve-np[hidden] {
	display: none;
}

/* White panel on the left; it slides in from the left */
.eve-np__content {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 9999;
	overflow-x: hidden;
	overflow-y: auto;
	color: #000;
	background-color: #fff;
	transform: translateX(-100%);
	transition: all 0.5s;
}

.eve-np__content a {
	color: #000;
}

/* The darkened right half: comes out from behind the panel */
.eve-np__aside {
	position: fixed;
	top: 0;
	right: 0;
	z-index: 9999;
	display: none;
	width: 100%;
	max-width: 360px;
	height: 100%;
	transform: translateX(-100%);
	transition: all 0.5s;
}

.eve-np__aside::before {
	content: "";
	position: absolute;
	inset: 0;
	background: #000;
	opacity: 0.7;
}

.eve-np.is-open .eve-np__content,
.eve-np.is-open .eve-np__aside.is-out {
	transform: translate(0, 0);
}

.eve-np__aside.is-shown {
	display: block;
}

.eve-np.is-instant .eve-np__content,
.eve-np.is-instant .eve-np__aside {
	transition: none;
}

/* A post's own page: open from the start */
.eve-np.is-instant .eve-np__aside {
	display: block;
	transform: none;
}

@media (min-width: 768px) {
	.eve-np__content { right: 300px; }
	.eve-np__aside { max-width: 300px; }
}

@media (min-width: 990px) {
	.eve-np__content { right: 350px; }
	.eve-np__aside { max-width: 350px; }
}

@media (min-width: 1280px) {
	.eve-np__content { right: 50%; }
	.eve-np__aside { max-width: 50%; }
}

@media (max-width: 767px) {
	.eve-np__aside { display: none !important; }
}

body.is-news-open {
	overflow: hidden;
}

/* Close cross */
.eve-np__close {
	position: relative;
	top: 39px;
	left: 20px;
	z-index: 10;
	display: block;
	width: 36px;
	height: 32px;
	padding: 0;
	background: none;
	border: 0;
}

.eve-np__close span {
	position: absolute;
	top: 14px;
	left: 0;
	width: 36px;
	height: 2px;
	background: #fff;
	transform: rotate(45deg);
}

.eve-np__close span + span {
	transform: rotate(-45deg);
}

/* Previous / next */
.eve-np__nav {
	position: absolute;
	top: 145px;
	left: 0;
	z-index: 10;
	width: 300px;
	padding: 30px 60px 60px 25px;
}

.eve-np__step {
	position: relative;
	margin-bottom: 20px;
	overflow: hidden;
}

/* A white line runs in under the title on hover */
.eve-np__step::before {
	content: "";
	position: absolute;
	bottom: 0;
	left: -100%;
	display: block;
	width: 100%;
	height: 1px;
	background: #fff;
	transition: left 0.5s ease;
}

.eve-np__step--next::before {
	left: 100%;
}

.eve-np__step:hover::before {
	left: 0;
}

.eve-np__step-label {
	font-family: var(--eve-font-semibold);
	font-size: 15px;
	color: var(--eve-icon);
}

.eve-np__step a {
	color: #fff;
}

.eve-np__step-title {
	margin-top: -2px;
	font-family: var(--eve-font-semibold);
	font-size: 19px;
	line-height: 1.1;
}

@media (min-width: 990px) {
	.eve-np__step-title {
		font-size: 24px;
	}
}

.eve-np__step hr {
	margin: 3px 0 0;
	border: 0;
	border-top: 1px solid #41484d;
}

/* Phone: BACK bar instead of the cross */
.eve-np__back {
	display: none;
	width: 100%;
	min-height: 59px;
	padding: 19px 20px 0;
	font-family: var(--eve-font-semibold);
	font-size: 11px;
	text-align: left;
	color: #fff;
	background: #000;
	border: 0;
}

.eve-np__back-arrow {
	position: relative;
	top: 3px;
	display: inline-block;
	width: 7px;
	height: 14px;
	margin-right: 10px;
	background: url(../images/news/small-arrow.png) 0 0 / cover;
	transform: rotate(180deg);
}

@media (max-width: 767px) {
	.eve-np__back {
		display: block;
	}
}

/* The post */
.eve-np__image {
	text-align: center;
}

.eve-np__image > div {
	position: relative;
	padding-top: 66.6667%;
}

.eve-np__image img {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	width: auto;
	height: 100%;
	margin: auto;
	background: #000;
}

.eve-np__body {
	width: 83.3333%;
	margin-left: 8.3333%;
	padding: 0 20px;
}

.eve-np__head {
	margin: 36px 0 24px;
}

.eve-np__title {
	margin: 0 0 3px;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: var(--eve-letter-spacing);
}

@media (min-width: 768px) {
	.eve-np__title {
		font-size: 26px;
	}
}

.eve-np__date {
	margin: 0 0 10px;
	font-size: 12px;
	color: #a7a7a7;
}

.eve-np__text img {
	max-width: 100%;
	height: auto;
}

.eve-np__text .aligncenter,
.eve-np__text [style*="text-align: center"] {
	text-align: center;
}

.eve-np__text img.aligncenter {
	display: block;
	margin: 0 auto;
}

/* Share and Tweet: a coloured icon cell and a label cell */
/* 71 high, with the line gap under the original's inline blocks */
.eve-np__share {
	min-height: 71px;
	margin: 12px 0 60px;
	padding: 0;
	list-style: none;
}

.eve-np__share li {
	display: inline-block;
	padding: 8px 0;
}

.eve-np__share li + li {
	margin-left: 18px;
}

.eve-np__share a {
	display: flex;
	font-family: var(--eve-font-semibold);
	color: #fff;
}

.eve-np__share-icon,
.eve-np__share-label {
	display: flex;
	align-items: center;
	height: 48px;
	padding: 13px 22px;
	color: #fff;
	transition: filter 0.3s;
}

.eve-np__share-icon {
	border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.eve-np__share-twitter .eve-np__share-icon {
	padding: 13px 16px;
}

.eve-np__share-facebook span {
	background-color: #305b99;
}

.eve-np__share-twitter span {
	background-color: #00adf2;
}

.eve-np__share a:hover span {
	filter: brightness(1.12);
}

@media (max-width: 767px) {
	.eve-np__share-icon,
	.eve-np__share-label {
		padding: 13px 20px;
	}

	.eve-np__share-icon {
		border-right: 0;
	}

	.eve-np__share li + li {
		margin-left: 8px;
	}
}

/* Featured project */
.eve-np__featured {
	display: flow-root;
	clear: both;
	width: 83.3333%;
	margin-left: 8.3333%;
	padding: 0 20px 80px;
}

.eve-np__featured-title {
	margin: 0 0 27px;
	font-family: var(--eve-font-semibold);
	font-size: 20px;
	line-height: 1.2;
}

.eve-np__featured img {
	display: block;
	width: 100%;
	height: auto;
}

@media (min-width: 768px) {
	.eve-np__featured-title {
		margin-bottom: 19px;
	}
}

@media (min-width: 990px) {
	.eve-np__featured-title {
		font-size: 22px;
	}
}

@media (min-width: 1280px) {
	.eve-np__featured-title {
		margin-top: 7px;
		font-size: 26px;
	}
}

@media (max-width: 767px) {
	.eve-np__body,
	.eve-np__featured {
		width: auto;
		margin-left: 0;
	}

	.eve-np__featured {
		padding-bottom: 70px;
	}
}
