@charset "utf-8";
.threads-feed {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    padding: 10px;
}

@media screen and (max-width: 767px) {
    .threads-feed {
        display: flex;
        gap: 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding: 0 6vw 12px;
        margin-bottom: 20px;
    }

    .threads-feed-item {
        flex: 0 0 82vw;
        max-width: 340px;
        scroll-snap-align: center;
    }
}

.threads-feed-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.threads-feed-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.threads-feed-media,
.threads-feed-carousel-item {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f4f4;
}

.threads-feed-media img,
.threads-feed-media video,
.threads-feed-carousel-item img,
.threads-feed-carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.threads-feed-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.threads-feed-carousel-item {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.threads-feed-body {
    padding: 18px;
}

.threads-feed-text {
    margin: 0 0 12px;
    line-height: 1.8;
    font-size: 15px;
}

.threads-feed-date {
    display: block;
    color: #888;
    font-size: 12px;
}

.threads-feed-error {
    color: #d63638;
}

.threads-feed-empty {
    color: #666;
}

@media screen and (max-width: 900px) {
    .threads-feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 600px) {
    .threads-feed {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}