﻿#popup-wrap {
  position: fixed;

  top: 0;

  left: 0;

  width: 100vw;

  height: 100vh;

  z-index: 10000;

  display: none;

  transition: all 500ms;
}

#popup-wrap.open {
  display: block;
}

#popup-wrap.close {
  display: none;
}

#popup-wrap .popup-mask {
  position: absolute;

  width: 100%;

  height: 100%;

  background-color: rgba(0, 0, 0, 0.7);
}

#popup-wrap .popup-content {
  position: relative;

  width: 80%;

  height: 90%;

  margin: 0 10%;

  padding: 5% 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: space-between;
}

#popup-wrap .popup-content .popup-close {
  position: absolute;

  right: -10px;

  font-size: 40px;

  color: #fff;

  z-index: 99;

  width: 34px;

  height: 34px;
}

#popup-wrap .popup-content .popup-close > img {
  width: 100%;

  height: 100%;
}

#popup-wrap .popup-content .popup-img {
  position: relative;
  width: 1000px;
  height: 520px;
  text-align: center;
  overflow: hidden;
  margin:  auto;
}

#popup-wrap .popup-content .popup-img .popup-title {
  width: 100%;
  line-height: 60px;
  color: #fff;
}
#popup-wrap .popup-content .popup-img .popup-img-box{
  width: 600px;
  height: 600px;
  margin: auto;
  text-align: center ;
}
#popup-wrap .popup-content .popup-img img {
  height: 500px;
  max-width: 100%;
  width: auto;

}


#popup-wrap .popup-content .popup-thumbnails {
  position: relative;

  width: 100%;

  height: 100px;

  margin-top: 10px;

  display: flex;

  justify-content: center;

  align-items: center;
}

#popup-wrap .popup-content .popup-thumbnails .t-item {
  width: 100px;
  height: 100px;
  margin-right: 10px;
  box-sizing: border-box;
  border: 1px solid transparent;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#popup-wrap .popup-content .popup-thumbnails .t-item.active {
  border: 1px solid #fff;
}

#popup-wrap .popup-content .popup-thumbnails .t-item > img {
  max-width: 100%;
  height: 90px;
  width: auto;
  text-align: center;
  margin: auto;
}

#popup-wrap .popup-content .popup-thumbnails .t-item-title {
  display: none;
}

@media (max-width: 768px) {
  #popup-wrap .popup-content {
    width: 90%;

    display: block;
  }

  #popup-wrap .popup-content .popup-close {
    position: absolute;

    right: 10px;

    width: 20px;

    height: 20px;

    color: #fff;

    z-index: 99;
  }

  #popup-wrap .popup-content .popup-close > img {
    width: 100%;

    height: 100%;
  }

  #popup-wrap .popup-content .popup-img {
    width: 90%;

    position: relative;

    height: 300px;

    overflow: hidden;
  }

  #popup-wrap .popup-content .popup-img .popup-title {
    width: 100%;

    line-height: 60px;

    color: #fff;
  }

  #popup-wrap .popup-content .popup-img > img {
    width: auto;

    height: auto;
    max-width:100%;
    max-height:100%;
  }

  #popup-wrap .popup-content .popup-thumbnails {
    display: block;

    height: auto;

    width: 100%;
  }

  #popup-wrap .popup-content .popup-thumbnails .t-item {
    width: 44%;
    display: inline-block;
    margin-left: 2%;
    margin-top: 10px;
  }

  #popup-wrap .popup-content .popup-thumbnails .t-item:nth-child(odd) {
    margin-left: 0;
  }
}
.md{
  display: none!important;
}
@media (max-width: 740px) {
  .md{
    display: block!important;
  }
  .pc{
    display: none!important;
  }
  #popup-wrap .popup-content .popup-img .popup-img-box{
    width: 100%;
    height: 50%;
  }
  #popup-wrap .popup-content .popup-img img {
    height: 200px;
    max-width: 100%;
    width: auto;
  }
  #popup-wrap .popup-content {
    width: 100%;
    display: block;
    margin: 0;
  }
  #popup-wrap .popup-content .popup-thumbnails {
    display: flex;
    height: auto;
    width: 80%;
    justify-content: center;
    align-items: center;
    margin: auto;
    flex-direction: row;
    flex-wrap: wrap;
  }
  #popup-wrap .popup-content .popup-thumbnails .t-item{
    margin-right:0 ;
  }
}