@font-face {
  font-family: "SketchBlockLight";
  src: url("../assets/fonts/SketchBlockLight.woff2") format("woff2"),
       url("../assets/fonts/SketchBlockLight.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "HandproScribbles";
  src: url("../assets/fonts/HandproScribbles.woff2") format("woff2"),
       url("../assets/fonts/HandproScribbles.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: repeat center / 50% url("../assets/background.jpg");
  color: #111;
  font-family: SketchBlockLight, "Comic Sans MS", cursive, sans-serif;
}

img {
  border: 0;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.home-banner {
  display: block;
  width: 100%;
  height: auto;
}

.page-banner {
  display: block;
  width: 80%;
  height: auto;
  margin: 0 auto 12px;
}

.page-banner img {
  display: block;
  width: 100%;
  height: auto;
}

/* Homepage random grid (Modula) */

.modula .items {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 1600px;
}

.modula .items .item {
  position: absolute;
  overflow: hidden;
  background-color: #000;
  opacity: 1;
  transition: transform 0.3s ease-out, opacity 0.2s linear, top 0.3s, left 0.6s;
}

html.js .modula .items .item {
  opacity: 0;
}

html.js .modula .items .item.tg-loaded {
  opacity: 1;
}

.modula .items .item img.pic {
  position: absolute;
  display: block;
  max-width: 999em !important;
  transition: width 0.3s, height 0.3s, transform 0.3s linear, opacity 0.2s linear;
}

.modula .items .item:hover img.pic {
  opacity: 0.5;
}

.modula .items .item .figc {
  color: #fff;
  text-align: right;
  position: absolute;
  left: 0;
  width: 100%;
  padding: 0;
  pointer-events: none;
}

.modula .item.effect-pufrobo h2 {
  font-family: SketchBlockLight, cursive, sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 2.6vmax;
  opacity: 0.8;
  margin: 0;
  position: absolute;
  right: 30px;
  left: 30px;
  padding: 10px 0;
  text-align: right;
  top: 10%;
  transition: transform 0.35s;
  transform: translate3d(0, 20px, 0);
}

.modula .item.effect-pufrobo:hover h2 {
  transform: translate3d(0, 0, 0);
}

.modula .item.effect-pufrobo h2::after {
  position: absolute;
  top: 80%;
  left: 0;
  width: 100%;
  height: 4px;
  background: #fff;
  content: "";
  transform: translate3d(0, 40px, 0);
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
}

.modula .item.effect-pufrobo:hover h2::after {
  margin-top: 10px;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.modula .items .item .tile-inner {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

/* Project masonry grid */

#grid {
  width: 90%;
  margin: auto;
  position: relative;
}

html.js #grid {
  opacity: 0;
  transition: opacity 0.25s ease;
}

html.js #grid.is-ready {
  opacity: 1;
}

#grid .item {
  width: 31.3%;
  margin: 1%;
  float: left;
  overflow: visible;
}

@media (max-width: 1500px) {
  #grid .item {
    width: 48%;
  }
}

@media (max-width: 767px) {
  #grid .item {
    width: 98%;
  }
}

.inner-column {
  width: 75%;
  margin-left: auto;
  margin-right: auto;
}

.row {
  margin: 0 2.08%;
}

.row::after {
  content: "";
  display: table;
  clear: both;
}

.container {
  position: relative;
  text-align: left;
}

.container-right {
  z-index: 2;
  position: relative;
  text-align: right;
  margin: 3.01% 0 0 -16.6%;
}

.container-left {
  z-index: 2;
  position: relative;
  text-align: left;
  margin: 3.01% -16.6% 0 0;
}

.storyboard-container {
  position: relative;
  float: left;
  width: 50%;
}

.storyboard-container img.narrow {
  display: block;
  width: 100%;
  margin: 0 0 3% 0;
}

.storyboard-container img.narrow:last-child {
  margin-bottom: 0;
}

.logo-container {
  position: relative;
  float: left;
  width: 25%;
}

.float-right {
  margin: 0 -22% 1.5% 3.01%;
  width: 75%;
  float: right;
  height: auto;
  overflow: visible;
  z-index: 2;
}

.float-left {
  margin: 0 3.01% 1.5% -22%;
  width: 75%;
  float: left;
  height: auto;
  overflow: visible;
  z-index: 2;
}

.double-left-top {
  margin: 3.01% 25% 3.01% -25%;
  width: 125%;
  height: auto;
  overflow: visible;
}

.double-left-bottom {
  margin: -25% -10% 2.5% 0;
  width: 125%;
  height: auto;
  overflow: visible;
}

.double-right-top {
  margin: 3.01% 25% 3.01% 3.01%;
  width: 125%;
  height: auto;
  overflow: visible;
}

.double-right-bottom {
  margin: -25% -10% 2.5% -25%;
  width: 125%;
  height: auto;
  overflow: visible;
}

.narrow {
  width: 100%;
  height: auto;
}

.medium {
  margin: 3.01% -12.5%;
  width: 125%;
  overflow: visible;
  height: auto;
  text-align: center;
  position: relative;
}

.wide {
  margin: 3.01% -16.66%;
  width: 133.33%;
  overflow: visible;
  height: auto;
  text-align: center;
  position: relative;
}

.superwide-left {
  margin: 3.01% 0 3.01% -25%;
  width: 141.66%;
  overflow: visible;
  height: auto;
  text-align: center;
  position: relative;
}

.storyboard {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 12.5%;
  margin-bottom: 12.5%;
  width: 50%;
  height: auto;
}

.logo-container .storyboard,
.logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 3.01%;
  margin-bottom: 3.01%;
  width: 50%;
  height: auto;
}

.bias-left {
  margin: 3.01% -10%;
  width: 110%;
  height: auto;
  overflow: visible;
}

.label-right {
  margin: -12.5% -10% 2.5% 0;
  width: 50%;
  height: auto;
  overflow: visible;
  float: right;
}

.label-left {
  margin: -12.5% 0 2.5% -10%;
  width: 50%;
  height: auto;
  overflow: visible;
  float: left;
}

.caption,
.inner-column p,
.container p,
.container-left p,
.container-right p {
  font-family: SketchBlockLight, cursive, sans-serif;
  font-size: 20px;
  line-height: 1.35;
  font-weight: normal;
  margin: 0.6em 0 1em;
}

h2.scribble {
  font-family: HandproScribbles, cursive, sans-serif;
  font-size: 4vmax;
  line-height: 0;
  margin: 0.4em 0;
  opacity: 0.2;
  font-weight: normal;
}

h2.scribble-right {
  text-align: right;
}

h2.scribble-center {
  text-align: center;
}

h2.scribble-left {
  text-align: left;
}

.youtube-responsive-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
  margin: 3.01% 0;
}

.youtube-responsive-container iframe,
.youtube-responsive-container video,
.youtube-responsive-container object,
.youtube-responsive-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.native-video {
  display: block;
  width: 100%;
  height: auto;
  margin: 3.01% 0;
  background: #000;
}

.media-frame {
  position: relative;
  display: block;
  line-height: 0;
}

.media-frame .media-frame-border {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.media-frame-stage {
  position: absolute;
  overflow: hidden;
  background: #000;
}

.media-frame-stage video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

video.medium,
video.wide,
video.narrow,
video.float-left,
video.float-right,
video.bias-left,
video.label-right,
video.label-left,
video.double-left-top,
video.double-left-bottom,
video.double-right-top,
video.double-right-bottom,
video.logo,
video.storyboard {
  display: block;
  height: auto;
  background: #000;
}

.storyboard-container .media-frame.narrow {
  display: block;
  width: 100%;
  margin: 0 0 3% 0;
}

.storyboard-container .media-frame.narrow:last-child {
  margin-bottom: 0;
}

/* Image comparison (Twenty20) */

.compare {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 3.01% 0 20px;
  user-select: none;
  cursor: ew-resize;
}

.compare img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  pointer-events: none;
}

.compare .compare-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 20;
}

.compare .compare-before img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
}

.compare .compare-after {
  display: block;
  width: 100%;
}

.compare-handle {
  height: 38px;
  width: 38px;
  position: absolute;
  top: 50%;
  margin-left: -22px;
  margin-top: -22px;
  border: 3px solid white;
  border-radius: 1000px;
  box-shadow: 0 0 12px rgba(51, 51, 51, 0.5);
  z-index: 40;
  cursor: pointer;
}

.compare-handle::before,
.compare-handle::after {
  content: " ";
  display: block;
  background: white;
  position: absolute;
  z-index: 30;
  width: 3px;
  height: 9999px;
  left: 50%;
  margin-left: -1.5px;
  box-shadow: 0 0 12px rgba(51, 51, 51, 0.5);
}

.compare-handle::before {
  bottom: 50%;
  margin-bottom: 22px;
}

.compare-handle::after {
  top: 50%;
  margin-top: 22px;
}

.compare-handle .arrow-left,
.compare-handle .arrow-right {
  width: 0;
  height: 0;
  border: 6px solid transparent;
  position: absolute;
  top: 50%;
  margin-top: -6px;
}

.compare-handle .arrow-left {
  border-right: 6px solid white;
  left: 50%;
  margin-left: -17px;
}

.compare-handle .arrow-right {
  border-left: 6px solid white;
  right: 50%;
  margin-right: -17px;
}

.compare-framed {
  overflow: hidden;
}

.compare-border {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.compare-viewport {
  position: relative;
  overflow: hidden;
  background: #000;
}

.compare-framed .compare-viewport {
  position: absolute;
}

.compare-viewport .compare-after {
  display: block;
  width: 100%;
  height: 100%;
}

.compare-viewport .compare-after video {
  display: block;
  width: 100%;
  height: auto;
}

.compare-framed .compare-viewport .compare-after video {
  height: 100%;
  object-fit: cover;
}

.compare-viewport .compare-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 20;
}

.compare-viewport .compare-before video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.compare-viewport .compare-handle {
  z-index: 40;
}

@media (max-width: 767px) {
  .medium,
  .wide,
  .bias-left,
  .double-left-top,
  .double-left-bottom,
  .double-right-top,
  .double-right-bottom,
  .float-left,
  .float-right,
  .superwide-left {
    width: 100%;
    margin: 3% 0;
    float: none;
  }

  .label-right {
    width: 55%;
    margin: -10% 0 2% auto;
    float: right;
  }

  .label-left {
    width: 55%;
    margin: -10% auto 2% 0;
    float: left;
  }

  .container-left,
  .container-right {
    margin: 0;
  }

  .inner-column {
    width: 90%;
  }

  .caption,
  .inner-column p {
    font-size: 16px;
  }

  .modula .item.effect-pufrobo h2 {
    font-size: 16px;
    left: 12px;
    right: 12px;
  }
}
