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

/* 基本設定 */
p {
    padding: 0 2em;
}
.wrap {
    padding: 10vh 2em;
    margin: auto;
     width: 60%;
     min-width: 650px;
     max-width: 1200px;
    background: #ffffff;
    box-sizing: border-box;
}


/* 一覧部分（クリック前）スタイル */
.album {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    padding-left: calc(10% / 6);/* 下記liの右マージンと同じ幅の余白 */
    margin: 5vh auto 10vh;
    background: #ffffff;
    border-radius: 1em;
}
.album li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 2em calc(10% / 6) 2em 0;
    width: 15%;
    height: 15%;
    border-radius: 1rem;
    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: #ccc;
    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,.8);
    border-radius: 0;
    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('../img/album.svg') 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;
}

/* フッター※削除OK */
footer {
    display: none;
    margin: 5vh auto;
     width: 50%;
     min-width: 500px;
    color: #9cb3d8;
    font-size: 1rem;
    text-align: center;
}
footer a {
    color: #bcd3f8;
}