@charset "UTF-8";

/* ==========================================================================
   gallery-modal (lightbox)
   画像ギャラリーのクリック拡大モーダル＋左右ナビゲーション
   ========================================================================== */

/* ギャラリー上部の案内文 */
.gallery-sub {
    margin-bottom: 2em;
    text-align: center;
    font-size: 14px;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}
.lightbox-overlay.active {
    display: flex;
}
.lightbox-inner {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.lightbox-inner img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
}
.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 36px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}

/* 左右ナビゲーション矢印 */
.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 60px;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 10px 20px;
    z-index: 100000;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-family: serif;
    user-select: none;
}
.lightbox-prev:hover,
.lightbox-next:hover {
    opacity: 1;
}
.lightbox-prev {
    left: 20px;
}
.lightbox-next {
    right: 20px;
}
.lightbox-prev.is-hidden,
.lightbox-next.is-hidden {
    display: none;
}

/* SP対応 */
@media screen and (max-width: 640px) {
    .lightbox-prev,
    .lightbox-next {
        font-size: 40px;
        padding: 8px 12px;
    }
    .lightbox-prev {
        left: 5px;
    }
    .lightbox-next {
        right: 5px;
    }
}
