@charset "UTF-8";

.gallerybox {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, .7);
    overscroll-behavior: none;
    touch-action: auto;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity .4s ease-in-out;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
}

.gallerybox.active {
    opacity: 1;
    pointer-events: all;
    visibility: visible;
}

.gallerybox__inner {
    display: block;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    overflow-y: auto;
}

.gallerybox__inner::-webkit-scrollbar {
    width: 0;
}

.gallerybox__inner::-webkit-scrollbar-thumb {
    background: #3f4041;
}

.gallerybox__close {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
}

.gallerybox__close::before,
.gallerybox__close::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    left: 20%;
    display: block;
    width: 60%;
    height: 2px;
    background: #fff;
    transform-origin: center;
}

.gallerybox__close::before {
    transform: rotate(45deg);
}

.gallerybox__close::after {
    transform: rotate(-45deg);
}

.gallerybox__inner__box {
    display: flex;
    align-items: flex-start;
    align-content: flex-start;
    justify-items: flex-start;
    justify-content: flex-start;
    width: calc(100% - 60px);
    height: calc(100vh - 120px);
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
}

.gallerybox__inner__box .slick-list,
.gallerybox__inner__box .slick-track {
    height: 100%;
}

.gallerybox__inner__box .slick-arrow {
    top: calc(50% - 30px);
    display: block;
    width: 60px;
    height: 60px;
    background: #000;
    border-radius: 50%;
    z-index: 10;
    overflow: hidden;
}

.gallerybox__inner__box .slick-prev {
    left: max(calc(50% - 50vw + 10px), calc(50% - 650px));
}

.gallerybox__inner__box .slick-next {
    right: max(calc(50% - 50vw + 10px), calc(50% - 650px));
}

.gallerybox__inner__box .slick-arrow::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 34%;
    display: block;
    width: 20%;
    height: 20%;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform-origin: center;
    transform: rotate(45deg);
}

.gallerybox__inner__box__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    flex: 0 0 auto;
}

.gallerybox__inner__box__item.slick-slide {
    display: flex;
}

.gallerybox__inner__box__item__pic {
    display: flex;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    flex: 0 1 auto;
}

.gallerybox__inner__box__item__pic img {
    object-fit: contain;
    object-position: center;
    width: 100%;
    height: 100%;
}

.gallerybox__inner__box__item__text {
    display: block;
    width: 100%;
    margin: 10px auto 0 auto;
    font-size: 16px;
    line-height: 1.2;
    color: #fff;
    font-weight: 400;
    flex: 0 0 auto;
}

.gallerybox .slick-count {
    position: absolute;
    top: 20px;
    left: 20px;
    width: auto;
    justify-items: flex-start;
    justify-content: flex-start;
    font-size: 16px;
    color: #fff;
}

@media screen and (max-width: 991px) {}

@media screen and (max-width: 767px) {}

@media screen and (max-width: 575px) {
    .gallerybox__inner__box {
        width: calc(100% - 40px);
    }

    .gallerybox__inner__box .slick-arrow {
        top: calc(50% - 20px);
        width: 40px;
        height: 40px;
    }

    .gallerybox .slick-count {
        font-size: 14px;
    }
}


/****非觸控螢幕****/
@media (any-hover: hover) {}

/****觸控螢幕****/
@media (any-hover: none) {}

/****IOS樣式****/
@supports (-webkit-touch-callout: none) {}

/****firefox樣式****/
@-moz-document url-prefix() {
    .c-lightbox__inner {
        scrollbar-width: none;
    }
}