/* =========================================================
   Informacja dodatkowa o ilustracji
   ========================================================= */

.vst-image-info-wrap {
    position: relative;
}

.vst-image-info-overlay {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 5;
}

.vst-image-info-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    background: rgba(17, 24, 39, .72);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .18);
}

.vst-image-info-button:hover,
.vst-image-info-button:focus {
    background: rgba(17, 24, 39, .9);
    color: #fff;
}

.vst-image-info-button:focus {
    outline: none;
}

.vst-image-info-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.vst-image-info-panel {
    position: absolute;
    right: 0;
    bottom: 40px;
    width: min(320px, calc(100vw - 48px));
    padding: 12px 38px 12px 14px;
    border: 1px solid #d7dde5;
    border-radius: 6px;
    background: rgba(255, 255, 255, .98);
    color: #344054;
    font-size: .88rem;
    line-height: 1.45;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
}

.vst-image-info-panel[hidden] {
    display: none !important;
}

.vst-image-info-panel p {
    margin: 0;
}

.vst-image-info-close {
    position: absolute;
    top: 5px;
    right: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #667085;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.vst-image-info-close:hover {
    background: #f2f4f7;
    color: #344054;
}

@media (max-width: 600px) {
    .vst-image-info-overlay {
        right: 8px;
        bottom: 8px;
    }

    .vst-image-info-button {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }

    .vst-image-info-panel {
        bottom: 37px;
        width: min(280px, calc(100vw - 36px));
        font-size: .84rem;
    }
}
