.tropopup-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tropopup-backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.tropopup-modal {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 4px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.tropopup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0.25rem 0.5rem;
}

.tropopup-close:hover {
    color: #000;
}

.tropopup-title {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Long space-less strings (e.g. URLs, hashes, "prettyprettypretty…") must wrap
   instead of forcing a horizontal scrollbar. overflow-wrap breaks them only when
   they would otherwise overflow; hyphens adds a dash at valid hyphenation points
   for real words (requires a lang attribute on a parent, harmless otherwise). */
.tropopup-title,
.tropopup-body,
.tropopup-flexible {
    overflow-wrap: break-word;
    hyphens: auto;
}

.tropopup-body {
    line-height: 1.6;
}

.tropopup-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.tropopup-flexible {
    line-height: 1.6;
}
