/**
 * Static area
 */
#works-1 {
  text-align: center;
}
#works-1 div.flex {
  display: flex;
  justify-content: center;
}
#works-1 a {
  display: inline-block;
}
#works-1 a img {
  pointer-events: none;
}
#works-1 a[href="#assembly"] {
  background: transparent url(../images/assembly_over.jpg) no-repeat 0 0;
}
#works-1 a[href="#assembly"]:hover img {
  visibility: hidden;
}

/**
 * Modal window
 */
#backscreen {
  background: rgba(0,0,0,.5);
  left: 0;
  min-width: 906px;
  position: absolute;
  right: 0;
  top: 0;
  visibility: hidden;
}
#backscreen.show {
  animation: show .5s ease-out 0s forwards;
  visibility: visible;
}
#backscreen.hide {
  animation: hide 1s ease-out 0s forwards;
  visibility: visible;
}
@keyframes show {
    0% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes hide {
    0% { opacity: 1; }
  100% { opacity: 0; }
}
#mainscreen {
  background: rgba(0,0,0,.0);
  left: 0;
  margin: 0 auto;
  position: absolute;
  right: 0;
  width: 906px;
}
#mainscreen div.popup {
  background: #fff;
  left: 0;
  margin: 0 auto;
  overflow: hidden;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 356px;
}
#mainscreen div.popup.open {
  transition: height .5s ease, width .3s ease;
}
#mainscreen div.clearance {
  padding: 8px;
}
#mainscreen div.popup div.close {
  margin: 0;
  text-align: right;
}
#mainscreen div.popup div.close a {
  color: #999;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
}
#mainscreen div.popup.type1 div.main {
  height: 400px;
  position: relative;
  width: 340px;
}
#mainscreen div.popup div.main img {
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity 1.2s linear;
}
#mainscreen div.popup div.main img.active {
  opacity: 1;
}
#mainscreen div.popup div.thumbnail {
  overflow: auto;
  width: 100%;
  white-space: nowrap;
}
#mainscreen div.popup div.thumbnail > * {
  border: 1px solid rgba(0,0,0,0);
  padding: 1px;
  margin-right: 2px;
  width: 70px;
}
#mainscreen div.popup div.thumbnail > *.active {
  border: 1px solid #f00;
}
#mainscreen div.popup.type2 {
  width: 866px;
}
#mainscreen div.popup.type2 iframe {
  border: 0 none transparent;
  height: 600px;
  margin: 0;
  padding: 0;
  vertical-align: top;
  width: 850px;
}
