/*imgpopup for images zoomin start*/
.imgPopupContainer .zoom-icon {
    content: " ";
    position: absolute;
    bottom: 10px;
    width: 32px;
    height: 32px;
    background-image: url(/images/imgPopupZoom.svg);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    right: 10px;
}


#imgPopupModel.show {
    display: block;
}

#imgPopupModel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
}

#imgPopupModel span {
    position: absolute;
    top: -30px;
    right: 0px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 99999999;
}

#imgPopupModel span:before,
#imgPopupModel span:after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: white;
    top: 0;
    left: 9px;
}

#imgPopupModel span:before {
    transform: rotate(45deg);
}

#imgPopupModel span:after {
    transform: rotate(-45deg);
}

#imgPopupModel .imgPopupBox {
    position: relative;
    margin: auto;
    overflow: hidden;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cecece #f1f1
}

img.dragging {
    cursor: grabbing;
    transition: none;
    /* Prevent snapping while dragging */
}

#imgPopupModel img {
    display: none;
}

#imgPopupModel.show img {
    max-height: 100%;
    display: block;
    border-radius: 6px;
    box-shadow: 0 0 25px #111;
    margin: auto;
    width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

#imgPopupModel #lightbox-content {
    position: relative;
    max-width: 90vw;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.enable-lightbox-wrap .zoom-icon {
    content: " ";
    position: absolute;
    bottom: 30px;
    width: 32px;
    height: 32px;
    background-image: url(/images/imgPopupZoom.svg);
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;
    right: 10px;
    pointer-events: none;
    z-index: 2;
}

.enable-lightbox-wrap {
    cursor: zoom-in;
    display: inline-block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.enable-lightbox-wrap .lazy-image-height {
    margin-bottom: 0px;
}

@media (min-width: 1200px) {
    #imgPopupModel.show img {
        height: 70vh;
        width: unset;
    }
}

.enable-lightbox-wrap:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#imgPopupModel span:hover {
    opacity: 0.85;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
    animation: closePulse 0.8s ease-in-out infinite;
}

.imgPopupContainer .zoom-icon,
.enable-lightbox-wrap .zoom-icon {
    transition: opacity 0.25s ease;
    opacity: 0.85;
}

body.no-scroll {
  overflow: hidden !important;
}

@keyframes closePulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.25); }
    100% { transform: scale(1); }
}
