/**

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

 */

:root {
	font-size: 18px;
	--color-text: #fff;
	--color-text-alt: #767474;
	--color-bg: #0b0a0a;
	--color-link: #aaa;
	--color-link-hover: #fff;
}

html {
	scroll-behavior: initial;
}
/*
html, body{
	width: 100%;
	min-height: 100%;
}

body {
	margin: 0;
	color: var(--color-text);
	background-color: var(--color-bg);
	font-family: botanika-mono-web, monospace;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
 */

.nmbr {
	position: absolute;
	color: rgba(255,255,255,0.6);
	font-size: 54px;
	font-weight: 600;
	top: 60px;
	left: -30px;
}

.content-open {
	overflow: hidden;
	height: 100vh;
}

.oh {
    position: relative;
    overflow: hidden
}

.oh__inner {
    will-change: transform;
    display: inline-block;
}

.line {
	transform-origin: 0;
	white-space: nowrap;
	will-change: transform;
}

/* 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;

}

@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;
	fill: currentColor;
	cursor: pointer;

	display: flex;
	align-items: center;
	font-size: 20px;
	color: #fff;
}

.unbutton:focus {
	outline: none;
}

.unbutton span:first-child {
	margin-right: 1rem;
}

.unbutton span:last-child {
	margin-left: 1rem;
}
.unbutton i {
	font-size: 50px;
}
main {
	position: relative;
	display: grid;
	grid-template-areas: 'frame' 'page';
	background-image:url("../img/bg_sub.jpg");
	background-position: top center;
	background-color: #000;
	background-repeat: repeat-x;
}

.frame {
	grid-area: frame;
	padding: 1.5rem 2rem;
	z-index: 1000;
	background: var(--color-bg);
	display: grid;
	grid-template-columns: auto auto;
	grid-template-rows: auto;
	grid-template-areas: 'title' 'prev' 'sponsor';
	align-content: space-between;
	text-transform: uppercase;
	grid-row-gap: 5vh;
}

.frame__title {
	grid-area: title;
	display: flex;
}

.frame__title-main {
	font-size: 1rem;
	margin: 0;
	font-weight: normal;
	line-height: 1;
	align-self: center;
	text-align: right;
}

.frame__title-back {
	position: relative;
	display: flex;
	align-items: flex-end;
	margin-bottom: 0.15rem;
}

.frame__title-back span {
	display: none;
}

.frame__title-back svg {
	fill: currentColor;
}

.frame__prev {
	grid-area: prev;
}

.preview-wrap {
	grid-area: page;
	padding: 8rem;
	position: relative;
	z-index: 100;
}

.content-open .preview-wrap {
	pointer-events: none;
}

.preview {
	min-height: 400px;
	padding: 3rem 0 0;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: 100%;
	will-change: transform;
	position: relative;
}

.preview__img-wrap {
	grid-area: 1 / 1 / -1 / -1;
	cursor: pointer;
}

.preview__img {
	width: 100%;
	height: 100%;
	/*overflow: hidden;*/
	position: relative;
}

.preview__img-inner {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: 0% 0%;
	background-repeat: no-repeat;
	transform: unset !important;
	transform-origin: unset !important;
}

.content__meta {
	margin-top: 1rem;
	margin-bottom: 2rem;
	color: var(--color-text-alt);
}

.preview__title {
	text-align: center;
	align-self: center;
	justify-self: center;
	grid-area: 1 / 1 / -1 / -1;
	position: relative;
	transform: translate3d(0,50%,0);
	pointer-events: none;
}

.preview__title-main {
	color: #fff;
	margin: 0;
	font-weight: 700;
	font-size: 94px;
	line-height: 120px;
	text-transform: uppercase;
}

.preview__title-main > span {
	display: block;
}


.preview__desc {
	color: #fff;
	margin: 0 auto;
	text-transform: uppercase;
	font-weight: 400;
	font-size: 34px;
	line-height: 38px;
}


.preview__desc:before {
	position: absolute;
	left: calc(50% - 35px);
	display: block;
	width: 70px;
	border-top: 3px solid #fff;
	content: "";
	margin-top: -10px;
}

.content-wrap {
	position: -webkit-sticky; /* Safari */
	position: sticky;
	top: 0;
	grid-area: page;
	height: 100vh;
	overflow: hidden;
	display: grid;
	grid-template-areas:
	'back back'
	'content content';
	grid-template-rows: auto 1fr;
	pointer-events: none;
	padding: 8rem;
}

.action {
	visibility: hidden;
	pointer-events: none;
	opacity: 0;
}

.content-open .action {
	visibility: visible;
	pointer-events: auto;
}

.action svg {
	width: 2em;
	height: 2em;
}

.action--back {
	justify-self: start;
	grid-area: back;
	padding: 1rem 0;
}

.action span {
	text-transform: uppercase;
}

.content {
	grid-area: content;
	grid-row: 2 / span 2;
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	pointer-events: none;
	opacity: 0;
	display: grid;
	grid-gap: 2vw;
	grid-template-columns: 100%;
	grid-template-areas:
	'img'
	'thumbs'
	'text';
	grid-template-rows: 20vh min-content auto;
}

.content--current {
	position: relative;
	pointer-events: auto;
	opacity: 1;
}

.content__group {
	grid-area: text;
}

.content__title {
	font-weight: 400;
	font-size: clamp(3rem,6.5vw,5.5rem);
}

.content__title span {
	display: block;
	color: #fff;
	font-size: 70px;
	line-height: 78px;
	font-weight: 700;
	text-transform: uppercase;
}

.content__meta span {
	display: block;
	color: #fff;
	font-size: 32px;
	line-height: 48px;
	font-weight: 300;
	text-transform: uppercase;
}
.content__meta:before {
	position: absolute;
	left: 0;
	display: block;
	width: 70px;
	border-top: 2px solid #fff;
	content: "";

}
.content__text .line {
	font-size: 16px;
	color: #fff;
	font-weight: 300;
}

.content .preview__img {
	grid-area: img;
}

.content__thumbs {
	grid-area: thumbs;
	display: grid;
    grid-auto-columns: auto;
    grid-auto-flow: column;
    grid-gap: 2vw;
    justify-content: start;
}

.content__thumbs-item {
	width: 50px;
	aspect-ratio: 1.5;
}

.content__thumbs-item:hover {
	cursor: not-allowed;
}

.hidden {
	opacity: 0;
	pointer-events: none;
}

@media screen and (min-width: 53em) {
	main {
		grid-template-areas: 'frame page';
		grid-template-columns: auto 1fr;
	}
	.frame {
		position: -webkit-sticky; /* Safari */
		position: sticky;
		top: 0;
		height: 100vh;
		opacity: 0.5;
		padding: 2rem;
	}

	.frame__title,
	.frame__prev,
	#cdawrap {
		justify-self: start;
		-webkit-writing-mode: vertical-rl;
		writing-mode: vertical-rl;
		transform: rotate(180deg);
	}

	body #cdawrap {
		justify-self: start;
	}

	.frame__prev {
		margin: 1rem 0 0;
	}

	.frame__title-back {
		transform: scale3d(1,-1,1);
	}
	.preview {
		min-height: 90vh;
	}
	/*
	.preview__desc {
		margin: -2.5rem auto 0;
	}
	*/
	.content {
		grid-template-columns: 60% 1fr;
		grid-template-areas:
		'... ...'
		'img text'
		'thumbs text'
		'... ...';
		grid-template-rows: 2rem 1fr auto 1rem;
	}
	.content__thumbs-item {
		width: 100px;
	}
}

@media (max-width: 991px) {
	.preview {
		min-height: unset;
	}
	.preview-wrap {
		padding: 0;
	}
	.preview__title-main {
		font-size: 34px;
		line-height: 38px;
	}

	.content-wrap {
		padding: 1rem;
	}
	.content__title span {
		font-size: 34px;
		line-height: 38px;
	}

	.content__meta span {
		font-size: 18px;
		line-height: 28px;
	}
}

