.modal {
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0;
    margin: 0;
    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: default;
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal.show .close {
    display: block;
    position: absolute;
    top: 0px;
    right: -40px;
    width: 40px;
    height: 40px;
    background-image: url(../../common/img/md_close.png);
    overflow: hidden;
    text-indent: -9999px;
    cursor: pointer;
}

.modalBox {
    cursor: pointer;
}

.left {
    text-align: left;
}

figure a{
    position: relative;
}

figure:hover .modalBox {
    opacity: 0.7;
    filter: alpha(opacity=70);
    -ms-filter: "alpha( opacity=70 )";
}

@media screen and (min-width: 480px) {
    .flex-img {
        display: flex;
        gap: 20px;
    }
}


@media screen and (min-width: 760px) {
    figure .zoomicon-cap {
        background: url(../../common/img/sprite.png) repeat scroll -300px 0 rgba(0, 0, 0, 0);
        display: block;
        position: absolute;
        left: 0px;
        bottom: 28px;
        width: 29px;
        height: 29px;
        text-indent: -9999px;
        overflow: hidden;
        cursor: pointer;
        pointer-events: none;
    }
}

@media screen and (max-width: 759px) {
    figure .zoomicon-cap {
        background: url(../../common/img/sprite.png) repeat scroll -300px 0 rgba(0, 0, 0, 0);
        display: block;
        position: absolute;
        left: 0px;
        bottom: 24px;
        width: 29px;
        height: 29px;
        text-indent: -9999px;
        overflow: hidden;
        cursor: pointer;
        pointer-events: none;
    }
}

.trimming-img {
    width: revert-layer !important;
}