/* Keep the Cross icon and colors, aligned with the activities' 40px menu. */
#math-cross-fullscreen[data-activity-fullscreen] {
    position: absolute;
    top: 4px;
    right: 56px;
    width: 40px;
    height: 40px;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    pointer-events: auto;
}

@media (orientation: landscape) {
    /* These framed activities are 76% wide, with a 2% left margin.
       Shift only as far as needed to leave 8px before the fullscreen button. */
    #mainCont:has(#bgImg) {
        left: min(17%, calc(22% - 104px));
    }
}
