@charset "UTF-8";

/**
 * StellaChat WP Lightbox
 */

.scwl-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.82);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.scwl-overlay.is-active {
    opacity: 1;
    visibility: visible;
}
.scwl-modal {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    text-align: center;
    transform: scale(0.97);
    transition: transform 0.25s ease;
}

.scwl-overlay.is-active .scwl-modal {
    transform: scale(1);
}

.scwl-image {
    display: block;
    max-width: 90vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    opacity: 1;
    transform: scale(1);
    transition:
        opacity .15s ease,
        transform .15s ease;
}
.scwl-image.is-changing {
    opacity: 0;
    transform: scale(.97);
}

.scwl-caption {
    margin-top: 12px;
    color: #fff;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.scwl-caption:empty {
    display: none;
}

.scwl-close,
.scwl-prev,
.scwl-next {
    position: absolute;
    z-index: 2;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    line-height: 1;
    appearance: none;

    display: flex;
    align-items: center;
    justify-content: center;
}

.scwl-close {
    top: -44px;
    right: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 16px;
}

.scwl-prev,
.scwl-next {
    top: 50%;
    width: 42px;
    height: 56px;

    transform: translateY(-50%);
    font-size: 32px;
    /* 位置調整 */
    padding-bottom: 10px;
}

.scwl-prev {
    left: -70px;
}
.scwl-next {
    right: -70px;
}

.scwl-close:hover,
.scwl-prev:hover,
.scwl-next:hover {
    background: rgba(0, 0, 0, 0.85);
}

.scwl-prev[hidden],
.scwl-next[hidden] {
    display: none;
}

body.scwl-is-open {
    overflow: hidden;
}

.scwl-counter {
    margin-top: 10px;
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    opacity: 0.8;
}

@media (max-width: 767px) {
    .scwl-overlay {
        padding: 16px;
    }

    .scwl-image {
        max-width: 88vw;
        max-height: 76vh;
    }

    .scwl-close {
        top: -48px;
        right: 0;
    }

    .scwl-prev {
        left: 0;
    }

    .scwl-next {
        right: 0;
    }

    .scwl-prev,
    .scwl-next {
        width: 40px;
        height: 52px;
        background: rgba(0, 0, 0, 0.65);
    }
}