/* ================================================
   site-lightbox.css — 角屋旅館 共通ライトボックス
   ================================================ */

/* オーバーレイ */
.slb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}
.slb-overlay.active {
    display: flex;
}

/* メイン画像 */
.slb-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    display: block;
    animation: slbFadeIn 0.25s ease;
    user-select: none;
}
@keyframes slbFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

/* 閉じるボタン */
.slb-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 48px;
    height: 48px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: rgba(255, 245, 230, 0.88);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
    line-height: 1;
    z-index: 9010;
}
.slb-close:hover { background: rgba(255, 255, 255, 0.3); }

/* 前後ナビボタン */
.slb-prev,
.slb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    border-radius: 4px;
    color: rgba(255, 245, 230, 0.88);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s;
    z-index: 9010;
    line-height: 1;
}
.slb-prev { left: 0.5rem; }
.slb-next { right: 0.5rem; }
.slb-prev:hover,
.slb-next:hover { background: rgba(255, 255, 255, 0.28); }

/* グループが1枚の場合はナビ非表示 */
.slb-overlay.slb-single .slb-prev,
.slb-overlay.slb-single .slb-next {
    display: none;
}

/* フッター（カウンター＋キャプション） */
.slb-footer {
    position: absolute;
    bottom: 1.2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 245, 230, 0.88);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    font-family: 'Noto Serif JP', serif;
    pointer-events: none;
}
.slb-counter {
    display: block;
    margin-bottom: 0.2rem;
    opacity: 0.7;
}
.slb-caption {
    display: block;
    opacity: 0.85;
}

/* ===== 拡大インジケーター ===== */
.expandable-image {
    position: relative;
    cursor: zoom-in;
    display: inline-block;
}
.expandable-image::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10' r='6'/%3E%3Cline x1='10' y1='7' x2='10' y2='13'/%3E%3Cline x1='7' y1='10' x2='13' y2='10'/%3E%3Cline x1='15' y1='15' x2='21' y2='21'/%3E%3C/svg%3E");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.75;
    transition: opacity 0.25s;
    pointer-events: none;
}
@media (hover: hover) {
    .expandable-image:hover::after { opacity: 1; }
}
/* スマホ: 常に表示 */
@media (hover: none) {
    .expandable-image::after { opacity: 0.8; }
}

/* スマホでナビボタンを画像左右内側に配置 */
@media (max-width: 575px) {
    .slb-prev { left: 0.25rem; width: 40px; }
    .slb-next { right: 0.25rem; width: 40px; }
    .slb-close { top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; }
}
