#krpanoSWFObject {
    position: fixed !important;
    top: 0;
    left: 0;
}

#menu {
    background: url(../img/unity/menu-banner.png);
    background-size: cover;
    padding: .5rem 1rem;
    width: 300px;
    min-height: 400px;
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-height: 65vh;
    overflow-y: auto;
    flex-wrap: wrap;
    justify-content: center;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
}

@media screen and (max-width:574px) {
    #menu {
        width: 100%;
        height: 100vh;
        max-height: unset;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        padding-bottom: 3rem;
    }

    .menu-item-parent,
    .menu-item-child {
        width: 100% !important;
        background-repeat: repeat-x;
        max-width: 300px;
    }
}

#open-menu {
    cursor: pointer;
    display: none;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: url(../img/unity/menu-banner.png);
    color: #fff !important;
    padding: 20px;
    width: 50px;
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
    font-family: 'Noto Sans TC';
}

#open-menu:hover{
    background: url(../img/unity/menu-item-active.png);
}

#open-menu.active {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

#hide-menu {
    display: flex;
    align-items: center;
    justify-content: end;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #fff;
    max-width: 275px;
    margin: 0 auto;
    cursor: pointer;
}

.menu-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    overflow-y: auto;
}

@media screen and (max-width:574px) {
    .menu-group {
        max-height: 70vh;
        max-width: calc(300px + 3.5rem);
    }
}

.menu-item {
    background: url(../img/unity/menu-item.png);
    background-repeat: no-repeat;
    background-size: cover;
    width: 217px;
    height: 62px;
    font-family: 'Times New Roman', Times, serif;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .17em;
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
    margin-top: 20px;
    color: #fff;
    position: relative;
}

.menu-item>a {
    color: #fff;
    text-decoration: none;
}

.menu-item.active {
    background: url(../img/unity/menu-item-active.png);
    color: black;

}

.menu-item.active>a {
    color: black
}

.menu-item-parent::before {
    content: " ";
    position: absolute;
    left: -1.3rem;
    width: 12px;
    height: 12px;
    background: url(../img/icon/arrow-right.svg);
    background-repeat: no-repeat;
    transition: .2s;
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
}

.menu-item-parent.no-child {
    padding-left: 12px;
}

.menu-item-parent.no-child::before {
    content: unset;
}

.menu-item-parent {
    cursor: pointer;
}

.menu-item-parent.active {
    box-shadow: 0px 0px 6px 1px #93E0FF;
}

.menu-item-parent.active::before {
    transform: rotate(90deg);
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
}

.menu-item-child {
    position: relative;
    border-left: 1px solid #fff;
    display: none;
    height: 40px;
    cursor: pointer;
    margin-top: .75rem;
    width: 215px;
    flex-wrap: wrap;
}

.menu-item-child:nth-child(22){
    height: 51.6px;
}

.menu-item-child.active {
    display: flex;
    align-items: center;
}

.menu-item-child .title {
    position: relative;
    padding-left: .8rem;
    font-size: 15px !important;
    font-weight: 700;
    letter-spacing: .095em;
    white-space: normal;
    margin-bottom: unset;
    color: #A7A7A7;
}

.menu-item-child.now-active .title{
    color: #93E0FF !important
}

.menu-item-child.active:hover .title{
    color: #93E0FF !important
}

.menu-item-child .subtitle {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .17em;
    margin-bottom: unset;
}

#tool-list {
    position: fixed;
    right: .5rem;
    bottom: 1rem;
    width: 700px;
    max-width: 100%;
    z-index: 2;
    color: #fff;
}

#tool-list .d-flex {
    justify-content: center;
}

#popup-container {
    background-color: rgba(38, 38, 38, 0.85);
    width: 100vw;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: none;
    z-index: 3;
}

#popup-container.active {
    display: block;
}

[onclick="closePopup()"] {
    width: 100%;
    font-family: "Noto Sans TC";
}

#popup-content {
    position: fixed;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    width: 990px;
    max-width: 90%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

#popup-content .gallery {
    height: 100%;
    background: #262626;
    position: relative;
}

@media screen and (max-width:574px) {
    #popup-content .gallery {
        height: 300px;
        background: #262626;
    }
}

/* popup 全螢幕 */
#popup-content.full-screen,
#popup-content.full-screen .popup-content-main {
    width: 100vw;
    height: 100vh;
    max-width: unset;
    top: 0;
    left: 0;
    transform: unset;
    max-height: 100vh;
    background: #262626;
    overflow: hidden;
    border: unset !important;
}

.full-screen .carousel-control-next,
.full-screen .carousel-control-prev {
    /* height: 100% !important; */
    width: 32px !important;
    height: 32px !important;
    position: absolute;
    top: 50%;
    transform: translate(-50%, 0);
    left: 8%;
}

.full-screen .carousel-control-next{
    left: unset;
}

#popup-content.full-screen [onclick="closePopup()"] {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 999;
}

#popup-content.full-screen [onclick="closePopup()"] h6 {
    display: none;
}

#popup-content.full-screen .popup-content-main .row-n-mg,
#popup-content.full-screen .popup-content-main .carousel,
#popup-content.full-screen .popup-content-main .carousel-inner,
#popup-content.full-screen .popup-content-main .carousel-inner .carousel-item,
#popup-content.full-screen .popup-content-main .carousel-inner .gallery {
    height: 100%;
    overflow: hidden;
    background: #262626;
}

#popup-content.full-screen .gallery {
    width: 100%;
}

#popup-content.full-screen .carousel-item.active .gallery,
#popup-content.full-screen .gallery.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

#popup-content.full-screen .popup-information {
    display: none;
}


#popup-content .popup-content-main {
    background: url(../img/popup-bg.svg);
    border: 1px solid #fff;
    height: fit-content;
    min-height: 300px;
    max-height: 75vh;
    overflow-y: auto;
    width: 100%;
}

@media screen and (max-width:574px) {
    #popup-content .popup-content-main {
        max-height: 80vh;
        height: 80vh;
    }
}

#popup-content .popup-content-main.popup-3d {
    border: unset;
    background: unset
}

#popup-content .popup-content-main .row {
    margin: unset !important;

}

@media screen and (max-width:574px) {
    .mb-d-none {
        display: none;
    }
}

@media screen and (min-width:573px) {
    .lg-d-none {
        display: none;
    }
}

.popup-content-main .carousel-inner {
    background: #262626;
    height: 600px;
}


@media screen and (max-width:574px) {
    .popup-content-main .carousel-inner {
        height: fit-content;
        max-height: 600px;
    }
}

.full-screen .popup-content-main .carousel-inner {
    max-height: unset;
}

.carousel-inner.gallery-information-group,
.carousel-inner.bg-unset {
    background: unset;
}

.gallery-information-group .carousel-control-next {
    left: 51.5%;
}

.gallery-information-group .carousel-indicators {
    left: 0;
    display: inline-flex;
    width: calc(100% - 33.33333333%);
    margin-right: 0;
    margin-left: 0;
}


@media screen and (max-width:574px) {
    .gallery-information-group .carousel-control-next {
        left: unset;
    }

    .gallery-information-group .carousel-control-next,
    .gallery-information-group .carousel-control-prev {
        height: 300px;
    }

    .gallery-information-group .carousel-indicators {
        left: 0;
    }

    .gallery-information-group {
        height: 100%;
    }

    .gallery-information-group .carousel-indicators {
        left: 0;
        display: flex;
        margin-left: 15%;
        margin-right: 15%;
    }
}

.full-screen .gallery-information-group .carousel-control-next {
    left: unset !important;
    right: 4%;
}

.full-screen .gallery-information-group .carousel-indicators {
    /* left: 50%; */
    left: 0;
    display: flex;
    justify-content: center;
    width: 100%;
}

.popup-content-main .carousel-item {
    width: 100%;
    height: 100%;
    max-height: 600px;
    text-align: center;
    overflow: auto;
}

.full-screen .popup-content-main .carousel-item {
    max-height: unset;
}

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

    .type-gallery,
    .type-gallery .carousel-item,
    .type-gallery .carousel-inner {
        height: 100%;
        max-height: 100%;
    }

    .full-screen .gallery-information-group .carousel-control-next {
        left: unset !important;
        right: 0;
    }

    .full-screen .gallery-information-group .carousel-indicators {
        width: auto;
    }
}

.type-gallery .gallery {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
}

.popup-content-main .gallery::before {
    content: " ";
    transition: .2s;
    background: url(../img/icon/ZoomIn.svg);
    width: 35px;
    height: 35px;
    position: absolute;
    left: 50%;
    top: 46.8%;
    transform: translate(-50%);
    -webkit-transform: translate(-50%);
    -moz-transform: translate(-50%);
    -ms-transform: translate(-50%);
    -o-transform: translate(-50%);
    -webkit-transition: .2s;
    -moz-transition: .2s;
    -ms-transition: .2s;
    -o-transition: .2s;
    opacity: 0;
}

.popup-content-main:hover .gallery::before {
    opacity: 1;
}

.full-screen .popup-content-main .gallery::before {
    content: unset
}

.popup-content-main .carousel-item .row-n-mg,
.popup-content-main .carousel-item .row-n-mg .gallery {
    height: 100%;
    position: relative;
}

.popup-content-main .carousel-item img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}


.popup-content-main .popup-information {
    text-align: left;
    /*height: 89%;*/
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
    padding: 1.25rem;
}

@media screen and (max-width:574px) {
    .popup-content-main .popup-information {
        margin: 2rem 1rem;
    }

    .type-information .popup-content-main .popup-information {
        height: calc(70vh - 2rem) !important;
    }

    .type-information.carousel,
    .type-information .carousel-inner,
    .type-information .carousel-item {
        height: 100%;
        max-height: unset;
    }
}

.popup-content-main .popup-information .title {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: .06em;
}

.popup-content-main .popup-information .info {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-top: 1rem;
    text-align: justify;
}

.popup-header {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 1rem 1rem;
    color: #fff;
    border-bottom: 1px solid #fff;
    text-align: left;
}

#aerial-shot.ren-prison {
    background: url(../img/space-ren.jpg);
}

#aerial-shot.yi-prison {
    background: url(../img/space-yi.jpg);
}

#aerial-shot.li-prison {
    background: url(../img/space-li.jpg);
}

#aerial-shot.zhi-prison {
    background: url(../img/space-zhi.jpeg);
}

#aerial-shot.xin-prison {
    background: url(../img/space-xin.jpeg);
}

#aerial-shot.outer-prison {
    background: url(../img/space-g.jpg);
}

#ren-prison,#yi-prison,#li-prison,#zhi-prison,#xin-prison {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    /* background-color: #93E0FF; */
}



@media screen and (max-width:574px) {
    #aerial-shot.ren-prison {
        background-position: 45%;
    }

    #aerial-shot.yi-prison {
        background-position: 57%;
    }

    #aerial-shot.li-prison,#aerial-shot.zhi-prison,#aerial-shot.xin-prison{
        background-position: 70%;
    }

    #aerial-shot.outer-prison {
        background-position: 38% 37%;
    }

}



#aerial-shot {
    position: fixed;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    left: 0;
    top: 0;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    display: none;
}

.zoom-in-out {
    position: fixed;
    left: 50%;
    bottom: 3rem;
    justify-content: space-evenly;
    align-items: center;
    transform: translateX(-50%);
    background: #00000040;
    border-radius: 40px;
    width: 150px;
    height: 40px;
    display: none;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    -o-transform: translateX(-50%);
}

.full-screen .zoom-in-out {
    display: flex;
}

.zoom-in-out .bigger,
.zoom-in-out .smaller {
    background: transparent;
    border: unset;
    width: 25px;
    height: 25px;
    padding: unset;
    border-radius: 50%;
    /* color: #00000040; */
    /* font-weight: 800; */
    /* font-size: 20px; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-in-out .bigger img,
.zoom-in-out .smaller img{
    transform: unset !important;
}

.zoom-in-out h6 {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    margin-bottom: unset;
}

.tool-btn {
    font-size: 16px;
    letter-spacing: .06em;
    font-weight: 700;
    margin-left: .1rem;
    cursor: pointer;
    text-shadow: 0.1em 0.1em #000;
}


@media screen and (max-width:574px) {
    .tool-div {
        flex: 0 0 auto;
        width: auto;
    }

    .tool-btn {
        display: none;
    }

    .tool-btn.vr-btn {
        display: flex !important;
    }

    #gallery-information .carousel-inner {
        height: 300px;
    }

    .full-screen #gallery-information {
        height: 100%;
    }
}

*[onclick] {
    cursor: pointer;
}

.carousel-control-next,
.carousel-control-prev{
    opacity: 1 !important;
}

.carousel-control-next:hover,
.carousel-control-prev:hover{
    opacity: 1 !important;
}

.carousel-control-prev-icon{
    background-image: url(../img/icon/chevron-left.svg) !important; 
}

.carousel-control-next-icon{
    background-image: url(../img/icon/chevron-right.svg) !important;
}

.stdcmap-h-100{
    height: 500px;
}

@media (max-width: 578px) {
    .stdcmap-h-100{
        height: 95%;
    }
}

#prison-intro {
    background: rgba(38, 38, 38, 0.85);
    color: #fff;
    box-shadow: 0px 4px 25px 0px #fff;
    width: 350px;
    height: fit-content;
    position: fixed;
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
    display: none;
    padding: 1rem;
    z-index: 3;
}

#prison-intro.active {
    display: block;
}

#prison-intro #intro-content {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .12em;
}

#close-prison-intro {
    position: absolute;
    right: 0;
    top: -2rem;
    font-size: 14px;
    font-family: "Noto Sans TC";
    display: flex;
    align-items: center;
    /* color: rgba(38, 38, 38, 1) */
}

#close-prison-intro img {
    margin-left: .5rem;
}

@media screen and (max-width: 578px) {
    #prison-intro {
        width: 100%;
        right: 0;
        bottom: 0;
        top: unset;
        transform: unset;
        -webkit-transform: unset;
        -moz-transform: unset;
        -ms-transform: unset;
        -o-transform: unset;
    }

    #close-prison-intro {
        right: 10px;
    }
}

.a_h_b:hover{
    color: #93E0FF !important;
}