/*  

	Author : Moskva Yigit
	Author URI : http://www.moskvayigit.com/
	Version: 1.0.0.1

	Table of Contents
	- Smooth Scrolling
	 
*/

.ki-description{width:100%;}

/*----------------------------
	.-- Smooth Scrolling
-----------------------------*/

*,
*::after,
*::before {
	box-sizing: border-box;
}

.smooth-scrolling-main{
	height: 100%;
	width: 100%;
	position: relative;
}

.smooth-scrolling-main.dark {
	--color-title: #333333;
	--color-description: #141516;
}

.smooth-scrolling-main.light {
	--color-title: #fafafa;
	--color-description: #c0c0c0;
}

.smooth-scrolling-container{
	--aspect-ratio: 1/1.5;
	--imgwidthmax: 500px;
	--size-title: 10rem;
	--font-weight-title: 400;
}

.smooth-scrolling--page {
	display: grid;
	padding: 5vw;
	max-width: 1400px;
	margin: 0 auto;
	grid-template-columns: 100%;
	grid-template-areas: 'header' 'meta' 'grid';
	will-change: transform;
}

.smooth-scrolling--page__title {
	grid-area: header;
	margin: 0 0 1rem;
	font-size: inherit;
	font-weight: 400;
}

.smooth-scrolling-content {
	grid-area: grid;
	margin: 50vh 0 30vh;
}

.smooth-scrolling-content--offset {
	display: grid;
	grid-template-columns: repeat(2, minmax(100px, 1fr));
	grid-gap: 30vh 10vw;
}

.smooth-scrolling-content--full {
	width: 100%;
	justify-self: center;
}

.smooth-scrolling-content--padded {
	padding: 0 10vw;
}

.smooth-scrolling-content__item {
	--imgwidth: calc(var(--imgwidthmax) * var(--aspect-ratio));
	width: var(--imgwidth);
	max-width: 100%;
	position: relative;
	will-change: transform;
	margin-bottom: 30vh;
	display: grid;
	grid-template-columns: 50% 50%;
}

.smooth-scrolling-content__item--wide {
	grid-template-columns: 20% 80%;
}

.smooth-scrolling-content__item--wide:nth-child(even) {
	grid-template-columns: 80% 20%;
}

.smooth-scrolling-content--center .smooth-scrolling-content__item {
	margin: 0 auto 60vh;
}

.smooth-scrolling-content__item--expand {
	width: 100%;
	grid-template-columns: minmax(0, var(--imgwidth)) 1fr;
}

.smooth-scrolling-content__item--expand:nth-child(even) {
	grid-template-columns: 1fr minmax(0, var(--imgwidth));
}

.smooth-scrolling-content--alternate .smooth-scrolling-content__item {
	max-width: 90vw;
}

.smooth-scrolling-content--offset .smooth-scrolling-content__item {
	margin: 0 auto 15vh;
}

.smooth-scrolling-content--offset .smooth-scrolling-content__item:nth-child(even) {
	align-self: end;
	margin-bottom: -20vh;
}

.smooth-scrolling-content--alternate .smooth-scrolling-content__item:nth-child(even) {
	margin-left: auto;
}

.smooth-scrolling-content__item-imgwrap {
	position: relative;
	--imgwidth: 100%;
	margin: 0 auto;
	grid-area: 1 / 1 / 3 / 3;
	overflow: hidden;
	width: var(--imgwidth);
	padding-bottom: calc(var(--imgwidth) / (var(--aspect-ratio)));
	will-change: transform;
}


.smooth-scrolling-content__item--expand .smooth-scrolling-content__item-imgwrap {
	grid-area: 1 / 1 / 3 / 2;
}

.smooth-scrolling-content__item--expand:nth-child(even) .smooth-scrolling-content__item-imgwrap {
	grid-area: 1 / 2 / 3 / 3;
	justify-self: end;
}

.smooth-scrolling-content__item-img {
	--overflow: 40px;
	height: calc(100% + (2 * var(--overflow)));
	top: calc( -1 * var(--overflow));
	width: 100%;
	position: absolute;
	background-size: cover;
	background-position: 50% 0%;
	will-change: transform;
	opacity: 0.8;
}

.smooth-scrolling-content__item-img--t1 {
	--overflow: 60px;
}

.smooth-scrolling-content__item-img--t2 {
	--overflow: 80px;
}

.smooth-scrolling-content__item-img--t3 {
	--overflow: 120px;
}

.smooth-scrolling-content__item-number {
	opacity: 0.03;
	font-size: 25vw;
	position: absolute;
	top: -7vw;
	right: -10vw;
	line-height: 1;
	color: var(--color-title);
}

.smooth-scrolling-content__item:nth-child(even) .smooth-scrolling-content__item-number {
	right: auto;
	left: -7vw;
}

.smooth-scrolling-content__item-title {
	position: relative;
	font-size: var(--size-title);
	padding: 0 3vw;
	margin: calc(var(--size-title) * -1/2) 0 0 0;
	align-self: start;
	line-height: 1;
	font-family: var(--font-title);
	font-weight: var(--font-weight-title);
	color: var(--color-title);
	will-change: transform;
	mix-blend-mode: var(--blendmode-title);
}

.smooth-scrolling-content--center .smooth-scrolling-content__item-title {
	grid-area: 1 / 1 / 3 / 3;
	margin: auto;
}

.smooth-scrolling-content__item-title--layer {
	padding: 0;
	z-index: 10;
	grid-area: 1 / 1 / 2 / 3;
	width: 100%;
	text-align: center;
}

.smooth-scrolling-content__item-description {
	grid-area: 3 / 1 / 3 / 3;
	width: 70%;
	position: relative;
	margin: 0;
	padding: 1rem 0 0 0;
	color: var(--color-description);
}

.smooth-scrolling-content--alternate .smooth-scrolling-content__item-title,
.smooth-scrolling-content__item--wide:nth-child(even) .smooth-scrolling-content__item-description {
	grid-area: 3 / 1 / 4 / 2;
	justify-self: start;
}

.smooth-scrolling-content--alternate  .smooth-scrolling-content__item:nth-child(even) .smooth-scrolling-content__item-title,
.smooth-scrolling-content__item--wide .smooth-scrolling-content__item-description {
	grid-area: 3 / 2 / 4 / 3;
	justify-self: end;
	width: auto;
}

.smooth-scrolling-content__item--expand .smooth-scrolling-content__item-description {
	grid-area: 1 / 2 / 3 / 3;
    justify-self: start;
    align-self: start;
    padding: 0 2rem;
    width: 250px;
    font-size: 0.9rem;
}

.smooth-scrolling-content__item--expand:nth-child(even) .smooth-scrolling-content__item-description {
	grid-area: 1 / 1 / 3 / 2;
	justify-self: end;
	text-align: right;
}

.smooth-scrolling-content__item-deco {
	position: absolute;
	top: 2rem;
	left: 10vw;
	height: 30%;
	width: 1px;
	background: #d79612;
}

.smooth-scrolling-content__item-decobar {
	width: 140%;
	height: 25%;
	top: 100%;
	left: -20%;
	position: absolute;
	background: #dd525a;
	mix-blend-mode: color-burn;
}

.smooth-scrolling__video {
    height: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}


@media screen and (min-width: 53em) {
	
	.smooth-scrolling--page--layout-1 {
		grid-template-columns: 30% 70%;
		grid-template-areas: 'header header' '...  meta' 'grid grid';
	}
	
	.smooth-scrolling--page--layout-2 {
		grid-template-columns: 1fr 1fr;
		grid-template-areas: 'header meta' '...  meta' 'grid grid';
	}
	
}

@media screen and (max-width: 40em) {
	
	.smooth-scrolling-content__item--expand .smooth-scrolling-content__item-imgwrap,
	.smooth-scrolling-content__item--expand:nth-child(even) .smooth-scrolling-content__item-imgwrap {
		grid-area: 1 / 1 / 3 / 3;
	}
	
	.smooth-scrolling-content__item--expand .smooth-scrolling-content__item-description,
	.smooth-scrolling-content__item--expand:nth-child(even) .smooth-scrolling-content__item-description,
	.smooth-scrolling-content__item--wide .smooth-scrolling-content__item-description,
	.smooth-scrolling-content__item--wide:nth-child(even) .smooth-scrolling-content__item-description {
		grid-area: 3 / 1 / 4 / 3;
	    padding: 1rem 0;
	    width: 100%;
	    text-align: left;
	}
	
	.smooth-scrolling-content__item--wide .smooth-scrolling-content__item-description {
		padding: 1rem;
	}
	
	.smooth-scrolling-content--alternate .smooth-scrolling-content__item-title,
	.smooth-scrolling-content--alternate .smooth-scrolling-content__item:nth-child(even) .smooth-scrolling-content__item-title {
		grid-area: 1 / 1 / 4 / 2;
	}
	
}
