.strip {
    padding-top: 1rem;
    height: 95%;
}

.text-panel {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 20vh;
    padding-top: 20dvh;
}

.text-panel p {
    width: 55%;
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.8;
}

.image-panel {
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.image-panel img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
}

.caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10vh;
    bottom: 10dvh;
    text-align: center;
    font-size: 1.2rem;
    color: #333333;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.caption.visible {
    opacity: 1;
}

.next {
    position: absolute;
    bottom: 30vh;
    bottom: 30dvh;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    color: #333333;
}

.next img {
    height: 3rem;
    width: auto;
    padding-left: 1rem;
    display: block;
    transform: translateY(3px);
}

.fixed-spacer {
    width: 20%;
    height: 100%;
    flex-shrink: 0;
}

.first-spacer {
    width: 10%;
    height: 100%;
    flex-shrink: 0;
}

.end-spacer {
    width: var(--end-spacer-width, 0px);
    height: 100%;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .strip {
        height: 100%;
        padding-top: 0;
        scroll-snap-type: x mandatory;
    }

    .text-panel {
        width: 100%;
        padding: 3rem;
        padding-top: 4rem;
        justify-content: flex-start;
        scroll-snap-align: center;
    }

    .text-panel p {
        width: 100%;
        max-width: 32rem;
        font-size: 1.15rem;
        line-height: 1.6;
    }

    .next {
        bottom: 2rem;
        font-size: 1rem;
    }

    .next img {
        height: 2rem;
    }

    .image-panel {
        width: 100%;
        padding: 1rem;
        padding-bottom: 5rem;
        justify-content: center;
        scroll-snap-align: center;
    }

    .image-panel img {
        max-width: 100%;
        max-height: 100%;
    }

    .caption {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .fixed-spacer,
    .first-spacer,
    .end-spacer {
        width: 1rem;
        min-width: 1rem;
    }
}

