/* =========================================================================
   Starview - Site Pop-ups (sv-popups.css)
   Shared styles for site-wide pop-up overlays (e.g. the Events pop-up).
   Add a new pop-up by giving its overlay a unique ID and scoping new rules
   under that ID here, instead of adding inline <style> blocks to pages.
   ========================================================================= */

/* ---- Events pop-up (#sv-event-popup-overlay) --------------------------- */
#sv-event-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}
#sv-event-popup-overlay .sv-popup-box {
    position: relative;
    background: #ffffff;
    border: 1px solid #3A76BB;
    border-radius: 4px;
    max-width: 800px;
    width: 100%;
    padding: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
#sv-event-popup-overlay .sv-popup-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #002F63;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    z-index: 1;
}
#sv-event-popup-overlay .sv-popup-close:hover { background: #3A76BB; }

/* Top block ("Coming Up!" / "Evenements a venir" + subtitle): untouched,
   just de-floated since there's no .row wrapping it here. */
#sv-event-popup-overlay .col-md-12 {
    float: none;
    display: block;
}

/* Bottom block: logo 25% / text 50% / QR 25%, plain flexbox -- no
   Bootstrap col padding/float involved at all for these three. Logo and
   QR cells center their image; the text cell is untouched (normal block,
   left-aligned text) and just gets 50% of the row. */
#sv-event-popup-overlay .row {
    display: flex;
    align-items: center;
}
#sv-event-popup-overlay .row > * {
    box-sizing: border-box;
    float: none;
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
}
#sv-event-popup-overlay .row > *:nth-child(1),
#sv-event-popup-overlay .row > *:nth-child(3) {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#sv-event-popup-overlay .row > *:nth-child(2) {
    flex: 0 0 50%;
}
