.nxb-blog {
    --nxb-blog-content-width: 52rem;
    --nxb-blog-layout-width: 72rem;
    color: #252525;
    background: #fff;
}

.nxb-blog__header {
    position: relative;
    display: grid;
    overflow: hidden;
}

.nxb-blog__header--with-image {
    min-height: clamp(22rem, 39vw, 43.75rem);
    background: #1f2937;
    color: #fff;
}

.nxb-blog__header--with-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .34) 58%, rgba(0, 0, 0, .18) 100%);
}

.nxb-blog__header-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nxb-blog__header-content {
    position: relative;
    z-index: 2;
    align-self: end;
    width: min(100% - 4rem, var(--nxb-blog-layout-width));
    margin-inline: auto;
    padding-block: clamp(3rem, 8vw, 7rem);
}

.nxb-blog__header--text-only .nxb-blog__header-content {
    align-self: auto;
    padding-block: clamp(3rem, 7vw, 5rem) 1rem;
}

.nxb-blog__title {
    max-width: 18ch;
    margin: 0;
    font-size: clamp(2.25rem, 5.5vw, 4.75rem);
    line-height: 1.05;
    letter-spacing: -.035em;
}

.nxb-blog__subtitle {
    max-width: 45rem;
    margin: 1.25rem 0 0;
    font-size: clamp(1.05rem, 2vw, 1.4rem);
    line-height: 1.55;
}

.nxb-blog__body {
    width: min(100% - 4rem, var(--nxb-blog-content-width));
    margin-inline: auto;
    padding-block: clamp(2.75rem, 6vw, 5rem);
    font-size: 1.05rem;
    line-height: 1.8;
}

.nxb-blog__body > :first-child { margin-top: 0; }
.nxb-blog__body > :last-child { margin-bottom: 0; }
.nxb-blog__body h2,
.nxb-blog__body h3,
.nxb-blog__body h4 {
    margin: 2.25em 0 .65em;
    line-height: 1.2;
}
.nxb-blog__body h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.nxb-blog__body h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
.nxb-blog__body h4 { font-size: 1.25rem; }
.nxb-blog__body p,
.nxb-blog__body ul,
.nxb-blog__body ol { margin: 0 0 1.35em; }
.nxb-blog__body li + li { margin-top: .35em; }
.nxb-blog__body a { color: #c94f08; text-underline-offset: .18em; }
.nxb-blog__body blockquote {
    margin: 2rem 0;
    padding: .25rem 0 .25rem 1.5rem;
    border-left: .25rem solid #e86513;
    color: #4b5563;
    font-size: 1.15rem;
}

.nxb-blog__gallery {
    width: min(100% - 4rem, var(--nxb-blog-layout-width));
    margin-inline: auto;
    padding-bottom: clamp(3rem, 7vw, 6rem);
}

@media (min-width: 768px) and (max-width: 1199px) {
    .nxb-blog__gallery .nxb-gallery__viewport {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .nxb-blog__header--with-image { min-height: 24rem; }
    .nxb-blog__header--with-image::after {
        background: linear-gradient(0deg, rgba(0, 0, 0, .68) 0%, rgba(0, 0, 0, .18) 100%);
    }
    .nxb-blog__header-content,
    .nxb-blog__body,
    .nxb-blog__gallery { width: min(100% - 2rem, var(--nxb-blog-layout-width)); }
    .nxb-blog__header-content { padding-block: 3rem; }
    .nxb-blog__header--text-only .nxb-blog__header-content { padding-block: 2.5rem .5rem; }
    .nxb-blog__body { padding-block: 2.5rem; }
}
