/* アルバム部分PC用CSS */

/* 基本設定 */
p {
  padding: 0 2em;
}
.wrap {
  padding: 10vh 2em;
  margin: auto;
  width: 50%;
  max-width: 500px;
  background: #cbba92;
  box-sizing: border-box;
}

/* 一覧部分（クリック前）スタイル */
.album {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding-left: calc(10% / 6);/* 下記liのマージンと同じ幅の余白 */
  background: #cbba92;
}
.album li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: calc(10% / 6) 0.5em;
  width: 5vw;
  height: 5vw;
  cursor: zoom-in;
  overflow: hidden;
}
.illustTitle {
  display: none;
}
.thumb {
  display: flex;
  justify-content: stretch;
  align-items: stretch;
  height: 20vh;
}
.thumb img {
  width: auto;
  height: 100%;
  background: #CCCCCC;
  transform: scale(2);
}
.link {
  display: none;
}

/* 拡大表示時スタイル */
li.active {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: rgba(0,0,0,0.8);
  box-sizing: border-box;
  cursor: auto;
  z-index: 3;
}
li.active .thumb::before {
  content: '×';
  display: block;
  position: absolute;
  top: 2em;
  right: 10%;
  padding: 1em 2em;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.2em;
  z-index: 2;
}
.active .illustTitle {
  order: 1;
  display: block;
  position: absolute;
  bottom: 0;
  padding: 2em 1em;
  width: 100%;
  background: transparent;
  text-align: center;
  color: #dbdbdb;
}
.active .thumb {
  justify-content: center;
  align-items: center;
  flex-basis: 70%;
  height: 100%;
}
.active .thumb img {
  height: auto;
  max-height: 80vh;
  width: auto;
  max-width: 90vw;
  transform: scale(1);
  animation: fadeIn .8s;
}
@keyframes fadeIn {
  from {
  opacity: .5;
  }
  to {
  opacity: 1;
  }
}

/* 戻る/次へリンク */
.active .link {
  flex-grow: 1;
  visibility: visible;
  display: block;
  padding: 15% 5%;
  background: url('arrow.png') center / auto no-repeat;
  cursor: pointer;
}
.active .prev {
  transform: rotate(180deg);
}
.album li:first-of-type .prev {
  visibility: hidden;
}
.album li:last-of-type .next {
  visibility: hidden;
}
