/* This stylesheet only affects the Good Hand event popup. */
.ghb5-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .78);
    overflow-y: auto;
}
.ghb5-overlay.ghb5-visible { display: flex; }
.ghb5-dialog {
    position: relative;
    margin: auto;
    width: fit-content;
    max-width: min(96vw, 570px);
    max-height: 92vh;
    max-height: 92dvh;
    outline: none;
    line-height: 0;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 12px 50px rgba(0,0,0,.28);
}
.ghb5-poster {
    display: block;
    width: auto;
    height: auto;
    max-width: min(96vw, 570px);
    max-height: 90vh;
    max-height: 90dvh;
    object-fit: contain;
    border: 0;
    border-radius: 3px;
}
.ghb5-close {
    appearance: none;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0,0,0,.78);
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(255,255,255,.4);
}
.ghb5-close:hover, .ghb5-close:focus-visible {
    color: #fff;
    background: #111;
    outline: 2px solid #fff;
    outline-offset: 2px;
}
body.ghb5-modal-open { overflow: hidden !important; }
