.home-card-controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -46px 0 16px;
}

.home-card-controls button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(15, 38, 62, .16);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 20px;
}

.possible-grid,
.stories-home__rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 32px) / 3);
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.possible-card,
.story-home-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    scroll-snap-align: start;
}

.possible-card {
    display: flex;
    flex-direction: column;
}

.possible-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.possible-card > div {
    flex: 1;
}

.stories-home {
    position: relative;
    overflow: hidden;
}

.stories-home__head {
    max-width:none; margin:0 auto 18px; text-align:center;
}

.stories-home__head h2 {
    margin: 0 0 8px;
}

.stories-home__head p {
    margin: 0;
    line-height: 1.6;
}

.story-home-card {
    border: 1px solid rgba(15, 38, 62, .11);
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 38, 62, .07);
}

.story-home-card__visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    padding: 16px;
    background: #fff;
}

.story-home-card__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-home-card__visual span {
    position: relative;
    z-index: 1;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-weight: 700;
}

.story-home-card__body {
    display: flex;
    min-height: 245px;
    flex-direction: column;
    padding: 18px;
}

.story-home-card__body small {
    font-size: 12px;
    font-weight: 700;
}

.story-home-card__body h3 {
    margin: 9px 0 10px;
    font-size: 20px;
    line-height: 1.25;
}

.story-home-card__body p {
    margin: 0 0 18px;
    line-height: 1.55;
}

.story-home-card__cta {
    margin-top: auto;
    color: #0f263e;
    font-weight: 800;
    text-decoration: none;
}

.story-home-card__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.story-home-card__share {
    display: inline-grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(15, 38, 62, .16);
    border-radius: 50%;
    background: #fff;
    color: #0f263e;
    cursor: pointer;
}

.story-home-card--submit {
    display: grid;
}

.story-home-card__submit {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: 28px;
    text-align: center;
}

.story-home-card__submit > span {
    font-size: 34px;
}

.story-home-card__submit h3 {
    margin: 12px 0 8px;
    font-size: 22px;
}

.story-home-card__submit p {
    line-height: 1.55;
}

.story-home-card__submit a {
    align-self: center;
    margin-top: 8px;
    padding: 11px 18px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 760px) {
    .home-card-controls {
        display: none;
    }

    .possible-grid,
    .stories-home__rail {
        grid-auto-columns: 84%;
        gap: 12px;
        padding-right: 14%;
    }

    .story-home-card__body {
        min-height: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .possible-grid,
    .stories-home__rail {
        scroll-behavior: auto;
    }
}
