html,
body,
.page {
  height: 100%;
}

.noscroll,
.noscroll body {
  overflow: hidden;
}

.fullscreen {
  position: relative;
  width: 100%;
  height: 100%;
  transition: height 1000ms ease;
}

.fullscreen--inactive {
  height: 0;
}

.fullscreen__section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: height 1000ms ease;
  bacground-size: 0;
}

.fullscreen__section:nth-child(1) {
	z-index: 9;
}

.fullscreen__section:nth-child(2) {
	z-index: 8;
}

.fullscreen__section:nth-child(3) {
	z-index: 7;
}

.fullscreen__section:nth-child(4) {
	z-index: 6;
}

.fullscreen__section:nth-child(5) {
	z-index: 5;
}

.fullscreen__section:nth-child(6) {
	z-index: 4;
}

.fullscreen__section:nth-child(7) {
	z-index: 3;
}

.fullscreen__section:nth-child(8) {
	z-index: 2;
}

.fullscreen__section:nth-child(9) {
	z-index: 1;
}

.fullscreen__section::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: inherit;
  background-position: center;
  background-size: cover;
  content: '';
}

.fullscreen__section--inactive {
  height: 0;
}

.fullscreen__nav {
  position: absolute;
  right: 50%;
	bottom: 15px;
  -webkit-transform: translateX(50%);
	transform: translateX(50%);
	font-size: 0;
  z-index: 10;
}

@media (min-width: 992px) {
  .fullscreen__nav {
		right: 2%;
    bottom: 50vh;
    -webkit-transform: translateY(50%);
    transform: translateY(50%);
  }
}

.fullscreen__button {
  display: inline-block;
      width: 3px;
    height: 25px;
    margin: 0 8px;
    padding: 0;
    background: #1e2329;
    border: none;
}

@media (min-width: 992px) {
	.fullscreen__button {
		display: block;
		margin: 15px 0;
	}
}

.fullscreen__button:focus {
	outline: 0;
}

.fullscreen__button--active {
  background: #fff;
}

/* fullscreen overrides */

.fullscreen .home-content {
	position: absolute;
	bottom: 50vh;
  max-width: calc(100% - 30px);
  -webkit-transform: translateY(50%);
	transform: translateY(50%);
}

@media (min-width: 768px) {
  .fullscreen .home-content {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .fullscreen .home-content {
    max-width: 940px;
  }
}

@media (min-width: 1200px) {
  .fullscreen .home-content {
    max-width: 1140px;
  }
}
