/* ═══════════════════════════════════════════════════════════════════
   Grace Training Popup Image — Full-Screen Lightbox & Button
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Centered Trigger Section ─── */
.grace-training-page .gt-schedule-trigger-wrap {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 36px 0 40px !important;
    width: 100% !important;
    clear: both !important;
}

/* ─── Premium Action Button ─── */
.grace-training-page .gt-schedule-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    padding: 14px 36px !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.02em !important;
    color: #040d1a !important;
    background: linear-gradient(135deg, #d4af37 0%, #ecd074 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35), 0 2px 6px rgba(0, 0, 0, 0.25) !important;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.22s cubic-bezier(0.4, 0, 0.2, 1),
                background 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -webkit-tap-highlight-color: transparent !important;
    user-select: none !important;
}

.grace-training-page .gt-schedule-action-btn i {
    font-size: 16px !important;
    color: #040d1a !important;
    line-height: 1 !important;
}

.grace-training-page .gt-schedule-action-btn:hover {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #dfbc44 0%, #fae290 100%) !important;
    box-shadow: 0 10px 32px rgba(212, 175, 55, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    color: #040d1a !important;
}

.grace-training-page .gt-schedule-action-btn:active {
    transform: translateY(0) scale(0.98) !important;
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.25) !important;
}

/* ─── True Full-Screen Lightbox ─── */
.gt-schedule-lightbox {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    z-index: 2147483647 !important; /* Above all */
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.gt-schedule-lightbox.is-open {
    display: flex !important;
}

/* Backdrop: deep dark with heavy blur */
.gt-schedule-lightbox__backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(2, 6, 15, 0.92) !important;
    backdrop-filter: blur(20px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
    cursor: zoom-out !important;
    animation: gtFadeIn 0.22s ease-out !important;
    z-index: 1 !important;
}

@keyframes gtFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Floating Clean Top Close Button */
.gt-schedule-lightbox__close {
    position: fixed !important;
    top: 24px !important;
    right: 28px !important;
    z-index: 30 !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(13, 27, 46, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    color: #ffffff !important;
    font-size: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

.gt-schedule-lightbox__close:hover {
    background: #d4af37 !important;
    color: #040d1a !important;
    border-color: #d4af37 !important;
    transform: scale(1.1) rotate(90deg) !important;
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.4) !important;
}

/* Dialog Container (Centered Pure Image Focus) */
.gt-schedule-lightbox__dialog {
    position: relative !important;
    z-index: 10 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 90vw !important;
    max-height: 88vh !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    animation: gtPopZoom 0.26s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    pointer-events: auto !important;
}

@keyframes gtPopZoom {
    from {
        opacity: 0;
        transform: scale(0.90);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.gt-schedule-lightbox__image-box {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    max-width: 88vw !important;
    max-height: 86vh !important;
}

/* The Popped Image */
.gt-schedule-lightbox__img {
    display: block !important;
    max-width: 88vw !important;
    max-height: 86vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 16px !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85),
                0 0 0 1px rgba(255, 255, 255, 0.12),
                0 0 60px rgba(212, 175, 55, 0.15) !important;
    user-select: none !important;
}

/* Lock body scrolling when modal is active */
body.gt-lightbox-open {
    overflow: hidden !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gt-schedule-lightbox__close {
        top: 16px !important;
        right: 16px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }

    .gt-schedule-lightbox__image-box {
        max-width: 94vw !important;
        max-height: 84vh !important;
    }

    .gt-schedule-lightbox__img {
        max-width: 94vw !important;
        max-height: 84vh !important;
        border-radius: 12px !important;
    }

    .grace-training-page .gt-schedule-action-btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
        width: 100% !important;
        max-width: 320px !important;
    }
}
