/* ==========================================================================
   MODAL SESSION - Session-Based Popup Modal
   Shows once per browser session (sessionStorage).
   Simple fade-in animation — no scale/transform.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Overlay
   -------------------------------------------------------------------------- */
.spl-session-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease, background 0.35s ease;
}

.spl-session-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.6);
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.spl-session-modal-container {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-xl, 16px);
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl, 0 20px 60px rgba(0, 0, 0, 0.3));
}

/* --------------------------------------------------------------------------
   Close Button
   -------------------------------------------------------------------------- */
.spl-session-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 2px solid var(--neutral-800, #333);
    background: #ffffff;
    border-radius: var(--radius-full, 50%);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    color: var(--neutral-800, #333);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
    z-index: 1;
}

.spl-session-modal-close:hover {
    background: var(--neutral-800, #333);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Body
   -------------------------------------------------------------------------- */
.spl-session-modal-body {
    padding: 0;
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
.spl-session-modal-content {
    padding: 28px 32px 20px;
}

/* --------------------------------------------------------------------------
   Title
   -------------------------------------------------------------------------- */
#spl-session-modal .spl-session-modal-title {
    font-size: 2.6rem !important;
    font-weight: var(--fw-bold, 700);
    color: var(--neutral-900, #000) !important;
    margin: 0 0 14px !important;
    line-height: 1.3 !important;
}

/* --------------------------------------------------------------------------
   Text
   -------------------------------------------------------------------------- */
.spl-session-modal-text {
    font-size: 1.5rem;
    color: var(--neutral-600, #444);
    line-height: 1.7;
    margin: 0;
}

#spl-session-modal .spl-session-modal-text.wyseditor p {
    font-size: 1.5rem !important;
    color: var(--neutral-600, #444) !important;
    line-height: 1.7 !important;
    margin: 0 0 10px !important;
}

#spl-session-modal .spl-session-modal-text.wyseditor p:last-child {
    margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   Image
   -------------------------------------------------------------------------- */
.spl-session-modal-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 var(--radius-xl, 16px) var(--radius-xl, 16px);
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   Mobile Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .spl-session-modal-overlay {
        padding: 10px;
    }

    .spl-session-modal-container {
        max-width: 100%;
        max-height: 85vh;
    }

    .spl-session-modal-close {
        width: 30px;
        height: 30px;
        font-size: 18px;
        top: 8px;
        right: 8px;
    }

    .spl-session-modal-content {
        padding: 16px 16px 14px;
    }

    #spl-session-modal .spl-session-modal-title {
        font-size: 2.1rem !important;
        margin-bottom: 10px !important;
    }

    .spl-session-modal-text {
        font-size: 1.3rem;
        line-height: 1.7;
    }

    #spl-session-modal .spl-session-modal-text.wyseditor p {
        font-size: 1.3rem !important;
        line-height: 1.7 !important;
        margin: 0 0 8px !important;
    }
}
