﻿@charset "utf-8";

/*==================================================
ギャラリー（画像一覧）のためのCSS
==================================================*/

#gallery-list-style {
    max-width: 1200px;
    width: 100%;
    height: auto;
    margin: auto;
    padding: 80px 20px 60px;
    box-sizing: border-box;
}

.gallery {
    display: grid;
    /* デフォルトは4段組み */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 0;
    margin: 0 auto 100px;
    list-style: none;
}

.gallery li {
    margin: 0;
}

/* ギャラリー内のイメージは横幅100%にする */
.gallery img {
    width: 100%;
    height: auto;
    vertical-align: bottom; /* 画像の下にできる余白を削除 */
}

/* ギャラリー内のビデオは横幅100%にする */
.gallery video {
    width: 100%;
    height: auto;
    vertical-align: bottom; /* 下にできる余白を削除 */
}

/* 画面幅1200px以下の段組み設定（3カラム） */
@media only screen and (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 画面幅768px以下の段組み設定（2カラム / スマホ向け） */
@media only screen and (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/*========= レイアウトのためのCSS（コメントアウト中） ===============*/
/* ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: #333;
}

a:hover,
a:active {
    text-decoration: none;
}

.gallery-section h1 {
    text-align: center;
    font-size: 6vw;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 30px 0;
}

p {
    margin: 0 10px 10px 10px;
    word-wrap: break-word;
} 
*/

/* 画像を出現させるアニメーションCSS 
左側を軸に、パタっと開くような動き（flipLeft）
*/

.flipLeft {
    animation-name: flipLeft;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    perspective-origin: left center;
    opacity: 0;
}

@keyframes flipLeft {
    from {
        transform: perspective(600px) translate3d(0, 0, 0) rotateY(30deg);
        opacity: 0;
    }
    to {
        transform: perspective(600px) translate3d(0, 0, 0) rotateY(0deg);
        opacity: 1;
    }
}