html {
  scroll-behavior: smooth;

}

body {
  font-family: "DIN-Light"; 
  font-size: 18px;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  opacity: .9;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "DINPro-CondLight"; 
}

#sec1 {
  height: calc(100vh - 40px);
  width: 100%;
}

.font-light {
  font-family: "DIN-Light"; 
}

.font-cond {
  font-family: "DINPro-CondLight"; 
}

.container {
  max-width: 1100px;
  color: var(--white);
  clear: both;
}

.heading {
  font-family: "DINPro-CondLight"; 
  line-height: 1.2em;
  padding: 40px 0;
}

img, video {
  max-width: 100%;
  vertical-align: middle;
}

.controller {
  float: right;
  height: 40px;
}

.controller ul {
  padding: 0;
  margin: 0;
  display: flex;
  list-style: none;
}

.controller ul li {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin: 0 10px;
  position: relative;
  -webkit-transition: height .5s linear;
  -moz-transition: height .5s linear;
  -o-transition: height .5s linear;
  transition: height .5s linear;
}

.controller ul li.active, .controller ul li:hover {
  width: 20px;
  height: 40px;
}

.controller ul li:before {
  width: 0; 
  height: 0; 
  left: -20px;
  bottom: 0;
  border-top: 20px solid #ffffff4d;
  border-bottom: 20px solid transparent; 
  border-right: 20px solid #ffffff4d;
  content: '';
  position: absolute;
}

.controller ul li.active:before, .controller ul li:hover:before {
  border-top: 20px solid #ffffff4d;
  border-bottom: 20px solid transparent; 
  border-right: 20px solid #ffffff4d;
}

.arrow a {
  transition: 0.3s;
}

.arrow a:hover img {
  opacity: .6;
}

.masonry-wrapper {
  margin-right: auto;
  margin-left: auto;
}

.masonry {
  display: grid;
  grid-template-columns: repeat(1, minmax(100px,1fr));
  grid-gap: 20px;
  grid-auto-rows: 0;
  font-family: "DINPro-CondLight"; 
}

.masonry-item {
  border-top: 15px solid #ffffff4d;
  border-left: 15px solid #ffffff2e;
  position: relative;
  -webkit-transition: background .3s ease;
  -moz-transition: background .3s ease;
  -o-transition: background .3s ease;
  transition: background .3s ease;
}

.masonry-item:before {
  width: 0; 
  height: 0; 
  left: -15px;
  bottom: 0;
  border-top: 15px solid transparent;
  border-bottom: 15px solid white; 
  border-right:15px solid transparent;
  content: '';
  position: absolute;
}

.masonry-item:after {
  width: 0; 
  height: 0; 
  right: 0;
  top: -30px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent; 
  border-right: 15px solid #ffffff4d;
  content: '';
  position: absolute;
}

.masonry-item > .masonry-shadow {
  overflow: hidden;
  height: 100%;
}

.masonry-item.masonry-text:hover img, .masonry-item.masonry-text:hover .title {
  display: none;
}

.masonry-item img {
  /*padding-bottom: 15px;*/
  height: auto !important;
}

.masonry-item.masonry-text .desc {
  position: absolute;
  z-index: 9;
  height: 100%;
  top: 0;
  padding: 20px;
  font-size: 20px;
  visibility: hidden;
}

.masonry-item.masonry-text:hover .desc{
  visibility: visible;
}

.masonry span.title {
  position: absolute;
  bottom: 0;
  right: 0;
  display: block;
  padding: 5px 10px;
  font-size: 20px;
}

.come-in {
  transform: translateY(150px);
  animation: come-in 0.8s ease forwards;
}
.come-in:nth-child(odd) {
  animation-duration: 0.6s;
}
.already-visible {
  transform: translateY(0);
  animation: none;
}


@keyframes come-in {
  to { transform: translateY(0); }
}

@media only screen and (max-width: 992px) and (min-width: 768px) {
  .masonry {
    grid-template-columns: repeat(2, minmax(100px,1fr));
  }
}

@media only screen and (min-width: 993px) {
  .masonry {
    grid-template-columns: repeat(3, minmax(100px,1fr));
  }
}

@media only screen and (max-width: 768px) {
  .masonry-wrapper {
    max-width: 400px;
  }
  #sec1 {
    height: 100%;
  }
}

@font-face {
  font-family: "DIN-Light";  
  src: url("../fonts/DIN-Light.woff2") format("woff2"),
       url("../fonts/DIN-Light.woff2") format("woff2"),
       url("../fonts/DIN-Light.ttf") format("truetype"),
       url("../fonts/DIN-Light.otf") format("opentype");
}
@font-face {
  font-family: "DINPro-CondLight";
  src: url("../fonts/DINPro-CondLight.woff2") format("woff2"),
       url("../fonts/DINPro-CondLight.woff2") format("woff2"),
       url("../fonts/DINPro-CondLight.ttf") format("truetype"),
       url("../fonts/DINPro-CondLight.otf") format("opentype");
}