/* ==========================================================================
   Page blocks, knowledge base, article
   Fluid sizes interpolate between 375px and 1248px like the theme's style.min.css.
   ========================================================================== */

/* ---------- Common ---------- */
.mb-section {
    background-color: #fafafa;
    padding-top: clamp(30px, 17.1px + 3.44vw, 60px);
    padding-bottom: clamp(30px, 17.1px + 3.44vw, 60px);
}
/* Divider between blocks: aligned with the container content box (78rem minus 1.5rem paddings) */
.mb-divider {
    width: calc(100% - 3rem);
    max-width: 75rem;
    margin: 0 auto;
    border-top: 1px solid rgba(172, 172, 172, .25);
}
/* The first block sits 25px under the breadcrumbs (their own bottom padding) */
.mb-page > .bread-crumbs + .mb-section,
.mb-page > .bread-crumbs + .mb-page-title {
    padding-top: 0;
}
@media (max-width: 767px) {
    .mb-divider {
        display: none;
    }
    .mb-page > .bread-crumbs {
        padding-bottom: 24px;
        margin-bottom: 25px;
        border-bottom: 1px solid rgba(172, 172, 172, .25);
    }
}
/* Fade-and-rise on scroll into view, same mechanism the homepage uses (app.min.js toggles
   ._active on any ._anim-items element as it scrolls into view; _anim-no-hide keeps it shown
   afterwards instead of hiding again on scroll-away). The homepage gives each section its own
   ._active rule under that section's own class; here every new block shares one .mb-anim pair. */
.mb-anim {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s ease;
}
.mb-anim._active {
    opacity: 1;
    transform: translateY(0);
}
.mb-eyebrow {
    margin-bottom: 16px;
}
.mb-section .mb-title {
    margin-bottom: 25px;
}
.mb-text {
    font-size: clamp(14px, 13.14px + .23vw, 16px);
    font-weight: 300;
    line-height: 154%;
    color: #2c2c2c;
}
.mb-text p:not(:last-child),
.mb-content > *:not(:last-child) {
    margin-bottom: 15px;
}
/* Paragraph-to-list distance is 25px (margins collapse with the paragraph's 15px) */
.mb-content p + ul,
.mb-content p + ol {
    margin-top: 25px;
}
.mb-content ul:not(:last-child),
.mb-content ol:not(:last-child) {
    margin-bottom: 25px;
}
@media (max-width: 767px) {
    .mb-eyebrow {
        margin-bottom: 5px;
    }
    .mb-text {
        line-height: 136%;
    }
    .mb-text p:not(:last-child),
    .mb-content > *:not(:last-child) {
        margin-bottom: 10px;
    }
    .mb-content p + ul,
    .mb-content p + ol {
        margin-top: 10px;
    }
}
.mb-content ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.mb-content ul li {
    position: relative;
    padding-left: 22px;
    font-weight: 400;
    line-height: 170%;
    color: #4a4a4a;
}
.mb-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #c8a063;
}
.mb-content ol {
    padding-left: 22px;
}
.mb-content ol li {
    list-style: decimal;
    color: #4a4a4a;
    font-weight: 400;
}
.mb-content a {
    color: #9a7d57;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.mb-content strong,
.mb-content b {
    font-weight: 600;
}

/* Buttons (built on the theme's .button fill animation) */
.mb-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 50px;
}
.mb-buttons--center {
    justify-content: center;
}
.mb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 10px 40px;
    border: 1px solid #2c2c2c;
    font-family: Manrope;
    font-size: 17px;
    font-weight: 600;
    line-height: 135%;
    letter-spacing: .17px;
    color: #2c2c2c;
    text-align: center;
    background: none;
}
/* Block buttons have a fixed design width of 276px */
.mb-text-image .mb-button,
.mb-steps .mb-button,
.mb-projects .mb-button {
    min-width: 276px;
    padding-left: 20px;
    padding-right: 20px;
}
.mb-hero .mb-button {
    min-width: 224px;
}
.mb-button--dark {
    background-color: #2c2c2c;
    color: #fafafa;
}
.mb-button--dark.button-w:hover {
    color: #2c2c2c;
}
@media (max-width: 767px) {
    .mb-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 25px;
    }
    .mb-buttons .mb-button {
        width: 100%;
    }
}

/* Breadcrumbs: intermediate links are grey, the current page is dark */
.mb-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 9px;
}
.mb-crumbs__link {
    color: #8e8e8e;
    font-weight: 400;
}
.mb-crumbs__link:hover {
    color: #2c2c2c;
}
.mb-crumbs__sep {
    font-weight: 300;
}
.mb-crumbs span[aria-current] {
    font-weight: 400;
}

.mb-page-title {
    background-color: #fafafa;
    padding-top: clamp(20px, 11.4px + 2.29vw, 40px);
}

/* ---------- Hero ---------- */
.mb-hero__container {
    position: relative;
    /* Tall enough for the gallery: 344px photo + 56px stagger on the even ones. */
    min-height: 400px;
}
.mb-hero__body {
    max-width: min(560px, calc(50% - 40px));
}
.mb-hero__title {
    margin-bottom: 25px;
}
.mb-hero__text {
    max-width: 490px;
    line-height: 137.5%;
}
.mb-hero .mb-buttons {
    margin-top: 60px;
}
.mb-hero__gallery {
    position: absolute;
    top: 0;
    left: calc(50% + 24px);
    right: 0;
    overflow: hidden;
}
/* Same idea as .about__block-slider on the homepage (two rows, looped by @keyframes scroll),
   but laid out plainly: hero images have a fixed width, so each row just sizes to its own
   content instead of copying the percentage-width trick that block relies on. The 20px gap
   between rows matches the "- 20px" baked into the shared @keyframes scroll (see style.min.css),
   so the loop lines up with no visible seam. */
.mb-hero__gallery .items-wrap {
    display: flex;
    overflow: hidden;
    gap: 20px;
}
.mb-hero__gallery .items {
    flex-shrink: 0;
    display: flex;
    gap: 16px;
}
.mb-hero__gallery .marquee {
    animation: scroll 30s linear infinite;
}
.mb-hero__gallery:hover .marquee {
    animation-play-state: paused;
}
.mb-hero__img {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    height: 344px;
}
/* Even photos sit lower than odd ones, same staggered rhythm as the "about" slider on the homepage. */
.mb-hero__img:nth-child(2n) {
    margin-top: 56px;
}
.mb-hero__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 767px) {
    .mb-hero .mb-buttons {
        margin-top: 25px;
    }
}
@media (max-width: 991px) {
    .mb-hero__container {
        min-height: 0;
    }
    .mb-hero__body {
        max-width: none;
    }
    .mb-hero__gallery {
        display: none;
    }
}

/* ---------- Text with image ---------- */
.mb-text-image__container {
    display: grid;
    grid-template-columns: minmax(0, 754px) minmax(0, 416px);
    justify-content: space-between;
    gap: 30px 60px;
    align-items: start;
}
.mb-text-image--reverse .mb-text-image__container {
    grid-template-columns: minmax(0, 416px) minmax(0, 754px);
}
.mb-text-image--reverse .mb-text-image__img {
    order: -1;
}
.mb-text-image__body {
    max-width: 712px;
}
.mb-text-image .mb-title {
    max-width: 560px;
}
.mb-text-image__subtitle {
    margin-top: 25px;
    margin-bottom: 25px;
    font-size: clamp(19px, 16.85px + .57vw, 24px);
    font-weight: 600;
    line-height: 130%;
    color: #2c2c2c;
}
.mb-text-image__img {
    aspect-ratio: 416 / 513;
    overflow: hidden;
}
.mb-text-image__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 767px) {
    .mb-text-image__container,
    .mb-text-image--reverse .mb-text-image__container {
        grid-template-columns: 1fr;
    }
    .mb-text-image--reverse .mb-text-image__img {
        order: 0;
    }
    .mb-text-image__img {
        aspect-ratio: 328 / 390;
    }
    .mb-text-image__subtitle {
        margin-top: 16px;
        margin-bottom: 16px;
    }
}

/* ---------- Numbered list ---------- */
.mb-steps__container {
    display: grid;
    grid-template-columns: minmax(0, 560px) minmax(0, 564px);
    grid-template-areas: "head ." "intro list" "images list";
    grid-template-rows: auto auto 1fr;
    justify-content: space-between;
    column-gap: 60px;
}
.mb-steps__head {
    grid-area: head;
}
.mb-steps__intro {
    grid-area: intro;
}
.mb-steps__intro .mb-text {
    max-width: 516px;
}
.mb-steps__list {
    grid-area: list;
    align-self: start;
    list-style: none;
}
.mb-steps__item {
    display: flex;
    gap: 40px;
    padding: 16px 0 13px;
    border-top: 1px solid #e6e6e6;
}
.mb-steps__item:last-child {
    border-bottom: 1px solid #e6e6e6;
}
.mb-steps__num {
    flex-shrink: 0;
    width: 20px;
    padding-top: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1.4px;
    color: #9a7d57;
}
.mb-steps__item-title {
    font-size: 18px;
    font-weight: 400;
    line-height: 145%;
    color: #2c2c2c;
}
.mb-steps__item-text {
    margin-top: 8px;
    font-size: 15px;
    font-weight: 400;
    line-height: 160%;
    color: #8e8e8e;
}
.mb-steps__images {
    grid-area: images;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 261px));
    gap: 20px;
    margin-top: 50px;
}
.mb-steps__img {
    aspect-ratio: 261 / 427;
    overflow: hidden;
}
.mb-steps__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (max-width: 767px) {
    .mb-steps__container {
        grid-template-columns: 1fr;
        grid-template-areas: "head" "intro" "list" "images";
        grid-template-rows: none;
    }
    .mb-steps__list {
        margin-top: 25px;
    }
    .mb-steps__item {
        flex-direction: column;
        gap: 9px;
        padding: 12px 0;
    }
    .mb-steps__num {
        padding-top: 0;
        font-size: 12px;
        letter-spacing: 1.2px;
    }
    .mb-steps__item-title {
        font-size: 17px;
    }
    .mb-steps__item-text {
        margin-top: 5px;
        font-size: 14px;
        line-height: 140%;
    }
    .mb-steps__images {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 25px;
    }
    .mb-steps__img {
        aspect-ratio: 158 / 290;
    }
}

/* ---------- Projects ---------- */
.mb-projects .mb-title {
    margin-bottom: clamp(25px, 14.26px + 2.86vw, 50px);
}
.mb-projects__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 20px;
}
.mb-projects__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mb-projects__img {
    display: block;
    aspect-ratio: 387 / 398;
    overflow: hidden;
    background-color: #efefef;
}
.mb-projects__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.mb-projects__card:hover .mb-projects__img img {
    transform: scale(1.03);
}
.mb-projects__info {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: clamp(14px, 12.71px + .34vw, 17px);
    font-weight: 300;
    line-height: 159%;
    letter-spacing: -.2px;
    color: #222;
}
.mb-projects__area {
    flex-shrink: 0;
    color: #acacac;
}
@media (max-width: 767px) {
    .mb-projects__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 11px;
    }
    .mb-projects__img {
        aspect-ratio: 158 / 200;
    }
    .mb-projects__card {
        gap: 10px;
    }
    .mb-projects__info {
        flex-direction: column;
        gap: 4px;
        line-height: 130%;
    }
}

/* ---------- Read also ---------- */
.mb-read-also .mb-title {
    margin-bottom: clamp(25px, 14.26px + 2.86vw, 50px);
}
.mb-read-also__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.mb-read-also__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 17px;
    border: 1px solid #d9d9d9;
    background-color: #fff;
    font-size: clamp(14px, 13.14px + .23vw, 16px);
    font-weight: 500;
    line-height: 154%;
    color: #2c2c2c;
    transition: border-color .2s ease;
}
.mb-read-also__link:hover {
    border-color: #2c2c2c;
}
@media (max-width: 767px) {
    .mb-read-also__list {
        flex-wrap: nowrap;
        gap: 10px;
        margin-right: -1.5rem;
        padding-right: 1.5rem;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .mb-read-also__list::-webkit-scrollbar {
        display: none;
    }
    .mb-read-also__link {
        font-size: 16px;
        white-space: nowrap;
    }
}

/* ---------- Free text ---------- */
.mb-free-text .mb-content {
    max-width: 754px;
}

/* ---------- Knowledge base ---------- */
.kb__title {
    max-width: 630px;
    margin-bottom: 25px;
}
.kb__intro {
    max-width: 610px;
}
.kb__tabs {
    display: flex;
    gap: 18px;
    margin-top: clamp(25px, 14.26px + 2.86vw, 50px);
    border-bottom: 1px solid #e6e6e6;
    overflow-x: auto;
    scrollbar-width: none;
}
.kb__tabs::-webkit-scrollbar {
    display: none;
}
.kb__tab {
    flex-shrink: 0;
    padding: 8px 1px 10px;
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    font-size: 15px;
    font-weight: 400;
    line-height: 140%;
    color: #8e8e8e;
    white-space: nowrap;
    transition: color .2s ease;
}
.kb__tab:hover {
    color: #2c2c2c;
}
.kb__tab.is-active {
    font-weight: 700;
    color: #2c2c2c;
    border-bottom-width: 2px;
    border-bottom-color: #9a7d57;
    margin-bottom: -2px;
}
.kb__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 20px;
    margin-top: 50px;
}
.kb__empty {
    margin-top: 50px;
}
.kb-card {
    display: flex;
    flex-direction: column;
}
.kb-card__img {
    display: block;
    aspect-ratio: 387 / 237;
    overflow: hidden;
    background-color: #efefef;
}
.kb-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.kb-card:hover .kb-card__img img {
    transform: scale(1.03);
}
.kb-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-top: 13px;
}
.kb-card__cat {
    font-size: clamp(11px, 10.57px + .11vw, 12px);
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9a7d57;
}
.kb-card__year {
    font-size: clamp(14px, 12.71px + .34vw, 17px);
    font-weight: 300;
    letter-spacing: -.2px;
    color: #acacac;
}
.kb-card__title {
    margin-top: 6px;
    font-family: Nunito, sans-serif;
    font-size: clamp(14px, 12.28px + .46vw, 18px);
    font-weight: 400;
    line-height: 120%;
    color: #333;
}
.kb-card__title a:hover {
    color: #9a7d57;
}
.kb-card__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    overflow: hidden;
    margin-top: 15px;
    font-size: clamp(13px, 12.57px + .11vw, 14px);
    font-weight: 300;
    line-height: 136%;
    color: #2c2c2c;
}
.kb-card__footer {
    margin-top: auto;
    padding-top: 10px;
}
.kb-card__footer::before {
    content: "";
    display: block;
    border-top: 1px solid #e6e6e6;
    margin-bottom: 11px;
}
.kb-card__more {
    display: inline-block;
    padding-bottom: 5px;
    border-bottom: 1px solid #767676;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: .17px;
    color: #2c2c2c;
}
.kb-card__more:hover {
    border-bottom-color: #9a7d57;
}
.kb__pagination {
    margin-top: 50px;
}
.kb__pagination .nav-links,
.kb__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.kb__pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    border: 1px solid #e6e6e6;
    font-size: 15px;
    font-weight: 400;
    color: #2c2c2c;
}
.kb__pagination .page-numbers.current {
    border-color: #2c2c2c;
    font-weight: 600;
}
.kb__pagination a.page-numbers:hover {
    border-color: #9a7d57;
}
@media (max-width: 991px) {
    .kb__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .kb__tabs {
        gap: 8px;
        border-bottom: none;
        padding-bottom: 25px;
        border-bottom: 1px solid rgba(172, 172, 172, .25);
        margin-right: -1.5rem;
    }
    .kb__tab,
    .kb__tab.is-active {
        padding: 10px 20px;
        margin-bottom: 0;
        border: 1px solid #2c2c2c;
        font-size: 17px;
        font-weight: 600;
        color: #2c2c2c;
    }
    .kb__tab.is-active {
        background-color: #2c2c2c;
        color: #fff;
    }
    .kb__grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 25px;
    }
    .kb-card__img {
        aspect-ratio: 327 / 200;
    }
    .kb-card__meta {
        margin-top: 10px;
    }
    .kb-card__title {
        font-family: Manrope;
        letter-spacing: -.2px;
        color: #222;
    }
    .kb-card__text {
        margin-top: 5px;
        -webkit-line-clamp: 3;
        color: #9a9a9a;
    }
    .kb-card__footer {
        display: none;
    }
}

/* ---------- Article ---------- */
.article__title {
    max-width: 700px;
    margin-bottom: 25px;
}
.article__top {
    display: grid;
    grid-template-columns: 285px minmax(0, 813px);
    grid-template-areas: "toc intro";
    justify-content: space-between;
    gap: 25px 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(172, 172, 172, .25);
}
.article__top:not(:has(.article__toc)) {
    grid-template-columns: minmax(0, 813px);
    grid-template-areas: "intro";
}
.article__toc {
    grid-area: toc;
}
.article__intro {
    grid-area: intro;
}
.article__toc-title {
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.82px;
    text-transform: uppercase;
    color: #9a9a9a;
}
.article__toc-toggle {
    display: none;
}
.article__toc-list {
    list-style: none;
}
.article__toc-list li {
    border-bottom: 1px solid #e0e0e0;
}
.article__toc-list li:not(:first-child) {
    margin-top: 12px;
}
.article__toc-list a {
    display: block;
    padding-bottom: 11px;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #2c2c2c;
    transition: color .2s ease;
}
.article__toc-list a:hover,
.article__toc-list a.is-active {
    color: #9a7d57;
}
.article__byline {
    margin-bottom: 25px;
    font-size: clamp(13px, 12.57px + .11vw, 14px);
    font-weight: 400;
    line-height: 160%;
    color: #9a9a9a;
}
.article__lead {
    padding-left: 32px;
    border-left: 2px solid #9a7d57;
    font-size: clamp(14px, 11.42px + .69vw, 20px);
    font-weight: 400;
    line-height: 160%;
    color: #3e3e3e;
}
.article__body {
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding-top: 60px;
}
.article__section {
    max-width: 754px;
    scroll-margin-top: 120px;
}
.article__body > * + .article__section {
    margin-top: 10px;
}
.article__h2 {
    margin-bottom: 25px;
    font-size: clamp(22px, 17.7px + 1.15vw, 32px);
    font-weight: 700;
    line-height: 130%;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2c2c2c;
}
.article__content {
    font-size: clamp(14px, 13.14px + .23vw, 16px);
    font-weight: 300;
    line-height: 154%;
}
.article__content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: clamp(17px, 15.71px + .34vw, 20px);
    font-weight: 600;
    line-height: 130%;
}
.article__content img {
    max-width: 100%;
    height: auto;
}
.article__gallery {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}
.article__gallery-item {
    grid-column: span 2;
    height: 398px;
    overflow: hidden;
}
.article__gallery-item:nth-child(5n + 1),
.article__gallery-item:nth-child(5n + 2) {
    grid-column: span 3;
}
.article__gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.article__gallery-item:hover img {
    transform: scale(1.03);
}
.article__note {
    max-width: 982px;
    margin-top: -25px;
    padding: 15px 20px;
    border-left: 2px solid #c8a063;
    background-color: #faf7f2;
    font-size: clamp(14px, 13.57px + .11vw, 15px);
    font-weight: 400;
    line-height: 165%;
    color: #8a7a62;
}
.article__file {
    margin-top: 0;
}
@media (max-width: 991px) {
    .article__top {
        grid-template-columns: 240px minmax(0, 1fr);
    }
    .article__gallery-item {
        height: 280px;
    }
}
@media (max-width: 767px) {
    .article__top {
        grid-template-columns: 1fr;
        grid-template-areas: "intro" "toc";
        gap: 24px;
        padding-bottom: 0;
        border-bottom: none;
    }
    .article__lead {
        padding-left: 16px;
    }
    .article__title {
        margin-bottom: 10px;
    }
    .article__toc {
        border-top: 1px solid #e3e3e3;
        border-bottom: 1px solid #e3e3e3;
    }
    .article__toc-title {
        display: none;
    }
    .article__toc-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 15px 0;
        font-size: 14px;
        font-weight: 500;
        color: #2c2c2c;
        text-align: left;
    }
    .article__toc-toggle::after {
        content: "+";
        font-size: 22px;
        font-weight: 300;
        line-height: 1;
    }
    .article__toc-toggle[aria-expanded="true"]::after {
        content: "−";
    }
    .article__toc-list {
        display: none;
        padding-bottom: 12px;
    }
    .article__toc.is-open .article__toc-list {
        display: block;
    }
    .article__toc-list li {
        border-bottom: none;
    }
    .article__toc-list a {
        padding: 6px 0;
        font-size: 14px;
        font-weight: 300;
    }
    .article__toc-list li:not(:first-child) {
        margin-top: 0;
    }
    .article__body {
        gap: 30px;
        padding-top: 30px;
    }
    .article__body > * + .article__section {
        margin-top: 0;
    }
    .article__h2 {
        margin-bottom: 16px;
        letter-spacing: 0;
    }
    .article__gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .article__gallery-item,
    .article__gallery-item:nth-child(5n + 1),
    .article__gallery-item:nth-child(5n + 2) {
        grid-column: span 1;
        height: 200px;
    }
    .article__gallery-item:nth-child(3n + 1) {
        grid-column: span 2;
    }
    .article__note {
        margin: -10px -1.5rem 0;
        padding: 16px 1.5rem;
        border-left: none;
    }
    .article__file .mb-button {
        width: 100%;
    }
}

/* ---------- Sitewide blocks on the new pages ----------
   The homepage keeps its own spacing; on block pages the shared sections follow
   the block rhythm: 60px (30px on phones) above and below, dividers between. */
.mb-page .timeline,
.mb-page .reviews,
.mb-page .section-form {
    padding-top: clamp(30px, 17.1px + 3.44vw, 60px);
    padding-bottom: clamp(30px, 17.1px + 3.44vw, 60px);
}
.mb-page .director {
    padding-bottom: clamp(30px, 17.1px + 3.44vw, 60px);
}
.mb-page .director__content,
.mb-page .faq__content {
    padding-top: clamp(30px, 17.1px + 3.44vw, 60px);
}
.mb-page .faq {
    padding-bottom: clamp(30px, 17.1px + 3.44vw, 60px);
}
.mb-page .reviews__content {
    padding-bottom: 0;
    border-bottom: none;
}
.mb-page .faq__content {
    border-top: none;
}
.mb-page .timeline__subtitle,
.mb-page .director__subtitle,
.mb-page .faq__subtitle {
    margin-bottom: 25px;
}
.mb-page .timeline__cards {
    margin-top: 40px;
}
@media (min-width: 768px) {
    .mb-page .faq__content {
        gap: 40px;
    }
    .mb-page .faq__block-foto {
        flex: 0 0 420px;
        max-width: 420px;
    }
    .mb-page .sn-accordion-container {
        align-self: start;
    }
}
/* The two photo frames (custom.css) never actually constrain the <img> itself — harmless with
   the small built-in homepage images, but an uploaded photo renders at its full original size.
   Crop every photo to the frame the original composition was sized for. */
.faq__block-foto-img1,
.faq__block-foto-img2 {
    overflow: hidden;
}
.faq__block-foto-img1 {
    width: 375px;
    height: 234px;
}
.faq__block-foto-img2 {
    width: 191px;
    height: 234px;
}
.faq__block-foto-img1 img,
.faq__block-foto-img2 img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* .faq__block-foto-box is already display:none below 768px (custom.css) — nothing to size there. */

@media (min-width: 992px) {
    .mb-hero__gallery::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        width: 100px;
        height: 100%;
        background: linear-gradient(90deg, #fafafa, rgba(250, 250, 250, 0));
        pointer-events: none;
    }
}