body.overflow-hidden {
    overflow: hidden;
}
#gallery-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
}

#gallery-preview .slides-info {
    position: absolute;
    top: 0;
    left: 0;
    line-height: 50px;
    color: #a79e9e;
    padding: 0px 12.5px;
    font-size: 13px;
}

#gallery-preview .close-gallery {
    width: 50px;
    height: 50px;
    background-color: #353535;
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    text-decoration: none;
    text-align: center;  /* Center the cross */
    line-height: 50px;   /* Center the cross vertically */
}
#gallery-preview .close-gallery::before,
#gallery-preview .close-gallery::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 2px;
    background-color: white;
    transform-origin: center;
    transition: transform 0.3s ease;
}

#gallery-preview .close-gallery::before {
    transform: translate(-50%, -50%) rotate(45deg);  /* Diagonal line for the cross */
}

#gallery-preview .close-gallery::after {
    transform: translate(-50%, -50%) rotate(-45deg);  /* Diagonal line for the cross */
}

#gallery-preview.active {
    display: block;
}
#gallery-preview::before {
    width: 100%;
    height: 100%;
    display: block;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.7);
}
#gallery-preview .preview-box {
    max-width: 80%;
    max-height: 80vh;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background-color: #fff;
    z-index: 3;
    padding: 10px;
    display: inline-block;
}
#gallery-preview .preview-box img {
    max-width: 100%;
    max-height: calc(80vh - 20px);
}
#gallery-preview .navigation-button {
    width: 32px;
    display: block;
    top: 50%;
    height: 32px;
    background-image: url(/assets/libs/lightslider/img/controls.png);
    cursor: pointer;
    position: absolute;
    z-index: 99;
    margin-top: -16px;
    opacity: 0.5;
    -webkit-transition: opacity 0.35s linear 0s;
    transition: opacity 0.35s linear 0s;
}
#gallery-preview .navigation-button.prev {
    background-position: 0 0;
    left: 10px;
}
#gallery-preview .navigation-button.next {
    background-position: -32px 0;
    right: 10px;
}