/* XXXNorway — gallery-style blog layout */
.blog-shell-gallery {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.25rem 0 2rem;
}

.blog-shell-gallery .feed-panel {
    margin-top: 0;
}

.blog-shell-gallery .media-grid,
.blog-shell-gallery .blog-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
    gap: 0.65rem;
    align-items: stretch;
    min-width: 0;
    width: 100%;
}

@media (min-width: 640px) {
    .blog-shell-gallery .media-grid,
    .blog-shell-gallery .blog-feed-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
        gap: 0.85rem;
    }
}

@media (min-width: 1024px) {
    .blog-shell-gallery .media-grid,
    .blog-shell-gallery .blog-feed-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.blog-shell-gallery .blog-card,
.blog-shell-gallery .media-feed-card {
    border-radius: 0.5rem;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 8, 12, 0.85);
}

.blog-shell-gallery .blog-card-media {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    width: 100%;
}

.blog-shell-gallery .blog-card-title {
    font-size: 0.9rem;
    line-height: 1.3;
    padding: 0.55rem 0.65rem 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.blog-shell-gallery .blog-card-body {
    padding: 0.35rem 0.65rem 0.65rem;
    font-size: 0.8rem;
    opacity: 0.82;
}

.blog-shell-gallery .compose-plus-bar {
    margin-bottom: 0.75rem;
}
