.preview-modal {
    width: 100vw;
    height: 100vh;
    position: fixed;
    overflow: hidden;
    left: 0;
    top: 0;
    display: none;
    z-index: 2000;
}

.preview-modal::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: #00000091;
    position: absolute;
    z-index: -1;
    backdrop-filter: blur(5px);
}
.preview-modal .preview-content {
    width: 100%;
}
.preview-modal .preview-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 16px 16px;
    color: white;
    background: linear-gradient(to bottom, #000000de, transparent);
}
.preview-modal .preview-image img {
    max-width: 100%;
    object-fit: contain;
    max-height: 100%;
}

.preview-modal .preview-image {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.preview-modal .preview-prev {
    position: absolute;
    left: 0;
    top: 0;
    height: 48px;
    width: 48px;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
    opacity: 0.7;
}
.preview-modal .preview-prev::before {
    content: "\f104 ";
    font-family: fontawesome;
    display: block;
}
.preview-modal .preview-next {
    position: absolute;
    right: 0;
    top: 0;
    height: 48px;
    width: 48px;
    background: rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
    opacity: 0.7;
}
.preview-modal .preview-next::before {
    content: "\f105 ";
    font-family: fontawesome;
    display: block;
}
.preview-modal:mou .preview-prev,.preview-modal:hover .preview-next {
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.preview-modal .preview-footer {
    position: absolute;
    bottom: 10px;
    left: 0;
    height: 70px;
    width: 100%;
}
.preview-modal .preview-thumnail {
    width: 100%;
    background: #0000005c;
    padding: 10px;
    overflow-x: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.preview-modal .preview-footer img{
    height: 60px;
    width: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.preview-modal .preview-footer ul{
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
    justify-content: center;
    list-style: none;
}
.preview-modal .preview-footer ul li{
    flex-grow: 0;
    flex-shrink: 0;
    cursor: pointer;
}
.preview-modal .thumnail-slide {
    width: 100%;
    overflow-x: auto;
}
.preview-modal .preview-body {
    height: calc(100vh - 145px);
    position: relative;
}
.preview-modal .close {
    all: unset;
    width: 32px;
    height: 32px;
    background: red;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
}
body.no-scroll{
    overflow-y:hidden !important;
}
[data-image-view]{
    cursor: pointer;
}