/* Scoped brand marks: original layout, colours and animation rules remain in place. */
.gm-product-mark{display:inline-block!important;width:44px!important;height:44px!important;max-width:44px!important;vertical-align:middle;margin-right:10px;border-radius:11px;}
#portfolio-page .tab-content .item_img img.gm-catalogue-logo{width:200px;max-width:100%;height:240px;object-fit:contain;padding:22px 0;}
.similar_apps .item_img img.gm-catalogue-logo{object-fit:contain;}
/* Give viewBox-only SVGs an intrinsic layout width inside the homepage fit-content carousel. */
#home-page .section-5 .scroll-wrap .section5_carousel .item .item_img img.gm-catalogue-logo{width:min(64vw,256px)!important;height:auto!important;object-fit:contain;}

/* Keep touch-screen product copy above the persistent footer, in the same flow
   as its logo. Short viewports can scroll the existing pp-scrollable panel. */
@media (max-width:992px) {
    #home-page .section-5 .scroll-wrap .scrollable-content .vertical-centred {
        max-height:none;
    }
    #home-page .section-5 .tab-content {
        height:auto;
        min-height:100vh;
        overflow:visible;
    }
    #home-page .section-5 .tab-content .tab-pane.show {
        position:relative;
        right:auto;
        height:auto;
    }
    #home-page .section-5 .scroll-wrap .section5_carousel .item {
        display:flex;
        flex-direction:column;
        gap:20px;
        padding:148px 20px 104px;
    }
    #home-page .section-5 .scroll-wrap .section5_carousel .item .item_img img.gm-catalogue-logo {
        top:0;
        width:min(64vw,28vh,256px)!important;
    }
    #home-page .section-5 .scroll-wrap .section5_carousel .item .item_info.w-100 {
        position:static;
        margin:auto 0 0;
    }
    #home-page .section-5 .scroll-wrap .section5_carousel .item .item_info.w-100 .item_info_inner {
        position:static;
        max-width:100%;
        padding:0!important;
    }
    #home-page .section-5 .scroll-wrap .section5_carousel .item .item_info p span {
        display:block;
        -webkit-line-clamp:unset;
        overflow:visible;
        line-height:1.45;
    }
    /* Contact links remain in the header/footer; the floating rail must not cover this card. */
    #home-page:has(.section-5.active) .side_menu {
        display:none!important;
    }
}
