/* FullScreen Preview */

#preview-full {
    position: absolute;
    width: 100%;
    height: 100svh;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 25;
    display: grid;
    grid-template-rows: 10% 80% 10%;
    grid-template-columns: 5% 90% 5%;
    justify-items: center;
}

#item-fullscreen {
    position: relative;
    display: grid;
    height: 100%;
    width: 100%;
    grid-area: 2 / 2 / 3 / 3;
    justify-items: center;
    align-items: center;
    align-content: center
}

#item-fullscreen img {
    position: absolute;
    transition: all 0.5s cubic-bezier(0.1, 1, 0.6, 1);
    height: 100%;
    width: 100%;
    z-index: 5;
    object-fit: contain;
}

.selected-fullscreen-img {
    display: block !important;
    opacity: 1 !important;
    transition: all 0.4s ease-in-out;
}

/* Close FullScreen */

#exit-container {
    position: fixed;
    z-index: 10;
    right: 0;
    transform: translate(100%, -100%);
    transition: all var(--switch-duration) ease-in-out;
}

#exit-container img {
    --exit-away-duration: 0.7s;
    position: relative;
    display: block;
    cursor: pointer;
    rotate: 45deg;
}

#default-exit {
    position: fixed;
    display: none;
    height: 100%;
    width: 100%;
    grid-area: 1 / 1 / 5 / 4;
    bottom: 0;
    left: 0;
}

/* Next-Previous Selection */
#next-item,
#previous-item {
    position: relative;
    align-self: center;
    z-index: 10;
}

#next-item {
    grid-area: 2 / 3 / 3 / 3;
}

#previous-item {
    display: none;
    grid-area: 2 / 1 / 3 / 2;
}

#next-item img,
#previous-item img {
    position: relative;
    cursor: pointer;
    transition: all var(--switch-duration) ease-in-out;
}

/* Toggle Image Browsing */
.image-browsing {
    display: none !important;
    opacity: 0 !important;
}

#selected-fullscreen-img {
    display: block !important;
    opacity: 1 !important;
    transition: all 0.4s ease-in-out;
}

/* Image Zooming In Effect */
.woop {
    scale: 1 !important;
    opacity: 1 !important;
}

@media (orientation: landscape) {
    .exit-animation {
        transform: translate(-150%, 150%) !important;
    }
}

/* Fix Phone BlueTap */
#exit-container {
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: var(--webtap-color);
}