/* Config */
@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,700');

html {
  font-size: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Montserrat", sans-serif !important;
  box-sizing: border-box;
}

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

@-ms-viewport {
  width: device-width;
}
a {
  color: white;
  font-weight: 400;
  text-decoration: none;
}
a:hover {
  color: #bbaad2;
}

/* Animation */
@-webkit-keyframes scale {
  from {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
  to {
    -webkit-transform: scale3d(1.2, 1.2, 1);
            transform: scale3d(1.2, 1.2, 1);
  }
}
@keyframes scale {
  from {
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
  to {
    -webkit-transform: scale3d(1.2, 1.2, 1);
            transform: scale3d(1.2, 1.2, 1);
  }
}
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
body {
  text-align: center;
  font-weight: 300;
  color: white;
  background-color: rgba(33, 33, 33, 0.9);
  line-height: 1.45;
}

.pad, .hero__content__heading, .hero__content__blurb {
  padding-right: .75rem;
  padding-left: .75rem;
}

.bg-hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  background: url("https://www.emanuelafolliero.it/emanuela-folliero.jpg") no-repeat center center;
  background-size: cover;
  z-index: -999;
  -webkit-animation: scale reverse .5s ease-in;
          animation: scale reverse .5s ease-in;
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

.bg-hero:after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background-color: #0B080F;
  opacity: 0.77;
  z-index: -888;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

.fade-in {
  opacity: 0;
  -webkit-animation: fadeIn ease 1.25s;
          animation: fadeIn ease 1.25s;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

/* Hero Module styles */
.fade-in.hero {
  -webkit-animation-delay: 1s;
          animation-delay: 1s;
}

.fade-in.hero__content__heading {
  -webkit-animation-delay: 1.25s;
          animation-delay: 1.25s;
}

.fade-in.hero__content__blurb {
  -webkit-animation-delay: 1.75s;
          animation-delay: 1.75s;
}

.fade-in.social-icons {
  -webkit-animation-delay: 2.5s;
          animation-delay: 2.5s;
}

.fade-in.copy {
  -webkit-animation-delay: 3.5s;
          animation-delay: 3.5s;
}

.hero {
  width: 100%;
  max-width: 32em;
  margin: 0 auto;
  display: table;
  height: 90vh;
  color: white;
  text-align: center;
}

.hero__content {
  display: table-cell;
  vertical-align: middle;
  height: calc(100% - 32em);
  margin: 1.5rem auto;
  text-shadow: 1px 0px 1px rgba(0, 0, 0, 0.3);
}
.hero__content h4 {
  text-transform: uppercase;
  letter-spacing: .32em;
  font-size: .88em;
}

.hero__content__heading {
  font-weight: 500;
  font-size: 1.55em;
  text-transform: none;
  margin-top: 0rem;
  margin-bottom: 0rem;
  letter-spacing: 0;
}

.hero__content__blurb {
  font-size: 1.2em;
  margin-top: 0px
}

/* Styles */
.logo {
  width: 100%;
  margin: 0 auto;
  padding-top: 1.5rem;
  font-size: 1.75rem;
}

h1 {
  font-size: 60px;
  margin: 0px 0px;
  margin-top: 100px;
}

.social-icons {
  margin: 1.5rem;
  display: block;
}
.social-icons a {
  display: inline-block;
  margin: 1em 0.85rem;
}

.copy {
  display: block;
  margin: 0 auto;
  padding-top: 1.5rem;
  clear: both;
  font-size: .8em;
  text-align: center;
  letter-spacing: .1em;
}

/* INSTAGRAM */
.igviewer {
  position: fixed;
  top: 0; bottom: 0; right: 0; left: 0;
  background-color: RGBA(29, 31, 32, 0.9);

  img {
    display: block;
    margin: 1rem auto;
    height: calc(100vh - 2rem);
    width: auto;
    box-shadow: 0px 10px 40px 10px rgba(0, 0, 0, 0.8);
  }
  &.hidden {
    display: none;
  }
}

.instagram {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-flow: row wrap;
  flex-flow: row wrap;
  overflow: hidden;
  width: 1024px;
  margin: 0 auto;
  .image {
    background-repeat: none;
    background-position: center center;
    background-size: 100%;
    width: 248px; height: 248px;
    margin: 4px;
    overflow: hidden;
    transition: all 200ms ease;
    position: relative;
    cursor: pointer;
    .caption {
      display: none;
      position: absolute;
      bottom: 0; left: 0; right: 0;
      background-color: rgba(0,0,0,0.7);
      color: #FFF;
      padding: 1em;
    }
    &:hover {
      background-size: 110%;
      .caption {
        display: block;
      }
    }
  }
}

@media screen and (max-width: 767px) {
 h1 {
   font-size: 30px;
   margin-top: 150px;
 }
 .hero__content__heading {
   font-size: 16px
 }
 .hero__content__blurb {
   font-size: 1em;
 }
 .copy {
   padding-top: 0rem;
   position: absolute;
   bottom: 40px;
   margin: 0 auto;
   display: none;
 }
}
