* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-weight: normal;
}

@font-face {
  font-family: 'Basis Grotesque Mono';
  src: url('fonts/basis_grotesque_mono-web.woff2') format('woff2'),
       url('fonts/basis_grotesque_mono-web.woff') format('woff');
}

body {
  font-family: 'Basis Grotesque Mono', monospace;
  overflow-y: scroll;
  color: #EE2D2F;
  letter-spacing: .1em;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  font-size: .9rem;
}

  html * {
    font-size: .9rem;
  }

main {
  min-height: 100vh;
  max-width: 90%;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  transition: 240ms ease height, 1s ease all;
}

  .ui-editing {
    display: flex;
    align-items: center;
    padding-right: 0.8em;
  }

  .__edit .ui-editing {
    visibility: visible;
  }

  .__edit main {
    background-image: linear-gradient(90deg,magenta,transparent 1px, transparent);
    background-size: 8.36%;
    border-bottom: 1px solid magenta;
    border-right: 1px solid magenta;
  }

  .__edit main:before {
    position: absolute;
    top: 0;
    right: 0;
    content: 'Debug'
    background: magenta;
    display: inline-block;
    padding: .25em .5em;
    font-family: monaco, monospace;
    font-size: 12px;
  }

  .__edit .photo {
    outline: 1px solid cyan;
  }

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

h2 {
  position: fixed;
  top: 2em;
  left: 2em;
  right: 2em;
  z-index: 2;
}

h3 {
  position: fixed;
  bottom: 2em;
  left: 2em;
  right: 2em;
  z-index: 4;
}

h2, h3 {
  text-transform: uppercase;
}

  @media screen and (max-width: 42em) {

    h2, h3 {
      text-align: center;
    }

    h3 {
      bottom: 3em;
    }

  }

img {
  height: auto;
  display: block;
  max-width: 100%;
  max-height: 100%;
}


/**
 * Grid
 */

.photo {
  line-height: 0;
  position: absolute;
  transition: 240ms ease filter;
  z-index: 1;
}
  .s__animate {
    transition: 240ms ease all;
  }

// .img-wrap:first-child {
//   padding-left: calc((100%/12));
//   width: 100%;
//   padding-right: calc((100%/12));
// }


.img-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
  box-shadow: inset 0 0 0 1px #eee;
}

  .img-wrap span {
    position: absolute;
    bottom: 0;
    left: 0;
    line-height: 1;
    font-size: 0.7rem;
    z-index: -1;
    display: block;
    opacity: 0;
    transition: 180ms ease all;
  }

  .photo:hover .img-wrap span  {
    z-index: 1;
    opacity: 1;
    transform: translateY(200%);
  }

  .img-wrap img {
    width: 100%;
    max-width: auto;
  }

  .img-wrap a {
    display: block;
    width: 2em;
    height: 2em;
    position: absolute;
    bottom: 0;
    right: 0;
  }

.handle {
  position: absolute;
  top: 0;
  left: 0;
  line-height: 1.5;
  padding: .5em;
  display: inline-block;
  width: 100%;
  height: 100%;
  color: transparent;
  cursor: move;
}

.ui-caption {
  z-index: 2;
  position: relative;
  font-size: 0.8rem;
  padding: .5em;
  width: 20em;
  left: -1px;
  font-family: 'Basis Grotesque Mono', monospace !important;
  border: 1px solid cyan;
}

.ui-btn {
  cursor: pointer;
  border: 1px solid;
  border-radius: 0;
  background: transparent;
  font-size: 0.8rem;
  line-height: 1.3;
  padding: 0.5em 1em .4em;
  font-family: 'Basis Grotesque Mono', monospace !important;
  color: inherit;
  text-transform: uppercase;
  margin-left: .5em;
}

.ui--delete {
  background: transparent;
  border: none;
  position: absolute;
  top: 0;
  right: 0;
  font-size: 1.2em;
  height: 2.9em;
  border: 0 solid transparent;
  line-height: 0.8;
  opacity: 0;
  border: none;
  background: cyan;
  padding: 0 0 0.15em;
  cursor: pointer;
  pointer-events: none;
  width: 3em;
}

  .ui--delete:focus {
    outline: none;
  }


  .edit-only {
    visibility: hidden;
    pointer-events: none;
  }
    .__edit .edit-only {
      visibility: visible;
      pointer-events: all;
    }

  .__edit .ui-btn {
    pointer-events: all;
    visibility: visible;
  }

  .__edit .photo:hover .ui--delete {
    opacity: 1;
  }

.packery-drop-placeholder {
  outline: 3px dashed #444;
  outline-offset: -6px;
  /* transition position changing */
  -webkit-transition: -webkit-transform 0.2s;
          transition: transform 0.2s;
}

.ui {
  background: transparent;
  padding: .25em 0;
  position: fixed;
  top: 1.4em;
  right: 1.8em;
  width: 50%;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 3;
}

  .ui select {
    border: 1px solid black;
    border-radius: 0;
    background: transparent;
    background: #ccc;
    height: 3em;
    width: 10em
    font-family: inherit;
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
            margin: 0 1em;
    text-align: 1em;
    padding: 0 2em;
  }

#Save {}

#Upload {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,.95);
  font-size: 1em;
  z-index: 999999999;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  visibility: hidden;
}
  #Upload:after {
    content: '';
    display: block;
    position: absolute;
    top: 1em;
    left: 1em;
    right: 1em;
    bottom: 1em;
    border: .2em dashed #EE2D2F;
  }

.ui--more {
  position: absolute;
  bottom: 1em;
  right: 1em;
  left: 1em;
  z-index: 99999;
  display: block;
  background: transparent;
  border: 1px solid magenta;
  color: magenta;
  width: 100%;
  width: calc(100% - 2em);
  font-size: 14px;
  font-family: monaco, monospace;
  padding: 1em;
  background: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0em .25em 0 -0.1em magenta;
  opacity: 0;
  transition: 240ms ease all;
  transform: translateY(1em);
}

  .ui--more:hover {
    opacity: 1;
    transform: none;
  }

  .anim {
    animation-fill-mode: both;
  }

  .a-fiu {
    animation-duration: 1s;
    animation-name: fadeIn;
    animation-delay: 800ms;
  }

  @-webkit-keyframes fadeIn {
    from { opacity: 0}
    to   { opacity: 1}
  }

  .d-1600 {
    animation-delay: 1600ms !important;
  }

  .d-2400 {
    animation-delay: 2400ms !important;
  }

  .d-3000 {
    animation-delay: 3000ms !important;
  }

  #Contact {
    position: fixed;
    left: 1em;
    bottom: 1.1em;
    padding: 1.3em 2em 2em 1em;
    color: #EE2D2F;
    display: flex;
    flex-flow: column;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: 240ms ease all;
    z-index: 2;
  }

    @media screen and (max-width: 42em) {
      #Contact {
        right: 1em;
        width: 100%;
        text-align: center;
        bottom: 2em;
      }
    }

    .__contact-active #Contact,
    #Contact:target {
      visibility: visible;
      opacity: 1;
    }

    #Contact p {
      margin-bottom: 1.5em;
    }

  h2, h3 {

  }

  #Status {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    height: 100vh;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    font-size: 5em;
    pointer-events: none;
    visibility: hidden;
  }

  .message {
    font-size: 1rem;
    text-transform: uppercase;
    font-family: monaco, monospace;
  }

  .__basis-mono * {
    font-family: 'Basis Grotesque Mono', monospace !important;
    font-size: 0.9rem;
  }

.__contact-active .photo {
  x-webkit-filter: blur(10px);
  transform: translate3D(0,0,0);
  transition-delay: 100ms;
}

footer {
  color: #999;
  font-size: .7rem;
  margin: 20vh auto 1.5em;
  text-align: right;
  max-width: 90%;
}

  @media screen and (max-width: 42em) {
    footer {
      text-align: center;
      margin-bottom: 1em;
    }
  }



/**
 *
 * Login Block
 *
 */

#Login {
  margin: 10em auto;
  width: 10em;
  text-align: center;
}

#Login input {
  border: 1px dashed currentColor;
  border-width: 0 0 1px;
  display: block;
  margin-bottom: 1em;
  line-height: 1.4;
  text-align: center;
  padding: .5em;
}

.__edit h2,
.__edit h3,
.__edit footer {
  color: cyan !important;
  opacity: .25 !important;
}

.__edit .ui-btn {
  color: #111;
  background: #fff;
}

/* FIN */