.imn-mp-root {
    position: fixed;
    bottom: 20px;
    opacity: 0;
    transform: translate3d(0, 54px, 0);
    transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1), transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.imn-mp-root.imn-mp-bottom-right {
    right: 20px;
}

.imn-mp-root.imn-mp-bottom-left {
    left: 20px;
}

.imn-mp-root.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.imn-mp-card {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.imn-mp-link {
    display: block;
    line-height: 0;
}

.imn-mp-image {
    display: block;
    width: auto;
    max-width: min(360px, 92vw);
    max-height: min(72vh, 560px);
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.imn-mp-caption {
    padding: 0 8px;
    font-size: 13px;
    color: #334155;
    text-align: center;
}

.imn-mp-title {
    display: inline-block;
}

.imn-mp-close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.imn-mp-close.is-visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 680px) {
    .imn-mp-root {
        left: 12px !important;
        right: 12px !important;
        bottom: 12px;
    }

    .imn-mp-card {
        width: 100%;
        align-items: center;
    }

    .imn-mp-image {
        max-width: 100%;
        max-height: calc(100vh - 110px);
    }
}
