


.unbutton {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	cursor: pointer;
}

.unbutton:focus {
	outline: none;
}

.oh {
	position: relative;
	overflow: hidden;
}

.oh__inner {
	will-change: transform;
	display: inline-block;
}

.line {
	transform-origin: 0;
	white-space: nowrap;
	will-change: transform;
}

main {
	display: grid;
	width: 100%;
	height: 100vh;
	grid-template-rows: auto auto;
	grid-template-columns: 100%;
}

.content {
	line-height: 1;
	position: relative;
	z-index: 1;
	grid-row: 2;
}

.content__item {
    cursor: pointer;
    text-transform: uppercase;
}

.content__overlay {
	background: #003d43;
	position: fixed;
	top: calc(50% - 70vmax);
	left: calc(50% - 75vmax);
	width: 150vmax;
	height: 150vmax;
	will-change: transform;
	z-index: 3;
	/*background-image: url(https://tenkurklientai.lt/wp-content/uploads/2023/06/reducedOpacityLogo.svg);*/
	/*background-repeat: no-repeat;*/
	/*background-position: 100% 50%;*/
	/*background-size: 1500px;*/
}

.overlay__inner {
	background: #131312;
	width: 100%;
	height: 100%;
	position: relative;
}

.content__overlay {
	border-radius: 50%;
	transform: scale(0);
}

.preview {
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	display: grid;
	pointer-events: none;
	z-index: 4;
	color: #fffaea;
}

.preview__item {
	grid-area: 1 / 1 / -1 / -1;
	opacity: 0;
	pointer-events: none;
	display: grid;
	grid-gap: 1rem;
	padding-top: 2rem;
	grid-template-columns: 100%;
	grid-template-rows: auto auto auto auto auto 1fr;
	grid-template-areas: 'title' 'subtitle' 'meta' 'box-left' 'box-right' '...';
	will-change: clip-path;
}

.preview__item--current {
	opacity: 1;
	pointer-events: auto;
}

.preview__item-img-outer {
	align-self: center;
	justify-self: center;
	width: 60vw;
	max-width: 800px;
	justify-self: center;
	grid-area: 1 / 1 / -1 / -1;
}

.preview__item-img-outer {
	height: 100%;
	width: 36vw;
}

.preview__item-img-wrap {
	width: 100%;
	height: 100%;
	position: relative;
	overflow: hidden;
	will-change: transform;
}

.preview__item-img {
	background-size: cover;
	background-position: 50% 50%;
	width: 100%;
	height: 100%;
	will-change: transform;
}

.preview__item-title {
	align-self: center;
	justify-self: center;
	grid-area: title;
	will-change: transform;
}

.preview__item-subtitle {
	justify-self: center;
	position: relative;
	grid-area: subtitle;
	font-weight: 300;
	margin: 0;
}

.preview__item-meta {
	justify-self: center;
	position: relative;
	grid-area: meta;
}

.preview__item-box {
	position: relative;
	max-width: 450px;
	will-change: transform;
	justify-self: center;
	text-align: center;
}

.preview__item-box--right {
	grid-area: box-right;
}

.preview__item-box--left {
	grid-area: box-left;
}

.preview__item-box-title {
	margin: 0;
	font-weight: 400;
}

.preview__item-box-desc {
	will-change: transform, opacity;
}

.preview__back {
	cursor: pointer;
	position: absolute;
	top: 80px;
	right: 80px;
	z-index: 300;
	opacity: 0;
	pointer-events: none;
	transform: translateX(-50%);
	will-change: transform, opacity;
	width: 80px;
    height: 80px;
}

.preview-open .preview__back {
	pointer-events: auto;
}

.preview__back svg {
	pointer-events: none;
	stroke: white;
	stroke-width: 1px;
	transition: stroke .3s;
}

.preview__back:hover {
    background: transparent;
}

/*START OF CUSTOM*/

.content {
	line-height: 1;
	position: relative;
	z-index: 1;
	grid-row: 2;
}

.preview-open .content {
	pointer-events: none;
}

.animation__item {
	width: 100%;
	max-width: 500px;
	padding: calc(3rem + 5vh) 2rem 4rem;
	margin: 0;
}

.animation__item:nth-child(even) {
	padding-top: calc(3rem + 15vh);
}

.animation__item-img-wrap {
	overflow: hidden;
	position: relative;
	width: 100%;
	aspect-ratio: 0.75;
	cursor: pointer;
	will-change: transform;
}

.animation__item-img-wrap {
	width: auto;
	height: 100%;
	aspect-ratio: auto;
}

.animation__item-img {
	background-size: cover;
	background-position: 50% 50%;
	width: 100%;
	height: 300px;
	will-change: transform;
}

.animation__item-title {
	font-size: clamp(2rem, 3.25vw, 1.85rem);
	font-family: kudryashev-d-excontrast-sans, sans-serif;
	font-weight: 300;
	margin: 0 0 0.5rem;
}

.animation__item-title .oh__inner {
	padding-top: 0.75vw;
	line-height: 1.2;
}

.animation__item-caption {
	margin-top: 0.75rem;
}

.unbutton .preview__back {
    opacity: 1 !important;
}

/*END OF CUSTOM*/

.content__overlay {
	border-radius: 50%;
	transform: scale(0);
}

.content {
    display: flex;
    justify-content: center;
    align-items: center;
}
.content ul {
    list-style-type: none;
    margin: 0;
}
.content ul li a {
    color: white;
    font-size: 30px;
    text-align: center;
    text-transform: uppercase;
}
.content ul li {
    text-align: center;
    margin-bottom: 45px;
}

.preview__item-img-outer, .preview__item-title, .preview__item-subtitle, .preview__item-meta, .preview__item-box, .preview__item-box {
    display: none;
}

/* Link animation :) */

.overlayMenu__item {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    /*counter-increment: itemcounter;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.overlayMenu__item::before {
    color: var(--color-number);
    position: absolute;
    top: 0;
    left: 0;
    /*content: counters(itemcounter, ".", decimal-leading-zero);*/
}

.link {
    cursor: pointer;
    font-size: 18px;
    position: relative;
    white-space: nowrap;
    color: var(--color-text);
}

.link::before,
.link::after {
    position: absolute;
    width: 100%;
    height: 1px;
    background: currentColor;
    top: 100%;
    left: 0;
    pointer-events: none;
}

.link::before {
    content: '';
    /* show by default */
}






.link--leda {
    overflow: hidden;
    line-height: 2;
}

.link--leda::before {
    height: 2px;
    top: calc(100% - 5px);
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.5s cubic-bezier(0.5, 0.5, 0.3, 1);
}

.link--leda:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}

.link--leda::after {
    content: attr(data-text);
    height: 100%;
    top: 0;
    background: none;
    transform-origin: 100% 50%;
    transform: translate3d(150%, 0, 0);
    transition: transform 0.3s cubic-bezier(0.5, 0.5, 0.3, 1);
}

.link--leda:hover::after {
    /*transform: translate3d(0, 0, 0);*/
}

.link--leda span {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.5, 0.5, 0.3, 1);
}

.link--leda:hover span {
    transform: translate3d(-150%, 0, 0);
}
/* End of link animation */


.overlay__logo {
    opacity: 0.3;
    max-width: 1500px;
    right: 100px;
    top: 0px;
    position: absolute;
}

@media screen and (min-width: 53em) {
	main {
		grid-template-rows: 100%;
	}
	.frame {
		grid-area: 1 / 1 / -1 / -1;
		height: 100vh;
		grid-gap: 2rem;
		align-content: space-between;
		grid-template-columns: auto auto 1fr;
		grid-template-rows: auto auto;
		grid-template-areas: 'title prev sponsor' 'nav nav nav';
	}
	.content {
		height: 100vh;
		display: flex;
		align-items: center;
		align-content: center;
		grid-area: 1 / 1 / -1 / -1;
	}
	.preview__item {
		padding-top: 0;
		grid-template-columns: 30% 1fr 30%;
		grid-template-rows: 1fr auto auto auto;
		grid-template-areas:'title title title'
						'box-left subtitle box-right'
						'box-left meta box-right'
						'box-left ... box-right';
	}
	.preview__item-title {
		grid-row: 1 / span 4;
	}
	.preview__item-box--right {
		justify-self: end;
		text-align: right;
	}
	.preview__item-box--left {
		justify-self: start;
		text-align: left;
	}
}
