@keyframes ftspFadeInUp {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes ftspFadeOutDown {
    0%   { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(20px); }
}

.ftsp-wrap,
.ftsp-before,
.ftsp-after,
.ftsp-link {
    display: inline;
}

.ftsp-link {
    cursor: pointer;
}

.ftsp-popup {
    position: fixed;
    display: block;
    z-index: 100000;
    padding: 1.25rem 1rem 1rem;
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: .5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    max-width: min(90vw, 420px);
    max-height: 90vh;
    overflow: auto;
    animation: ftspFadeInUp 0.2s ease-in-out;
}

.ftsp-popup[aria-hidden="true"] { display: none; }

.ftsp-popup.ftsp-exiting {
    animation: ftspFadeOutDown 0.2s ease-in-out;
    pointer-events: none;
}
.ftsp-popup.ftsp-exiting[aria-hidden="true"] {
    display: block !important;
}

.ftsp-popup-title {
    margin: 0 0 .5rem;
    font-size: 1rem;
}

.ftsp-close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 1.25rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: .25rem;
    border-radius: .375rem;
    user-select: none;
    transition: 0.3s ease-in-out;
}
.ftsp-close-btn:hover { color: #00bfff; }

.ftsp-actions {
    margin-top: .75rem;
    text-align: center;
}

.ftsp-popup-read-more-button {
    transition: 0.3s ease-in-out;
}

.ftsp-preview-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: .5rem 0 .75rem;
}

.ftsp-popup-content { overflow: hidden; }
