.nms-napitki133-internal-layout {
    display: grid;
    gap: 24px;
    max-width: 1120px;
    margin: 0 auto;
}

.nms-napitki133-internal-layout--sidebar_right {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
}

.nms-napitki133-internal-layout--sidebar_left {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
}

.nms-napitki133-internal-layout--full_width,
.nms-napitki133-internal-layout--no_sidebar {
    grid-template-columns: minmax(0, 1fr);
}

.nms-template-content-width--narrow .nms-source-post,
.nms-template-content-width--narrow .nms-napitki133-section__box {
    max-width: 760px;
    margin-inline: auto;
}

.nms-template-content-width--wide .nms-source-post,
.nms-template-content-width--wide .nms-napitki133-section__box {
    max-width: 1120px;
}

.nms-napitki133-section-list--cards_grid,
.nms-napitki133-section-list--tiles {
    display: grid;
    grid-template-columns: repeat(var(--nms-section-cols, 3), minmax(0, 1fr));
    gap: 12px;
}

.nms-napitki133-section-list--compact_list {
    display: grid;
    gap: 8px;
}

.nms-napitki133-material-list--cards_grid,
.nms-napitki133-material-list--magazine {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.nms-napitki133-material-list--compact {
    display: grid;
    gap: 6px;
}

.nms-napitki133-material-list__image {
    display: block;
    margin-bottom: 8px;
}

.nms-napitki133-material-list__image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 190px;
    object-fit: cover;
}

.nms-napitki133-material-list__excerpt {
    margin: 8px 0 0;
}

.nms-napitki133-material-list__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.9em;
}

.nms-napitki133-material-list__read-more {
    display: inline-block;
    margin-top: 10px;
}

.nms-template-hide-meta .entry-meta,
.nms-template-hide-meta .nms-source-entry-meta {
    display: none !important;
}

.nms-template-hide-comments .comments-area,
.nms-template-hide-comments #comments,
.nms-template-hide-comments .comment-respond {
    display: none !important;
}

.nms-template-hide-related .nms-related-materials {
    display: none !important;
}

.nms-template-hide-author .nms-source-author-box,
.nms-template-hide-author .author-box {
    display: none !important;
}

.nms-template-hide-share .nms-share,
.nms-template-hide-share .share-buttons {
    display: none !important;
}

.nms-template-hide-rating .nms-rating,
.nms-template-hide-rating .post-rating {
    display: none !important;
}

.nms-template-hide-featured-image .post-thumbnail,
.nms-template-hide-featured-image .nms-source-featured-image {
    display: none !important;
}

@media (max-width: 900px) {
    .nms-napitki133-internal-layout,
    .nms-napitki133-internal-layout--sidebar_right,
    .nms-napitki133-internal-layout--sidebar_left {
        grid-template-columns: minmax(0, 1fr);
    }

    .nms-napitki133-section-list--cards_grid,
    .nms-napitki133-section-list--tiles {
        grid-template-columns: repeat(var(--nms-section-cols-tablet, 2), minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .nms-napitki133-section-list--cards_grid,
    .nms-napitki133-section-list--tiles {
        grid-template-columns: repeat(var(--nms-section-cols-mobile, 1), minmax(0, 1fr));
    }
}
