body.hs-news-ready #wrapper {
    --news-panel: #272019;
    --news-text: #f4ebdf;
    --news-border: #5a4b3e;
    --news-accent: #e7d2b4;
}

body.hs-news-ready #wrapper .products-selection :is(.grid-select, .display-view, .grid-list, .view-mode) {
    display: none !important;
}

/* Preserve the native count, sort and filter controls in Leo's toolbar. */
body.hs-news-ready #wrapper :is(.products-selection, .products-selection .row):has(.total-products):has(.products-sort-order)
    > :not(:is(.total-products, .products-sort-order, .sort-by, .filter-button, .filter-toggle-button, #search_filter_toggler)):not(:has(.total-products, .products-sort-order, .sort-by, .filter-button, .filter-toggle-button, #search_filter_toggler, select, input)) {
    display: none !important;
}

body.hs-news-ready #wrapper #products .hs-news-list-width,
body.hs-news-ready #wrapper :is(#js-product-list, #products).hs-news-host {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
    grid-column: 1 / -1 !important;
}

body.hs-news-ready #wrapper :is(#js-product-list, #products).hs-news-host {
    display: block !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
}

body.hs-news-ready #wrapper .hs-news-native-column:not(:has(.product-miniature, .pagination, .products-selection, nav, form)) {
    display: none !important;
}

body.hs-news-ready #wrapper .hs-news-host > .hs-news-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(.75rem, 1.6vw, 1.4rem);
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 1.5rem !important;
    padding: 0 !important;
    list-style: none;
}

body.hs-news-ready #wrapper .hs-news-grid > .hs-news-item,
body.hs-news-ready #wrapper .hs-news-grid .product-miniature,
body.hs-news-ready #wrapper .hs-news-grid .thumbnail-container {
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.hs-news-ready #wrapper .hs-news-grid .thumbnail-container {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--news-border);
    border-radius: .85rem;
    background: var(--news-panel);
}

body.hs-news-ready #wrapper .hs-news-grid .product-miniature .product-thumbnail {
    display: block;
    background: #f7f5f2;
}

body.hs-news-ready #wrapper .hs-news-grid .product-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    mix-blend-mode: normal;
}

body.hs-news-ready #wrapper .hs-news-grid :is(.product-description, .product-meta) {
    padding: 1rem;
    color: var(--news-text);
    background: transparent;
    text-align: start;
}

body.hs-news-ready #wrapper .hs-news-grid :is(.product-title, .product-name) {
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
    color: var(--news-text);
    line-height: 1.25;
}

body.hs-news-ready #wrapper .hs-news-grid :is(.product-title a, .price) {
    color: var(--news-text);
}

body.hs-news-ready #wrapper .hs-news-grid .hs-cat-open {
    width: fit-content;
    max-width: 100%;
    margin: .85rem 0 0;
    padding: .65rem 1.1rem;
    border-radius: 2rem;
    color: #241a13;
    background: var(--news-accent);
}

body.hs-news-ready #wrapper .hs-news-host > .hs-news-grid:has(> .hs-news-item:only-child) {
    display: block !important;
}

body.hs-news-ready #wrapper .hs-news-grid > .hs-news-item:only-child {
    container: hs-news-card / inline-size;
    max-width: 65rem !important;
    margin-inline: auto !important;
}

body.hs-news-ready #wrapper .hs-news-item:only-child .hs-news-card-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    width: 100% !important;
    align-items: center;
}

body.hs-news-ready #wrapper .hs-news-item:only-child :is(.hs-news-media, .hs-news-info) {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

body.hs-news-ready #wrapper .hs-news-item:only-child .hs-news-media {
    background: #f7f5f2;
    align-self: stretch;
}

body.hs-news-ready #wrapper .hs-news-item:only-child .hs-news-info {
    padding: clamp(1rem, 3cqi, 2rem);
}

body.hs-news-ready #wrapper .hs-news-item:only-child .hs-news-info :is(.product-title, .product-name) {
    margin: 0 0 .8rem;
    font: 400 clamp(1.35rem, 3.5cqi, 2.2rem)/1.18 Georgia, serif;
}

body.hs-news-ready #wrapper .hs-news-item:only-child .hs-news-info .product-title a {
    font: inherit;
}

@container hs-news-card (min-width: 43rem) {
    body.hs-news-ready #wrapper .hs-news-item:only-child .hs-news-card-layout {
        grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    }

    body.hs-news-ready #wrapper .hs-news-item:only-child :is(.hs-news-media, .hs-news-info) {
        grid-row: 1;
    }

    body.hs-news-ready #wrapper .hs-news-item:only-child .hs-news-media { grid-column: 1; }
    body.hs-news-ready #wrapper .hs-news-item:only-child .hs-news-info { grid-column: 2; }
}

@media (max-width: 991px) {
    body.hs-news-ready #wrapper .hs-news-host > .hs-news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
