/* photo gallery 用 */
.lum-lightbox.lum-open {
    z-index: 10000;
}

.lum-lightbox-inner img.lum-img {
    max-width: 100%;
}

.lum-lightbox .lum-lightbox-caption {
    width: fit-content;
    max-width: 800px;
}

.lum-gallery-button {
    display: none;
}

.photos_gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin: 10px 0;
}

.photos_gallery.phgr_4col {
    /* 4col用 */
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 10px 0;
}

.photos_gallery.phgr_5col {
    /* 5col用 */
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin: 10px 0;
}

.subpage_content .photos_gallery a.none_block {
    /* ブロック幅調整用の空白ブロック */
    pointer-events: none;
    border: none;
}

.subpage_content .wrapper:has(.photos_gallery) {
    max-width: 1100px;
}



.subpage_content .photos_gallery a {
    /*グリットアイテムを3グリット分の大きさにする*/
    grid-row: span 2;
    /*サブグリットの指定*/
    display: grid;
    grid-template-rows: subgrid;
    border: 1px solid #ddd;
    color: #000;
    text-decoration: none;
}

.photos_gallery .lum_img,
.photos_gallery .lum_txt,
.photos_gallery .lum_title,
.photos_gallery .lum_name,
.photos_gallery .lum_loc {
    font-size: 15px;
    display: block;
}

.photos_gallery .lum_txt {
    text-align: center;
    padding: 0.5em 0.5em 1em;
}

.photos_gallery .lum_image_block {
    text-align: center;
    max-height: 280px;
}

.photos_gallery .lum_image_block img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.photos_gallery .lum_caption {
    display: none;
}

.lum-lightbox .lum-lightbox-caption {
    text-align: left;
}

/* 3連作用　テスト */
.photos_gallery:has(.phgr_3ren) {
    display: block;
    margin: 10px 0;
}

.photos_gallery .phgr_3ren {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr 1fr;
    border: 1px solid #ddd;
}

.photos_gallery .phgr_3ren .phgr_1col {
    grid-column: 1 / 4;
    grid-row: 2 / 3;
    text-align: center;
}

.subpage_content .photos_gallery .phgr_3ren a {
    border: none;
    display: block;
    grid-row: auto;
}

/* ここまで　＝＝＝　3連作用　テスト */


/* movie用 */
.movie_gallery {
    margin: 30px auto;
    border: 1px solid #ccc;
    max-width: 640px;
}

.movie_gallery .wp-video {
    margin: 0 auto;
}

.movie_gallery .mov_txt {
    padding: 1em 0.5em 0.5em;
}

.movie_gallery .mov_caption {
    padding: 0.5em 0.5em 1em;
}

.movie_gallery .mov_caption,
.movie_gallery .mov_txt,
.movie_gallery .mov_title,
.movie_gallery .mov_name,
.movie_gallery .mov_loc {
    font-size: 15px;
    display: block;
}