body,html { height:100%; }

.pageblock#fullscreen {
    position: relative;
    height: calc(100% - 53px);
    color: #fff;
}

.pageblock#fullscreen .slider {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    touch-action: pan-y pinch-zoom;
}

.pageblock#fullscreen .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 600ms ease, visibility 600ms;
}

.pageblock#fullscreen .slide.is-current {
    opacity: 1;
    visibility: visible;
}

.pageblock#fullscreen .slide-image,
.pageblock#fullscreen .slide-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pageblock#fullscreen #slideposition {
    position: absolute;
    right: 0;
    bottom: 0.75rem;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.125rem;
    z-index: 2;
}

.pageblock#fullscreen #slideposition[hidden] {
    display: none;
}

.pageblock#fullscreen #slideposition button {
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    background: none;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.pageblock#fullscreen #slideposition .slide-toggle {
    position: absolute;
    bottom: 100%;
    padding: 0.125rem 0.6rem;
    border: 1px solid #fff;
    border-radius: 4px;
    background: rgb(0 0 0 / 75%);
    font: inherit;
    font-size: 0.875rem;
}

.pageblock#fullscreen #slideposition .slide-toggle:not(:focus-visible) {
    clip-path: inset(50%);
}

.pageblock#fullscreen #slideposition .indicator::before {
    content: '';
    display: block;
    width: 13px;
    height: 13px;
    margin: auto;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgb(0 0 0 / 60%);
}

.pageblock#fullscreen #slideposition .indicator[aria-current]::before {
    background: #fff;
    box-shadow: 0 0 0 1px #000;
}

.pageblock#fullscreen #slideposition button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
    box-shadow: 0 0 0 4px #222;
}

@media (min-width: 1025px) {
    .pageblock#fullscreen #slideposition {
        bottom: 4.375rem;
    }
}

@media (max-width: 1024px) {
    .pageblock#fullscreen {
        position: relative;
        --slide-heading-size: calc(1.5 * clamp(1.5rem, 7vw, 2.25rem));
        --slide-body-size: clamp(2rem, 8.2vw, 2.25rem);
    }

    .pageblock#fullscreen .slide .txt {
        z-index: 1;
        animation: none;
        color: #fff;
        overflow-wrap: anywhere;
        text-shadow: 0 1px 2px rgb(0 0 0 / 85%), 3px 3px 4px rgb(64 64 64 / 70%);
    }

    .pageblock#fullscreen .slide .txt strong {
        margin: 0;
        font-size: var(--slide-heading-size);
        line-height: 1.15;
    }

    .pageblock#fullscreen #s2 .txt {
        -webkit-text-stroke: 3px #372c27;
        paint-order: stroke fill;
    }

    .pageblock#fullscreen :is(#s2, #s3, #s4, #s5) .txt {
        top: 4.625rem;
        right: 8%;
        bottom: 25%;
        left: auto;
        width: 25%;
        min-width: 240px;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: safe flex-end;
    }

    .pageblock#fullscreen:lang(en) :is(#s2, #s3, #s4, #s5) .txt {
        width: min(88%, 38rem);
        min-width: 0;
        padding: 0;
    }

    .pageblock#fullscreen :is(#s2, #s3, #s4, #s5) .txt strong {
        line-height: 1.05;
    }

    .pageblock#fullscreen #s1 .txt {
        left: 51%;
        right: 3%;
        bottom: auto;
        width: auto;
        min-width: 0;
        margin-right: 0;
    }

    .pageblock#fullscreen #s1 .txt strong {
        word-break: keep-all;
    }

    .pageblock#fullscreen :is(#s2, #s3, #s4) .txt p,
    .pageblock#fullscreen #s5 .txt strong + strong {
        margin: 0.5rem 0 0;
        color: inherit;
        font-size: var(--slide-body-size);
        font-weight: 400;
        line-height: 1.15;
    }

    .pageblock#fullscreen #s5 .txt strong:first-child {
        font-size: var(--slide-body-size);
    }

    .pageblock#fullscreen #s5 .txt strong + strong {
        font-size: var(--slide-heading-size);
        text-wrap: pretty;
    }
}

@media (max-width: 320px) {
    .pageblock#fullscreen :is(#s2, #s3, #s4, #s5) .txt {
        right: auto;
        bottom: 20%;
        left: 2%;
        width: auto;
        padding: 0 1em;
    }
}

@media (max-width: 1024px) and (max-height: 420px) {
    .pageblock#fullscreen {
        min-height: 22.5rem;
        --slide-body-size: 2rem;
    }

    .pageblock#fullscreen:lang(en) {
        min-height: 28rem;
    }

    .pageblock#fullscreen #s1 .txt {
        top: 4.875rem;
    }

    .pageblock#fullscreen #s1 .txt strong {
        line-height: 1.05;
    }

    .pageblock#fullscreen:lang(en) :is(#s2, #s3, #s4) .txt strong {
        line-height: 1;
    }

    .pageblock#fullscreen:lang(en) :is(#s2, #s3, #s4) .txt p {
        line-height: 1.1;
    }

    .pageblock#fullscreen :is(#s2, #s3, #s4, #s5) .txt {
        width: min(88%, 38rem);
        min-width: 0;
        padding: 0;
    }
}

/* The longer English copy needs more vertical space at double size. */
@media (max-width: 640px) and (orientation: portrait) {
    .pageblock#fullscreen:lang(en) {
        min-height: 39rem;
    }
}

@media (max-width: 375px) and (orientation: portrait) {
    .pageblock#fullscreen:lang(en) {
        min-height: 44rem;
    }
}
