/* ==========================================================================
   Project overview: list ("rolodex"), grid and filter views, and the phone
   list they all share below 768px. Measured on the original at 1612, 1280,
   1024 and 375 pixels wide.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared: view switches top right, spinner, faux loader, the "More" label
   -------------------------------------------------------------------------- */

.eve-pj-ctrls {
	position: fixed;
	top: 110px;
	right: 10px;
	z-index: 9;
	width: 120px;
}

.eve-pj-ctrls a {
	display: block;
	width: 120px;
	height: 50px;
	margin-bottom: 10px;
	padding-top: 15px;
	text-align: center;
	color: var(--eve-text);
	background-color: var(--eve-bg);
}

.eve-pj-ctrls .eve-glyph {
	padding-right: 10px;
}

/* Covers the tiles while a filter is applied, then fades away */
.eve-fauxloader {
	position: absolute;
	inset: 0;
	z-index: -20;
	background: var(--eve-bg);
	opacity: 0;
	transition: all 0.5s 0.2s;
}

.eve-fauxloader.is-on {
	z-index: auto;
	opacity: 1;
}

.eve-grid__more {
	position: absolute;
	right: 0;
	bottom: 0;
	display: none;
	padding: 5px 10px;
	font-family: var(--eve-font-bold);
	font-size: 10px;
	background: #000;
}

@media (min-width: 990px) and (max-width: 1279px) {
	.eve-grid__more {
		display: block;
	}
}

/* --------------------------------------------------------------------------
   List view ("rolodex")
   -------------------------------------------------------------------------- */

.eve-rld__images {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
}

.eve-rld__image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: calc(100% - 90px);
	margin-top: 90px;
	background-position: 50%;
	background-repeat: no-repeat;
	background-size: cover;
	opacity: 0;
	transition: opacity 1s ease;
}

.eve-rld__image.is-shown {
	opacity: 1;
}

@media (min-width: 1280px) {
	.eve-rld__image {
		height: calc(100% - 100px);
		margin-top: 87px;
	}
}

.eve-rld__row {
	position: relative;
	z-index: 2;
	display: block;
	width: 100%;
	height: 180px;
	overflow: hidden;
	color: var(--eve-text);
	opacity: 0;
	cursor: pointer;
	transition: 0.5s;
	transition-property: background-color, opacity;
}

.is-ready .eve-rld__row {
	opacity: 1;
}

.eve-rld__row.is-active {
	background-color: rgba(0, 0, 0, 0.5);
}

.eve-rld__info {
	position: absolute;
	top: 50%;
	display: inline-block;
	width: 500px;
	transform: translate3d(80px, -50%, 0);
	transition: transform 0.3s;
}

.eve-rld__row.is-active .eve-rld__info {
	transform: translate3d(120px, -50%, 0);
}

.eve-rld__title,
.eve-rld__location {
	display: block;
	margin: 0;
	font-family: var(--eve-font-semibold);
	line-height: 0.95em;
	letter-spacing: 0.02em;
}

.eve-rld__title {
	font-size: 38px;
}

.eve-rld__location {
	font-size: 24px;
}

.eve-rld__map {
	position: absolute;
	top: 0;
	right: 0;
	width: 550px;
	height: 100%;
	overflow: hidden;
	opacity: 0;
	transition: opacity 1s;
}

.eve-rld__row.is-active .eve-rld__map {
	opacity: 1;
}

.eve-rld__map-wrap {
	display: block;
	transform: scale(0.95);
	transition: transform 1s;
}

.eve-rld__world {
	position: absolute;
	display: block;
	background: url(../images/overview/worldmap.svg) 0 0 / contain no-repeat;
}

.eve-rld__pin {
	position: absolute;
	top: 60px;
	left: 245px;
	display: block;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	line-height: 1.2;
	background-color: rgba(255, 255, 255, 0.2);
	opacity: 0;
	transform: scale(10);
	transition: all 0.5s ease;
	transition-property: transform, opacity;
}

.eve-rld__pin::after {
	content: "";
	display: block;
	width: 10px;
	height: 10px;
	margin: 25px;
	border-radius: 50%;
	background-color: #fff;
}

.eve-rld__map.is-in .eve-rld__map-wrap,
.eve-rld__map.is-in .eve-rld__pin {
	opacity: 1;
	transform: scale(1);
}

/* BACK TO TOP, the original's "winona" button */
.eve-rld__top {
	position: relative;
	z-index: 2;
	text-align: center;
}

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

.eve-winona {
	position: relative;
	display: inline-block;
	height: 42px;
	margin-top: 56px;
	margin-bottom: 50px;
	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 span {
	display: block;
	width: 192px;
	height: 44px;
	padding: 6px 30px;
	background: url(../images/overview/screen.saver.button.bg.png) no-repeat;
	transition: transform 0.3s, opacity 0.3s;
	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

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

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

.eve-winona:hover span {
	opacity: 0;
	transform: translate3d(0, -25%, 0);
}

.eve-winona:hover span + span {
	opacity: 1;
	transform: translate3d(0, 0, 0);
}

.eve-rld__spacer {
	width: 100%;
	height: 750px;
}

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

/* --------------------------------------------------------------------------
   Grid view
   -------------------------------------------------------------------------- */

.eve-grid {
	position: relative;
}

/* 8:3, the original's 37.5% padding box */
.eve-grid__block {
	display: flex;
	aspect-ratio: 8 / 3;
}

.eve-grid__block--big-left {
	flex-direction: row-reverse;
}

.eve-grid__col {
	display: flex;
	flex: 1;
	flex-direction: column;
}

.eve-grid__col--large {
	flex: 3;
	flex-direction: row;
}

.eve-grid__tile,
.eve-pf__tile {
	position: relative;
	color: var(--eve-text);
	background-size: cover;
	box-shadow: 1px 0 0 0 #000, 0 1px 0 0 #000, 1px 1px 0 0 #000, inset 1px 0 0 0 #000, inset 0 1px 0 0 #000;
	cursor: pointer;
}

.eve-grid__tile {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
}

.eve-grid__overlay,
.eve-pf__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75);
	opacity: 0;
	transition: all 0.5s;
}

.eve-grid__tile:hover .eve-grid__overlay,
.eve-grid__tile:focus-visible .eve-grid__overlay,
.eve-pf__tile:hover .eve-pf__overlay,
.eve-pf__tile:focus-visible .eve-pf__overlay {
	opacity: 1;
}

.eve-grid__caption,
.eve-pf__caption {
	position: absolute;
	top: 50%;
	width: 100%;
	text-align: center;
	transform: translateY(-50%);
}

.eve-grid__caption {
	padding: 0 20px;
}

/* Bold on a regular-only font, as the original: the browser makes the bold */
.eve-grid__name,
.eve-pf__name {
	font-weight: 700;
	line-height: 1.00001;
}

.eve-grid__name {
	font-size: 20px;
}

.eve-grid__location {
	font-size: 15px;
}

/* --------------------------------------------------------------------------
   Filter view
   -------------------------------------------------------------------------- */

.eve-pf {
	position: relative;
	display: flex;
	min-height: 2000px;
	overflow: hidden;
}

.eve-pf__items {
	position: relative;
	display: flex;
	flex: 1;
	flex-wrap: wrap;
	align-content: flex-start;
}

.eve-pf__tile {
	width: 25%;
	background-repeat: no-repeat;
}

.eve-pf__tile::before {
	content: "";
	display: block;
	width: 100%;
	padding-top: 62.7450980392%;
}

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

.eve-pf__name {
	font-size: 18px;
}

.eve-pf__location {
	font-size: 16px;
}

.eve-pf__none {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: calc(100vh - 90px);
	margin: 0;
}

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

.eve-pf__spacer {
	flex: 0 0 260px;
}

/* Slides in from the right once the page is up */
.eve-pf__pane {
	position: fixed;
	top: 90px;
	right: -260px;
	width: 260px;
	max-height: calc(100vh - 90px);
	padding: 10px 15px 0;
	overflow: auto;
	scrollbar-width: none;
	transition: all 0.3s;
}

.eve-pf__pane::-webkit-scrollbar {
	display: none;
}

.eve-pf__pane.is-in {
	right: 0;
}

@media (min-width: 1280px) {
	.eve-pf__pane {
		top: 91px;
		max-height: calc(100vh - 91px);
	}
}

.eve-pf__switch {
	display: flex;
}

.eve-pf__switch a {
	flex: 1;
	font-family: var(--eve-font-bold);
	font-size: 14px;
	line-height: 50px;
	text-align: center;
	color: var(--eve-text);
	border: 1px solid #fff;
}

.eve-pf__switch a + a {
	border-left: none;
}

.eve-pf__switch .eve-glyph {
	margin-right: 5px;
	line-height: inherit;
	vertical-align: baseline;
}

/* --------------------------------------------------------------------------
   The filters (filter pane and phone overlay)
   -------------------------------------------------------------------------- */

.eve-filter__reset {
	margin: 20px 0;
}

.eve-filter__reset,
.eve-filter__heading {
	padding: 0 20px;
	font-family: var(--eve-font-bold);
}

.eve-filter__reset a {
	color: var(--eve-icon);
}

.eve-filter__heading {
	margin-bottom: 10px;
	font-size: 14px;
}

.eve-filter__drop {
	position: relative;
	display: inline-block;
	width: 100%;
	vertical-align: middle;
}

.eve-filter__toggle {
	display: block;
	width: 100%;
	margin-bottom: 30px;
	padding: 0 20px 5px;
	font-family: var(--eve-font-semibold);
	font-size: 14px;
	line-height: 1.7;
	letter-spacing: normal;
	text-align: left;
	white-space: nowrap;
	color: var(--eve-icon);
	background: none;
	border: 1px solid transparent;
	border-bottom-color: #2e3134;
	border-radius: 0;
}

.eve-filter__caret {
	float: right;
	width: 10px;
	height: 10px;
	margin-top: 8px;
	background: url(../images/icon-arrowsmall.svg) 0 0 / contain no-repeat;
	transform: rotate(90deg);
}

.eve-filter__drop.is-open .eve-filter__toggle {
	color: #fff;
	border-bottom-color: #fff;
}

.eve-filter__drop.is-open .eve-filter__caret {
	margin-top: 2px;
	transform: rotate(270deg);
}

.eve-filter__menu {
	position: relative;
	z-index: 1000;
	width: 100%;
	min-width: 160px;
	max-height: 0;
	margin: -30px 0 30px;
	padding: 5px 0;
	overflow: hidden;
	list-style: none;
	background: var(--eve-bg);
	border: 1px solid transparent;
	transition: max-height 1s ease;
}

.eve-filter__drop.is-open .eve-filter__menu {
	border-color: #2b2f31;
}

.eve-filter__menu a {
	display: block;
	padding: 3px 20px;
	font-size: 14px;
	line-height: 30px;
	white-space: nowrap;
	color: var(--eve-icon);
}

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

/* Phone overlay: the lists open without the slide */
.eve-filter--mobile .eve-filter__options {
	padding: 0 20px;
}

.eve-filter--mobile .eve-filter__reset,
.eve-filter--mobile .eve-filter__heading {
	padding: 0 10px;
}

.eve-filter--mobile .eve-filter__toggle {
	padding: 0 14px 5px;
}

.eve-filter--mobile .eve-filter__menu {
	display: none;
	max-height: none;
	overflow: visible;
	transition: none;
}

.eve-filter--mobile .eve-filter__drop.is-open .eve-filter__menu {
	display: block;
}

/* --------------------------------------------------------------------------
   Phone list (below 768px, all three views)
   -------------------------------------------------------------------------- */

.eve-ovm {
	position: relative;
}

.eve-ovm__bar {
	position: relative;
	display: block;
	min-height: 70px;
}

/* Pinned under the header; moves up with it when the header slides away */
.eve-ovm__filter-btn {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 10;
	display: block;
	width: 100%;
	padding: 20px;
	font-family: var(--eve-font-bold);
	line-height: 1.7;
	text-align: right;
	background: var(--eve-bg);
	border: 0;
	transform: translateY(163px);
	transition: transform 0.5s ease;
}

.is-header-away .eve-ovm__filter-btn {
	transform: translateY(0);
}

.eve-ovm__list {
	position: relative;
	padding: 0 20px;
}

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

.eve-ovm__image {
	display: block;
}

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

.eve-ovm__title {
	margin: 7px 0 24px;
	font-size: 22px;
}

.eve-ovm__none {
	padding: 40px 0;
	text-align: center;
}

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

.eve-ovm__overlay {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 40;
	width: 100%;
	min-height: 100%;
	background: var(--eve-bg);
	opacity: 0;
	transition: all 0.4s;
}

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

.eve-ovm__overlay.is-in {
	opacity: 1;
}

/* Which version shows where */
@media (max-width: 767px) {
	.eve-overview--projectsgrid,
	.eve-overview--projectsfilter {
		padding-top: 166px;
	}

	.eve-rld,
	.eve-pj-ctrls,
	.eve-grid,
	.eve-pf {
		display: none;
	}
}

@media (min-width: 768px) {
	.eve-ovm {
		display: none;
	}
}
