/*
Theme Name: NY Post
Version: 1.0.2
Text Domain: nypost
Description: Bold tabloid-style news theme with impactful headlines and dense layout. Inspired by classic New York tabloids.
Author: Developer
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
*/

:root {
    --nyp-primary: #d40000;
    --nyp-secondary: #1a1a1a;
    --nyp-accent: #0066cc;
    --nyp-text: #222222;
    --nyp-text-light: #666666;
    --nyp-bg: #ffffff;
    --nyp-bg-alt: #f4f4f4;
    --nyp-border: #dddddd;
    --nyp-font-heading: "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --nyp-font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --nyp-transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--nyp-font-body); font-size: 1rem; line-height: 1.6; color: var(--nyp-text); background: var(--nyp-bg); }
a { color: var(--nyp-secondary); text-decoration: none; transition: color var(--nyp-transition); }
a:hover { color: var(--nyp-primary); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--nyp-font-heading); font-weight: 700; line-height: 1.15; margin: 0 0 0.5em; color: var(--nyp-secondary); text-transform: uppercase; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1.25em; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; top: 5px; left: 5px; width: auto; height: auto; padding: 15px 23px; clip: auto; font-size: 0.875rem; font-weight: 700; background: #f1f1f1; color: #21759b; z-index: 100000; }
.nyp-skip-link { position: absolute; top: -100px; left: 0; padding: 1rem 1.5rem; background: var(--nyp-primary); color: #fff; font-weight: 700; z-index: 99999; transition: top var(--nyp-transition); }
.nyp-skip-link:focus { top: 0; color: #fff; }

.nyp-container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.nyp-header { background: var(--nyp-secondary); position: sticky; top: 0; z-index: 1000; }
.nyp-header-top { background: var(--nyp-primary); padding: 0.25rem 0; text-align: center; color: #fff; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.nyp-header-inner { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; }
.nyp-logo { font-family: var(--nyp-font-heading); font-size: 1.75rem; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: -0.02em; }
.nyp-logo:hover { color: var(--nyp-primary); }
.nyp-logo img { height: 2.25rem; width: auto; }

.nyp-nav { display: flex; align-items: center; gap: 0.5rem; }
.nyp-nav-menu { display: flex; list-style: none; margin: 0; padding: 0; }
.nyp-nav-menu a { display: block; padding: 0.5rem 0.75rem; color: #fff; font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.nyp-nav-menu a:hover { color: var(--nyp-primary); }
.nyp-nav-menu .current-menu-item > a { color: var(--nyp-primary); }
.nyp-menu-toggle { display: none; background: none; border: none; padding: 0.5rem; cursor: pointer; color: #fff; }
.nyp-menu-toggle svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }

.nyp-search-toggle { background: none; border: none; padding: 0.5rem; cursor: pointer; color: #fff; }
.nyp-search-toggle svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }
.nyp-search-toggle:hover { color: var(--nyp-primary); }
.nyp-search-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.9); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; }
.nyp-search-overlay.nyp-search-active { opacity: 1; visibility: visible; }
.nyp-search-form { width: 100%; max-width: 600px; padding: 2rem; }
.nyp-search-form input[type="search"] { width: 100%; padding: 1rem; font-size: 1.25rem; border: none; border-bottom: 3px solid var(--nyp-primary); background: transparent; color: #fff; outline: none; }
.nyp-search-close { position: absolute; top: 2rem; right: 2rem; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; }

.nyp-content { padding: 1.5rem 0; min-height: 50vh; }
.nyp-content-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.nyp-has-sidebar .nyp-content-inner { grid-template-columns: 1fr 300px; }
.nyp-main { min-width: 0; }

.nyp-breadcrumbs { padding: 0.75rem 0; margin-bottom: 1rem; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid var(--nyp-border); }
.nyp-breadcrumbs-list { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.nyp-breadcrumbs-list li::after { content: "»"; margin-left: 0.5rem; color: var(--nyp-text-light); }
.nyp-breadcrumbs-list li:last-child::after { display: none; }
.nyp-breadcrumbs a { color: var(--nyp-text-light); }
.nyp-breadcrumbs a:hover { color: var(--nyp-primary); }

.nyp-article-card { display: flex; gap: 1rem; background: var(--nyp-bg); border-bottom: 1px solid var(--nyp-border); padding-bottom: 1rem; margin-bottom: 1rem; }
.nyp-article-card:last-child { border-bottom: none; }
.nyp-article-thumb { flex: 0 0 200px; position: relative; overflow: hidden; }
.nyp-article-thumb img { width: 100%; height: 130px; object-fit: cover; transition: transform 0.3s ease; }
.nyp-article-card:hover .nyp-article-thumb img { transform: scale(1.05); }
.nyp-article-category { position: absolute; top: 0; left: 0; background: var(--nyp-primary); color: #fff; padding: 0.125rem 0.5rem; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; }
.nyp-article-body { flex: 1; min-width: 0; }
.nyp-article-meta { display: flex; gap: 0.5rem; font-size: 0.6875rem; color: var(--nyp-text-light); margin-bottom: 0.375rem; text-transform: uppercase; }
.nyp-article-title { font-size: 1.125rem; margin-bottom: 0.375rem; line-height: 1.2; }
.nyp-article-title a { color: var(--nyp-secondary); }
.nyp-article-title a:hover { color: var(--nyp-primary); }
.nyp-article-excerpt { color: var(--nyp-text-light); font-size: 0.875rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nyp-sticky-badge { display: inline-block; background: var(--nyp-primary); color: #fff; padding: 0.125rem 0.5rem; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.375rem; }

.nyp-featured-article { margin-bottom: 1.5rem; }
.nyp-featured-article .nyp-article-card { flex-direction: column; gap: 0.75rem; }
.nyp-featured-article .nyp-article-thumb { flex: none; }
.nyp-featured-article .nyp-article-thumb img { height: 300px; }
.nyp-featured-article .nyp-article-title { font-size: 1.75rem; }

.nyp-single-header { margin-bottom: 1.5rem; }
.nyp-single-category { display: inline-block; background: var(--nyp-primary); color: #fff; padding: 0.25rem 0.75rem; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.75rem; }
.nyp-single-category a { color: #fff; }
.nyp-single-title { font-size: 2.25rem; margin-bottom: 1rem; line-height: 1.1; }
.nyp-single-meta { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.8125rem; color: var(--nyp-text-light); padding-bottom: 1rem; border-bottom: 2px solid var(--nyp-secondary); text-transform: uppercase; }
.nyp-single-thumbnail { margin: 1.5rem 0; }
.nyp-single-thumbnail img { width: 100%; }
.nyp-single-thumbnail figcaption { font-size: 0.75rem; color: var(--nyp-text-light); margin-top: 0.5rem; font-style: italic; }

.nyp-entry-content { font-size: 1.0625rem; line-height: 1.75; }
.nyp-entry-content p { margin-bottom: 1.5em; }
.nyp-entry-content h2 { font-size: 1.5rem; margin-top: 2rem; }
.nyp-entry-content h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.nyp-entry-content a { color: var(--nyp-accent); text-decoration: underline; }
.nyp-entry-content a:hover { color: var(--nyp-primary); }
.nyp-entry-content blockquote { margin: 2rem 0; padding: 1rem 1.5rem; border-left: 4px solid var(--nyp-primary); background: var(--nyp-bg-alt); font-size: 1.125rem; font-style: italic; }
.nyp-entry-content ul, .nyp-entry-content ol { margin: 1.5em 0; padding-left: 1.5em; }
.nyp-entry-content li { margin-bottom: 0.5em; }
.nyp-entry-content img { margin: 2rem 0; }
.nyp-entry-content pre { background: var(--nyp-bg-alt); padding: 1.5rem; overflow-x: auto; font-size: 0.875rem; }
.nyp-entry-content code { background: var(--nyp-bg-alt); padding: 0.125rem 0.375rem; font-size: 0.875em; }

.nyp-tags { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--nyp-border); }
.nyp-tags-title { font-size: 0.6875rem; font-weight: 700; margin-bottom: 0.5rem; text-transform: uppercase; }
.nyp-tags-list { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.nyp-tags-list a { display: inline-block; padding: 0.25rem 0.5rem; background: var(--nyp-bg-alt); color: var(--nyp-text); font-size: 0.75rem; text-transform: uppercase; }
.nyp-tags-list a:hover { background: var(--nyp-primary); color: #fff; }

.nyp-share { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--nyp-border); }
.nyp-share-title { font-size: 0.6875rem; font-weight: 700; margin-bottom: 0.5rem; text-transform: uppercase; }
.nyp-share-buttons { display: flex; gap: 0.375rem; }
.nyp-share-buttons a { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; background: var(--nyp-secondary); color: #fff; }
.nyp-share-buttons a:hover { background: var(--nyp-primary); }
.nyp-share-buttons svg { width: 0.875rem; height: 0.875rem; fill: currentColor; }

.nyp-author-box { margin-top: 1.5rem; padding: 1rem; background: var(--nyp-bg-alt); display: flex; gap: 1rem; align-items: center; }
.nyp-author-avatar img { width: 80px; height: 80px; border-radius: 50%; }
.nyp-author-info { flex: 1; }
.nyp-author-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; text-transform: uppercase; }
.nyp-author-name a { color: var(--nyp-secondary); }
.nyp-author-name a:hover { color: var(--nyp-primary); }
.nyp-author-bio { font-size: 0.875rem; color: var(--nyp-text-light); }

.nyp-post-nav { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--nyp-secondary); display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.nyp-post-nav-item { display: flex; flex-direction: column; }
.nyp-post-nav-item.nyp-next { text-align: right; }
.nyp-post-nav-label { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--nyp-text-light); margin-bottom: 0.25rem; }
.nyp-post-nav-title { font-size: 0.9375rem; font-weight: 700; text-transform: uppercase; }
.nyp-post-nav-title:hover { color: var(--nyp-primary); }

.nyp-related { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--nyp-secondary); }
.nyp-related-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; color: var(--nyp-primary); }
.nyp-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.nyp-related-item { display: flex; flex-direction: column; }
.nyp-related-thumb { margin-bottom: 0.5rem; overflow: hidden; }
.nyp-related-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform 0.3s ease; }
.nyp-related-item:hover .nyp-related-thumb img { transform: scale(1.05); }
.nyp-related-item-title { font-size: 0.8125rem; font-weight: 700; line-height: 1.3; text-transform: uppercase; }
.nyp-related-item-title:hover { color: var(--nyp-primary); }

.nyp-sidebar { font-size: 0.875rem; }
.nyp-widget { background: var(--nyp-bg-alt); padding: 1rem; margin-bottom: 1rem; }
.nyp-widget-title { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--nyp-primary); text-transform: uppercase; }
.nyp-widget ul { list-style: none; margin: 0; padding: 0; }
.nyp-widget li { padding: 0.375rem 0; border-bottom: 1px solid var(--nyp-border); }
.nyp-widget li:last-child { border-bottom: none; }
.nyp-widget a { color: var(--nyp-text); }
.nyp-widget a:hover { color: var(--nyp-primary); }

.nyp-pagination { display: flex; justify-content: center; align-items: center; gap: 0.25rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--nyp-border); }
.nyp-pagination a, .nyp-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 2rem; padding: 0 0.5rem; font-weight: 600; font-size: 0.8125rem; }
.nyp-pagination a:hover { color: var(--nyp-primary); }
.nyp-pagination .current { background: var(--nyp-primary); color: #fff; }

.nyp-page-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--nyp-secondary); }
.nyp-page-title { font-size: 1.75rem; margin-bottom: 0.25rem; }
.nyp-page-desc { color: var(--nyp-text-light); font-size: 0.9375rem; }

.nyp-search-header { background: var(--nyp-bg-alt); padding: 1rem; margin-bottom: 1.5rem; }
.nyp-search-query { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; text-transform: uppercase; }
.nyp-search-count { color: var(--nyp-text-light); font-size: 0.8125rem; }
.nyp-no-results { text-align: center; padding: 2rem; background: var(--nyp-bg-alt); }
.nyp-no-results-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.nyp-no-results-text { color: var(--nyp-text-light); margin-bottom: 1rem; }

.nyp-error-page { text-align: center; padding: 3rem 1.5rem; }
.nyp-error-code { font-size: 5rem; font-weight: 900; color: var(--nyp-primary); line-height: 1; }
.nyp-error-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.nyp-error-text { color: var(--nyp-text-light); margin-bottom: 1.5rem; max-width: 400px; margin-left: auto; margin-right: auto; }
.nyp-error-search { max-width: 320px; margin: 0 auto 1rem; }
.nyp-error-search input[type="search"] { width: 100%; padding: 0.625rem; border: 2px solid var(--nyp-border); font-size: 0.9375rem; }
.nyp-error-search input[type="search"]:focus { border-color: var(--nyp-primary); outline: none; }
.nyp-error-home { display: inline-block; padding: 0.625rem 1.5rem; background: var(--nyp-primary); color: #fff; font-weight: 700; text-transform: uppercase; font-size: 0.8125rem; }
.nyp-error-home:hover { background: var(--nyp-secondary); color: #fff; }

.nyp-comments { margin-top: 2rem; padding-top: 1.5rem; border-top: 2px solid var(--nyp-secondary); }
.nyp-comments-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; }
.nyp-comments-list { list-style: none; margin: 0; padding: 0; }
.nyp-comment { padding: 1rem 0; border-bottom: 1px solid var(--nyp-border); }
.nyp-comment:last-child { border-bottom: none; }
.nyp-comment-body { display: flex; gap: 0.75rem; }
.nyp-comment-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.nyp-comment-content { flex: 1; }
.nyp-comment-meta { margin-bottom: 0.375rem; }
.nyp-comment-author { font-weight: 700; font-size: 0.875rem; text-transform: uppercase; }
.nyp-comment-date { font-size: 0.6875rem; color: var(--nyp-text-light); margin-left: 0.5rem; }
.nyp-comment-text { font-size: 0.875rem; }
.nyp-comment-actions { margin-top: 0.375rem; font-size: 0.6875rem; }
.nyp-comment-actions a { color: var(--nyp-text-light); margin-right: 0.75rem; text-transform: uppercase; }
.nyp-comment-actions a:hover { color: var(--nyp-primary); }
.nyp-comment-awaiting { background: #fff3cd; padding: 0.375rem 0.5rem; font-size: 0.75rem; margin-bottom: 0.5rem; }
.nyp-comment-form { margin-top: 1.5rem; }
.nyp-comment-form label { display: block; font-weight: 600; margin-bottom: 0.25rem; font-size: 0.75rem; text-transform: uppercase; }
.nyp-comment-form input[type="text"], .nyp-comment-form input[type="email"], .nyp-comment-form input[type="url"], .nyp-comment-form textarea { width: 100%; padding: 0.625rem; border: 1px solid var(--nyp-border); font-size: 0.9375rem; margin-bottom: 0.75rem; }
.nyp-comment-form textarea { min-height: 120px; resize: vertical; }
.nyp-comment-form input:focus, .nyp-comment-form textarea:focus { border-color: var(--nyp-primary); outline: none; }
.nyp-comment-form input[type="submit"] { background: var(--nyp-primary); color: #fff; border: none; padding: 0.625rem 1.5rem; font-size: 0.8125rem; font-weight: 700; cursor: pointer; text-transform: uppercase; }
.nyp-comment-form input[type="submit"]:hover { background: var(--nyp-secondary); }
.nyp-comments-closed { background: var(--nyp-bg-alt); padding: 0.75rem; text-align: center; color: var(--nyp-text-light); font-size: 0.875rem; }

.nyp-footer { background: var(--nyp-secondary); color: #fff; margin-top: 2rem; }
.nyp-footer-widgets { padding: 2rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.nyp-footer-widget { font-size: 0.8125rem; }
.nyp-footer-widget-title { font-size: 0.75rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--nyp-primary); text-transform: uppercase; }
.nyp-footer-widget ul { list-style: none; margin: 0; padding: 0; }
.nyp-footer-widget li { padding: 0.25rem 0; }
.nyp-footer-widget a { color: rgba(255,255,255,0.7); }
.nyp-footer-widget a:hover { color: #fff; }
.nyp-footer-bottom { padding: 1rem 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.nyp-footer-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0 0 0.5rem; padding: 0; }
.nyp-footer-menu a { color: rgba(255,255,255,0.7); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.05em; }
.nyp-footer-menu a:hover { color: #fff; }
.nyp-copyright { font-size: 0.6875rem; color: rgba(255,255,255,0.5); }

.nyp-scroll-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 2.5rem; height: 2.5rem; background: var(--nyp-primary); color: #fff; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--nyp-transition); z-index: 999; }
.nyp-scroll-top.nyp-visible { opacity: 1; visibility: visible; }
.nyp-scroll-top:hover { background: var(--nyp-secondary); }
.nyp-scroll-top svg { width: 1rem; height: 1rem; fill: currentColor; }

@media (max-width: 1024px) {
    .nyp-has-sidebar .nyp-content-inner { grid-template-columns: 1fr; }
    .nyp-sidebar { order: 2; }
    .nyp-footer-widgets { grid-template-columns: repeat(2, 1fr); }
    .nyp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nyp-sidebar { display: none !important; }
    .nyp-nav-menu { display: none; position: fixed; top: 3.5rem; left: 0; right: 0; background: var(--nyp-secondary); flex-direction: column; padding: 0.5rem; }
    .nyp-nav.nyp-nav-open .nyp-nav-menu { display: flex; }
    .nyp-nav-menu a { padding: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
    .nyp-menu-toggle { display: block; }
    .nyp-article-card { flex-direction: column; }
    .nyp-article-thumb { flex: none; }
    .nyp-article-thumb img { height: 180px; }
    .nyp-single-title { font-size: 1.75rem; }
    .nyp-footer-widgets { grid-template-columns: 1fr; }
    .nyp-related-grid { grid-template-columns: 1fr; }
    .nyp-post-nav { grid-template-columns: 1fr; gap: 0.75rem; }
    .nyp-post-nav-item.nyp-next { text-align: left; }
    .nyp-author-box { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    html { font-size: 15px; }
    .nyp-single-title { font-size: 1.5rem; }
    .nyp-error-code { font-size: 4rem; }
}

:focus { outline: 2px solid var(--nyp-primary); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--nyp-primary); outline-offset: 2px; }

/* Interlinking Section */
.nypo-interlinking {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.nypo-interlinking-title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 600;
}
.nypo-interlinking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.nypo-interlinking-list li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}
.nypo-interlinking-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--nypo-color-primary, #333);
}
.nypo-interlinking-list a {
    color: var(--nypo-color-primary, #333);
    text-decoration: none;
}
.nypo-interlinking-list a:hover {
    text-decoration: underline;
}

/* Grid Layout Options */
.nyp-articles-grid.grid-3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.nyp-articles-grid.grid-2col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.nyp-articles-grid.grid-list { display: flex; flex-direction: column; gap: 1.5rem; }
.nyp-articles-grid.grid-list .nyp-article-card { flex-direction: row; }
.nyp-articles-grid.grid-list .nyp-article-thumb { flex: 0 0 300px; }
.nyp-articles-grid.grid-list .nyp-article-body { flex: 1; }
@media (max-width: 1024px) {
    .nyp-articles-grid.grid-3col { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .nyp-articles-grid.grid-3col, .nyp-articles-grid.grid-2col { grid-template-columns: 1fr; }
    .nyp-articles-grid.grid-list .nyp-article-card { flex-direction: column; }
    .nyp-articles-grid.grid-list .nyp-article-thumb { flex: none; }
}
