/*  

	Author : Moskva Yigit
	Author URI : http://www.moskvayigit.com/

	Table of Contents
	- Diagonal Media
	- Splitting
	 
*/

.ki-description{width:100%;}

/*----------------------------
	.-- Diagonal Media
-----------------------------*/

*,
*::after,
*::before {
	box-sizing: border-box;
}

.diagonal-media--container {
	margin: 0;
	overflow: hidden;
}

.slides--di {
	width: 100vw;
	height: 100vw;
	overflow: hidden;
	position: relative;
	display: flex;
    align-items: center;
    padding-top: 7rem;
    min-height: 700px;
}

.dark .slides--di{
	color: #000;
}

.light .slides--di{
	color: #fff;
}

.dark .slides--di__nav svg {
    fill: #000;
    stroke: #000;
}

.light .slides--di__nav svg {
    fill: #fff;
    stroke: #fff;
}

.slides--di {
	display: grid;
	grid-template-rows: 100%;
	grid-template-columns: 100%;
}

.slide--diagonal {
	align-items: center;
    display: flex;
	grid-area: 1 / 1 / 2 / 2;
	opacity: 0;
	pointer-events: none;
	width: 100%;
	justify-content: center;
}

.slide--diagonal--current {
	opacity: 1;
	pointer-events: auto;
}

.slide--diagonal {
	margin: 0 auto;
	height: 100%;
}

.slide--diagonal__img-wrap {
	min-width: 790px;
	width: 100%;
	height: calc(100% - 6rem);
	display: flex;
	flex-wrap: wrap;
	align-content: center;
	align-items: center;
	justify-content: center;
	align-self: center;
	transform: rotate(-22.5deg);
	transform-origin: 50% 50%;
}

.slide--diagonal__img {
	opacity: 0.95;
	flex: none;
	height: 50vh!important;
	display: block;
	background-size: cover;
	background-position: 50% 50%;
}

.slide--diagonal__img--1,
.slide--diagonal__img--4 {
	height: calc(50% + 3rem);
}

.slide--diagonal__img--1,
.slide--diagonal__img--3 {
	margin-right: 1.5rem;
}

.slide--diagonal__img--1,
.slide--diagonal__img--2 {
	margin-bottom: 1.5rem;
}

.slide--diagonal__img--2 {
	align-self: flex-end;
}

.slide--diagonal__img--3 {
	align-self: flex-start;
}

.break {
	flex-basis: 100%;
	height: 0;
}

.slide--diagonal__title {
	margin: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	font-size: 15vw;
	font-size: clamp(2rem, 15vw, 14rem);
	font-weight: 200;
	text-transform: uppercase;
	text-align: center;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.slide--diagonal__title-inner {
	display: block;
	position: relative;
	overflow: hidden;
	display: flex;
}

.slide--diagonal__title-inner span {
	position: relative;
}

.slide--diagonal__title-inner--middle {
	font-size: 2.5rem;
	display: block;
	font-weight: 300;
	text-transform: none;
}

.slides--di__nav {
	position: absolute;
	top: 50%;
	cursor: pointer;
	background: none;
	border: 0;
	width: 90px;
	height: 20px;
	padding: 0;
	margin: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	transition: transform 0.2s ease-out;
}

.slides--di__nav svg {
	display: block;
	width: 100%;
	height: 100%;
}

.slides--di__nav--prev {
	left: 15vw;
}

.slides--di__nav--prev:hover {
	transform: translate3d(-15%, 0, 0);
}

.slides--di__nav--next {
	right: 15vw;
}

.slides--di__nav--next:hover {
	transform: translate3d(15%, 0, 0);
}

@media screen and (min-width: 53em) {
	
	.slides--di {
		padding: 0;
	}
}

/*----------------------------
	.-- Splitting
-----------------------------*/

.splitting .word,
.splitting .char {
    display: inline-block;
}

.splitting .char {
    position: relative;
}

.splitting .char::before,
.splitting .char::after {
    content: attr(data-char);
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    transition: inherit;
    user-select: none;
}

.splitting {
    --word-center: calc((var(--word-total) - 1) / 2);
    --char-center: calc((var(--char-total) - 1) / 2);
    --line-center: calc((var(--line-total) - 1) / 2);
}

.splitting .word {
    --word-percent: calc(var(--word-index) / var(--word-total));
    --line-percent: calc(var(--line-index) / var(--line-total));
}

.splitting .char {
    --char-percent: calc(var(--char-index) / var(--char-total));
    --char-offset: calc(var(--char-index) - var(--char-center));
    --distance: calc(
        (var(--char-offset) * var(--char-offset)) / var(--char-center)
    );
    --distance-sine: calc(var(--char-offset) / var(--char-center));
    --distance-percent: calc((var(--distance) / var(--char-center)));
}

.splitting.cells img {
    width: 100%;
    display: block;
}

@supports (display: grid) {
    .splitting.cells {
        position: relative;
        overflow: hidden;
        background-size: cover;
        visibility: hidden;
    }

    .splitting .cell-grid {
        background: inherit;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: grid;
        grid-template: repeat(var(--row-total), 1fr) / repeat(
                var(--col-total),
                1fr
            );
    }

    .splitting .cell {
        background: inherit;
        position: relative;
        overflow: hidden;
    }

    .splitting .cell-inner {
        background: inherit;
        position: absolute;
        visibility: visible;
        width: calc(100% * var(--col-total));
        height: calc(100% * var(--row-total));
        left: calc(-100% * var(--col-index));
        top: calc(-100% * var(--row-index));
    }

    .splitting .cell {
        --center-x: calc((var(--col-total) - 1) / 2);
        --center-y: calc((var(--row-total) - 1) / 2);
        --offset-x: calc(var(--col-index) - var(--center-x));
        --offset-y: calc(var(--row-index) - var(--center-y));
        --distance-x: calc(
            (var(--offset-x) * var(--offset-x)) / var(--center-x)
        );
        --distance-y: calc(
            (var(--offset-y) * var(--offset-y)) / var(--center-y)
        );
    }
}