/* ==========================================
   Magnifier (Лупа) для увеличения изображений
   ========================================== */

.magnifier-wrapper {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 100%;
}

.fullscreen-image-container .magnifier-wrapper img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.magnifier-enabled {
    cursor: none;
    position: relative;
}

.magnifier-glass {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 3px solid #4A4237;
    border-radius: 50%;
    cursor: none;
    pointer-events: none;
    z-index: 1000;
    background-repeat: no-repeat;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.3);
    display: none;
    background-color: white;
}

.magnifier-glass.active {
    display: block;
}

/* Курсор-крестик для указания увеличения */
.magnifier-enabled::after {
    content: '+';
    position: absolute;
    font-size: 24px;
    color: rgba(74, 66, 55, 0.6);
    font-weight: bold;
    pointer-events: none;
    z-index: 999;
    left: var(--cursor-x, 0);
    top: var(--cursor-y, 0);
    transform: translate(-50%, -50%);
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.8);
}
