.homepage-featured {
    max-width: var(--site-width, 1180px);
    margin: 24px auto 34px;
    padding: 0 18px;
}

.section-head > a {
    flex: 0 0 auto;
    white-space: nowrap;
}

.homepage-featured-tile {
    background: #f1f1f1;
    border-radius: var(--radius-md, 8px);
    display: block;
    min-height: 0;
    overflow: hidden;
    position: relative;
    text-decoration: none;
}

.homepage-featured-tile img {
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
    width: 100%;
}

.homepage-featured-tile:hover img {
    transform: scale(1.025);
}

.homepage-featured-single_wide .homepage-featured-tile,
.homepage-featured-slider-track .homepage-featured-tile {
    aspect-ratio: 16 / 5.4;
}

.homepage-featured-slider {
    position: relative;
}

.homepage-featured-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.homepage-featured-slider-track::-webkit-scrollbar {
    display: none;
}

.homepage-featured-slider-track .homepage-featured-tile {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.homepage-featured-arrow {
    align-items: center;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(17, 17, 17, .14);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
    color: #111;
    display: flex;
    font-size: 28px;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    z-index: 4;
}

.homepage-featured-arrow:disabled {
    opacity: 0;
    pointer-events: none;
}

.homepage-featured-prev {
    left: 12px;
}

.homepage-featured-next {
    right: 12px;
}

.homepage-featured-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr);
    grid-template-rows: 1fr 1fr;
}

.homepage-featured-mosaic_1_2 .homepage-featured-grid {
    height: min(42vw, 520px);
    min-height: 310px;
}

.homepage-featured-tall_1_2 .homepage-featured-grid {
    height: min(58vw, 650px);
    min-height: 420px;
}

.homepage-featured-grid .homepage-featured-tile {
    height: 100%;
}

.homepage-featured-grid .homepage-featured-tile.is-main {
    grid-row: 1 / span 2;
}

:root[data-theme=dark] .homepage-featured-tile {
    background: #242832;
}

:root[data-theme=dark] .homepage-featured-arrow {
    background: #171a20;
    border-color: #30333a;
    color: #f5f5f5;
}

@media (max-width: 760px) {
    .homepage-featured {
        margin: 16px auto 26px;
        padding: 0 14px;
    }

    .homepage-featured-single_wide .homepage-featured-tile,
    .homepage-featured-slider-track .homepage-featured-tile {
        aspect-ratio: 1.35 / 1;
    }

    .homepage-featured-grid {
        display: flex;
        gap: 10px;
        height: auto !important;
        min-height: 0 !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .homepage-featured-grid .homepage-featured-tile {
        aspect-ratio: 1.22 / 1;
        flex: 0 0 82%;
        height: auto;
        scroll-snap-align: start;
    }

    .homepage-featured-arrow {
        height: 34px;
        width: 34px;
    }

    .homepage-featured-prev {
        left: 8px;
    }

    .homepage-featured-next {
        right: 8px;
    }
}
