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

:root {
	font-size: 16px;
}



/* Page Loader */
.js .loading::before {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--color-bg);
}

.js .loading::after {
	content: '';
	position: fixed;
	z-index: 100000;
	top: 50%;
	left: 50%;
	width: 60px;
	height: 60px;
	margin: -30px 0 0 -30px;
	pointer-events: none;
	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!important;
	color: var(--color-link);
	outline: none;
}

a:hover,
a:focus {
	color: var(--color-link-hover);
	outline: none;
}

[data-scroll] {
	will-change: transform;

}

.frame {
	padding: 2.5rem 3rem;
	position: absolute;
	z-index: 10;

}

.frame__title {
	font-size: 1rem;
	margin: 0 0 2.5rem;
}

.frame__links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.frame a {
	margin: 0.25rem 0;
	text-transform: lowercase;
}

.frame__github,
.frame__links a:not(:last-child),
.frame__demos a:not(:last-child) {
	margin-right: 1rem;
}

.frame__demos {
	margin: 1rem 0;
}

.frame__demo--current,
.frame__demo--current:hover {
	color: var(--color-text);
}

.content {
	display: flex;
	flex-direction: column;
	position: relative;
	align-items: center;
	/*padding: 12rem 0;*/
    padding: 0;
	counter-reset: figure;
background-color: #fff;

}

.item {
	/*margin: 10vh auto;*/
	margin: 5vh auto;
	max-width: 100%;
	position: relative;
	will-change: transform;
}

.item::before {
	counter-increment: figure;
	content: counter(figure, decimal-leading-zero);
	position: absolute;
	font-family: 'Raleway', sans-serif;
	font-size: 10rem;
	color: var(--color-deco);
	bottom: calc(100% - 3rem);
	display: none;
}

.item:nth-child(even)::before {
	right: 0;
}

.item__img-wrap {
	--aspect-ratio: 1/1.5;
	overflow: hidden;
	width: 5000px;
	margin: 0 auto;
	padding-bottom: calc(100% / (var(--aspect-ratio)));
	max-width: calc(100% - 2rem);
	will-change: transform;
}

.item:first-child .item__img-wrap {
	width: 1366px;
	--aspect-ratio:  16/9;
	--image: url(../scroll/rr-1-mid.jpg);
	margin: 0;
}

.item:nth-child(2) .item__img-wrap {
	width: 1366px;
	height: 1227px;
	--aspect-ratio:  16/9;
	--image: url(../scroll/rr-responsive-mid.jpg);
	margin: 0;
}

.item:nth-child(3) .item__img-wrap {
	width: 1366px;

	--aspect-ratio: 16/9;
	--image: url(../scroll/rr-screens-mid.jpg);
	margin: 0;
}

.item__img {
	--overflow: 40px;
	height: calc(100% + (2 * var(--overflow)));
	top: calc( -1 * var(--overflow));
	width: 100%;
	position: absolute;
	background-image: var(--image);
	background-size: cover;
	background-position: 50% 0%;
	will-change: transform;
}

.item__img--t1 {
	--overflow: 60px;
}

.item__img--t2 {
	--overflow: 80px;
}

.item__img--t3 {
	--overflow: 120px;
}

.item__caption {
	padding: 2rem 1rem;
}

.item__caption-title {
	font-family: 'Raleway', sans-serif;
	font-weight: 400;
	font-size: 3rem;
	margin: 0;
}

.item__caption-copy {
	margin: 0;
}

.item__caption-copy::before {
	content: '__';
	line-height: 1;
	color: var(--color-link);
	font-weight: 700;
	font-size: 3rem;
	margin: 0 0 1rem;
	display: block;
}



@media screen and (max-width: 428px) {
.item__caption-title {
  line-height: 50px!important;
}
.item__img--t2 {
    --overflow: 40px;
}
.item:first-child .item__img-wrap {
	width: 460px;

	--aspect-ratio: 16/9;
	--image: url(../scroll/rr-laptop-mobile.jpg);
	margin: 0 0 0 4%;
}

.item:nth-child(2) .item__img-wrap {
	width: 460px;
		height: 551px;
	--aspect-ratio: 16/9;
	--image: url(../scroll/rr-mobile.jpg);
	margin: 0 0 0 4%;
}
.item:nth-child(3) .item__img-wrap {
	width: 460px;
	--aspect-ratio: 16/9;
	--image: url(../scroll/rr-devices-mobile.jpg);
	margin: 0 0 0 4%;
}
}
