@require './Layout.styl';

.Title {
  display: inline-block;
  position: relative;
  z-index: 15;

  &Inactive {
    color: #838383;
    cursor: pointer;
  }
}

.MiniDescBg {
  position: absolute;
  width: 50%;
  height: 100vh;
  background: url(/public/img/minilaut.png);
  right: 0;
  z-index: 10;
  top: 0;
  opacity: 1;
  background-size: cover;
}

.Overlay  {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #222;
  opacity: 0.45;
  z-index: 1;
}

.MiniNav {
  display: inline-block;
  margin: 0 0 0 8px;
  color: #666;

  &Item {
    padding: 0 16px;
    border-right: 1px solid #666;
    cursor: pointer;

    &Active {
      color: #00f;
    }
    &:last-of-type {
      border-right: none;
    }
  }
}

.MiniDesc {
  display: inline-block;
  padding: 0 16px 0 0;
  margin-top: 30px;


  &Title {
    position: relative;
    font-size: 16px;
    letter-spacing: 2px;
    cursor: pointer;
    z-index: 15;
    color: #838383;

    &Active {
      color: #333;
    }

    &:before {
      content: '|';
      color: #333;
      padding: 0 8px 0px 13px;
    }
  }

  &Popup {
    background: #fff;
    position: absolute;
    left: -25px;
    top: calc(10vh + 18px);
    width: 34vw;
    padding: 40px 0 0 6px;
    z-index: 10;

    //&Close {
    //  display: inline-block;
    //  //width: 31px;
    //  //height: 31px;
    //  background: #fff;
    //  vertical-align: top;
    //  box-sizing: border-box;
    //  padding: 7px;
    //  cursor: pointer;
    //  margin: 0 4px;
    //}

    &Text {
      width: 100%;
      padding: 0 25px 0 0;
      box-sizing: border-box;
      display: inline-block;
      margin: 0 4px;
      color: #555;
      height: 78vh;
      overflow: hidden;
      line-height: 24px;
      font-size: 16px;
    }
  }
}

.MiniActiveBg {
  width: 100vw;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-size: cover;
  z-index: -1;
  transition: left .5s;

  &Slide {
    left: -100%;
  }
}

.MiniSlidebaleBg {
  width: 100vw;
  height: 100%;
  position: absolute;
  top: 0;

  background-size: cover;
  z-index: -1;
  transition: left .5s;
  left: 0;
  &Slide {
    left: -100%;
  }
}

.MiniActiveNext {
  width: 100vw;
  height: 100%;
  position: absolute;
  top: 0;
  left: 100%;
  background-size: cover;
  z-index: -1;

  &Slide {
    left: 0;
    transition: left .5s;
  }
}

.CatalogList {
  height: 20vh;
  bottom: 0;
}

.CatalogItem {
  position: relative;
  width: 100%;
  padding: 0 24px;
  box-sizing: border-box;
  cursor: pointer;

  &:after {
    content: '';
    position: absolute;
    width: 1px;
    height: 30%;
    background: #777;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
  }

  &Img {
    width: 100%;
    padding-bottom: 16vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;

  }
}

.GallerySlide {
  width: 100%;
  height: 60vh;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
}

.CatalogBody {
  position: relative;
  height: 60vh;
  margin-top: -10vh;
}

.CatalogItemCaption {
  padding-left: 20%;
  padding-bottom: 15px;

  &Title {
    font-style: italic;
    padding-bottom: 5px;
  }


  &Desc {
    font-size: 12px;
    text-transform: uppercase;
    color: rgb(75,75,75);
    line-height: 22px;
    letter-spacing: 2px;
  }
}

.MarginTop {
  margin-top: 10vh;
}


@media only screen  and (min-device-width : 320px)  and (max-device-width : 568px) and (orientation:portrait){
  .Title {
    display: block;
  }

  .MiniDescBg {
    display: none;
  }

  .MiniActiveBg {
    width: 90vw;
    height: 50vh;
    position: absolute;
    top: 20vh;
    left: 5vw;
    background-size: cover;
    z-index: 1;
  }

  .GallerySlide {
    width: 100%;
    height: 60vh;
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: center top;
  }

  .MiniNav {
    display: block;
    margin: 2vh 0;
    text-align: center;
    font-size: 4vw;
  }

  .MiniDescTitle {
    display: none;
  }

  .MiniDescPopup {
    color: #fff;
    position: relative;
    top: 8px;
    right: 0;
    width: 90vw;
    padding-top: 50vh;
    transform: none;

    &Close {
      display: none;
    }

    &Text {
      width: 100%;
      text-align: center;
      height: auto;
      font-size: 5vw;
      overflow: visible;
      line-height: 1.2;
    }
  }

  .Half, .Quarter, .ThreeQuarter {
    position: static;
    width: 100%;
    float: none;
  }

  .CatalogItemCaption {
    font-size: 4vw;
  }

  .CatalogItemCaptionDesc {
    font-size: 4vw;
    line-height: 8vw;
  }

  .Nav {
    width: 55vw;
    margin: 2vh auto;
    padding: 38px 0 20px;
    border-top: 1px solid #999;
    border-bottom: 1px solid #999;

    &Wrap {
      position: relative;
      z-index: 20;
    }

    &ActiveItem {
      border-bottom: none;
      font-size: 5vw;
      margin-bottom: 25px;
    }

    &Item {
      height: 0;
      font-size: 4.5vw;
      visibility: hidden;
      padding: 0;

      &Show {
        height: auto;
        margin-top: 3vh
        visibility: visible;

      }
    }

    &Part {
      width: 50%;
      text-align: center;
      position: relative;
    }
  }

  .Dummy {
    position: absolute;
    width: 100vw;
    height: 0;
    z-index: 1;
    background: #fff;
    top: 25vh;
    left: 0;

    &Show {
      height: 75vh;
    }
  }

  .CatalogItemCaptionTitle {
    font-style: italic;
    color: #878787;
    padding-top: 12px;
  }

  .GallerySlide {
    width: 100%;
    height: 60vh;
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: center top;
  }
}

