/* Home: latest recipes horizontal carousel */
.home-latest-carousel {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.25rem 0.25rem 0.75rem;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.home-latest-carousel::-webkit-scrollbar {
    height: 10px;
}

.home-latest-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 999px;
}

.home-latest-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 999px;
}

.home-latest-slide {
    scroll-snap-align: start;
    flex: 0 0 auto;
    width: min(78vw, 340px);
}

.home-latest-slide > a {
    display: block;
    height: 100%;
}

@media (min-width: 768px) {
    .home-latest-slide {
        width: 320px;
    }
}

@media (min-width: 1200px) {
    .home-latest-slide {
        width: 340px;
    }
}
