/* Box sizing rules */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Remove default margin */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
    list-style: none;
}

/* Set core root defaults */
html:focus-within {
    scroll-behavior: smooth;
}

html {
    overflow-y: scroll;
}

@supports (scrollbar-gutter: stable) {
    html {
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
}

/* Set core body defaults */
body {
    min-height: 100vh;
    min-height: 100svh;
    text-rendering: optimizeSpeed;
    line-height: 1.5;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
    text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
    font: inherit;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
:root {
        --color-dark: #111;
        --color-light: #f3e9e4;
    }
    body {
        background: var(--color-dark);
        color: var(--color-light);
    }

    #main {
        font-family: system-ui, sans-serif;
        font-size: 1rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        align-content: center;
        gap: 0.75rem;
        min-height: 100svh;
        padding: 1rem;
    }

    .slide {
        width: min(100%, calc(100svh - 11rem));
        margin: 0;
    }

    .slide[hidden] {
        display: none;
    }

    .scene {
        position: relative;
        container-type: inline-size;
    }

    .scene img {
        display: block;
        width: 100%;
        height: auto;
    }

    .peach {
        position: absolute;
        left: var(--x);
        top: var(--y);
        translate: -50% -50%;
        padding: 0;
        border: 0;
        background: none;
        font-size: calc(var(--size) * 1cqw);
        line-height: 1;
        cursor: grab;
        touch-action: none;
        user-select: none;
        aspect-ratio: 1;
    }

    .peach.is-dragging {
        cursor: grabbing;
    }

    .peach:focus-visible {
        outline: 3px solid var(--color-light);
        outline-offset: 0.25rem;
        border-radius: 50%;
    }

    figcaption {
        margin-block-start: 0.75rem;
        font-size: 0.9rem;
        font-style: italic;
        text-align: center;
    }

    .pager {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
    }

    .pager[hidden] {
        display: none;
    }

    .pager button {
        min-width: 3rem;
        min-height: 3rem;
        border: 2px solid var(--color-light);
        border-radius: 50%;
        background: none;
        color: inherit;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }

    .pager button:hover {
        background: var(--color-light);
        color: var(--color-dark);
    }

    .pager button:focus-visible {
        outline: 3px solid var(--color-light);
        outline-offset: 0.25rem;
    }

    .counter {
        min-width: 4rem;
        text-align: center;
        font-variant-numeric: tabular-nums;
    }