/* ============================================================
   GOLF GENIUS MODAL — FINAL, CLEAN, WORKING VERSION
   Uses the same activation pattern as your working TWSF modal
   ============================================================ */

/* Overlay (hidden by default, no flex yet) */
#gg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.65);
    z-index: 999999;
    display: none; /* hidden until JS activates it */
    overflow: hidden;
}

/* Activated overlay (flex centering) */
#gg-modal-overlay.gg-active {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Modal container */
#gg-modal {
    position: relative;
    background: #fff;
    width: 90vw;
    height: 90vh;
    max-width: 1100px;
    max-height: 850px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
}

/* Close button */
#gg-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1000000;
}

#gg-close {
    color: #000 !important;
    font-size: 36px;
    font-weight: 700;
}



/* Iframe fills modal */
#gg-frame {
    width: 100%;
    height: 100%;
    border: none;
}

/* Desktop sizing */
@media (min-width: 900px) {
    #gg-modal {
        width: 1100px;
        height: 850px;
        max-width: 95vw;
        max-height: 95vh;
    }
}
