/* Yambaru Gallery Lightbox */

#yambaru-lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

#yambaru-lightbox.active {
    display: flex;
}

#yambaru-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

#yambaru-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    text-align: center;
    max-width: 80vw;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

#yambaru-lightbox-close {
    position: absolute;
    top: 16px; right: 24px;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}
#yambaru-lightbox-close:hover { opacity: 1; }

#yambaru-lightbox-prev,
#yambaru-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 48px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    user-select: none;
    padding: 0 16px;
}
#yambaru-lightbox-prev:hover,
#yambaru-lightbox-next:hover { opacity: 1; }

#yambaru-lightbox-prev { left: 10px; }
#yambaru-lightbox-next { right: 10px; }

#yambaru-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    opacity: 0.7;
}

/* 讓圖庫圖片有可點擊的提示 */
.wp-block-gallery .wp-block-image img {
    cursor: zoom-in;
}
