.wavo-reveals .hidden {
  position       : absolute;
  width          : 0;
  height         : 0;
  overflow       : hidden;
  pointer-events : none;
}

.form__close {
  display     : inline-block;
  position    : relative;
  height      : 0.65em;
  float       : left;
  margin      : 1.25em 0 0 0;
  font-weight : bold;
  cursor      : pointer;
}

/* Content */

.wavo-reveals .content {
  position   : relative;
  min-height : 300px;
  overflow-x : hidden;
}

.content--full {
  height     : 100vh;
  min-height : 600px;
}

.flexy {
  display        : flex;
  align-items    : center;
  flex-direction : column;
  flex-wrap      : wrap;
}

.flexy--center {
  justify-content : center;
}

.flexy--row {
  flex-direction : row;
}

.content__heading {
  width   : 100%;
  padding : 0 5vw;
  flex    : none;
}

.content__heading--center {
  text-align : center;
}

.content__title {
  padding     : 0 5vw;
  font-size   : 8vw;
  line-height : 1.2;
}

.content__title--half {
  z-index : 2;
  width   : 50vw;
}

.content__title--enclosed {
  margin  : 0;
  padding : 0;
}

.content__title--center {
  margin : auto;
}

.content__title--right {
  padding    : 0 0 0 2em;
  text-align : right;
}

.content__title--left {
  margin-left : -18vw;
}

.content__title--medium {
  font-size : 6vw;
}

.content__title--small {
  font-size : 2vw;
}

.content__title__inner {
  display     : inline-block;
  position    : relative;
  flex        : none;
  white-space : nowrap;
}

.content__title__inner--offset-1 {
  top  : -0.25em;
  left : 13.6vw;
}

.content__title__inner--offset-2 {
  top  : -0.25em;
  left : 1.75vw;
}

.content__title__inner--offset-3 {
  top  : -0.25em;
  left : -10vw;
}

.content__image-wrap {
  width : 25vw;
  flex  : none;
}

.content__image-wrap--half {
  width : 50vw;
}

.content__image {
  display : block;
  width   : 100%;
}

.triggers {
  width   : 40vw;
  margin  : 0 5vw;
  padding : 3em;
  border  : 2px solid;
}

/* Related demos */

.content--related {
  padding     : 8em 5vw;
  text-align  : center;
  font-weight : bold;
}

.content--related h2 {
  font-family : 'Inconsolata',
                monospace;
  font-size   : 1.25em;
}

.content--related .demos {
  padding-bottom : 3em;
}

.media-item {
  display        : inline-block;
  padding        : 1em;
  vertical-align : top;
  transition     : color 0.3s;
}

.media-item__img {
  max-width  : 100%;
  opacity    : 0.8;
  transition : opacity 0.3s;
}

.media-item:focus .media-item__img,
.media-item:hover .media-item__img {
  opacity : 1;
}

.media-item__title {
  margin    : 0;
  padding   : 0.5em;
  font-size : 1em;
}

/* Demo specific styles */

/* Buttons */

.wavo-reveals .btn {
  margin     : 0;
  padding    : 0;
  color      : inherit;
  border     : 0;
  background : none;
}

.wavo-reveals .btn:focus {
  outline : none;
}

.wavo-reveals .btn--trigger {
  display     : block;
  margin      : 1em;
  white-space : nowrap;
}

.btn--default,
.btn--trigger::before {
  display     : inline-block;
  border      : 2px solid;
  text-align  : center;
  text-indent : 0;
  font-weight : bold;
  line-height : 1.7;
}

.btn--trigger::before {
  content : 'Press';
  width   : 4em;
  height  : 2em;
  margin  : 0 0.75em;
}

.btn--trigger:active::before {
  content : 'Ouch!';
}

.btn--default {
  margin  : 2vh 0 0;
  padding : 0 1em;
}

.btn--tool {
  display   : block;
  margin    : 1em 0;
  color     : #8a7c78;
  font-size : 1.3em;
}

.btn--menu {
  position       : absolute;
  top            : 3vw;
  right          : 3vw;
  color          : #939391;
  pointer-events : visible;
}

.btn--close {
  z-index   : 100;
  position  : absolute;
  top       : 3vw;
  right     : 3vw;
  font-size : 0.75em;
}

/* Menu */

.wavo-reveals .menu {
  z-index  : 100;
  position : fixed;
  top      : 0;
  right    : 0;
  width    : 320px;
  height   : 100vh;
}

.wavo-reveals .menu {
  pointer-events : none;
}

.menu--open {
  pointer-events : visible;
}

.menu .block-revealer__content {
  position : relative;
  height   : 100%;
}

.menu__inner {
  width           : 100%;
  height          : 100%;
  margin          : 0;
  padding         : 20vh 3em;
  overflow        : hidden;
  background      : #fcf652;
  list-style-type : none;
}

.menu__item {
  padding : 0.15em;
}

.menu__item {
  transform  : translate3d(-13em,0,0);
  transition : transform 0s 0.4s;
}

.btn--close {
  opacity : 0;
}

.menu--open .btn--close,
.menu--open .menu__item {
  opacity    : 1;
  transform  : translate3d(0,0,0);
  transition : opacity 0.4s 0.135s,
               transform 0.4s 0.135s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.menu--open .menu__item:nth-child(2) {
  transition-delay : 0.165s;
}

.menu--open .menu__item:nth-child(3) {
  transition-delay : 0.195s;
}

.menu--open .menu__item:nth-child(4) {
  transition-delay : 0.225s;
}

.menu .menu__link {
  color       : #4f4f54;
  font-size   : 3.5vw;
  font-weight : bold;
}

.menu .menu__link:focus,
.menu .menu__link:hover {
  color           : #000;
  outline         : none;
  text-decoration : line-through;
}

.wavo-reveals .box {
  width     : 100%;
  max-width : 600px;
  margin    : 16vh 0 0 0;
  font-size : 1.25em;
}

.box--small {
  max-width : 500px;
}

.box--border {
  padding : 2em 3em;
  border  : 2px solid;
}

.wavo-reveals .form {
  z-index  : 3;
  position : fixed;
  top      : 0;
  left     : 0;
  width    : 100%;
  height   : 100vh;
}

.wavo-reveals .form {
  pointer-events : none;
}

.form--open {
  pointer-events : visible;
}

.form__inner {
  position   : absolute;
  top        : 0;
  left       : 0;
  width      : 100%;
  height     : 100%;
  min-height : 400px;
  padding    : 5vw;
  background : #fcf652;
}

.form__section {
  width      : 80%;
  max-width  : 380px;
  margin     : 0 auto;
  padding    : 0.5em 0;
  text-align : left;
  font-size  : 1.25em;
}

.form__section--title {
  max-width   : 380px;
  margin      : 0 auto;
  padding     : 0 0 1em;
  font-size   : 2.35vw;
  line-height : 1.1;
}

.form__section {
  opacity    : 0;
  transform  : translate3d(0,100px,0);
  transition : transform 0s 0.6s,
               opacity 0s 0.6s;
}

.form--open .form__section {
  opacity                    : 1;
  transform                  : translate3d(0,0,0);
  transition                 : transform 1s 0.3s,
                               opacity 1s 0.3s;
  transition-timing-function : cubic-bezier(0.2,1,0.2,1);
}

.form--open .form__section:nth-child(2) {
  transition-delay : 0.35s;
}

.form--open .form__section:nth-child(3) {
  transition-delay : 0.40s;
}

.form--open .form__section:nth-child(4) {
  transition-delay : 0.45s;
}

.form--open .form__section:nth-child(5) {
  transition-delay : 0.50s;
}

.form--open .form__section:nth-child(6) {
  transition-delay : 0.55s;
}

.form__label {
  display : block;
  width   : 100%;
  padding : 0.25em 0;
  flex    : none;
}

.form__input {
  padding   : 1vh;
  font-size : 1.5em;
}

.form__input,
.form__select {
  width       : 100%;
  border      : 2px solid;
  background  : transparent;
  font-weight : bold;
}

.form__input:focus,
.form__select:focus {
  outline : none;
}

.form__section--right {
  text-align : right;
}

.revealers-modal {
  z-index        : 100;
  position       : fixed;
  top            : 50%;
  left           : 50%;
  width          : 100%;
  max-width      : 1140px!important;
  font-size      : 1.1em;
  transform      : translate3d(-50%,-50%,0);
  pointer-events : none;
}

.modal--open {
  pointer-events : visible;
}

.modal__inner {
  padding    : 2.5em;
  color      : #fff;
  background : #aaa;
}

.modal__title {
  margin    : 0 0 1em 0;
  font-size : 1.5em;
}

.overlay {
  position       : fixed;
  top            : 0;
  left           : 0;
  width          : 100%;
  height         : 100vh;
  opacity        : 0;
  background     : rgba(0,0,0,0.5);
  transition     : opacity 0.4s;
  pointer-events : none;
}

.modal--open + .overlay {
  opacity        : 1;
  pointer-events : visible;
}

.wavo-reveals .dual {
  position : relative;
}

.dual__inner {
  position : absolute;
  width    : 100%;
  height   : 100%;
}

.dual__half {
  position        : absolute;
  right           : 0;
  width           : 100%;
  height          : 100%;
  background-size : cover;
}

.dual__content {
  display         : flex;
  position        : relative;
  width           : 50%;
  padding         : 1.5em 2.5em;
  color           : #8a7c78;
  font-size       : 1.75em;
  flex-direction  : column;
  justify-content : center;
  line-height     : 1.4;
}

.dual__content {
  opacity        : 0;
  transform      : translate3d(60px,0,0);
  transition     : opacity 0.55s 0.4s,
                   transform 0.55s 0.4s;
  pointer-events : none;
}

.dual__content.dual__content--show {
  opacity        : 1;
  transform      : translate3d(0,0,0);
  pointer-events : visible;
}

.wavo-reveals .author {
  display   : block;
  margin    : 1em 0 0 0;
  font-size : 0.65em;
}

.wavo-reveals .media {
  position  : relative;
  width     : 100%;
  max-width : 100%;
}

.media__inner {
  display  : block;
  position : relative;
}

.media__image {
  display   : block;
  max-width : 100%;
}

.media__toolbar {
  display         : flex;
  position        : absolute;
  top             : 0;
  right           : 0;
  width           : 100%;
  height          : 100%;
  padding         : 1.5em 2.5em;
  color           : #1d1d2d;
  overflow        : hidden;
  font-size       : 1.75em;
  flex-direction  : column;
  justify-content : center;
  line-height     : 1.4;
}

.btn--tool {
  opacity                    : 0;
  transform                  : translate3d(200%,0,0);
  transition                 : opacity 0.6s 0.28s,
                               transform 0.6s 0.28s;
  transition-timing-function : ease,
                               cubic-bezier(0.785, 0.135, 0.15, 0.86);
  pointer-events             : none;
}

.js .btn--tool:nth-child(2) {
  transition-delay : 0.32s;
}

.js .btn--tool:nth-child(3) {
  transition-delay : 0.34s;
}

.media__toolbar--show .btn--tool {
  opacity        : 1;
  transform      : translate3d(0,0,0);
  pointer-events : visible;
}

.media__toolbar_content {
  opacity                    : 0;
  transform                  : translate3d(200%,0,0);
  transition                 : opacity 0.6s 0.28s,
                               transform 0.6s 0.28s;
  transition-timing-function : ease,
                               cubic-bezier(0.785, 0.135, 0.15, 0.86);
  pointer-events             : none;
}

.media__toolbar--show .media__toolbar_content {
  opacity        : 1;
  transform      : translate3d(0,0,0);
  pointer-events : visible;
}

/* Demo themes */

.demo-menu {
  color      : #828282;
  background : #4f4f54;
}

.demo-menu a {
  color : #c5c149;
}

.demo-menu a:focus,
.demo-menu a:hover {
  color : #fcf652;
}

.demo-split {
  color      : #fff;
  background : #ff784a;
}

.js .demo-split.loading::before {
  background : #fff;
}

.js .demo-split.loading::after {
  background : #ff784a;
}

.demo-form {
  color      : #252527;
  background : #767df9;
}

.demo-form a:not(.pater) {
  color : #fff;
}

.demo-form a:focus,
.demo-form a:hover {
  color : #252527;
}

.demo-modal {
  color      : #bfbfbf;
  background : #6f6f6f;
}

@media
  screen
  and (max-width : 56.250em) {
  .btn--tool {
    font-size : 3vw;
  }

  .media__toolbar {
    padding : 3.5vw;
  }
}

@media
  screen
  and (max-width : 50em) {
  .demo {
    margin    : 0.5em 1em 0.25em 0;
    font-size : 1em;
  }

  .content--full {
    min-height : 0;
  }

  .content__title {
    font-size : 2em;
  }

  .content__title--medium {
    font-size : 1.75em;
  }

  .content__title--small {
    font-size : 1.15em;
  }

  .content__title--half {
    width : 100%;
  }

  .content__title--right {
    padding : 0 5vw;
  }

  .content__title--left {
    margin-left : 0;
  }

  .flexy--row {
    flex-direction : column;
  }

  .form__section,
  .form__title {
    font-size : 0.85em;
  }

  .triggers {
    width     : 100%;
    padding   : 0;
    border    : 0;
    font-size : 0.85em;
  }

  .revealers-modal {
    font-size : 0.85em;
  }

  .menu .menu__link {
    font-size : 2em;
  }

  .wavo-reveals .box {
    padding   : 5vw;
    font-size : 0.85em;
  }

  .box--border {
    border : none;
  }

  .dual__content {
    min-height : 200px;
    padding    : 1em;
    font-size  : 0.85em;
  }

  .wavo-reveals .dual {
    margin-top : 0;
  }
}

.reveals-content .block-revealer__content,
.reveals-content .elementories-reveal-item {
  display : inline-block;
}

.block-revealer__element {
  position       : absolute;
  top            : 0;
  left           : 0;
  width          : 100%;
  height         : 100%;
  height         : calc( 100% + 1px );
  opacity        : 0;
  background     : #000;
  pointer-events : none;
}

.media .block-revealer__element {
  position       : absolute;
  top            : 0;
  right          : 0;
  left           : auto;
  width          : 100%;
  height         : calc( 100% + 1px );
  opacity        : 0;
  background     : #000;
  pointer-events : none;
}

/* .block-revealer__content { width: 50%; } */

.reveals-content .block-revealer__content,
.reveals-modal .block-revealer__content {
  width : 100%;
}

.modal--open + .overlay {
  z-index         : 99997;
  display         : flex;
  align-items     : center;
  justify-content : center;
}

.modal--open {
  z-index : 99998;
}

.reveals-modal .block-revealer__element {
  z-index : 99999;
}

.reveals-modal .btn--modal-close-top {
  position  : absolute;
  bottom    : 30px;
  color     : #fff;
  font-size : 30px;
  cursor    : pointer;
}

.modal__inner.modal-inner-type-template .os-content {
  height     : auto!important;
  text-align : center;
}

.modal__inner.modal-inner-type-content .os-content {
  display        : flex;
  height         : 100%!important;
  flex-direction : column;
}

.elementories--modal-open {
  display : inline-block;
  cursor  : pointer;
}
