/* Event pages on the 43" kiosk (1080 x 1920 portrait).
   The Event design is a 400px phone card; zoom scales the whole card (fonts, icons, buttons) to fill the screen width.
   Heights are divided by the zoom factor so the card still ends up as tall as the screen. */
@media screen and (orientation: portrait) and (min-width: 761px) {
    :root:root .main-view,
    :root:root .scan-view-login-wrap {
        zoom: 2.6;
        width: 400px !important;
        min-height: calc(98dvh / 2.6) !important;
        border-width: 2px !important;
    }
    :root:root .scan-view-wrap {
        zoom: 1.75;
        width: 600px !important;
        min-height: calc(90dvh / 1.75) !important;
    }
    :root:root .main-view.event-home-view {
        height: calc(98dvh / 2.6) !important;
        max-height: calc(98dvh / 2.6) !important;
    }
    :root:root .main-view.event-home-view .qr-main-wrap__image { width: min(170px, 24svh, 48vw) !important; }

    /* undo the shared kiosk baseline inside the zoomed card (it is already sized for 1080 px) */
    :root:root .main-view :is(button, [type=button], [type=submit], a[role=button], .btn),
    :root:root .scan-view-wrap :is(button, [type=button], [type=submit], a[role=button], .btn),
    :root:root .scan-view-login-wrap :is(button, [type=button], [type=submit], a[role=button], .btn) { min-height: 22px; min-width: 22px; }
    :root:root .main-view :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea),
    :root:root .scan-view-wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea),
    :root:root .scan-view-login-wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea) { min-height: 24px; font-size: 1rem; }
    :root:root .main-view :is(p, li, td, th, label, small, .small),
    :root:root .scan-view-wrap :is(p, li, td, th, label, small, .small),
    :root:root .scan-view-login-wrap :is(p, li, td, th, label, small, .small) { font-size: 1em; }
    :root:root .main-view input[type=checkbox], :root:root .main-view input[type=radio],
    :root:root .scan-view-wrap input[type=checkbox], :root:root .scan-view-wrap input[type=radio] { width: 1em; height: 1em; }
}
