html,
body,
figure {
  margin: 0;
  padding: 0;
}

html,#page-wrapper {
  color: #fff;
  background: #000;
  scroll-snap-type: y mandatory;
  scroll-snap-stop: always;
  overscroll-behavior: none;
  scroll-behavior: smooth;
  touch-action: pan-y;
}

a {
  color: #fff;
  cursor: pointer;
}

body {
  overscroll-behavior: none;
  scroll-snap-stop: always;
}

.progress {
  display: none;
  position: relative;

  --progress-width: 60%;
  --progress-height: 1em;
  left: 50%;
  top: 50%;
  width: var(--progress-width);
  height: var(--progress-height);
  margin-left: calc(-0.5 * var(--progress-width));
  margin-top: calc(-0.5 * var(--progress-height));
  background: rgba(255, 255, 255, 0.1);
}
.progress span {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #fff;
  transition: width 200ms linear;
}

#page-wrapper.loading {
  scroll-behavior: auto;
}
#page-wrapper.loading > body > section,
#page-wrapper.loading > body > figure {
  visibility: hidden;
}
html.loading .progress {
  display: block;
  position: fixed;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

section {
  opacity: 0;
}
section.show {
  animation: fade 100ms ease 500ms forwards;
}
section.show.initial {
  animation-duration: 0s;
  animation-delay: 0s;
}

figure {
  scroll-snap-align: start;
  height: 100vh;
  position: relative;
}

figure.snap-end {
  scroll-snap-align: end;
}

figure .wrapper1 {
  position: sticky;
  top: 0;
  height: 100%;
}

figure .wrapper2 {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: center center / contain no-repeat;
  transition: transform 200ms ease;
}

.about .progress {
  position: absolute;
  display: block;
}

.about .wrapper2 {
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about .popup {
  position: relative;
}

.about .popup .popup-bg img {
  max-width: 100%;
  height: auto;
}

.about .popup .popup-fg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#page-wrapper{
    width: 100%;
    height: 100vh;
    overflow: auto;
}