*,
*::after,
*::before {
	box-sizing: border-box;
}

:root {
	font-size: 14px;
	--color-text: #000;
	--color-bg: #f5f5f5;
	--color-link: #000;
	--color-link-hover: #888;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	text-transform: none;
	font-family: tenon, -apple-system, BlinkMacSystemFont, Segoe UI, Helvetica, Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	letter-spacing: normal;
	word-spacing: normal;
}

/* Page Loader */
.js .loading::before,
.js .loading::after {
	content: '';
	position: fixed;
	z-index: 1000;
}

.js .loading::before {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	border-radius: 50%;
	opacity: 0.4;
	background: var(--color-link);
	animation: loaderAnim 0.7s linear infinite alternate forwards;
	filter: blur(4px);
}

@keyframes loaderAnim {
	to {
		opacity: 1;
		transform: scale3d(0.5,0.5,1);
	}
}

a {
	text-decoration: none;
	color: var(--color-link);
	outline: none;
	cursor: pointer;
}

a:hover {
	color: var(--color-link-hover);
	outline: none;
}

/* Better focus styles from https://developer.mozilla.org/en-US/docs/Web/CSS/:focus-visible */
a:focus {
	/* Provide a fallback style for browsers
	 that don't support :focus-visible */
	outline: none;
	background: lightgrey;
}

a:focus:not(:focus-visible) {
	/* Remove the focus indicator on mouse-focus for browsers
	 that do support :focus-visible */
	background: transparent;
}

a:focus-visible {
	/* Draw a very noticeable focus style for
	 keyboard-focus on browsers that do support
	 :focus-visible */
	outline: 2px solid red;
	background: transparent;
}

.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.frame {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 500;
	padding: 1rem;
	background: transparent;
}

.frame__title {
	grid-column: 1;
	display: flex;
	align-items: center;
	font-size: calc(1rem + 1vw);
}

.frame__nav {
	grid-column: 3;
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 1.5rem;
	font-size: calc(1rem + 1vw);
}

.frame__nav a {
	color: var(--color-text);
	text-decoration: none;
	font-size: 1.1rem;
	font-weight: 500;
}

.frame__prev {
	display: none;
	padding-top: 0;
	justify-self: start;
	font-size: calc(0.75rem + 0.5vw) !important;
}

.frame a:not(.frame__title-back) {
	white-space: nowrap;
	overflow: hidden;
	position: relative;
}

.frame a:not(.frame__title-back)::before {
	content: '';
	height: 1px;
	width: 100%;
	background: currentColor;
	position: absolute;
	top: 90%;
	transition: transform 0.3s;
	transform-origin: 0% 50%;
}

.frame a:not(.frame__title-back):hover::before {
	transform: scaleX(0);
	transform-origin: 100% 50%;
}

.frame__title-back {
	display: flex;
	align-items: center;
	gap: 0.2em;
}

.frame__title-main {
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
	text-decoration-color: currentColor;
	color: var(--color-text);
	transition: color 0.2s;
	font-size: calc(0.75rem + 0.5vw) !important;
	margin: 0;
	font-weight: inherit;
	display: inline;
}

.frame__title-main:hover {
	color: var(--color-link-hover);
	text-decoration-color: currentColor;
}

.frame__title-back svg {
	width: 1.1em;
	height: 1.1em;
	display: inline-block;
	vertical-align: middle;
}

.grid {
    display: flex;
    flex-direction: column;
    gap: 5vh;
}

.grid__item {
    min-height: 110vh;
    height: auto;
    place-items: center;
    display: grid;
}

.grid__item--buffer {
    min-height: 80vh;
    height: auto;
}

.grid__item-inner {
	display: grid;
	gap: 1rem;
	place-items: center;
	text-align: center;
}

.grid__item--stack {
    min-height: 110vh;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4rem;
}

.grid__item-logo {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    object-fit: contain;
    border-radius: 5px;
    filter: blur(5px) !important;
    box-sizing: border-box;
}

.grid__item-img {
	background-size: cover;
    background-position: 50% 50%;
	height: 70vh;
	aspect-ratio: 1.5;
    border-radius: 5px;
}

.grid__item-text {
	margin: 0;
	letter-spacing: normal;
	word-spacing: normal;
    text-shadow: none;
}

.grid__item-text.credits {
    font-size: calc(1.3rem + 0.65vw);
}

.credits {
	margin: 0 0 3rem;
	font-size: 1rem;
	letter-spacing: normal;
	word-spacing: normal;
	font-weight: 300;
	text-align: center;
	min-height: 60vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 4rem 0 4rem 0;
    text-shadow: none;
}

.credits-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: calc(3rem + 1.5vw);
    letter-spacing: normal;
    word-spacing: normal;
    font-weight: normal;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.credits-curators {
    white-space: nowrap;
    text-shadow: none;
}

@media screen and (min-width: 53em) {
	.frame__title-main,
	.frame__prev {
		font-size: calc(1.08rem + 1.08vw) !important;
	}
	.frame__prev {
		display: block;
		grid-column: 2;
		padding-top: 0;
		justify-self: center;
	}
	.grid__item-logo {
		width: 100vw;
		max-width: 100vw;
		margin: 0;
		padding: 3rem 0 0;
	}	
	.credits {
		font-size: 1.4vw;
	}
}

@media screen and (max-width: 52.99em) {
    .frame__title-main,
    .frame__prev {
        font-size: calc(1.05rem + 1.4vw) !important;
    }
    .frame__prev {
        display: block;
    }
    html, body {
        width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
    }
    .grid {
        width: 100vw;
        overflow-x: hidden;
        margin: 0;
        padding: 0;
        gap: 0;
        min-height: 100vh;
        height: auto;
    }
    .grid__item {
        width: 100vw;
        min-width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: stretch;
        justify-content: center;
        min-height: 100vh;
        height: auto;
    }
    .grid__item-logo {
        min-width: 100vw;
        width: 100vw;
        max-width: 100vw;
        left: 0;
        transform: none;
        position: relative;
        height: 100vh;
        max-height: 100vh;
        object-fit: contain;
        margin: 0;
        padding: 0;
        display: block;
        filter: blur(1px) !important;
        box-sizing: border-box;
    }
    .mobile-logo { display: block !important; }
    .desktop-logo { display: none !important; }
    .grid__item--buffer {
        min-height: 60vh;
    }
}

/* Remove halo effect from logo and headings */
h1, .grid__item-logo {
    text-shadow: none;
}

body, .grid__item-text, .credits, h1, h2, h3, h4, h5, h6, .frame__title-main, .frame__title-back, .frame__prev {
    letter-spacing: normal;
    word-spacing: normal;
    text-shadow: none;
}

.italic {
    font-style: italic;
}

.frame, .frame * {
    font-size: calc(1rem + 1vw);
}

body, .grid__item-text, .credits, .credits-title, .credits-label, .credits-curators, .frame__title-main, .frame__prev, .frame__title-back, .frame__nav, .frame__nav a {
    text-shadow: 0 0 2px rgba(0,0,0,0.7);
}

.grid__item-logo {
    filter: none;
}

.mobile-logo { display: none !important; }
.desktop-logo { display: block !important; }
@media screen and (max-width: 52.99em) {
    .mobile-logo { display: block !important; }
    .desktop-logo { display: none !important; }
}

.mobile-address { display: none !important; }
.desktop-address { display: block !important; }
@media screen and (max-width: 52.99em) {
    .mobile-address { display: block !important; }
    .desktop-address { display: none !important; }
}

/* Uppercase the info text in the second grid__item for flexibility */
.grid__item-text.info-uppercase {
    text-transform: uppercase;
    font-size: calc(1rem + 1vw);
    padding-left: 1rem;
    padding-right: 1rem;
}

@media screen and (min-width: 53em) {
    .grid__item-text.info-uppercase {
        font-size: calc(1.08rem + 1.08vw);
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media screen and (max-width: 52.99em) {
    .grid__item-text.info-uppercase {
        font-size: calc(1.05rem + 1.4vw);
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.trost-fixed-info {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	box-sizing: border-box;
	background: none;
	color: var(--color-text, #111);
	font-size: calc(0.85rem + 0.5vw);
	font-family: inherit;
	padding: 0.7em 5vw;
	border-radius: 0;
	box-shadow: none;
	z-index: 1000;
	line-height: 100%;
	text-align: center;
	pointer-events: none;
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}
@media screen and (max-width: 52.99em) {
	.trost-fixed-info {
		font-size: calc(0.95rem + 1vw);
		padding: 0.7em 2vw;
		min-height: 3.2em;
	}
}
