@-webkit-keyframes galleryAttention {
  0%,
  7%,
  14% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  4%,
  11% {
    -webkit-transform: translateY(25%);
    transform: translateY(25%);
  }
}

@keyframes galleryAttention {
  0%,
  7%,
  14% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  4%,
  11% {
    -webkit-transform: translateY(25%);
    transform: translateY(25%);
  }
}

@-webkit-keyframes galleryAttentionReverse {
  0%,
  7%,
  14% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  4%,
  11% {
    -webkit-transform: translateY(-25%);
    transform: translateY(-25%);
  }
}

@keyframes galleryAttentionReverse {
  0%,
  7%,
  14% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  4%,
  11% {
    -webkit-transform: translateY(-25%);
    transform: translateY(-25%);
  }
}

.js .carousel-inner > .item.template-gallery {
  background: none !important;
}

.gallery,
.gallery-item {
  height: 100%;
}

.gallery {
  display: none;
  position: relative;
}

.js .gallery {
  display: block;
}

.gallery-item {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: 50%;
}

.gallery-item.top,
.gallery-item.bottom,
.gallery-item.active {
  display: block;
}

.gallery-item.top {
  -webkit-transform: translateY(-100%);
  -ms-transform: translateY(-100%);
  transform: translateY(-100%);
}

.gallery-item.bottom {
  -webkit-transform: translateY(100%);
  -ms-transform: translateY(100%);
  transform: translateY(100%);
}

.gallery-item.next {
  -webkit-transform: translateY(0);
  -ms-transform: translateY(0);
  transform: translateY(0);
}

.gallery-body {
  top: 50%;
  width: 100%;
  padding: 48px 64px 48px 128px;
  color: #fff;
  background-color: rgba(0, 0, 0, .5);
  z-index: 10;
}

/*.js .gallery-body {
  opacity: .5;
  visibility: visible;
  -webkit-transform: translate3d(0, -75%, 0);
  transform: translate3d(0, -75%, 0);
}

.js .gallery-body.active {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}*/

.gallery-btn-wrap {
  position: absolute;
  left: 50%;
}

.gallery-btn {
  display: block;
  width: 100%;
  padding: 12px 24px 10px 36px;
  line-height: 1;
  border: 0;
  text-align: center;
  cursor: pointer;
  border-radius: 500px;
  color: #fff;
  opacity: .75;
  background: 14px 50%/20px no-repeat, rgba(0, 0, 0, .75);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.splash-gone .gallery-btn {
  -webkit-animation: galleryAttention 5s ease infinite;
  animation: galleryAttention 5s ease infinite;
}

.gallery-btn-prev {
  top: 24px;
  width: 166px;
  margin-left: -83px;
  background-image: url(../img/chevron-up.svg);
}

.gallery-btn-prev .gallery-btn {
  background-image: url(../img/chevron-up.svg);
  -webkit-animation-name: galleryAttentionReverse;
  animation-name: galleryAttentionReverse;
}

.gallery-btn-next {
  bottom: 24px;
  width: 154px;
  margin-left: -77px;
  background-image: url(../img/chevron-down.svg);
}

.gallery-btn-next .gallery-btn {
  background-image: url(../img/chevron-down.svg);
}

.gallery-body .gallery-text {
  margin-bottom: 0;
}

.template-gallery .item-inner {
  max-width: 840px;
}

.gallery-text {
  margin: 16px 0;
}

.gallery-features {
  margin: 0;
  padding: 0 0 0 18px;
  list-style-type: circle;
}

.gallery-grid:after {
  content: ' ';
  display: table;
  clear: both;
}

.gallery-figure {
  margin: 32px 0;
}

.gallery-link {
  display: block;
}

.gallery-image {
  width: 100%;
  max-width: 300px;
  vertical-align: top;
}

.js .gallery {
  overflow: hidden;
  height: calc(100% - 56px);
}

.carousel-inner > .item.template-gallery {
  padding-top: 0;
}

@media (min-width: 1200px) {
  .js .gallery {
    margin-top: 56px;
  }
}

@media (min-width: 600px) {
  .gallery-text {
    -webkit-columns: 2;
    -moz-columns: 2;
    columns: 2;
  }

  .gallery-figure {
    float: left;
  }

  .gallery-figure:nth-child(odd) {
    margin-right: 48px;
  }
}

@media (min-width: 1200px) {
  .gallery-body {
    position: absolute;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    max-width: 40%;
  }
}