/* ==========================================================================
   ORANGE5 BLOG — blog.css  (v2)
   Listing + detail variants 2 & 5
   Fonts: NHaasGroteskDSPro-45Lt, -65Md (body), DM Serif Display (headings ≥50px)
   ========================================================================== */



/* ==========================================================================
   SHARED ATOMS
   ========================================================================== */

.bd-tag, .bl-tag {
    display: inline-block;
    font-family: var(--o5-font-md);
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: lowercase;
    color: var(--o5-orange);
    background: transparent;
    border: 1px solid rgba(241,101,34,0.3);
    border-radius: 100px;
    padding: 3px 10px;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bd-tag:hover, .bl-tag:hover {
    background: var(--o5-orange);
    color: #fff;
    border-color: var(--o5-orange);
}

.bd-back, .bd-footer-back {
    font-family: var(--o5-font-md);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--o5-orange);
}
.bd-back:hover, .bd-footer-back:hover {
    opacity: 0.7;
}

/* Progress bar — V5 */
.bd-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--o5-orange);
    z-index: 9999;
    transition: width 0.08s linear;
    display: none;
}

/* Post number — V5 */
.bd-number {
    display: none;
}

/* Vertical label — V5 */
.bd-label {
    display: none;
}

/* ── Body typography base ── */
.bd-body {
    font-family: var(--o5-font-lt);
    font-size: 17px;
    line-height: 1.8;
    color: var(--o5-text);
}

.bd-body p          {
    margin: 0 0 1.4em;
}
.bd-body h2         {
    font-family: var(--o5-font-md);
    font-size: 32px;
    font-weight: normal;
    line-height: 1.18;
    margin: 2.2em 0 0.7em;
    color: var(--o5-text);
}
.bd-body h3         {
    font-family: var(--o5-font-md);
    font-size: 16px;
    font-weight: normal;
    margin: 1.8em 0 0.5em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bd-body a          {
    color: var(--o5-orange);
    text-decoration: underline;
}
.bd-body a:hover    {
    opacity: 0.75;
}
.bd-body ul,
.bd-body ol         {
    padding-left: 1.6em;
    margin: 0 0 1.4em;
}
.bd-body li         {
    margin-bottom: 0.5em;
}
.bd-body strong,
.bd-body b          {
    font-family: var(--o5-font-md);
    font-weight: normal;
}
.bd-body blockquote {
    margin: 1.8em 0;
    padding: 0.4em 0 0.4em 1.5em;
    border-left: 3px solid var(--o5-orange);
    color: #555;
    font-style: italic;
}
.bd-body img        {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em 0;
}
.bd-body figure     {
    margin: 2em 0;
}
.bd-body figure figcaption {
    font-family: var(--o5-font-lt);
    font-size: 14px;
    color: var(--o5-muted);
    margin-top: 8px;
    font-style: italic;
}
.bd-body hr         {
    border: none;
    border-top: 1px solid var(--o5-grey-bg);
    margin: 3em 0;
}

.bd-footer {
    margin-top: 72px;
    padding-top: 32px;
    border-top: 1px solid var(--o5-grey-bg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.bd-footer-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.bd-share-link {
    display: inline-block;
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.bd-share-link img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.2s;
}
.bd-share-icon--on {
    opacity: 0;
}
.bd-share-link:hover .bd-share-icon--inv {
    opacity: 0;
}
.bd-share-link:hover .bd-share-icon--on {
    opacity: 1;
}

/* Author bio card */
.bd-author-bio {
    margin-top: 48px;
    padding: 28px 32px;
    border-top: 2px solid var(--o5-orange);
    border-left: 3px solid var(--o5-orange);
    background: var(--o5-cream);
}

.bd-author-bio-name {
    font-family: var(--o5-font-md);
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--o5-text);
    margin-bottom: 6px;
}

.bd-author-bio-text {
    font-family: var(--o5-font-lt);
    font-size: 14px;
    color: var(--o5-muted);
    margin: 0 0 12px;
    line-height: 1.6;
}

.bd-author-bio-link {
    font-family: var(--o5-font-md);
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--o5-orange);
    text-decoration: none;
}
.bd-author-bio-link:hover {
    opacity: 0.7;
}



/* ==========================================================================
   BLOG LISTING  —  magazine layout
   ========================================================================== */

.blog-listing {
    padding-bottom: 0;
}

/* ── Header — full-bleed, clears fixed nav ── */
.bl-header {
    padding: 180px 60px 72px;
    background: #fff;
    border-bottom: 1px solid var(--o5-dark);
    position: relative;
    overflow: hidden;
}

/* Ghost "Blog" watermark */
.bl-header::after {
    content: '&';
    position: absolute;
    right: -0.04em;
    bottom: -0.18em;
    font-family: var(--o5-font-serif);
    font-size: clamp(200px, 26vw, 400px);
    color: rgba(0,0,0,0.035);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.03em;
}

.bl-header-inner {
    display: flex;
    align-items: flex-end;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.bl-title {
    font-family: var(--o5-font-serif);
    font-size: clamp(72px, 11vw, 160px);
    font-weight: normal;
    color: var(--o5-text);
    margin: 0;
    line-height: 0.9;
    letter-spacing: -0.03em;
}

.bl-subtitle {
    font-family: var(--o5-font-lt);
    font-size: 16px;
    color: var(--o5-muted);
    margin: 0 0 12px;
    line-height: 1.65;
    max-width: 260px;
}

/* ── Toolbar (decorative filter/sort bar) ── */
.bl-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 60px;
    border-bottom: 1px solid var(--o5-grey-bg);
    font-family: var(--o5-font-md);
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--o5-muted);
}

/* ── Sections wrapper ── */
.bl-sections {
    /* each direct child section carries its own border-bottom */
}

/* ── Section base ── */
.bl-section {
    display: grid;
    gap: 1px;
    background: #000;
    border-bottom: 1px solid var(--o5-dark);
}

/* ── Featured + Row3: unified grid ── */
.bl-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--o5-dark);
    gap: 1px;
    border-bottom: 1px solid var(--o5-dark);
}

.BlogDetail .bl-top-grid{
    border-top: 1px solid var(--o5-dark);
}

.bl-section--featured,
.bl-section--row3 {
    display: contents;
}

.bl-stack {
    display: contents;
}

.bl-card--featured {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* ── 4-column row ── */
.bl-section--row4 {
    grid-template-columns: repeat(4, 1fr);
}

/* ── Cards ── */
.bl-card {
    background: #fff;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.BlogDetail .bl-card{
    background: var(--o5-off-white);
}

/* Stretched link: title <a> covers the whole card */
.bl-card-link {
    text-decoration: none;
    color: inherit;
}

.bl-card-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
}

.bl-card:hover .bl-card-img  {
    transform: scale(1.3);
}
.bl-card:hover .bl-card-link {
    color: var(--o5-orange);
}

.bl-card-figure {
    margin: 0;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    padding: var(--bl-frame) var(--bl-frame) calc(var(--bl-frame) / 2) var(--bl-frame);
    box-sizing: border-box;
}

.BlogDetail{
    .bl-card-figure{
        background: var(--o5-off-white);
    }
}

/* Default figure aspect ratio */
.bl-card-figure {
    /*    aspect-ratio: 4 / 3;*/
}

/* Inner container — clips the zoom within the frame hole */
.bl-card-figure-inner {
    overflow: hidden;
    height: 100%;
}

.bl-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 15s ease-out;
}

/* ── Card body ── */
.bl-card-body {
    padding: 6px 24px 50px var(--bl-frame);
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* Date line with small calendar icon */
.bl-card-dateline {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--o5-font-md);
    font-size: 16px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--o5-muted);
}

.bl-card-dateline::before {
    content: '';
    display: inline-block;
    width: 11px;
    height: 11px;
    border: 1.5px solid var(--o5-muted);
    border-radius: 1px;
    flex-shrink: 0;
    opacity: 0.6;
}

.bl-card-title {
    font-family: var(--o5-font-md);
    font-size: clamp(20px, 1.5vw, 24px);
    font-weight: normal;
    line-height: 1.22;
    color: var(--o5-text);
    margin: 0;
    transition: color 0.2s;
}

/* Tag line — pill buttons, flex row */
.bl-card-tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--o5-grey-bg);
    position: relative;
    z-index: 1;
}

.bl-card-tagline a {
    position: relative;
    z-index: 1;
}

/* ── Featured card ── */
.bl-card--featured .bl-card-figure {
    aspect-ratio: 30 / 23;
}

.bl-card--featured .bl-card-body {
    padding: 0px 36px 60px var(--bl-frame);
}

.bl-card--featured .bl-card-title {
    font-size: clamp(28px, 2.8vw, 42px);
}

/* ── Stacked card (right column of featured) ── */
.bl-card--stacked .bl-card-figure {
    aspect-ratio: 16 / 11;
}

/* ── Newsletter strip ── */
.bl-newsletter {
    padding: calc(3 * var(--bl-frame)) 20px;
    text-align: center;
    background: #fff;
}

.Blog .bl-newsletter{
    border-bottom: 1px solid var(--o5-dark);
}

.bl-newsletter-label {
    display: block;
    font-family: var(--o5-font-md);
    font-size: 16px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--o5-orange);
    margin-bottom: 16px;
}

.bl-newsletter-label::before {
    content: '→ ';
}

.bl-newsletter-heading {
    font-family: var(--o5-font-md);
    font-size: clamp(26px, 3vw, 38px);
    font-weight: normal;
    line-height: 1.2;
    color: var(--o5-text);
    margin: 0 0 28px;
}

.bl-newsletter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    max-width: 380px;
    margin: 0 auto;
}

.bl-newsletter-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--o5-dark);
    background: transparent;
    font-family: var(--o5-font-lt);
    font-size: 16px;
    color: var(--o5-text);
    padding: 10px 0;
    outline: none;
    text-align: center;
}

.bl-newsletter-input::placeholder {
    color: var(--o5-muted);
}

.bl-newsletter-form button.btn {
    margin-top: 0;
    cursor: pointer;
    background: #fff;
}

.bl-newsletter-msg {
    font-family: var(--o5-font-lt);
    font-size: 14px;
    color: var(--o5-muted);
    min-height: 1em;
    margin: 0;
}
.bl-newsletter-msg.error {
    color: #c0392b;
}

.bl-newsletter-success {
    font-family: var(--o5-font-md);
    font-size: 16px;
    color: var(--o5-text);
    margin: 0;
}

/* ── "See all" CTA ── */
.bl-listing-cta {
    padding: 80px 60px;
    text-align: center;
}

.bl-cta-link {
    font-family: var(--o5-font-md);
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--o5-text);
    text-decoration: none;
    border-bottom: 1px solid var(--o5-dark);
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}

.bl-cta-link:hover {
    color: var(--o5-orange);
    border-color: var(--o5-orange);
}

/* ── Empty state ── */
.bl-empty {
    font-family: var(--o5-font-lt);
    color: var(--o5-muted);
    padding: 80px 60px;
    text-align: center;
    background: #fff;
}


/* ==========================================================================
   VARIANT 2 — FOLIO
   Broadsheet editorial. Gravitas. Massive title.
   NAV: newspaper masthead — publication label left, date right, rule below.
   ========================================================================== */

.variant-2 {
    background: var(--o5-off-white);
}

/* Hero clears fixed header */
.variant-2 .bd-hero {
    padding: 120px 60px 0;
    max-width: 1140px;
    margin: 0 auto;
}

.variant-2 .bd-header {
    position: relative;
}

/* NAV: newspaper masthead — two rows */
.variant-2 .bd-meta {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 0;
    margin-bottom: 44px;
}

.variant-2 .bd-meta .bd-back {
    order: -1;
    padding-right: 24px;
    margin-right: 16px;
    border-right: 1px solid rgba(0,0,0,0.15);
    font-size: 16px;
}

.variant-2 .bd-meta .bd-date,
.variant-2 .bd-meta .bd-author {
    font-family: var(--o5-font-md);
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--o5-muted);
    padding-left: 20px;
}

.variant-2 .bd-meta .bd-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* Title — broadsheet scale */
.variant-2 .bd-title {
    position: relative;
    z-index: 1;
    font-family: var(--o5-font-md);
    font-size: clamp(54px, 8vw, 114px);
    font-weight: normal;
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: var(--o5-text);
    margin: 0 0 0;
    max-width: 920px;
}

/* Orange rule below title */
.variant-2 .bd-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 10px;
    background: var(--o5-orange);
    margin-top: 36px;
    margin-bottom: 0;
}

.variant-2 .bd-perex {
    position: relative;
    z-index: 1;
    font-family: var(--o5-font-lt);
    font-size: 19px;
    line-height: 1.7;
    color: #555;
    font-style: italic;
    max-width: 580px;
    margin: 28px 0 0;
}

/* Cover: full-bleed edge-to-edge after the title zone */
.variant-2 .bd-cover {
    margin: 20px 0 48px;
}

.variant-2 .bd-cover-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 1;
    object-fit: cover;
}

.variant-2 .bd-layout {
    max-width: 860px;
    margin: 0 auto;
    padding: 60px 60px 100px;
}

.variant-2 .bd-sidebar {
    display: none;
}

.variant-2 .bd-body h2 {
    font-size: 34px;
}
.variant-2 .bd-body h2::before {
    content: '— ';
    color: var(--o5-orange);
    font-family: var(--o5-font-md);
    font-size: 16px;
    letter-spacing: 0.06em;
}

/* Full-bleed inline images — extend past the 60px text padding */
.variant-2 .bd-body img {
    margin-top: 2.4em;
    margin-bottom: 2.4em;
    margin-left: -60px;
    margin-right: -60px;
    max-width: calc(100% + 120px);
    width: calc(100% + 120px);
}

/* Full-bleed figures — figure takes the negative margin, img stays normal */
.variant-2 .bd-body figure {
    margin-top: 2.4em;
    margin-bottom: 2.4em;
    margin-left: -60px;
    margin-right: -60px;
}
.variant-2 .bd-body figure img {
    margin: 0;
    max-width: 100%;
    width: 100%;
}


/* ==========================================================================
   VARIANT 5 — FIELD NOTES
   Avant-garde. Dark hero / cream body. Ghost post number.
   Vertical studio label. Brick red accent.
   NAV: minimal floating tag, everything reduced.
   New colour: --o5-brick (#6e2010).
   ========================================================================== */

.variant-5 {
    background: var(--o5-cream);
}

.variant-5 .bd-progress {
    display: block;
}

/* Ghost post number — absolute over dark hero */
.variant-5 .bd-number {
    display: block;
    position: absolute;
    top: 0;
    right: -0.02em;
    font-family: var(--o5-font-md);
    font-size: 40vw;
    line-height: 0.8;
    color: rgba(255,255,255,0.035);
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
    z-index: 0;
    overflow: hidden;
}

/* Dark hero — clears fixed header */
.variant-5 .bd-hero {
    background: var(--o5-dark);
    position: relative;
    padding: 140px 80px 0;
    overflow: hidden;
}

/* NAV: tiny, understated — just the back link as a small tab */
.variant-5 .bd-header {
    position: relative;
    z-index: 1;
    max-width: 780px;
    padding-bottom: 64px;
}

.variant-5 .bd-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 48px;
}

.variant-5 .bd-meta .bd-back {
    font-family: var(--o5-font-md);
    font-size: 14px;
    letter-spacing: 0.14em;
    color: var(--o5-brick);
    text-transform: uppercase;
    border: 1px solid rgba(110,32,16,0.3);
    padding: 5px 12px;
    transition: background 0.2s, color 0.2s;
}
.variant-5 .bd-meta .bd-back:hover {
    background: var(--o5-brick);
    color: #fff;
    opacity: 1;
}

.variant-5 .bd-meta .bd-date {
    font-family: var(--o5-font-md);
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

.variant-5 .bd-meta .bd-author {
    font-family: var(--o5-font-lt);
    font-size: 14px;
    color: rgba(255,255,255,0.25);
}

.variant-5 .bd-tags .bd-tag {
    color: rgba(255,255,255,0.35);
    border-color: rgba(255,255,255,0.1);
}

/* Massive italic title */
.variant-5 .bd-title {
    font-family: var(--o5-font-serif);
    font-style: italic;
    font-size: clamp(50px, 6.5vw, 90px);
    font-weight: normal;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 36px;
}

/* Last word: uppercase accent (via JS) */
.variant-5 .bd-title-last {
    font-family: var(--o5-font-md);
    font-style: normal;
    font-size: 0.52em;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--o5-brick);
    display: block;
    margin-top: 12px;
}

.variant-5 .bd-perex {
    font-family: var(--o5-font-lt);
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255,255,255,0.45);
    max-width: 540px;
    margin: 0;
    font-style: italic;
}

/* Cover: clips the dark/cream boundary */
.variant-5 .bd-cover {
    position: relative;
    z-index: 1;
    margin: 56px -80px 0;
    height: 440px;
}

.variant-5 .bd-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Content area — cream */
.variant-5 .bd-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 80px 100px;
}

.variant-5 .bd-sidebar {
    display: none;
}

.variant-5 .bd-article {
    padding-top: 72px;
}

/* Lede paragraph: brick left border, larger */
.variant-5 .bd-body > p:first-of-type {
    font-size: 21px;
    line-height: 1.7;
    color: var(--o5-text);
    border-left: 4px solid var(--o5-brick);
    padding-left: 28px;
    margin-bottom: 2em;
}

/* Section markers: §01, §02 */
.variant-5 .bd-body {
    counter-reset: v5section;
}

.variant-5 .bd-body h2 {
    counter-increment: v5section;
    font-family: var(--o5-font-md);
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--o5-brick);
    margin: 3.5em 0 1.2em;
}

.variant-5 .bd-body h2::before {
    content: '§' counter(v5section, decimal-leading-zero) '\00a0\00a0';
    opacity: 0.5;
}

/* Blockquote: top + bottom border, no left border */
.variant-5 .bd-body blockquote {
    border-left: none;
    border-top: 1px solid var(--o5-brick);
    border-bottom: 1px solid var(--o5-brick);
    margin: 2.4em 0;
    padding: 28px 0;
    font-size: 20px;
    line-height: 1.6;
    color: var(--o5-text);
    font-style: italic;
}

/* Footer back in brick */
.variant-5 .bd-footer-back {
    color: var(--o5-brick);
}
.variant-5 .bd-footer-back:hover {
    opacity: 0.7;
}

/* Vertical studio label */
.variant-5 .bd-label {
    display: block;
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-family: var(--o5-font-md);
    font-size: 14px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--o5-brick);
    opacity: 0.5;
    z-index: 100;
    white-space: nowrap;
    pointer-events: none;
}


/* ==========================================================================
   PREV / NEXT NAVIGATION
   ========================================================================== */

.bd-nav {
    display: flex;
    gap: 1px;
    background: var(--o5-grey-bg);
    border-top: 1px solid var(--o5-grey-bg);
}

.bd-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px 40px;
    background: #fff;
    text-decoration: none;
    color: var(--o5-text);
    overflow: hidden;
    transition: background 0.2s;
}

.bd-nav-item:hover {
    background: var(--o5-off-white);
}

.bd-nav-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    margin: 0 0 8px;
}

.bd-nav-prev {
    align-items: flex-start;
}

.bd-nav-next {
    align-items: flex-end;
    text-align: right;
}

.bd-nav-label {
    font-family: var(--o5-font-md);
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--o5-orange);
}

.bd-nav-title {
    font-family: var(--o5-font-md);
    font-size: 15px;
    line-height: 1.3;
    color: var(--o5-text);
}


/* ==========================================================================
   RELATED POSTS
   ========================================================================== */

.bd-related {
    background: var(--o5-off-white);
    border-top: 1px solid var(--o5-grey-bg);
}

.bd-related-heading {
    font-family: var(--o5-font-md);
    font-size: 16px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--o5-muted);
    font-weight: normal;
    padding: 72px 60px 36px;
}




/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
    :root {
        --bl-frame: 52px;
    }
}

@media (max-width: 1024px) {
    :root {
        --bl-frame: 42px;
    }

    /* Listing */
    .bl-section--row4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* V2 */
    .variant-2 .bd-hero {
        padding-left: 40px;
        padding-right: 40px;
    }
    .variant-2 .bd-cover {
        margin-left: -40px;
        margin-right: -40px;
    }
    .variant-2 .bd-layout {
        padding-left: 40px;
        padding-right: 40px;
    }
    .variant-2 .bd-body img {
        margin-left: -40px;
        margin-right: -40px;
        max-width: calc(100% + 80px);
        width: calc(100% + 80px);
    }
    .variant-2 .bd-body figure {
        margin-left: -40px;
        margin-right: -40px;
    }



    /* V5 */
    .variant-5 .bd-hero {
        padding-left: 56px;
        padding-right: 56px;
    }
    .variant-5 .bd-cover {
        margin-left: -56px;
        margin-right: -56px;
    }
    .variant-5 .bd-layout {
        padding-left: 56px;
        padding-right: 56px;
    }
}

@media (max-width: 768px) {
    :root {
        --bl-frame: 32px;
    }

    /* Listing */
    .bl-header {
        padding: 160px 24px 52px 42px;
    }

    .bl-header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .bl-toolbar {
        padding: 13px 24px;
    }

    .bl-top-grid,
    .bl-section--row4 {
        grid-template-columns: 1fr;
    }

    .bl-card--featured {
        grid-column: auto;
        grid-row: auto;
    }

    .bl-card--featured .bl-card-body {
        padding: 20px 24px 28px;
    }

    .bl-newsletter,
    .bl-listing-cta {
        padding: 48px 24px;
    }


    /* V2 */
    .variant-2 .bd-hero {
        padding: 120px 24px 0;
    }
    .variant-2 .bd-cover {
        margin-left: -24px;
        margin-right: -24px;
    }
    .variant-2 .bd-layout {
        padding-left: 24px;
        padding-right: 24px;
    }

    .variant-2 .bd-body img {
        margin-left: -24px;
        margin-right: -24px;
        max-width: calc(100% + 48px);
        width: calc(100% + 48px);
    }
    .variant-2 .bd-body figure {
        margin-left: -24px;
        margin-right: -24px;
    }



    /* V5 */
    .variant-5 .bd-hero {
        padding: 120px 24px 0;
    }
    .variant-5 .bd-cover {
        margin-left: -24px;
        margin-right: -24px;
        height: 280px;
    }
    .variant-5 .bd-layout {
        padding-left: 24px;
        padding-right: 24px;
    }
    .variant-5 .bd-label  {
        display: none;
    }
    .variant-5 .bd-number {
        font-size: 64vw;
    }

    /* Prev/next nav */
    .bd-nav {
        flex-direction: column;
    }
    .bd-nav-next {
        align-items: flex-start;
        text-align: left;
    }
    .bd-nav-item {
        padding: 24px;
    }

    /* Related posts */
    .bd-related-heading {
        padding: 48px 24px 28px;
    }
}
