/* ODOZIAKUCHI product image fullscreen gallery */

.odo-lightbox-trigger {
    cursor: zoom-in;
}

.odo-product-lightbox {
    position: fixed;
    inset: 0;

    z-index: 2147483000;

    display: none;

    background: rgba(0, 0, 0, 0.96);
    color: #fff;

    overscroll-behavior: contain;
}

.odo-product-lightbox.is-open {
    display: block;
}

.odo-product-lightbox__topbar {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    z-index: 3;

    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        max(10px, env(safe-area-inset-top))
        14px
        8px;

    pointer-events: none;
}

.odo-product-lightbox__counter {
    font-size: 14px;
    letter-spacing: 1px;

    pointer-events: auto;
}

.odo-product-lightbox__close,
.odo-product-lightbox__nav {

    border: 0;

    background: rgba(0, 0, 0, 0.48);

    color: #fff;

    cursor: pointer;

    pointer-events: auto;
}

.odo-product-lightbox__close {

    width: 46px;
    height: 46px;

    border-radius: 50%;

    font-size: 36px;
    line-height: 40px;
}

.odo-product-lightbox__stage {

    position: absolute;

    top: 58px;
    bottom: 48px;
    left: 0;
    right: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    touch-action: none;
}

.odo-product-lightbox__image {

    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    user-select: none;

    -webkit-user-drag: none;

    transform-origin: center center;

    will-change: transform;
}

.odo-product-lightbox__image.is-zoomed {
    cursor: move;
}

.odo-product-lightbox__nav {

    position: absolute;

    top: 50%;

    z-index: 3;

    transform: translateY(-50%);

    width: 44px;
    height: 52px;

    font-size: 30px;

    border-radius: 4px;
}

.odo-product-lightbox__prev {
    left: 8px;
}

.odo-product-lightbox__next {
    right: 8px;
}

.odo-product-lightbox__hint {

    position: absolute;

    left: 0;
    right: 0;

    bottom: max(
        12px,
        env(safe-area-inset-bottom)
    );

    text-align: center;

    font-size: 12px;

    color: rgba(255, 255, 255, 0.78);

    pointer-events: none;
}

/* On phones users swipe instead of using arrows */

@media (max-width: 767px) {

    .odo-product-lightbox__nav {
        display: none;
    }
}