.tb-theme {
    --tb-primary: var(--tenant-primary, var(--bs-primary, #2563eb));
    --tb-secondary: var(--tenant-secondary, var(--bs-secondary, #0f766e));
    --tb-accent: #f07e2e;
    --tb-bg: #f8fafc;
    --tb-body-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --tb-heading-font: var(--tb-body-font);
    --tb-base-font-size: 16px;
    --tb-body-weight: 400;
    --tb-heading-weight: 800;
    --tb-line-height: 1.6;
    --tb-h2-size: 1.45rem;
    --tb-hero-size: 2.05rem;
    color: #172033;
    font-family: var(--tb-body-font);
    font-size: var(--tb-base-font-size);
    font-weight: var(--tb-body-weight);
    line-height: var(--tb-line-height);
    max-width: 100%;
    overflow-x: clip;
}

.tb-theme-editorial {
    --tb-bg: #fbfaf7;
}

.tb-theme-editorial .tb-block {
    background: #fbfaf7;
}

.tb-theme-bold {
    --tb-bg: color-mix(in srgb, var(--tb-primary) 8%, #f8fafc);
}

.tb-theme-bold .tb-block {
    border-top: 4px solid color-mix(in srgb, var(--tb-primary) 55%, #fff);
}

.tb-theme-minimal .tb-block,
.tb-theme-minimal .tb-card-grid article,
.tb-theme-minimal .tb-media-grid figure,
.tb-theme-minimal .tb-logo-grid figure {
    border-color: #edf1f5;
    box-shadow: none;
}

.tb-theme-warm {
    --tb-bg: #fff8f1;
    --tb-accent: #c5662b;
}

.tb-theme-warm .tb-block {
    background: #fffaf4;
}

.tb-spacing-compact .tb-block {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.tb-spacing-spacious .tb-block {
    padding-top: 4.8rem;
    padding-bottom: 4rem;
}

.tb-theme :where(h1, h2, h3, h4, h5, h6) {
    font-family: var(--tb-heading-font);
    font-weight: var(--tb-heading-weight);
    line-height: 1.05;
}

.tb-theme :where(p, span, em, figcaption, li, a, button, input, textarea, select) {
    font-family: inherit;
}

.tb-block {
    display: grid;
    gap: var(--tb-section-gap, 1rem);
    min-height: var(--tb-section-min-height, auto);
    padding: 3rem clamp(1rem, 4vw, 3rem);
    background: #fff;
    max-width: 100%;
    overflow-x: clip;
}

.tb-space-compact {
    padding-top: 2rem;
    padding-bottom: 1.5rem;
}

.tb-space-spacious {
    padding-top: 4.5rem;
    padding-bottom: 4rem;
}

.tb-bg-muted {
    background: #f8fafc;
}

.tb-bg-surface {
    background: var(--tb-bg);
}

.tb-bg-primary {
    color: #fff;
    background: var(--tb-primary);
}

.tb-bg-secondary {
    background: color-mix(in srgb, var(--tb-secondary) 14%, #fff);
}

.tb-variant-quiet {
    color: #344767;
}

.tb-variant-quiet .tb-card-grid article,
.tb-variant-quiet .tb-media-grid figure,
.tb-variant-quiet .tb-logo-grid figure {
    background: #f8fafc;
}

.tb-variant-contrast {
    color: #fff;
    background: #172033;
}

.tb-variant-contrast .tb-kicker,
.tb-variant-contrast .tb-card-grid strong {
    color: #fff;
}

.tb-variant-contrast .tb-card-grid article,
.tb-variant-contrast .tb-media-grid figure,
.tb-variant-contrast .tb-logo-grid figure {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.tb-variant-accent {
    background: color-mix(in srgb, var(--tb-accent) 10%, #fff);
}

.tb-layout-stack .tb-card-grid,
.tb-layout-stack .tb-media-grid,
.tb-layout-stack .tb-logo-grid {
    grid-template-columns: 1fr;
}

.tb-layout-split .tb-card-grid,
.tb-layout-split .tb-media-grid,
.tb-layout-split .tb-logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tb-width-narrow > * {
    width: min(100%, 760px);
    justify-self: center;
}

.tb-width-normal > * {
    width: min(100%, 1080px);
    justify-self: center;
}

.tb-width-wide > * {
    width: min(100%, 1320px);
    justify-self: center;
}

.tb-width-full > * {
    width: 100%;
    max-width: none;
}

.tb-align-center {
    text-align: center;
}

.tb-align-right {
    text-align: right;
}

.tb-section-head {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    max-width: 760px;
}

.tb-align-center .tb-section-head {
    justify-self: center;
}

.tb-kicker {
    color: var(--tb-primary);
    font-size: 0.75rem;
    font-weight: var(--tb-heading-weight);
    letter-spacing: 0;
    text-transform: uppercase;
}

.tb-block h2 {
    margin: 0;
    color: inherit;
    font-size: var(--tb-h2-size);
    font-weight: var(--tb-heading-weight);
    letter-spacing: 0;
}

.tb-block p,
.tb-block span,
.tb-block em {
    font-weight: var(--tb-body-weight);
    line-height: var(--tb-line-height);
}

.tb-button,
.tb-card-grid a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    justify-self: start;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #fff;
    background: var(--tb-primary);
    font-weight: var(--tb-heading-weight);
    text-decoration: none;
}

.tb-buttons-pill .tb-button,
.tb-buttons-pill .tb-card-grid a {
    border-radius: 999px;
}

.tb-buttons-outline .tb-button,
.tb-buttons-outline .tb-card-grid a {
    border: 1px solid currentColor;
    color: var(--tb-primary);
    background: transparent;
}

.tb-card-grid {
    display: grid;
    grid-template-columns: repeat(var(--tb-columns, auto-fit), minmax(190px, 1fr));
    gap: 0.85rem;
}

.tb-card-grid:has(.tb-staff-card) {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.tb-block--testimonials.tb-layout-carousel .tb-card-grid,
.tb-block--review_wall.tb-layout-carousel .tb-card-grid,
.tb-presentation-carousel .tb-card-grid,
.tb-presentation-slider .tb-card-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 34%);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.tb-block--testimonials.tb-layout-carousel .tb-card-grid article,
.tb-block--review_wall.tb-layout-carousel .tb-card-grid article,
.tb-presentation-carousel .tb-card-grid article,
.tb-presentation-slider .tb-card-grid article {
    scroll-snap-align: start;
}

.tb-presentation-slider .tb-card-grid {
    grid-auto-columns: minmax(280px, min(86%, 460px));
}

.tb-card-grid article,
.tb-media-grid figure,
.tb-logo-grid figure {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
    margin:
        var(--tb-card-margin-top, 0)
        var(--tb-card-margin-right, 0)
        var(--tb-card-margin-bottom, 0)
        var(--tb-card-margin-left, 0);
    border: 1px solid color-mix(in srgb, var(--tb-primary) 16%, #e4e9ef);
    border-radius: 8px;
    padding:
        var(--tb-card-padding-top, 1rem)
        var(--tb-card-padding-right, 1rem)
        var(--tb-card-padding-bottom, 1rem)
        var(--tb-card-padding-left, 1rem);
    background: #fff;
}

.tb-corners-square .tb-card-grid article,
.tb-corners-square .tb-media-grid figure,
.tb-corners-square .tb-logo-grid figure,
.tb-corners-square .tb-button,
.tb-corners-square .tb-hero {
    border-radius: 0;
}

.tb-corners-rounded .tb-card-grid article,
.tb-corners-rounded .tb-media-grid figure,
.tb-corners-rounded .tb-logo-grid figure,
.tb-corners-rounded .tb-hero {
    border-radius: 18px;
}

.tb-card-grid strong {
    color: #172033;
    font-size: 1rem;
    font-weight: var(--tb-heading-weight);
}

.tb-card-grid span,
.tb-card-grid em,
.tb-empty {
    color: #667085;
    font-size: 0.9rem;
    font-style: normal;
}

.tb-program__perks {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tb-program__perks i {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    border: 1px solid color-mix(in srgb, var(--tb-primary) 24%, #d7dee8);
    border-radius: 999px;
    padding: 0.2rem 0.44rem;
    color: var(--tb-primary);
    background: color-mix(in srgb, var(--tb-primary) 8%, #fff);
    font-size: 0.7rem;
    font-style: normal;
    font-weight: var(--tb-heading-weight);
}

.tb-card-grid .tb-testimonial-rating {
    color: var(--tb-primary);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: var(--tb-heading-weight);
}

.tb-staff-card {
    overflow: hidden;
    padding: 0 !important;
}

.tb-staff-card figure {
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0b1110;
}

.tb-staff-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tb-fit-contain :where(.tb-staff-card img, .tb-media-grid img, .tb-logo-grid img) {
    object-fit: contain;
}

.tb-image-square :where(.tb-staff-card figure, .tb-media-grid img, .tb-logo-grid img) {
    aspect-ratio: 1;
}

.tb-image-wide :where(.tb-staff-card figure, .tb-media-grid img, .tb-logo-grid img) {
    aspect-ratio: 16 / 9;
}

.tb-image-portrait :where(.tb-staff-card figure, .tb-media-grid img, .tb-logo-grid img) {
    aspect-ratio: 3 / 4;
}

.tb-image-cinematic :where(.tb-staff-card figure, .tb-media-grid img, .tb-logo-grid img) {
    aspect-ratio: 21 / 9;
}

.tb-staff-card > div {
    display: grid;
    gap: 0.45rem;
    padding:
        var(--tb-card-padding-top, 0.9rem)
        var(--tb-card-padding-right, 0.9rem)
        var(--tb-card-padding-bottom, 0.9rem)
        var(--tb-card-padding-left, 0.9rem);
}

.tb-staff-card a {
    min-height: 2.35rem;
    justify-self: stretch;
    padding: 0.58rem 0.75rem;
    border-radius: 8px;
    font-size: 0.84rem;
    line-height: 1.1;
}

.tb-staff-card a i {
    font-size: 0.92rem;
}

.tb-service-list {
    grid-template-columns: repeat(var(--tb-service-columns, 3), minmax(0, 1fr));
}

.tb-service-list--carousel,
.tb-service-list--slider {
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.tb-service-list--carousel {
    grid-auto-columns: minmax(220px, calc(100% / var(--tb-service-columns, 3)));
}

.tb-service-list--slider {
    grid-auto-columns: minmax(280px, min(86%, 440px));
}

.tb-service-list--carousel .tb-service-card,
.tb-service-list--slider .tb-service-card {
    scroll-snap-align: start;
}

.tb-service-list--text {
    grid-template-columns: 1fr;
    gap: 0;
}

.tb-service-list--text .tb-service-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    border-width: 0 0 1px;
    border-radius: 0;
    padding: 0.85rem 0;
    background: transparent;
    box-shadow: none;
}

.tb-service-card--minimal .tb-service-card {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.tb-service-card--outlined .tb-service-card {
    border-color: color-mix(in srgb, var(--tb-primary) 34%, #dbe2ea);
    background: transparent;
}

.tb-service-card--filled .tb-service-card {
    border-color: color-mix(in srgb, var(--tb-primary) 16%, #dbe2ea);
    background: color-mix(in srgb, var(--tb-primary) 8%, #fff);
}

.tb-bg-primary .tb-card-grid article,
.tb-bg-primary .tb-media-grid figure,
.tb-bg-primary .tb-logo-grid figure {
    color: #172033;
}

.tb-hero {
    min-height: 24rem;
    align-content: end;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.2)),
        var(--tb-photo) var(--tb-photo-position, center)/cover;
}

.tb-hero > div,
.tb-cta-panel {
    display: grid;
    gap: 0.75rem;
    max-width: 720px;
}

.tb-hero h2 {
    max-width: 12ch;
    font-size: var(--tb-hero-size);
}

.tb-hero p,
.tb-cta-panel p {
    max-width: 64ch;
    margin: 0;
}

.tb-media-grid,
.tb-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.85rem;
}

.tb-media-grid img,
.tb-logo-grid img {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

.tb-media-grid img {
    aspect-ratio: 4 / 3;
}

.tb-media-grid--media_collage {
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
}

.tb-media-grid--masonry_gallery {
    align-items: start;
}

.tb-media-grid--masonry_gallery figure:nth-child(odd) img,
.tb-media-grid--lookbook figure:nth-child(even) img {
    aspect-ratio: 3 / 4;
}

.tb-media-grid--image_carousel {
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 34%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.tb-media-grid--image_carousel figure {
    scroll-snap-align: start;
}

.tb-media-grid--before_after {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tb-logo-grid img {
    aspect-ratio: 3 / 2;
    background: #f8fafc;
}

.tb-media-circle .tb-media-grid img,
.tb-media-circle .tb-logo-grid img {
    border-radius: 999px;
    aspect-ratio: 1;
}

.tb-media-wide .tb-media-grid img,
.tb-media-wide .tb-logo-grid img {
    aspect-ratio: 16 / 9;
}

.tb-media-portrait .tb-media-grid img {
    aspect-ratio: 3 / 4;
}

.tb-media-grid figcaption,
.tb-logo-grid figcaption,
.tb-footer-note {
    color: #667085;
    font-size: 0.88rem;
    font-weight: var(--tb-body-weight);
}

.tb-theme .sf-builder-hero h1 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-hero-size);
    font-weight: var(--tb-heading-weight);
}

.tb-theme .sf-builder-hero p,
.tb-theme .sf-builder-cta p,
.tb-theme .sf-builder-note p,
.tb-theme .sf-section-head p {
    font-family: var(--tb-body-font);
    font-weight: var(--tb-body-weight);
    line-height: var(--tb-line-height);
}

.tb-theme .sf-section-head h2,
.tb-theme .sf-builder-cta h2,
.tb-theme .sf-booking-head h2,
.tb-theme .sf-team-head h2,
.tb-theme .tsp-builder-block h2,
.tb-theme .tsp-builder-cta h2 {
    font-family: var(--tb-heading-font);
    font-size: var(--tb-h2-size);
    font-weight: var(--tb-heading-weight);
}

.tb-theme .sf-kicker,
.tb-theme .sf-builder-cta-link,
.tb-theme .sf-builder-cta a,
.tb-theme .tsp-builder-block p,
.tb-theme .tsp-builder-cta p {
    font-family: var(--tb-body-font);
    font-weight: var(--tb-body-weight);
    line-height: var(--tb-line-height);
}

.tb-cta-panel {
    margin: 0;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--tb-primary), var(--tb-secondary));
}

.tb-video-feature {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
    align-items: center;
}

.tb-video-frame {
    margin: 0;
}

.tb-video-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    object-fit: cover;
}

.tb-cta-panel .tb-kicker,
.tb-cta-panel h2,
.tb-cta-panel p {
    color: inherit;
}

@media (max-width: 980px) {
    .tb-service-list {
        grid-template-columns: repeat(var(--tb-service-tablet-columns, 2), minmax(0, 1fr));
    }

    .tb-service-list--carousel,
    .tb-service-list--slider {
        grid-template-columns: none;
    }
}

@media (max-width: 640px) {
    .tb-service-list {
        grid-template-columns: repeat(var(--tb-service-mobile-columns, 1), minmax(0, 1fr));
    }

    .tb-service-list--carousel,
    .tb-service-list--slider {
        grid-template-columns: none;
    }
}

.tb-footer-note {
    text-align: center;
}

@media (max-width: 760px) {
    .tb-block {
        padding: 2rem 1rem;
    }

    .tb-hero {
        min-height: 27rem;
    }

    .tb-video-feature,
    .tb-media-grid--media_collage,
    .tb-media-grid--before_after {
        grid-template-columns: 1fr;
    }
}

/* Booking storefronts should stay dense and legible, even with display-style builder settings. */
.tb-theme {
    --tb-h2-size: 1.45rem;
    --tb-hero-size: 2.05rem;
    --tb-line-height: 1.48;
}

.tb-theme .sf-builder-flow {
    gap: 0.7rem;
}

.tb-theme .sf-builder-hero {
    min-height: 24rem;
    padding: 1.75rem 1rem;
}

.tb-theme .sf-builder-hero::before {
    background-image: var(--sf-photo), url("../../img/home-decor-1.jpg");
}

.tb-theme .sf-builder-hero__content {
    max-width: 38rem;
}

.tb-theme .sf-builder-hero h1,
.tb-theme .tb-hero h2 {
    max-width: 18ch;
    font-size: 2.05rem !important;
    line-height: 1.04 !important;
}

.tb-theme .sf-builder-hero p,
.tb-theme .tb-hero p,
.tb-theme .tb-cta-panel p,
.tb-theme .sf-section-head p,
.tb-theme .tb-section-head p,
.tb-theme .sf-builder-cta p {
    max-width: 56ch;
    min-width: 0;
    overflow-wrap: break-word;
    font-size: 0.92rem !important;
    line-height: 1.55 !important;
}

.tb-theme .tb-block {
    gap: 0.8rem;
    padding: 1.35rem 1rem;
}

.tb-theme .tb-space-compact {
    padding-top: 0.95rem;
    padding-bottom: 0.85rem;
}

.tb-theme .tb-space-spacious {
    padding-top: 1.55rem;
    padding-bottom: 1.25rem;
}

.tb-theme .tb-hero {
    min-height: 22rem;
    background-image:
        linear-gradient(90deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.2)),
        var(--tb-photo),
        url("../../img/home-decor-1.jpg");
    background-position:
        center,
        var(--tb-photo-position, center),
        center;
    background-size: cover;
}

.tb-theme .tb-block h2,
.tb-theme .sf-section-head h2,
.tb-theme .sf-builder-cta h2,
.tb-theme .sf-builder-note p {
    max-width: 18ch;
    font-size: 1.45rem !important;
    line-height: 1.08 !important;
}

.tb-theme .sf-booking-head h2 {
    font-size: 1.35rem !important;
    line-height: 1.12 !important;
}

.tb-theme .sf-builder-hero .sf-featured-services {
    width: min(100%, 28rem);
    gap: 0.38rem;
    margin-top: 0.85rem;
}

.tb-theme .sf-builder-hero .sf-featured-service {
    min-height: 0;
    padding: 0.55rem 0.65rem;
}

.tb-theme .sf-builder-hero .sf-featured-service strong {
    font-size: 0.78rem;
}

.tb-theme .sf-builder-hero .sf-featured-service small,
.tb-theme .sf-builder-hero .sf-featured-service em {
    font-size: 0.68rem;
}

.tb-theme .sf-builder-hero .sf-featured-service:nth-child(n + 3) {
    display: none;
}

.tb-theme .tb-block.tb-cta-panel {
    width: 100%;
    max-width: none;
    border-radius: 8px;
}

.tb-theme .tb-block.tb-align-center.tb-cta-panel {
    justify-items: center;
    text-align: center;
}

.tb-theme .tb-block.tb-variant-accent.tb-cta-panel {
    color: #172033 !important;
    border: 1px solid color-mix(in srgb, var(--tb-accent) 18%, #e4e8ee);
    background: color-mix(in srgb, var(--tb-accent) 8%, #fff) !important;
}

.tb-theme .tb-block.tb-variant-contrast.tb-cta-panel {
    color: #fff !important;
    background: #172033 !important;
}

.tb-theme .tb-block.tb-variant-default.tb-cta-panel,
.tb-theme .tb-block.tb-variant-quiet.tb-cta-panel {
    color: #fff !important;
    background: linear-gradient(135deg, var(--tb-primary), var(--tb-secondary)) !important;
}

.tb-theme .tb-cta-panel .tb-kicker,
.tb-theme .tb-cta-panel h2,
.tb-theme .tb-cta-panel p {
    color: inherit !important;
}

.tb-theme .tb-block--announcement_strip.tb-cta-panel {
    align-content: center;
    min-height: 0;
    border-inline: 0;
    border-radius: 0;
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
    box-shadow: none;
}

.tb-theme .tb-block--announcement_strip.tb-cta-panel h2 {
    max-width: 24ch;
}

.tb-theme .tb-block--announcement_strip.tb-cta-panel p {
    max-width: 46ch;
    color: #43546a !important;
}

.tb-theme .tb-cta-panel .tb-button {
    min-height: 0;
    padding: 0.68rem 0.9rem;
    font-size: 0.82rem !important;
}

.tb-theme .sf-service-board,
.tb-theme .sf-team-section,
.tb-theme .sf-program-panel,
.tb-theme .sf-assistant {
    padding: 0.95rem;
}

.tb-theme .sf-service-board {
    grid-template-columns: minmax(13rem, 0.26fr) minmax(0, 1fr);
    gap: 0.9rem;
}

.tb-theme .sf-builder-booking-section {
    padding-inline: 1rem;
}

.tb-theme .sf-booking-form--builder {
    width: min(100%, 760px);
}

.tb-theme .sf-booking-panel {
    padding: 0.9rem;
}

.tb-theme .sf-booking-head {
    gap: 0.75rem;
    padding-bottom: 0.7rem;
}

.tb-theme .sf-input-grid {
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.tb-theme .sf-field {
    min-height: 3.7rem;
    padding: 0.45rem 0.6rem;
}

.tb-theme .sf-field span {
    font-size: 0.64rem;
}

.tb-theme .sf-field input,
.tb-theme .sf-field select,
.tb-theme .sf-field textarea {
    font-size: 0.78rem;
}

.tb-theme .sf-availability-zone {
    gap: 0.6rem;
    margin-top: 0.75rem;
    padding-block: 0.7rem;
}

.tb-theme .sf-slot-grid {
    gap: 0.5rem;
    max-height: 12rem;
}

.tb-theme .tenant-slot {
    min-height: 4.2rem;
    padding: 0.55rem;
}

.tb-theme .sf-details-head {
    gap: 0.35rem;
    padding-top: 0.65rem;
}

.tb-theme .sf-details-head p,
.tb-theme .sf-booking-summary p,
.tb-theme .sf-benefit-hint {
    font-size: 0.78rem;
}

.tb-theme .sf-booking-summary {
    margin-top: 0.65rem;
    padding: 0.7rem;
}

.tb-theme .tb-card-grid,
.tb-theme .tb-media-grid,
.tb-theme .tb-logo-grid {
    gap: 0.7rem;
}

.tb-theme .tb-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.tb-theme .tb-media-grid--media_collage,
.tb-theme .tb-media-grid--masonry_gallery,
.tb-theme .tb-media-grid--lookbook {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tb-theme .tb-card-grid article,
.tb-theme .tb-media-grid figure,
.tb-theme .tb-logo-grid figure {
    padding: 0.8rem;
}

.tb-theme .tb-media-grid img,
.tb-theme .tb-logo-grid img,
.tb-theme .sf-team-card img {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.02)),
        #eef3f4;
}

.tb-theme .tb-media-grid figcaption,
.tb-theme .tb-logo-grid figcaption {
    font-size: 0.78rem;
    line-height: 1.35;
}

.tb-theme .sf-builder-note {
    padding-block: 1rem !important;
}

.tb-theme .sf-builder-note p {
    max-width: 64ch;
    font-size: 1rem !important;
    line-height: 1.45 !important;
}

.tb-theme .sf-team-carousel {
    grid-auto-columns: minmax(240px, calc((100% - (var(--sf-team-gap) * 2)) / 3));
}

.tb-theme .sf-team-card figure {
    aspect-ratio: 16 / 9;
}

.tb-theme .sf-team-card figcaption {
    min-width: 3.2rem;
    min-height: 3.2rem;
}

.tb-theme .sf-footer {
    padding-block: 0.9rem 1.1rem;
}

@media (max-width: 760px) {
    .tb-theme {
        --tb-h2-size: 1.28rem;
        --tb-hero-size: 1.65rem;
    }

    .tb-theme .sf-builder-hero {
        min-height: 24rem;
        padding: 1.4rem 0.9rem;
    }

    .tb-theme .sf-builder-hero h1,
    .tb-theme .tb-hero h2,
    .tb-theme .tb-block h2,
    .tb-theme .sf-section-head h2,
    .tb-theme .sf-builder-cta h2,
    .tb-theme .sf-builder-note p {
        max-width: 18rem;
    }

    .tb-theme .sf-builder-hero h1,
    .tb-theme .tb-hero h2 {
        font-size: 1.65rem !important;
    }

    .tb-theme .tb-block h2,
    .tb-theme .sf-section-head h2,
    .tb-theme .sf-builder-cta h2 {
        font-size: 1.28rem !important;
    }

    .tb-theme .tb-block {
        width: 100%;
        max-width: 100vw;
        padding: 1.25rem 0.9rem;
    }

    .tb-theme .tb-width-narrow > *,
    .tb-theme .tb-width-normal > *,
    .tb-theme .tb-width-wide > *,
    .tb-theme .tb-width-full > * {
        width: 100%;
        max-width: 100%;
    }

    .tb-theme .tb-section-head,
    .tb-theme .tb-section-head p {
        max-width: 100%;
    }

    .tb-theme .tb-section-head {
        width: min(100%, calc(100vw - 1.8rem));
        justify-self: start;
    }

    .tb-theme .tb-section-head h2,
    .tb-theme .tb-section-head p {
        width: 100%;
    }

    .tb-theme .tb-card-grid {
        grid-template-columns: 1fr;
    }

    .tb-theme .tb-hero {
        min-height: 18rem;
    }

    .tb-theme .sf-service-board {
        grid-template-columns: 1fr;
    }

    .tb-theme .sf-team-carousel {
        grid-auto-columns: minmax(240px, 86%);
    }
}
