* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'raleway_c';
    src: url(../fonts/raleway-v22-cyrillic-300.woff2);
    font-weight: 300;
}

@font-face {
    font-family: 'raleway_c';
    src: url(../fonts/raleway-v22-cyrillic-100.woff2);
    font-weight: 100;
}

:root {
    /* size index, of width and height of the screen */
    --index: calc(1vw + 1vh);
    --gutter: 30px;
    --side-small: 25;
    --side-big: 35;
    --depth: 4600px;
    --transition: .75s cubic-bezier(.075, .5, 0, 1);
}

.h1, .h2, .h3, .h4 {
    /* width: min-content; */
    font-weight: 100;
    text-transform: uppercase;
    line-height: 1;
}

.body {
    height: var(--depth);
    background-color: #000;
    font-family: raleway_c, sans-serif;
    font-size: calc(var(--index) * .8);
    font-weight: 300;
    line-height: 1.75;
    color: #fff;
	scrollbar-width: none;
}

.body::-webkit-scrollbar { 
	display: none;
}

.container {
    width: 100%;
    height: 100%;
    position: fixed;
    perspective: 1500px;
}

.gallery {
    /* must be set to a parent elem */
    height: 100%;
    transform-style: preserve-3d; 
}

.frame {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition), opacity .75s ease;
    will-change: transform;
    /* for smooth text */
    transform-style: preserve-3d; 
}

.frame__heading {
    width: calc(var(--index) * var(--side-big));
    font-size: calc(var(--index) * 3);
    text-align: center;
}

.frame .h3 {
    font-size: calc(var(--index) * 3);
}

.frame-media {
    position: relative;
    width: calc(var(--index) * var(--side-small));
    height: calc(var(--index) * var(--side-big));
    background-position: center;
    background-size: cover;
}

.frame-media_photo {
    width: calc(var(--index) * var(--side-big));
    height: calc(var(--index) * var(--side-small));
    background-size: contain;
    background-repeat: no-repeat;
}

.frame__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 4vh;
    padding: 0 20px;
}

video.frame-media {
    width: calc(var(--index) * var(--side-big));
    height: calc(var(--index) * var(--side-small));
}

video.frame-media_left {
    right: calc(var(--side-big) / 2  * var(--index) + var(--gutter));
}

video.frame-media_right {
    left: calc(var(--side-big) / 2  * var(--index) + var(--gutter));
}

.frame_bg {
    background-color: rgb(0 0 0 / .8);
}

.frame-media_left {
    right: calc(var(--side-small) / 2  * var(--index) + var(--gutter));
}

.frame-media_right {
    left: calc(var(--side-small) / 2  * var(--index) + var(--gutter));
}

.text {
    max-width: 30vw;
    margin-top: 4vh;
}

.text-left > * {
    position: relative;
    right: 20vw;
}

.text-right > * {
    position: relative;
    left: 15.5vw;
}

@media (max-width: 768px) { 
   
    .text {
        max-width: 46vw;
        margin-top: 4vh;
    }
}

