@require './Layout.styl';
@require './PagesElements.styl';

.Project {
  &Title {
    font-size: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: "Proxima Nova";
    font-weight: 600;
    width: 80%;
    padding-bottom: 60px;
  }

  &Partner {
    width: 280px;
    height: 280px;
    background-size: cover;
    background-position: center center;
  }

  &Images {
    margin: 32px 0;
  }

  &Image {
    position: relative;
    width: 280px;
    height: 280px;
    float: left;
    background-size: cover;
    background-position: center center;
    margin: 0 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    &:first-of-type {
      margin-left: 0;
    }

    &Icon {
      position: relative;
      z-index: 1;
      opacity: 0;
      transition: opacity .4s;
    }

    &Bg {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: #000;
      opacity: 0;
      transition: opacity .4s;
    }

    &:hover &Bg {
      opacity: .7;
    }

    &:hover &Icon {
      opacity: 1;
    }
  }
}

.ImageModal {
  width: 100%;
  height: 90vh;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;

  &Bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    opacity: .6;
    z-index: -1;
  }

  &Wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 5vh 5vw;
    box-sizing: border-box;
    z-index: 100;
  }

  &Close {
    position: relative;
    z-index: 5;
    cursor: pointer;
  }
}


