/* ==========================================================================
   Beyond Architecture: intro, tabs, the cards and the item panel.
   Measured on the original /beyond-architecture at 1612, 1024 and 375 wide.
   ========================================================================== */

/* The fur background behind the whole page (not on phones) */
.eve-beyond__page {
	display: flow-root;
	margin: 45px 0 15px;
	background-repeat: repeat-y;
	background-size: 100% auto;
}

@media (min-width: 768px) {
	.eve-beyond__page {
		margin: 0;
		padding-bottom: 50px;
		background-image: url(../images/beyond/beyond.background.jpg);
		background-position: 0 22%;
	}
}

@media (min-width: 1280px) {
	.eve-beyond__page {
		background-position: top;
	}
}

/* --------------------------------------------------------------------------
   Intro, with Erick's portrait on the right
   -------------------------------------------------------------------------- */

/* Own boxes, as the original's rows: margins stay inside */
.eve-beyond__intro-band,
.eve-beyond__tabs-bar {
	display: flow-root;
}

.eve-beyond__intro-band {
	padding: 0 20px;
	background-color: var(--eve-bg-footer);
}

@media (min-width: 768px) {
	.eve-beyond__intro-band {
		padding: 0;
	}
}

@media (min-width: 1280px) {
	.eve-beyond__intro-band {
		width: 1280px;
		margin: 0 auto;
	}
}

.eve-beyond__intro {
	display: flex;
	align-items: center;
	background-position: 100%;
	background-repeat: no-repeat;
	background-size: contain;
}

@media (min-width: 768px) {
	.eve-beyond__intro {
		width: 83.3333%;
		height: 200px;
		margin: 0 0 5px 8.3333%;
		background-image: url(../images/beyond/beyond-erick.jpg);
	}
}

/* 1280 and up: the band is 215 high on the original (200 + 14 + 1) */
@media (min-width: 1280px) {
	.eve-beyond__intro-band {
		padding-bottom: 1px;
	}
}

/* The original's empty 2/12 column plus 1/12 offset, then 8/12 wide */
@media (min-width: 1280px) {
	.eve-beyond__intro {
		width: 66.6667%;
		margin: 0 0 14px 25%;
		padding: 0 20px;
	}
}

.eve-beyond__intro-text {
	display: flow-root;
	width: 86%;
	margin-left: 7%;
	padding-top: 1px;
}

@media (min-width: 768px) {
	.eve-beyond__intro-text {
		width: 75%;
		margin: 0;
		padding: 0;
	}
}

.eve-beyond__intro-text h3 {
	margin: -8px 0 32px;
	font-size: 24px;
	line-height: 1.3;
}

.eve-beyond__intro-text p {
	margin: 0 0 10px;
	padding-bottom: 22px;
	font-size: 12px;
	color: var(--eve-icon);
}

@media (min-width: 768px) {
	.eve-beyond__intro-text h3 {
		margin: 23px 0 32px;
		font-size: 28px;
		line-height: 1.1;
	}

	.eve-beyond__intro-text p {
		line-height: 1.9;
	}
}

/* --------------------------------------------------------------------------
   Tabs: Architecture / Erick van Egeraat (all) / Beyond
   -------------------------------------------------------------------------- */

.eve-beyond__tabs-place {
	min-height: 80px;
}

/* 768-1279: the tabs' 31 below push the bar to 86, as on the original;
   the intro sits 1px down in its band */
@media (min-width: 768px) and (max-width: 1279px) {
	.eve-beyond__tabs-place {
		min-height: 86px;
	}

	.eve-beyond__intro-band {
		padding: 1px 0 1px;
	}
}

.eve-beyond__tabs-bar {
	height: 80px;
}

/* Fixed under the header once the intro has scrolled away (beyond.js) */
@media (min-width: 768px) {
	.eve-beyond__tabs-bar.is-stuck {
		position: fixed;
		top: 90px;
		right: 0;
		left: 0;
		z-index: 8;
	}
}

@media (min-width: 1280px) {
	.eve-beyond__tabs-bar.is-stuck {
		top: 87px;
	}
}

.eve-beyond__tabs {
	width: 500px;
	margin: 20px auto 31px;
	text-align: center;
}

@media (min-width: 1280px) {
	.eve-beyond__tabs {
		margin-bottom: 20px;
	}
}

.eve-beyond__tab {
	display: inline-block;
	min-width: 110px;
	margin: 0 10px;
	padding: 5px 0 3px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.7;
	color: #fff;
	background: none;
	border: 0;
	border-bottom: 1px solid #333639;
	transition: border-bottom 1s ease;
}

.eve-beyond__tab.is-active {
	border-bottom-color: #fff;
}

/* Phone: the three tabs slide sideways, the ones beside the active one fade out */
@media (max-width: 767px) {
	.eve-beyond__tabs-bar {
		width: 90%;
		margin: 0 5%;
		overflow: hidden;
	}

	.eve-beyond__tabs {
		display: flex;
		gap: 32px;
		width: max-content;
		margin: 48px 0 20px -35px;
		transition: transform 0.4s ease;
	}

	.eve-beyond__tab {
		min-width: 120px;
		margin: 0;
		padding-bottom: 2px;
	}

	.eve-beyond__tab.is-left {
		background: linear-gradient(90deg, #161a1d, #fff);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}

	.eve-beyond__tab.is-right {
		background: linear-gradient(270deg, #161a1d, #fff);
		-webkit-background-clip: text;
		background-clip: text;
		-webkit-text-fill-color: transparent;
	}
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.eve-beyond__grid {
	position: relative;
	display: flow-root;
	margin-top: 9px;
}

/* Phone: one column in date order; the tabs hide the other kind */
@media (max-width: 767px) {
	.eve-beyond__grid[data-filter="architecture"] .eve-bcard--beyond,
	.eve-beyond__grid[data-filter="beyond"] .eve-bcard--architecture {
		display: none;
	}
}

/* From 768 the cards sit in three columns, placed by beyond.js */
@media (min-width: 768px) {
	.eve-beyond__grid {
		margin-top: -12px;
		transition: height 1s;
	}

	.eve-beyond__grid .eve-bcard {
		position: absolute;
		top: 0;
		left: 0;
		width: 33.3333%;
		opacity: 0;
		transition: 0.5s;
		transition-property: opacity, transform;
	}

	.eve-beyond__grid .eve-bcard.is-placed {
		opacity: 1;
	}
}

.eve-bcard {
	display: block;
	margin-bottom: 18px;
	color: #fff;
	cursor: pointer;
}

.eve-bcard.is-later,
.eve-bcard[hidden] {
	display: none;
}

@media (min-width: 768px) {
	.eve-bcard {
		margin-bottom: 0;
	}
}

.eve-bcard__box {
	width: 100%;
	height: 100%;
}

@media (min-width: 768px) {
	.eve-bcard__box {
		padding: 15px;
	}
}

/* A 1px dark frame round the square */
.eve-bcard__inner {
	position: relative;
	width: 100%;
	padding: 1px;
	background-color: rgba(0, 0, 0, 0.4);
	overflow: hidden;
	text-align: center;
}

.eve-bcard__inner::before {
	content: "";
	display: block;
	padding-top: 100%;
	background-color: var(--eve-bg-footer);
}

.eve-bcard__image,
.eve-bcard__mask {
	position: absolute;
	top: 1px;
	right: 1px;
	bottom: 1px;
	left: 1px;
}

.eve-bcard__image {
	background-size: cover;
	transition: transform 1s ease;
}

.eve-bcard__mask {
	background-color: #000;
	opacity: 0.4;
}

/* Hovering a card zooms its image a little, as on the original */
.eve-bcard:hover .eve-bcard__image {
	transform: scale(1.05);
}

.eve-bcard__heading {
	position: absolute;
	left: 1px;
	right: 1px;
	padding: 0 30px;
}

@media (min-width: 1280px) {
	.eve-bcard__heading {
		padding: 0 50px;
	}
}

.eve-bcard__heading--standard {
	bottom: 76px;
}

.eve-bcard__heading--quote,
.eve-bcard__heading--video {
	top: 50%;
	transform: translateY(-50%);
}

.eve-bcard__title {
	margin: 10px 0 0;
	font-size: 22px;
}

h6.eve-bcard__title {
	margin-bottom: 10px;
	font-size: 18px;
}

/* Quote marks round a quote */
.eve-bcard__heading--quote::before {
	content: url(../images/beyond/beyond.quote.begin.png);
	display: block;
	width: 21px;
	height: 17px;
	margin-left: -10px;
	padding-bottom: 30px;
	text-align: left;
}

.eve-bcard__heading--quote::after {
	content: url(../images/beyond/beyond.quote.end.png);
	display: block;
	float: right;
	width: 21px;
	height: 17px;
	margin-right: -10px;
}

.eve-bcard__play {
	display: inline-block;
	width: 60px;
	padding: 18px 0;
	font-size: 24px;
	background-color: #09182f;
}

.eve-bcard__date {
	font-size: 11px;
}

.eve-bcard__more {
	position: absolute;
	right: 1px;
	bottom: 1px;
	padding: 12px 25px 14px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	background-color: #c2ae69;
}

.eve-bcard--architecture .eve-bcard__more {
	background-color: #09182f;
}

/* The original's link hover colour, on the label itself */
.eve-bcard__more:hover {
	color: #d9d9d9;
}

@media (min-width: 768px) {
	.eve-bcard__more {
		padding: 10px 21px;
		font-size: 14px;
		text-transform: none;
	}
}

@media (min-width: 1280px) {
	.eve-bcard__more {
		padding: 10px 20px;
	}
}

/* Blank fillers in the grid: a frame fading out downwards */
.eve-bcard--blank {
	cursor: default;
}

.eve-bcard--blank .eve-bcard__inner {
	background: linear-gradient(#545658, transparent) 0 0 / 1px 100% no-repeat,
		linear-gradient(#545658, transparent) 100% 0 / 1px 100% no-repeat;
	border-top: 1px solid #545658;
}

.eve-bcard--blank .eve-bcard__inner::before {
	background: none;
}

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

/* --------------------------------------------------------------------------
   Load more
   -------------------------------------------------------------------------- */

/* Plus 7 under the button: the line gap under the original's inline block */
.eve-beyond__load {
	margin: 35px 0 43px;
	padding: 41px 0 7px;
	text-align: center;
}

@media (min-width: 768px) {
	.eve-beyond__load {
		margin-bottom: 20px;
		padding-top: 38px;
	}
}

@media (min-width: 1280px) {
	.eve-beyond__load {
		padding-top: 20px;
	}
}

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

.eve-beyond__loadmore {
	position: relative;
	display: inline-block;
	height: 42px;
	padding: 0;
	overflow: hidden;
	font-size: 15px;
	line-height: 1.7;
	color: #fff;
	background: none;
	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-beyond__loadmore > span {
	display: block;
	min-width: 162px;
	height: 44px;
	padding: 6px 30px;
	transition: transform 0.3s, opacity 0.3s;
	transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}

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

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

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

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

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

/* --------------------------------------------------------------------------
   The item panel: a white column over the fur
   -------------------------------------------------------------------------- */

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

.eve-bpanel {
	position: fixed;
	inset: 0;
	z-index: 99999;
	overflow-y: auto;
	background: url(../images/beyond/beyond.overlay.background.jpg) 0 0 / 100% auto repeat-y;
	opacity: 0;
	transition: opacity 0.4s;
}

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

.eve-bpanel.is-open {
	opacity: 1;
}

.eve-bpanel__article {
	position: relative;
	width: 100%;
	margin: 2000px auto 0;
	color: #000;
	background-color: #fff;
	transition: all 1s;
}

.eve-bpanel.is-open .eve-bpanel__article {
	margin-top: 0;
}

.eve-bpanel.is-instant,
.eve-bpanel.is-instant .eve-bpanel__article {
	transition: none;
}

@media (min-width: 768px) {
	.eve-bpanel__article { width: 672px; }
}

@media (min-width: 1280px) {
	.eve-bpanel__article { width: 840px; }
}

/* The cross beside the column; on phones in its top right corner */
.eve-bpanel__close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 2;
	display: block;
	width: 65px;
	height: 65px;
	padding: 0;
	background: url(../images/beyond/icon.close.big.png) 50% / 28px 28px no-repeat;
	border: 0;
	transition: transform 0.3s ease;
}

@media (min-width: 768px) {
	.eve-bpanel__close {
		position: fixed;
		right: auto;
		margin-left: 672px;
	}
}

@media (min-width: 1280px) {
	.eve-bpanel__close {
		margin-left: 840px;
	}
}

.eve-bpanel__image {
	overflow: hidden;
}

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

.eve-bpanel__image iframe {
	display: block;
	width: 100%;
	height: 380px;
	border: 0;
}

@media (min-width: 1280px) {
	.eve-bpanel__image iframe {
		height: 338px;
	}
}

.eve-bpanel__body {
	padding: 50px;
}

@media (min-width: 768px) {
	.eve-bpanel__body { padding: 50px 100px; }
}

@media (min-width: 1280px) {
	.eve-bpanel__body { padding: 50px 120px; }
}

.eve-bpanel__title {
	margin: 20px 0 10px;
	font-size: 28px;
}

.eve-bpanel__date {
	display: inline-block;
	margin-bottom: 25px;
	font-size: 12px;
	color: #999;
}

.eve-bpanel__content {
	margin-bottom: 20px;
}

.eve-bpanel__content a {
	font-weight: 700;
	color: #000;
}

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

.eve-bpanel__content iframe {
	width: 100%;
	height: 266px;
	border: 0;
}

@media (min-width: 1280px) {
	.eve-bpanel__content iframe {
		height: 338px;
	}
}

/* WordPress captions, as they came over */
.eve-bpanel__content .wp-caption {
	max-width: 100%;
	margin: 0 0 10px;
}

.eve-bpanel__content .aligncenter {
	margin-right: auto;
	margin-left: auto;
}

.eve-bpanel__content .wp-caption-text {
	margin: 5px 0 0;
}

/* Share and Tweet, as in the news panel */
.eve-bpanel .eve-np__share {
	min-height: 71px;
	margin: 12px 0 60px;
	padding: 0;
	list-style: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

/* Related items: two cards under the text */
.eve-bpanel__related {
	overflow: hidden;
}

@media (min-width: 768px) {
	.eve-bpanel__related {
		margin: 0 36px;
	}
}

@media (min-width: 1280px) {
	.eve-bpanel__related {
		margin: 0;
	}
}

.eve-bpanel__related-title {
	margin: 10px 0;
	font-size: 22px;
	text-align: center;
}

.eve-bcard--related {
	position: relative;
	width: 300px;
	margin: 0 auto;
	padding: 20px 10px;
}

.eve-bcard--related .eve-bcard__box {
	width: 280px;
	padding: 0;
}

@media (min-width: 768px) {
	.eve-bcard--related {
		float: left;
	}
}

@media (min-width: 1280px) {
	.eve-bcard--related {
		width: 420px;
		height: 420px;
	}

	.eve-bcard--related .eve-bcard__box {
		width: auto;
		padding: 20px;
	}
}

/* Loading mask while an item is fetched */
.eve-bmask {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background-color: rgba(0, 0, 0, 0.8);
}

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