html,
body,
#slideshow {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
}

body {
    cursor: none;
}

.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    will-change: opacity, transform;
}

#message {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    color: #888;
    font-family: Arial, sans-serif;
    font-size: clamp(18px, 2.5vmin, 28px);
    z-index: 20;
}

#slide-ui {
    position: absolute;
    left: 50%;
    bottom: max(20px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    width: clamp(220px, 56vw, 720px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(8px, 1.2vmin, 14px);
    z-index: 30;
    pointer-events: none;
}

#slide-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(7px, 1vmin, 12px);
    min-height: 14px;
}

.slide-dot {
    width: clamp(7px, 1vmin, 11px);
    height: clamp(7px, 1vmin, 11px);
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    box-shadow: 0 1px 4px rgba(0,0,0,.45);
    transition: background .25s ease, transform .25s ease;
}

.slide-dot.active {
    background: #fff;
    transform: scale(1.25);
}

#progress-track {
    width: 100%;
    height: clamp(3px, .5vmin, 6px);
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
    box-shadow: 0 1px 4px rgba(0,0,0,.35);
}

#progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    transform-origin: left center;
}
#slideshow {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
