/* =================================
STAGE SECTION
================================= */
.popup-layer {
  opacity: 0;
  overflow: hidden;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}
  .popup-layer * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
  }

/* =================================
CONTENTS SECTION
================================= */
.popup-contents-wrap {
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  
  -webkit-box-sizing: content-box;
  box-sizing: content-box;
  
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  padding: 15px 15px 70px;
  background: #ffffff;
  border-radius: 7px;
  /*border: solid 3px #987A4C;*/
}

/* HEADER
--------------------------------- */
.popup-header {
  -js-display: -webkit-flex;
  display: -webkit-flex;
  -webkit-justify-content: space-between;
  -webkit-flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  padding: 5px 15px 0;
  display: none;
}
  .popup-header::after {
    content: '';
    display: block;
    position: relative;
    width: 100%;
    height: 1px;
    margin-top: 5px;
    border-bottom: dotted 1px #987A4C;
  }
  .popup-btn-print {
    overflow: hidden;
    display: block;
    width: 90px;
    height: 21px;
    background: url('../img/popup/btn_set_01.png') no-repeat -200px -50px;
    text-indent: 100%;
    white-space: nowrap;
  }
  .max-width-400 .popup-btn-play-01 {
    
  }
  .popup-btn-print:hover {
    background-color: #987A4C;
  }

/* CONTENTS
--------------------------------- */
.popup-contents {
  overflow: hidden;
  position: absolute;
  left: 0;
  right: 0;
  top: 15px;
  width: 100%;
  height: 100%;
  margin: auto;
}
  .popup-box {
    position: relative;
    width: 100%;
    height: 100%;
  }
    .popup-box img {
      position: absolute;
      display: block;
      max-width: 100%;
      height: auto;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      margin: auto;
    }
  .popup-btn-prev-02 {
    position: absolute;
    left: 0;
    top: 0;
    width: 50%;
    height: 100%;
    cursor: pointer;
  }
  .popup-btn-prev-02:hover {
    background: url('../img/popup/btn_prev_01.png') left center / 43px auto no-repeat;
  }
  .popup-btn-next-02 {
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
    height: 100%;
    cursor: pointer;
  }
  .popup-btn-next-02:hover {
    background: url('../img/popup/btn_next_01.png') right center / 43px auto no-repeat;
  }

/* FOOTER
--------------------------------- */
.popup-footer {
  -js-display: -webkit-flex;
  display: -webkit-flex;
  -webkit-justify-content: flex-start;
  -webkit-flex-wrap: wrap;
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 100%;
  padding: 0 15px 5px;
}
  .popup-ttl {
    overflow: hidden;
    width: 100%;
    margin-bottom: 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    /*border-bottom: dotted 1px #987A4C;*/
  }
  .popup-btn-prev-01,
  .popup-btn-next-01,
  .popup-btn-close-01,
  .popup-btn-play-01 {
    overflow: hidden;
    text-indent: 100%;
    white-space: nowrap;
    cursor: pointer;
  }
  .popup-btn-prev-01 {
    width: 70px;
    height: 21px;
    background: url('../img/popup/btn_set_01.png') no-repeat 0 0;
  }
  .popup-btn-next-01 {
    width: 70px;
    height: 21px;
    background: url('../img/popup/btn_set_01.png') no-repeat -100px 0;
  }
  .popup-btn-close-01 {
    position: absolute;
    right: 15px;
    bottom: 5px;
    width: 90px;
    height: 21px;
    background: url('../img/popup/btn_set_01.png') no-repeat -200px 0;
  }
  .popup-btn-play-01 {
    width: 70px;
    height: 21px;
    margin-left: 10px;
    background: url('../img/popup/btn_set_01.png') no-repeat 0 -50px;
  }
  .autoplay .popup-btn-play-01 {
    background: url('../img/popup/btn_set_01.png') no-repeat -100px -50px;
  }
  .popup-btn-prev-01:hover,
  .popup-btn-next-01:hover,
  .popup-btn-close-01:hover,
  .popup-btn-play-01:hover {
    background-color: #D90261;
  }
  .popup-counter {
    margin: 0 10px;
    padding-top: 3px;
    line-height: 1em;
  }
    .popup-counter .now {
      
    }
    .popup-counter .total {
      
    }
    
  .max-width-400 .popup-footer {
    -js-display: -webkit-flex;
    display: -webkit-flex;
    -webkit-justify-content: flex-start;
    -webkit-flex-wrap: wrap;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .max-width-400 .popup-btn-prev-01,
  .max-width-400 .popup-btn-next-01,
  .max-width-400 .popup-btn-close-01,
  .max-width-400 .popup-btn-play-01 {
    width: 21px;
    background-image: url('../img/popup/btn_set_02.png');
  }
