.image-viewer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}

.image-viewer.is-open {
    display: block;
}

.image-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
}

.image-viewer-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: none;
    cursor: grab;
}

.image-viewer-stage.is-dragging {
    cursor: grabbing;
}

.image-viewer-img {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none;
    max-height: none;
    border: 0;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
}

.image-viewer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #444;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.image-viewer-close:hover {
    background: rgba(0, 0, 0, 0.12);
}

.image-viewer-hint {
    position: absolute;
    left: 50%;
    bottom: 20px;
    z-index: 2;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
}

@media (max-width: 768px) {
    .image-viewer-hint {
        font-size: 11px;
        bottom: 12px;
        max-width: calc(100% - 32px);
        white-space: normal;
        text-align: center;
    }
}
