* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --index: calc(1vw + 1vh);
  --gap: 30px;
  --side-small: 26;
  --side-big: 36;
  --fakeHeight: 7000px;
  --transition: 0.75s cubic-bezier(0.075, 0.5, 0, 1);
}

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

@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;
}
body {
  background-color: #000;
  color: #fff;
  font-size: calc(var(--index) * 0.8);
  font-family: raleway_c, sans-serif;
  line-height: 1.75;
  height: var(--fakeHeight);
  font-weight: 300;
}
.container {
  width: 100%;
  height: 100%;
  position: fixed;
  perspective: 1500px;
}
.gallery {
  transform-style: preserve-3d;
  height: 100%;
}
.frame {
  width: 100%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition), opacity 0.75s ease;
  will-change: transform;
  transform-style: preserve-3d;
}
/* .frame.--main {
  background: #000;
} */
.overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* opacity: 0; */
  opacity: 1;
  transition: opacity 1.5s ease;
  z-index: 9;
}
.overlay svg {
  max-width: 100px;
}
html.--loaded .overlay {
  opacity: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 100;
  text-transform: uppercase;
  width: min-content;
  line-height: 1;
}
.frame h2 {
  text-align: center;
  font-size: calc(var(--index) * 3.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--left {
  right: calc(var(--side-small) / 2 * var(--index) + var(--gap));
}
.frame-media--right {
  left: calc(var(--side-small) / 2 * var(--index) + var(--gap));
}
.frame_bg {
  background-color: rgb(0 0 0 / 0.87);
}
video.frame-media {
  width: calc(var(--index) * var(--side-big));
  height: calc(var(--index) * var(--side-small));
}
video.frame-media--right {
  left: calc(var(--side-big) / 2 * var(--index) + var(--gap));
}
video.frame-media--left {
  right: calc(var(--side-big) / 2 * var(--index) + var(--gap));
}
.text--right > * {
  position: relative;
  left: 18vw;
}
.text--left > * {
  position: relative;
  right: 18vw;
}
.frame h3 {
  font-size: calc(var(--index) * 3);
}
.frame p {
  max-width: 30vw;
  margin-top: 3vh;
}

.frame .text--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.text--center > p,
h3 {
  width: max-content;
  max-width: 45vw;
}

.soundbutton {
  position: fixed;
  bottom: 5vh;
  right: 5vw;
  cursor: pointer;
  width: 24px;
  transition: 0.25s ease;
}

.soundbutton.paused {
  opacity: 0.25;
}

.soundbutton.paused .icon-paused {
  display: block;
}
.soundbutton.paused .icon-enabled {
  display: none;
}
.soundbutton:not(.paused) .icon-paused {
  display: none;
}
.soundbutton:not(.paused) .icon-enabled {
  display: block;
}
