/* GT_MENTOR_HOME_V1 */

.gt-mentor-home-layer {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: 100%;
    height: 100%;
}

.gt-mentor-home-layer[hidden] {
    display: none !important;
}

.gt-mentor-home-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* BEGIN GT_MENTOR_HOME_BACKDROP_V2 */

.gt-mentor-home-layer {
    background:
        rgba(5, 13, 29, .48);

    -webkit-backdrop-filter:
        blur(5px) brightness(.72);

    backdrop-filter:
        blur(5px) brightness(.72);
}

/* END GT_MENTOR_HOME_BACKDROP_V2 */

/* BEGIN GT_MENTOR_HOME_FRAME_V3 */

/*
 * The parent page remains visible.
 * The iframe is now only the Mentor window,
 * not a second full-screen page.
 */

.gt-mentor-home-layer {
    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    padding: 18px;

    background:
        rgba(3, 10, 24, .42);

    -webkit-backdrop-filter:
        blur(4px) brightness(.66);

    backdrop-filter:
        blur(4px) brightness(.66);

    overflow: hidden;
}

.gt-mentor-home-frame {
    width:
        min(
            720px,
            calc(100vw - 36px)
        );

    height:
        min(
            94vh,
            980px
        );

    flex: 0 0 auto;

    border: 0;
    border-radius: 28px;

    margin: 0;
    padding: 0;

    background: transparent;

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, .46);

    overflow: hidden;
}

@media (max-width: 760px) {
    .gt-mentor-home-layer {
        padding: 0;
        align-items: stretch;

        background:
            rgba(3, 10, 24, .52);
    }

    .gt-mentor-home-frame {
        width: 100%;
        height: 100%;

        max-width: none;
        max-height: none;

        border-radius: 0;
    }
}

/* END GT_MENTOR_HOME_FRAME_V3 */

/* BEGIN GT_MENTOR_HOME_FRAME_V4 */

/*
 * Laptop / desktop:
 * wider popup so the entire Mentor fits
 * on the first screen with minimal wrapping.
 */

@media (min-width: 761px) {

    .gt-mentor-home-layer {
        padding:
            12px
            20px !important;
    }

    .gt-mentor-home-frame {
        width:
            min(
                940px,
                calc(100vw - 40px)
            ) !important;

        height:
            min(
                86vh,
                790px
            ) !important;

        max-width: 940px !important;
        max-height: 790px !important;

        border: 0 !important;
        border-radius: 22px !important;

        background:
            #0b1629 !important;

        box-shadow:
            0 28px 80px
            rgba(0, 0, 0, .52) !important;
    }
}

/*
 * Mobile keeps the existing full-screen behaviour.
 */

@media (max-width: 760px) {

    .gt-mentor-home-frame {
        width: 100% !important;
        height: 100% !important;

        max-width: none !important;
        max-height: none !important;

        border-radius: 0 !important;
    }
}

/* END GT_MENTOR_HOME_FRAME_V4 */
