/* [carousel] shortcode (shortcodes/CarouselShortcode.php, js/carousel.js) */
#body .carousel {
    position: relative;
    margin: 1.5rem 0;
}
#body .carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    border: 1px solid rgb(var(--c-line));
    border-radius: var(--radius-card);
    background: rgb(var(--c-surface));
    outline: none;
}
#body .carousel-track::-webkit-scrollbar {
    display: none;
}
#body .carousel-track:focus-visible {
    box-shadow: 0 0 0 2px rgb(var(--c-accent));
}
#body .carousel-slide {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: start;
    min-width: 0;
}
#body .carousel-image {
    display: block;
    aspect-ratio: var(--carousel-ratio, 16 / 10);
    overflow: hidden;
    background: rgb(var(--c-raised));
    border-bottom: 1px solid rgb(var(--c-line));
    cursor: zoom-in;
}
#body .carousel-image img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: top center;
    border: 0;
    box-shadow: none;
}
#body .carousel-slide figcaption {
    padding: .6rem 1rem .7rem;
    font-size: .875rem;
    line-height: 1.45;
    color: rgb(var(--c-fg-muted));
}
#body .carousel-arrows {
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    aspect-ratio: var(--carousel-ratio, 16 / 10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 .75rem;
    pointer-events: none;
}
#body .carousel-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid rgb(var(--c-line));
    border-radius: 50%;
    background: rgb(var(--c-page) / .85);
    color: rgb(var(--c-fg));
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    opacity: 0;
    transition: opacity .15s ease, border-color .15s ease, color .15s ease;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-pop);
}
#body .carousel:hover .carousel-arrow,
#body .carousel:focus-within .carousel-arrow {
    opacity: 1;
}
#body .carousel-arrow:hover {
    border-color: rgb(var(--c-accent));
    color: rgb(var(--c-accent));
}
#body .carousel-arrow:disabled {
    visibility: hidden;
}
@media (hover: none) {
    #body .carousel-arrow {
        opacity: .85;
    }
}
#body .carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: .5rem;
    position: relative;
}
#body .carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
}
#body .carousel-dot {
    width: .5rem;
    height: .5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(var(--c-line-strong));
    cursor: pointer;
}
#body .carousel-dot[aria-current='true'] {
    background: rgb(var(--c-accent));
}
#body .carousel-count {
    position: absolute;
    right: 0;
    min-width: 3.5rem;
    font-family: var(--font-mono);
    font-size: .8rem;
    color: rgb(var(--c-fg-subtle));
    text-align: right;
}
#body .carousel-contain .carousel-image img {
    object-fit: contain;
    object-position: center;
}
#body .carousel-pixelated .carousel-image img {
    image-rendering: pixelated;
}
@media (prefers-reduced-motion: reduce) {
    #body .carousel-track {
        scroll-behavior: auto;
    }
}
