.ng-home {
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 18px 12px calc(126px + env(safe-area-inset-bottom, 0px));
}

.ng-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
}

.ng-story-card {
    min-width: 0;
}

.ng-story-card__image-link {
    display: block;
    overflow: hidden;
    border-radius: 14px;
    background: #f1f1f1;
    text-decoration: none;
    aspect-ratio: 15 / 28;
}

.ng-story-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ng-story-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    padding: 9px 2px 0;
}

.ng-story-card__name {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: var(--ng-text);
    text-decoration: none;
    font-size: clamp(1rem, 4.45vw, 1.24rem);
    font-weight: 850;
    line-height: 1.12;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ng-story-card__love {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3px;
    color: var(--ng-accent);
    font-size: 0.93rem;
    line-height: 1;
}

.ng-story-card__love svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ng-story-card__love strong {
    font-weight: 800;
}

.ng-home__empty {
    margin: 38px auto 0;
    max-width: 440px;
    padding: 28px 18px;
    border: 1px solid var(--ng-border);
    border-radius: 16px;
    color: var(--ng-muted);
    text-align: center;
}

.ng-home__load-more-wrap {
    display: flex;
    justify-content: center;
    padding: 26px 0 10px;
}

.ng-home__load-status {
    min-height: 1.5em;
    margin: 10px 0 0;
    color: var(--ng-muted);
    font-size: 0.88rem;
    text-align: center;
}

@media (max-width: 359px) {
    .ng-home {
        padding-inline: 8px;
    }

    .ng-story-grid {
        gap: 15px 8px;
    }

    .ng-story-card__name {
        font-size: 0.96rem;
    }

    .ng-story-card__love {
        font-size: 0.84rem;
    }
}

@media (min-width: 600px) {
    .ng-home {
        padding-inline: 20px;
    }

    .ng-story-grid {
        gap: 24px 18px;
    }
}

@media (min-width: 768px) {
    .ng-home {
        padding-top: 24px;
    }

    .ng-story-grid {
        gap: 28px 22px;
    }

    .ng-story-card__image-link {
        border-radius: 18px;
    }

    .ng-story-card__name {
        font-size: 1.22rem;
    }
}

@media (min-width: 1024px) {
    .ng-home {
        width: min(100%, 980px);
        padding-inline: 26px;
    }

    .ng-story-grid {
        gap: 34px 28px;
    }
}

@media (min-width: 1440px) {
    .ng-home {
        width: 1040px;
    }
}

/* Public image copy/download deterrence. */
.ng-story-card__image-link,
.ng-story-card__image {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.ng-story-card__image-link {
    -webkit-tap-highlight-color: transparent;
}

.ng-story-card__image {
    pointer-events: none;
    -webkit-user-drag: none;
    user-drag: none;
}

