/* Apply zoom cursor only to images with the mobile-zoomable class */
.mobile-zoomable img,
img.mobile-zoomable {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.mobile-zoomable img:hover,
img.mobile-zoomable:hover {
    opacity: 0.95;
}

/* Lightbox overlay styling */
.zoom-overlay-721450be {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    touch-action: none;
}

body.admin-bar .zoom-overlay-721450be {
    top: var(--wp-admin--admin-bar--height, 32px);
    height: calc(100% - var(--wp-admin--admin-bar--height, 32px));
}

@media screen and (max-width: 782px) {
    body.admin-bar .zoom-overlay-721450be {
        top: 46px;
        height: calc(100% - 46px);
    }
}

.zoom-overlay-721450be.active-721450be {
    opacity: 1;
    visibility: visible;
}

.zoom-container-721450be {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.zoom-img-721450be {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: scale(1) translate(0px, 0px);
    transition: transform 0.1s ease-out;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.zoom-img-721450be:active {
    cursor: grabbing;
}

.zoom-close-721450be {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 1000000;
}

.zoom-close-721450be:hover {
    background: rgba(255, 255, 255, 0.4);
}

.zoom-tip-721450be {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-family: sans-serif;
    pointer-events: none;
    opacity: 0.8;
}
