﻿
.zoompic_enlarge {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    cursor: default;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 99;
}

.zoompic_enlarge > .item {
    width: auto;
    height: auto;
    background-color: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.zoompic_enlarge > .item > p {
    margin: 16px 0px 0px 0px;
}

.zoompic_enlarge > .item > button {
    margin-top: 16px;
}

.zoompic_enlarge > .item > a {
    margin-top: 16px;
}

.zoompic_enlarge > .item > .close {
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    position: absolute;
    top: -22px;
    right: -20px;
}

.zoompic_enlarge > .item > .close::before {
    content: "";
    width: 24px;
    border-bottom: 5px solid #a8a8a8;
    border-radius: 6px;
    pointer-events: none;
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translate(-50%, -6px) rotate(45deg);
}

.zoompic_enlarge > .item > .close::after {
    content: "";
    width: 24px;
    border-bottom: 5px solid #a8a8a8;
    border-radius: 6px;
    pointer-events: none;
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translate(-50%, 6px) rotate(-45deg);
}

.zoompic_enlarge > .item > .close:hover {
    -webkit-filter: brightness(120%); /* Safari */
    filter: brightness(120%);
}

.zoompic_enlarge > .item > .close:hover::before,
.zoompic_enlarge > .item > .close:hover::after {
    border-bottom: 5px solid #ffffff;
}

.zoompic_enlarge > .item > img,
.zoompic_enlarge > .item > p {
    pointer-events: none;
}

.zoompic_enlarge > .item > a {
    color: #52b0ff;
    cursor: pointer;
    text-decoration: underline;
}

/* ---------------------------------------------------------------------------------------------------- */

.zoompic_enlarge .fade-enter-active,
.zoompic_enlarge .fade-leave-active {
    transition: opacity 0.5s;
}

.zoompic_enlarge .fade-enter-from,
.zoompic_enlarge .fade-leave-to {
    opacity: 0;
}

.zoompic_enlarge .fade-enter-to,
.zoompic_enlarge .fade-leave-from {
    opacity: 1;
}

@media screen and (max-width: 767px) {
    .zoompic_enlarge > .item > img,
    .zoompic_enlarge > .item > p,
    .zoompic_enlarge > .item > a {
        max-width: calc(100vw - 60px);
        max-height: calc(100vh - 62px);
    }
}

@media screen and (min-width: 768px) {
    .zoompic_enlarge > .item > img,
    .zoompic_enlarge > .item > p,
    .zoompic_enlarge > .item > a {
        max-width: calc(100vw - 120px);
        max-height: calc(100vh - 122px);
    }
}
