.kfpf-widget.kfh-featured .kf-wrap {
    font-family: inherit;
}

.kfh-section-lead {
    max-width: 62ch;
    font-size: clamp(16px, 1.45vw, 19px);
    line-height: 1.65;
    color: #c1c4c6;
    margin: 20px 0 0 !important;
}

.kfh-featured-work .kf-heading-row,
.kfh-instagram .kf-heading-row {
    margin-bottom: clamp(30px, 4.2vw, 56px);
}

.kfpf-widget.kfh-featured .kf-masonry {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(24px, 3vw, 44px);
    row-gap: clamp(36px, 4vw, 64px);
}

.kfpf-widget.kfh-featured .kf-portfolio-card {
    margin: 0;
}

.kfh-featured .kf-portfolio-card:nth-child(4n + 1),
.kfh-featured .kf-portfolio-card:nth-child(4n + 3) {
    --kfh-crop: 16 / 9;
}

.kfh-featured .kf-portfolio-card:nth-child(4n + 2),
.kfh-featured .kf-portfolio-card:nth-child(4n + 4) {
    --kfh-crop: 8 / 7;
}

.kfh-featured .kf-portfolio-photo {
    aspect-ratio: var(--kfh-crop, 16 / 9);
    background: #27292b;
}

.kfpf-widget.kfh-featured .kf-portfolio-photo :is(img, .kf-portfolio-placeholder) {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.kfh-featured .kf-portfolio-caption h3 {
    color: #fff;
    font-size: clamp(23px, 2.25vw, 34px);
    margin: 0;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.kfh-featured .kf-portfolio-caption p {
    font-size: clamp(11px, 1vw, 13px);
}

.kfh-featured .kf-portfolio-card:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 6px;
    border-radius: 28px;
}

.kfh-featured-work .kf-heading-row > .kf-link,
.koif-feed .koif-heading-row > .koif-button {
    flex-shrink: 0;
    margin-inline-start: auto;
}

.kfh-instagram {
    background: #1e2022;
}

.kfh-instagram #sb_instagram {
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
}

.kfh-instagram #sb_instagram .sb_instagram_header,
.kfh-instagram #sb_instagram #sbi_load {
    display: none !important;
}

.kfh-instagram #sb_instagram .sbi_photo {
    border-radius: clamp(12px, 1.5vw, 22px);
    overflow: hidden;
}

[data-kfh-clients] .kf-client a {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    cursor: pointer;
}

[data-kfh-clients].is-dragging .kf-client a {
    cursor: grabbing;
}

[data-kfh-clients] .kf-client a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -3px;
}

.kfh-client-preview {
    position: relative;
    overflow: hidden;
    padding: 24px;
    background: #27292b;
    color: #fff;
}

.kfh-client-preview .kf-marquee {
    overflow: hidden;
    cursor: grab;
    touch-action: pan-y;
}

.kfh-client-preview .is-dragging { cursor: grabbing; }
.kfh-client-preview .kf-marquee-pause { margin: 0 0 15px; }
.kfh-client-preview .kf-logo-track { display: flex; width: max-content; }
.kfh-client-preview .kf-logo-set { display: flex; flex: none; gap: 28px; padding-right: 28px; }
.kfh-client-preview .kf-client { display: grid; width: 170px; height: 130px; place-items: center; }
.kfh-client-preview .kf-client img { width: 100%; height: 100%; object-fit: contain; }

.kfh-fallback-footer .kf-footer { background: #1e2022; color: #fff; padding: 66px 0 30px; }
.kfh-fallback-footer .kf-footer-inner { width: min(1320px, calc(100% - 96px)); margin: auto; }
.kfh-fallback-footer .kf-footer-grid { display: grid; grid-template-columns: 1.15fr .7fr 1.25fr .7fr; gap: 28px; }
.kfh-fallback-footer .kf-footer h3 { color: #fff; font-size: 12px; text-transform: uppercase; }
.kfh-fallback-footer .kf-footer a { display: block; color: #fff; margin-bottom: 10px; }
.kfh-fallback-footer .kf-footer a:hover { color: #fff; text-decoration: underline; text-decoration-color: #b10000; }
.kfh-fallback-footer .kf-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; border-top: 1px solid #b10000; padding-top: 18px; }

@media (max-width: 767px) {
    .kfpf-widget.kfh-featured .kf-masonry {
        grid-template-columns: minmax(0, 1fr);
    }

    .kfh-featured .kf-portfolio-card:nth-child(4n + 4) { --kfh-crop: 4 / 5; }
    .kfh-section-lead { margin-top: 16px !important; }
    .kfh-fallback-footer .kf-footer-inner { width: calc(100% - 40px); }
    .kfh-fallback-footer .kf-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
