/* The Stories page (Views/StoriesOverview.cshtml): a grid of story thumbnails, each the
   story's navigation image (840x460) with its menu text underneath, the whole tile a link */

.stories h2 {
    margin-bottom: 1rem;
}

.stories-intro {
    max-width: 46rem;
    margin-bottom: 2rem;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 0 0 3rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .stories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.stories-grid li {
    margin: 0;
    padding: 0;
}

.story-tile {
    display: block;
    color: #282828;
}

.story-picture {
    display: block;
    overflow: hidden;
    background: #f2f2f2;
    aspect-ratio: 840 / 460;
}

.story-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.story-tile:hover img,
.story-tile:focus img {
    transform: scale(1.03);
}

.story-caption {
    display: block;
    padding-top: 0.8rem;
}

.story-name {
    display: block;
    font-family: 'orgonmedium', sans-serif;
    font-size: 1.1rem;
    line-height: 1.3;
}

.story-tile:hover .story-name,
.story-tile:focus .story-name {
    text-decoration: underline;
}

.story-sub {
    display: block;
    margin-top: 0.2rem;
    color: #595959;
    font-size: 0.9rem;
}
