/* =========================================
   CAREER STUDIOS J1 POPUP
========================================= */

.j1-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(20, 20, 20, 0.78);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.j1-popup-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.j1-popup-modal {
    position: relative;

    width: 100%;
    max-width: 1100px;
    max-height: 92vh;

    transform: translateY(20px) scale(0.97);

    transition:
        transform 0.35s ease;

    filter: drop-shadow(
        0 25px 70px rgba(0, 0, 0, 0.45)
    );
}

.j1-popup-overlay.is-active .j1-popup-modal {
    transform: translateY(0) scale(1);
}

.j1-popup-link {
    display: block;
    width: 100%;
    cursor: pointer;
}

.j1-popup-image {
    display: block;

    width: 100%;
    height: auto;

    max-height: 92vh;

    object-fit: contain;

    border-radius: 18px;
}

/* Close Button */

.j1-popup-close {
    position: absolute;

    top: 16px;
    right: 16px;

    z-index: 10;

    width: 52px;
    height: 52px;

    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;

    background: #4abcd4;

    color: #ffffff;

    font-size: 42px;
    line-height: 42px;

    font-weight: 300;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.25);

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.j1-popup-close:hover {
    background: #ff9500;
    transform: scale(1.08);
}

.j1-popup-close:focus-visible {
    outline: 3px solid #ff9500;
    outline-offset: 3px;
}

/* Prevent background scrolling */

body.j1-popup-open {
    overflow: hidden;
}

/* Tablet */

@media (max-width: 900px) {

    .j1-popup-overlay {
        padding: 15px;
    }

    .j1-popup-modal {
        max-width: 900px;
    }

    .j1-popup-close {
        width: 46px;
        height: 46px;

        top: 10px;
        right: 10px;

        font-size: 36px;
    }
}

/* Mobile */

@media (max-width: 600px) {

    .j1-popup-overlay {
        padding: 10px;
    }

    .j1-popup-modal {
        width: 100%;
        max-height: 90vh;
    }

    .j1-popup-image {
        max-height: 90vh;
        border-radius: 12px;
    }

    .j1-popup-close {
        width: 40px;
        height: 40px;

        top: 7px;
        right: 7px;

        font-size: 30px;
    }
}