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

:root {
	font-size: 16px;
	--color-text: #fff;
	--color-bg: #000;
	--color-link: #fff;
	--color-link-hover: #fff;
}

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

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

.unbutton:focus {
	outline: none;
}

.demo-3 {
	position: relative;
}

.frame {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 70vh;
	color: var(--color-title);
	padding: 2rem;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto auto auto 1fr;
	grid-template-areas: 'title title' 'prev back' 'demos demos' 'sponsor sponsor' 'nav nav';
	justify-content: start;
	align-content: start;
	align-items: start;
	z-index: 100;
	pointer-events: none;
	grid-gap: 1rem;
}

body #cdawrap {
	align-self: start;
	justify-self: start;
}

.frame a,
.frame button {
	pointer-events: auto;
}

.frame__title {
	grid-area: title;
	display: flex;
	align-items: flex-end;
	font-weight: 400;
}

.frame strong {
	font-weight: 700;
}

.frame__title-main {
	font-size: inherit;
	margin: 0;
	font-weight: inherit;
}

.frame__back {
	grid-area: back;
}

.frame__prev {
	grid-area: prev;
}

.frame__demos {
	grid-area: demos;
	display: grid;
	grid-template-columns: repeat(8, auto);
	column-gap: 1rem;
	row-gap: 0.5rem;
}

.frame__demos span {
	grid-column: 1 / span 8;
}

a.frame__demo {
	font-weight: 400;
	font-size: 1rem;
	text-decoration: none;
	opacity: 0.5;
}

a.frame__demo--current {
	font-weight: 700;
	opacity: 1;
	color: var(--color-link-hover);
}

.slides {
	width: 100%;
	height: 70vh;
	overflow: hidden;
	display: grid;
	grid-template-rows: 100%;
	grid-template-columns: 100%;
	place-items: center;
}

.slide {
	width: 100%;
	height: 100%;
	grid-area: 1 / 1 / -1 / -1;
	pointer-events: none;
	opacity: 0;
	overflow: hidden;
	position: relative;
	display: grid;
	place-items: center;
	will-change: transform, opacity;
}


.slide--current {
	pointer-events: auto;
	opacity: 1;
}

.slide__img::before {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1;
}

.slide_title {
	font-variation-settings: "slnt" 0, "wdth" 100, "wght" 500, "INKT" 100;
	font-family: var(--tac-secondary-font);
	color: #FFF;
	font-size: 2rem;
	text-align: center;
}

.slide_caption {
	max-width: 50%;
	z-index: 2;
	font-family: var(--tac-secondary-font);
	color: #FFF;
	position: absolute;
	top: 50%;
	right: 50%;
	transform: translate(50%, -50%);
	text-align: center;
	margin-bottom: 30px;
}

.deco {
	width: 100%;
	height: 100%;
	grid-area: 1 / 1 / -1 / -1;
	pointer-events: none;
	position: relative;
	opacity: 0;
	background: #8c718e;
	will-change: transform, opacity;
}

.deco--1 {
	background: #58889C;
}

.deco--2 {
	background: #C0925E;
}

.deco--3 {
	background: #7C311E;
}

.deco--4 {
	background: #000;
}

.deco--5 {
	background: #060b17;
}

.deco--6 {
	background: #34365c;
}

.deco--7 {
	background: #9f6794;
}

.slide__img {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: 50% 50%;
	background-repeat: no-repeat;
	will-change: transform, opacity, filter;
}

.demo-2 .slide__img {
	width: 120%;
	height: 120%;
}

.slides-nav {
	grid-area: nav;
	display: flex;
	gap: 0.5rem;
	align-self: end;
	align-items: center;
}

/* .slides-nav::before {
	content: 'scroll / drag';
	margin-right: 2rem;
} */

.slides-nav__item {
	width: 80px !important;
	height: 80px;
	border: 0;
	background: #fff;
	color: #000;
	width: 60px;
	aspect-ratio: 1;
	display: grid;
	place-items: center;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.3s;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--color-body-bg) !important;
}

.slides-nav__item:hover {
	background-color: #ccc;
}


/* BOTTONE */
.slide .cta-container {
	align-items: center;
	justify-content: flex-start;
	gap: 40px;
	margin-top: 40px;
}

.slide .cta {
	position: relative;
	margin: auto;
	padding: 19px 22px;
	transition: all 0.2s ease;
	color: #FFF;
	background-color: var(--tac-primary-color);
	border-radius: 5px;
	font-family: var(--tac-secondary-font);
	border: 2px solid var(--tac-primary-color);
}


.slide .cta:hover {
	text-decoration: none;
	border: 2px solid var(--tac-primary-color);
	background-color: transparent;
	transition: all 0.2s ease;
}

.slide .cta2 {
	margin-left: 15px;
}

.slide .cta:before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	display: block;
	border-radius: 28px;
	background: var(--global--color-primary);
	width: 56px;
	height: 56px;
	transition: all 0.3s ease;
}

.slide .cta::after {
	background-color: transparent;
}

.slide .cta span {
	position: relative;
	font-size: 16px;
	line-height: 18px;
	font-weight: 600;
	letter-spacing: 0.25em;
	text-transform: uppercase;
	vertical-align: middle;
}

.slide .cta svg {
	position: relative;
	top: 0;
	margin-left: 10px;
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke: #FFF;
	stroke-width: 2;
	transform: translateX(-5px);
	transition: all 0.3s ease;
}

.slide .cta:hover:before {
	width: 100%;
	background: var(--global--color-primary);
}

.slide .cta:hover svg {
	transform: translateX(0);
}

.slide .cta:active {
	transform: scale(0.96);
}

@media screen and (min-width: 53em) {
	.frame {
		height: 70vh;
		grid-gap: 2rem;
		align-content: space-between;
		grid-template-columns: auto auto auto 1fr;
		grid-template-rows: auto auto;
		grid-template-areas: 'title back prev demos' 'sponsor ... ... nav ';
	}

	.frame__demos {
		justify-self: end;
		justify-content: end;
	}

	.frame__demos span,
	a.frame__demo {
		text-align: right;
	}

	.slides-nav {
		justify-self: end;
	}

	body #cdawrap {
		align-self: center;
		justify-self: start;
	}
}

@media screen and (max-width: 768px) {
	.slide_caption {
		max-width: 95%;
		width: 95%;
	}

	.slides-nav {
		justify-content: center;
		margin-top: 30px;
	}

	.slides-nav__item {
		width: 40px !important;
		height: 40px;
		padding: 0;
	}
}