#fh-entry-popup {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(680px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 1px solid #e9deef;
    border-radius: 24px;
    background: #fff;
    color: #342b3b;
    box-shadow: 0 20px 70px rgb(36 15 49 / 25%);
    overflow: auto;
    overscroll-behavior: contain;
    font-family: inherit;
}
#fh-entry-popup:not([open]) { display: none; }
#fh-entry-popup::backdrop { background: rgb(27 15 36 / 55%); }
#fh-entry-popup .fh-entry-shell { position: relative; min-width: 0; }
#fh-entry-popup .fh-entry-close {
    position: sticky;
    top: 12px;
    z-index: 1;
    display: block;
    width: 44px;
    height: 44px;
    margin: 12px 12px -56px auto;
    padding: 0;
    border: 1px solid #e8ddee;
    border-radius: 50%;
    background: #fff;
    color: #713395;
    box-shadow: 0 3px 12px rgb(36 15 49 / 12%);
    font: 28px/1 sans-serif;
    cursor: pointer;
}
#fh-entry-popup .fh-entry-close:hover { background: #f5eff9; }
#fh-entry-popup :focus-visible { outline: 3px solid #9935c4; outline-offset: -3px; }
#fh-entry-popup .fh-entry-image { display: block; width: 100%; height: auto; object-fit: contain; }
#fh-entry-popup .fh-entry-content {
    padding: 24px;
    background: #faf7fc;
    text-align: center;
    line-height: 1.9;
    font-size: 16px;
    overflow-wrap: anywhere;
}
#fh-entry-popup .fh-entry-close + .fh-entry-content { padding-top: 72px; }
#fh-entry-popup .fh-entry-content img,
#fh-entry-popup .fh-entry-content iframe { max-width: 100%; }
#fh-entry-popup .fh-entry-content > :last-child { margin-bottom: 0; }
@media (max-width: 575px) {
    #fh-entry-popup { border-radius: 18px; }
    #fh-entry-popup .fh-entry-content { padding: 20px 16px; }
    #fh-entry-popup .fh-entry-close + .fh-entry-content { padding-top: 72px; }
}
