/* Base Zoom Container */

.image-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    border-radius: 8px;
}

.image-zoom-container img {
    display: block;
    width: 100%;
    height: auto;
    margin-block: 11px;
    border: 3px solid var(--tech-blue);
}


/* Shared Lens Style */

.zoom-lens {
    position: absolute;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    background-repeat: no-repeat;
    display: none;
    pointer-events: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    z-index: 10002;
    /* Ensure it stays above everything */
}


/* Mobile Button */

.mobile-zoom-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}


/* Modal Styling */

.img-modal-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    z-index: 10005;
}

.modal-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.modal-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.img-modal-close {
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
}

.modal-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.img-modal-content {
    max-width: 85%;
    max-height: 85vh;
    transition: transform 0.1s ease-out;
    cursor: grab;
    user-select: none;
    transform-origin: center center;
}

.img-modal-content:active {
    cursor: grabbing;
}


/* Responsive Utilities */

@media (max-width: 768px) {
    .zoom-lens {
        width: 100px;
        height: 100px;
    }
    .img-modal-content {
        max-width: 95%;
    }
}