/* Professor V2.7.5 — Mobile UI + normalized image display */

/* Long software filenames must never escape their card. */
.professor-download-device__release,
.professor-download-release-info,
.professor-download-release-info > div {
    min-width: 0;
    max-width: 100%;
}

.professor-download-release-info > div {
    flex: 1 1 auto;
}

.professor-download-release-info strong {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: break-word;
    unicode-bidi: plaintext;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1.55 !important;
    letter-spacing: -.01em;
}

.professor-rtl .professor-download-release-info strong {
    direction: ltr;
    text-align: left;
}

/*
 * Product images are normalized server-side to the same centered 1200x900 canvas.
 * CSS does not zoom, crop or apply a second artificial size rule.
 */
.professor-download-device__image {
    overflow: hidden;
    padding: 0;
}

.professor-download-device__image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    filter: drop-shadow(0 8px 12px rgba(18,30,45,.1));
}

/* V2.7.11/V2.7.12 — loading next devices */
.professor-infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 74px;
    margin: 18px auto 6px;
    padding: 8px;
}

.professor-infinite-loader button {
    min-width: 154px;
    min-height: 44px;
    padding: 11px 20px;
    border: 1px solid rgba(18, 46, 79, .12);
    border-radius: 999px;
    background: #fff;
    color: #163457;
    box-shadow: 0 8px 24px rgba(16, 36, 62, .08);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s ease;
}

.professor-infinite-loader button:hover {
    transform: translateY(-1px);
    border-color: rgba(19, 117, 255, .3);
    color: #1375ff;
}

.professor-infinite-loader button[disabled] {
    cursor: default;
    opacity: .72;
    transform: none;
}

/* One Million Pro Plus (#8) page tuning only */
.professor-product-shell--one-million .professor-product-main-image {
    overflow: hidden;
    height: 440px;
    padding: 12px;
    background: #fff;
    border: 1px solid #edf0f4;
}

.professor-product-shell--one-million .professor-product-main-image:before {
    display: none;
}

.professor-product-shell--one-million .professor-product-main-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    filter: none !important;
    border-radius: 10px;
}

.professor-product-shell--one-million .professor-product-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 9px;
    padding: 12px 8px 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}

.professor-product-shell--one-million .professor-product-thumbs::-webkit-scrollbar {
    display: none;
}

.professor-product-shell--one-million .professor-product-thumbs button {
    flex: 0 0 72px;
    width: 72px;
    height: 64px;
    padding: 5px;
    overflow: hidden;
    background: #fff;
    scroll-snap-align: start;
}

.professor-product-shell--one-million .professor-product-thumbs img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center !important;
    transform: none !important;
    filter: none !important;
}

.professor-product-shell--one-million .professor-product-summary h1,
.professor-product-shell--one-million .professor-product-header h1 {
    line-height: 1.05;
}

@media (max-width: 800px) {
    .professor-header--inner {
        overflow: visible !important;
    }

    .professor-nav,
    .professor-header--inner .professor-nav {
        z-index: 10000;
    }

    .professor-mobile-menu,
    .professor-header--home .professor-mobile-menu,
    .professor-header--inner .professor-mobile-menu {
        position: fixed !important;
        top: 82px !important;
        right: 16px !important;
        left: 16px !important;
        width: auto !important;
        max-width: none !important;
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
        margin: 0 !important;
        padding: 10px !important;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 100000 !important;
        border-radius: 18px;
        box-shadow: 0 24px 70px rgba(0,0,0,.48);
        -webkit-overflow-scrolling: touch;
    }

    .professor-mobile-menu > a {
        min-height: 50px;
        display: flex;
        align-items: center;
        padding: 13px 15px;
        font-size: 14px;
        line-height: 1.5;
    }

    .professor-mobile-language {
        margin-top: 7px;
        padding-top: 7px;
        border-top: 1px solid rgba(255,255,255,.09);
    }

    .professor-mobile-language a {
        min-height: 45px;
        display: flex;
        align-items: center;
    }

    .professor-product-shell--one-million .professor-product-main-image {
        height: 310px;
        padding: 8px;
    }
}

@media (max-width: 620px) {
    .professor-download-device__release {
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    .professor-download-release-info {
        width: 100%;
        align-items: flex-start;
    }

    .professor-download-release-info strong {
        font-size: 9.5px !important;
        line-height: 1.55 !important;
    }

    .professor-download-release-info p {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .professor-download-release-icon {
        margin-top: 2px;
    }

    .professor-mobile-menu,
    .professor-header--home .professor-mobile-menu,
    .professor-header--inner .professor-mobile-menu {
        top: 72px !important;
        right: 10px !important;
        left: 10px !important;
        max-height: calc(100vh - 86px);
        max-height: calc(100dvh - 86px);
        border-radius: 16px;
    }

    .professor-product-shell--one-million .professor-product-main-image {
        height: 280px;
        padding: 6px;
    }

    .professor-product-shell--one-million .professor-product-thumbs {
        gap: 8px;
        padding-inline: 12px;
    }

    .professor-product-shell--one-million .professor-product-thumbs button {
        flex-basis: 58px;
        width: 58px;
        height: 54px;
    }

    .professor-product-shell--one-million .professor-product-summary h1,
    .professor-product-shell--one-million .professor-product-header h1 {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .professor-infinite-loader {
        min-height: 62px;
        margin-top: 12px;
    }
}

/* V2.7.13: product /7 mobile gallery finishing */
.professor-product-shell--one-million .professor-product-gallery{overflow:hidden}
@media(max-width:620px){
.professor-product-shell--one-million .professor-product-gallery{padding:10px!important}
.professor-product-shell--one-million .professor-product-thumbs{gap:6px!important;padding:10px 2px 0!important;scrollbar-width:none}
.professor-product-shell--one-million .professor-product-thumbs button{border-radius:11px!important;padding:4px!important}
.professor-product-shell--one-million .professor-product-main-image{border-radius:14px!important}
}
