/* Lightboxの基本スタイル */
.lightbox {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 360ms ease;
    pointer-events: none;
}
.lightbox.is-visible {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.lightbox-content .lightbox-image-wrapper {
    display: inline-block;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 0 6px 3px rgba(0, 0, 0, 0.15);
}

.lightbox-content img {
    display: block;
    max-width: calc(90vw - 60px);  /* ビューポート幅90% - 左右パディング分 */
    max-height: calc(90vh - 60px); /* ビューポート高90% - 上下パディング分 */
    width: auto;
    height: auto;
}

.lightbox-caption {
    margin-top: 10px;
    color: #000;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

body.sp .lightbox-trigger {
    pointer-events: none;
}