/* Local overrides for the Honda intro page (loaded after portalbundle.css). */

:root {
    --intro-bg: #000;
    --intro-text: #fff;
    --intro-font: Tahoma, Verdana, "Segoe UI", Arial, sans-serif;
    --intro-gutter: 20px;
}

html,
body {
    background: var(--intro-bg);
}

.portal-wrapper {
    font-family: var(--intro-font);
}

.portal-wrapper .container li > a .title::before {
    display: none !important;
}

.responsiveFooter.isPortal {
    border: 0;
    box-shadow: none;
}

/* Mobile and tablet: the two divisions split the screen height 50/50. */
@media screen and (max-width: 1023px) {
    .portal-wrapper {
        position: relative;
        height: 100vh;
        height: 100svh;
        padding: 0;
        overflow: hidden;
    }

    .portal-wrapper__logo {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2;
        height: auto;
        padding: 24px 0 48px;
        background: linear-gradient(rgba(0, 0, 0, .65), rgba(0, 0, 0, 0));
        pointer-events: none;
    }

    .portal-wrapper .container {
        height: 100%;
        gap: 2px;
    }

    .portal-wrapper .container li.item {
        display: block;
        flex: 1 1 0;
        min-height: 0;
    }

    .portal-wrapper .container li > a {
        position: relative;
        display: block;
        height: 100%;
        color: var(--intro-text);
    }

    .portal-wrapper .container li > a .thumb {
        position: absolute;
        inset: 0;
        display: block;
    }

    .portal-wrapper .container li > a .thumb img {
        display: block;
        width: 100%;
        height: 100%;
        max-height: none !important;
        object-fit: cover;
        object-position: center;
    }

    .portal-wrapper .container li > a .title {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        padding: 48px var(--intro-gutter) 18px;
        font-size: clamp(24px, 4.5vw, 34px);
        color: var(--intro-text);
        background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, .7));
    }

    .responsiveFooter.isPortal {
        display: none;
    }
}
