.btn-project {
  font-family: "Roboto Bold", Arial, Helvetica, sans-serif;
  
  color: white;
  font-size: 400%;
  line-height: 1;
  border: none;
  background: none;
  background-color: inherit;
  border-radius: 8px;
  cursor: pointer;
  display: block;
  opacity: 0.6;
  transition: 0.3s;
  -webkit-transition: 0.3s;
  padding: 0 64px;
  margin-top: 8px;
  margin-bottom: 8px;
  width: fit-content;
  transform: rotateZ(0deg);
  animation: 0.3s cubic-bezier(0, .66, .33, 1) 0s 1 slide-in-from-left;
  animation-fill-mode: backwards;
  will-change: transform;
}

.btn-project:hover {
  opacity: 1;
  margin-left: 2.5%;
}

.font-project {
  font-family: "Roboto Bold", Arial, Helvetica, sans-serif;
  
  color: white;
  font-size: 400%;
  line-height: 1;
  display: block;
  padding: 0 64px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.margin-container {
  padding: 8em;
}

.gallery {
  width: 80%;
  box-sizing: border-box;
  display: flex;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 32px;
  margin: 0 auto;
  border-radius: 42px;
  background-color: #ddd;
}

.gallery::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.gallery>img {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  margin-right: 16px;
  scroll-snap-align: center;
  clear: both;
}

.gallery>img:last-child {
  margin-right: 0;
}

.gallery-alt {
  width: 80%;
  max-width: 1320px;
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  border-radius: 48px;
  background-color: #ddd;
}

.gallery-alt>img {
  width: 25%;
  margin: 32px 8px;
  border-radius: 24px;
  min-width: 0;
}

.gallery-alt>img:first-child {
  margin-left: 32px;
}

.gallery-alt>img:last-child {
  margin-right: 32px;
}

.gallery.portrait {
  padding: 24px;
  border-radius: 52px;
  width: 320px;
}

.gallery.portrait>img {
  border-radius: 32px;
  width: 100%;
  height: auto;
  margin-left: 0;
}

.gallery-alt.landscape>img{
  width: 50%;
}

.gallery-controls {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto;
  width: 80%;
  padding: 0 32px;
  margin: 8px auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.gallery-controls.portrait {
  width: 320px;
}

.gallery-controls span {
  display: inline-block;
  text-align: left;
  margin: auto 0;
}

.gallery-controls span.right {
  text-align: right;
}

.gallery-indicators {
  display: flex;
  margin: 8px auto;
  align-items: center;
  justify-content: center;
}

.btn-prev,
.btn-next {
  display: inline-block;
  text-align: center;
  cursor: pointer;
  width: 24px;
  margin: 0 8px;
  padding: 2px;
  color: white;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  font-size: 24px;
  transition: 0.3s ease;
  border-radius: 32px;
  user-select: none;
}

.btn-prev:hover,
.btn-next:hover {
  color: orange;
}

.info-block {
  background-color: #333;
  padding: 16px;
  border-radius: 16px;
  width: 160px;
  height: 160px;
  font-size: 2em;
}

.parallax-video {
  width: 100%;
  height: 900px;
}

.parallax-video video {
  min-width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -999;
}

#image-alt {
  width: 75%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.caption {
  display: block;
  margin: 8px 0;
  margin-left: 25%;
  padding-right: 32px;
  color: #aaa;
  text-align: right;
  font-family: "Roboto Light", Arial, Helvetica, sans-serif;
  
  font-size: 13px;
  text-transform: uppercase;
}

.caption.center {
  display: block;
  max-width: 480px;
  margin: 8px auto;
  margin-top: 16px;
  padding: 0 16px;
  text-align: center;
}

.section-separator {
  height: 8em;
}

#font-title {
  font-family: "Roboto Condensed Bold", Arial, Helvetica, sans-serif;
  
  font-size: 8vw;
  line-height: 0.8;
  text-transform: uppercase;
}

#font-title-animated {
  font-family: "Roboto Condensed Bold", Arial, Helvetica, sans-serif;
  
  font-size: 8vw;
  line-height: 0.8;
  text-transform: uppercase;
  animation: 1s ease-in-out 2s 1 fade-out;
  animation-fill-mode: forwards;
}

.font-block span {
  box-sizing: border-box;
  background-color: #262626;
  color: #eee;
  padding: 4px 16px;
  text-transform: uppercase;
  line-height: 2;
}

.quick-link {
  display: flex;
  justify-content: space-between;
  margin: 8px 32px;
  font-family: "Roboto Light", Arial, Helvetica, sans-serif;
  
}

@media only screen and (max-device-width: 1400px) {
}

@media only screen and (max-width: 1000px) {
  .btn-project {
    font-size: 250%;
    padding: 0 32px;
  }

  #image-alt {
    width: 100%;
  }

  .caption {
    margin-top: 4px;
    margin-bottom: 4px;
    padding-right: 8px;
  }

  .margin-container {
    padding: 1em;
  }

  .gallery {
    width: 100%;
    padding: 16px;
    margin: 0 auto;
    border-radius: 0;
  }

  .gallery.portrait {
    border-radius: 48px;
  }

  .gallery>img {
    margin-right: 8px;
    border-radius: 16px;
  }

  .gallery.portrait>img {
    border-radius: 24px;
  }

  .gallery-alt {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 16px;
    width: 100%;
    margin: 0;
    padding: 16px;
    border-radius: 0;
    background-color: #ddd;
  }

  .gallery-alt>img {
    height: auto;
    width: 100%;
    margin: 0;
    border-radius: 24px;
  }

  .gallery-alt>img:first-child,
  .gallery-alt>img:last-child {
    margin: inherit;
  }

  .gallery-controls {
    text-align: center;
    padding: 0;
    width: 100%;
  }

  .gallery-controls.portrait {
    width: 100%;
  }

  .gallery-controls span.right {
    text-align: center;
  }

  .btn-prev,
  .btn-next {
    font-size: 2em;
    margin: 0 24px;
  }

  .section-separator {
    height: 4em;
  }

  #font-title {
    margin-top: 96px;
  }

  #font-title-animated {
    margin-top: 96px;
    animation: none;
  }

  .quick-link {
    display: grid;
    grid-template-columns: auto;
    gap: 16px;
    justify-content: center;
    text-align: center;
    margin: 8px;
    margin-bottom: 32px;
  }
}

@media only screen and (max-height: 800px) {
  .btn-project {
    font-size: 250%;
    padding: 0 32px;
  }
}

@keyframes slide-in-from-left {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

/* Safari 11+ */
@media not all and (min-resolution:.001dpcm) {
  @supports (-webkit-appearance:none) and (stroke-color:transparent) {
    /* adds space at the far right */
    .gallery::after {
      content: '';
      padding-right: inherit;
    }
  }
}