.image-zoom-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease;
    overflow: hidden;
    touch-action: none;
}

.image-zoom-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.zoomed-image {
    display: block;
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 40px) !important;
    max-height: calc(100vh - 40px) !important;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    will-change: transform;
    transform-origin: center center;
    transition: transform 0.06s ease-out;
}

.zoomed-image.zoom-dragging {
    cursor: grabbing;
    transition: none;
}

.image-zoom-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 100001;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #D4AF37;
    border-radius: 4px;
    background: #151515;
    color: #D4AF37;
    font-family: Arial, sans-serif;
    font-size: 28px;
    line-height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.image-zoom-close:hover {
    background: #D4AF37;
    color: #111;
}

/* On-screen zoom buttons (mobile & desktop) */
.image-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 100001;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.image-zoom-btn {
    width: 42px;
    height: 42px;
    border: 1px solid #D4AF37;
    border-radius: 4px;
    background: #151515;
    color: #D4AF37;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.image-zoom-btn:hover {
    background: #D4AF37;
    color: #111;
}

.image-zoom-open {
    overflow: hidden !important;
}