.sb-media {
    padding-bottom: 2.5rem;
}

.sb-media-list,
.sb-media-article {
    padding: 0.35rem 0 1rem;
}

.sb-media-lead {
    max-width: 46rem;
    margin: 0 0 1.25rem;
    color: var(--sb-ink);
    font-size: 1.05rem;
    line-height: 1.5;
}

.sb-media-card__intro {
    margin: 0.65rem 0 0;
    color: var(--sb-ink);
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.sb-media-empty {
    margin: 0;
    color: var(--sb-ink);
}

.sb-media-prose {
    margin: 0 0 1.5rem;
    color: var(--sb-text);
    font-size: 15px;
    line-height: 1.65;
}

.sb-media-prose > :first-child {
    margin-top: 0;
}

.sb-media-prose > :last-child {
    margin-bottom: 0;
}

.sb-media-prose p {
    margin: 0 0 10px;
}

.sb-media-prose a {
    color: var(--sb-green);
}

.sb-media-prose ul,
.sb-media-prose ol {
    margin: 0 0 10px;
    padding-left: 18px;
}

.sb-media-article__title {
    margin: 1.5rem 0 0.9rem;
    color: var(--sb-ink);
    font-size: 1.35rem;
    font-weight: 700;
}

a.sb-v2-field__card {
    display: block;
    color: #fff;
    text-decoration: none;
}

body.sb-v2 .fancybox-opened {
    z-index: 1000001;
}

.sb-media-play {
    position: absolute;
    top: 42%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1rem;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.sb-media-more-block {
    margin-bottom: 2.75rem;
}

.sb-media-more {
    display: flex;
    align-items: stretch;
    min-height: 188px;
    height: 100%;
    background: #fff;
    border: 1px solid #e4e8e6;
    border-radius: 14px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

.sb-media-more:hover {
    color: inherit;
    text-decoration: none;
}

.sb-media-more__photo {
    position: relative;
    flex: 0 0 240px;
    width: 240px;
    max-width: 42%;
    min-height: 188px;
    align-self: stretch;
    background: #fff;
}

body.sb-v2 .sb-media-more__photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

.sb-media-more__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 1rem 1.15rem;
}

.sb-media-more__title {
    color: #111;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.sb-media-more__intro {
    color: #3d3d3d;
    font-size: 0.95rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.sb-media-slides {
    margin-top: 0.25rem;
}

.sb-media-head .sb-media-back {
    display: inline-flex;
    margin: 0 0 0.7rem;
    color: var(--sb-green);
    font-weight: 700;
    text-decoration: none;
}

.sb-media-head .sb-media-back::before {
    content: "←";
    margin-right: 0.4rem;
}

.sb-media-head .sb-v2-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.75rem;
}

.sb-media-head h1 {
    display: block;
    margin: 0 0 0.45rem;
}

.sb-media-head .sb-media-lead {
    max-width: none;
    margin-bottom: 0;
}

.sb-media-hero {
    margin-top: 0.5rem;
}

.sb-media-stage {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
    height: 350px;
    max-height: 350px;
}

body.sb-v2 .sb-media-stage img,
.sb-media-stage iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    display: block;
    border: 0;
}

.sb-media-thumb .sb-media-play {
    top: 50%;
}

.sb-media-stage__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 1.4rem;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.sb-media-stage__play[hidden],
.sb-media-stage iframe[hidden],
.sb-media-stage img[hidden] {
    display: none;
}

.sb-media-thumbs {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.sb-media-thumbs[data-cols="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sb-media-thumbs[data-cols="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sb-media-thumb {
    position: relative;
    width: 100%;
    min-width: 0;
}

.sb-media-thumb__open {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.sb-media-thumb__zoom {
    position: absolute;
    z-index: 3;
    right: 10px;
    top: 164px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #222;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.28);
    text-decoration: none;
}

.sb-media-thumb__zoom:hover {
    color: var(--sb-green);
    text-decoration: none;
}

.sb-media-thumb__frame {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #111;
    height: 210px;
}

.sb-media-thumb.is-active .sb-media-thumb__frame {
    outline: 3px solid var(--sb-green);
    outline-offset: 2px;
}

body.sb-v2 .sb-media-thumb__frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.sb-media-thumb__label {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin-top: 6px;
    color: var(--sb-ink);
    font-size: 0.82rem;
    line-height: 1.25;
}

.sb-media-block {
    margin-top: 2rem;
}

.sb-media-block > h2 {
    margin: 0 0 0.9rem;
    color: var(--sb-ink);
    font-size: 1.35rem;
    font-weight: 700;
}

.sb-media-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.sb-media-steps[data-cols="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sb-media-steps[data-cols="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sb-media-steps > li {
    display: flex;
    min-width: 0;
}

.sb-media-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    height: 100%;
    min-height: 148px;
    padding: 18px 18px;
    border: 1px solid #e3eee6;
    border-radius: 14px;
    background: #fff;
    text-align: left;
    cursor: pointer;
}

.sb-media-step.is-static {
    cursor: default;
}

.sb-media-step.is-active {
    background: #eef8f1;
}

.sb-media-step__num {
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--sb-green);
    color: #fff;
    font-weight: 700;
}

.sb-media-step__copy {
    min-width: 0;
}

.sb-media-step__title,
.sb-media-step__sub,
.sb-media-step__intro {
    display: block;
}

.sb-media-step__title {
    color: var(--sb-ink);
    font-size: 1rem;
}

.sb-media-step__sub {
    margin-top: 2px;
    color: #3d4a42;
}

.sb-media-step__intro {
    margin-top: 4px;
    color: #5c6670;
    line-height: 1.45;
}

.sb-media-steps__note {
    margin: 0.9rem 0 0;
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

.sb-media-products .sb-v2-listing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sb-media-note {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    background: #eef1f4;
    color: #5c6670;
    text-align: center;
}

@media (max-width: 575px) {
    .sb-media-stage {
        height: 220px;
    }

    .sb-media-thumbs[data-cols="2"],
    .sb-media-thumbs[data-cols="3"],
    .sb-media-steps[data-cols="2"],
    .sb-media-steps[data-cols="3"] {
        grid-template-columns: minmax(0, 1fr);
    }

    .sb-media-thumb__frame {
        height: 180px;
    }

    .sb-media-thumb__zoom {
        top: 134px;
    }

    .sb-media-products .sb-v2-listing-grid {
        grid-template-columns: 1fr;
    }

    .sb-media-more {
        flex-direction: column;
        min-height: 0;
    }

    .sb-media-more__photo {
        flex: none;
        width: 100%;
        max-width: none;
        height: 180px;
        min-height: 180px;
    }
}

@media (min-width: 768px) {
    .sb-media-products .sb-v2-listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.sb-terrain .sb-v2-listing-head h1 {
    margin: 0.4rem 0 0;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.sb-terrain .sb-v2-crumb > span:last-child {
    color: #6b726e;
}

.sb-terrain-lead,
.sb-terrain-action__lead {
    max-width: 42rem;
    margin: 0.55rem 0 0;
    color: #5c6560;
    font-size: 1.05rem;
    line-height: 1.5;
}

.sb-terrain-types {
    margin: 1.35rem 0 1rem;
}

body.sb-v2 a.sb-terrain-types__link,
body.sb-v2 a.sb-terrain-types__link:hover,
body.sb-v2 a.sb-terrain-types__link:visited {
    color: var(--sb-ink);
    text-decoration: none;
    font-weight: 600;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid transparent;
}

body.sb-v2 a.sb-terrain-types__link.is-active {
    color: var(--sb-green);
    border-bottom-color: var(--sb-green);
}

.sb-terrain-cats {
    margin: 0 0 0.25rem;
}

body.sb-v2 a.sb-terrain-cat,
body.sb-v2 a.sb-terrain-cat:visited {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 1rem;
    border: 1px solid var(--sb-green);
    border-radius: 999px;
    background: #fff;
    color: var(--sb-green);
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
}

body.sb-v2 a.sb-terrain-cat:hover {
    background: #f3faf6;
    color: var(--sb-green);
}

body.sb-v2 a.sb-terrain-cat.is-active,
body.sb-v2 a.sb-terrain-cat.is-active:hover {
    background: var(--sb-green);
    color: #fff;
}

.sb-terrain-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.45rem;
    height: 2.45rem;
    padding: 0;
    border: 1px solid var(--sb-green);
    border-radius: 999px;
    background: #fff;
    color: var(--sb-green);
    cursor: pointer;
}

.sb-terrain-search:hover {
    background: #f3faf6;
}

body.sb-v2 a.sb-terrain-query,
body.sb-v2 a.sb-terrain-query:visited,
body.sb-v2 a.sb-terrain-query:hover {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    background: #e7f3ec;
    color: var(--sb-green);
    font-weight: 600;
    text-decoration: none;
}

.sb-terrain-featured {
    padding: 1.35rem 0 0.25rem;
}

.sb-terrain-action {
    padding: 2rem 0 0.5rem;
}

.sb-terrain-action h2 {
    margin: 0;
    color: var(--sb-ink);
    font-size: 1.85rem;
    font-weight: 700;
}

.sb-terrain-empty {
    padding: 1.5rem 0 2rem;
}

body.sb-v2 a.sb-terrain-card,
body.sb-v2 a.sb-terrain-card:hover,
body.sb-v2 a.sb-terrain-card:visited {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.sb-terrain-photo {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

body.sb-v2 .sb-terrain-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.sb-terrain-photo__tools {
    position: absolute;
    left: 0.85rem;
    bottom: 0.85rem;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.sb-terrain-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

.sb-terrain-duration {
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.sb-terrain-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.85rem;
}

.sb-terrain-card__cat {
    color: var(--sb-green);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sb-terrain-card__title {
    margin-top: 0.3rem;
    color: var(--sb-ink);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
}

.sb-terrain-card--action .sb-terrain-card__title {
    font-size: 1.05rem;
}

.sb-terrain-card__intro {
    margin-top: 0.3rem;
    color: #5c6560;
    font-size: 0.95rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.sb-terrain-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
    color: #5c6560;
    font-size: 0.92rem;
}

.sb-terrain-card__meta svg {
    flex: none;
}

.sb-terrain-card__cta {
    margin-top: 0.75rem;
    color: var(--sb-green);
    font-weight: 700;
}

.sb-terrain-more {
    display: flex;
    justify-content: center;
    margin: 1.75rem 0 0.25rem;
}

.sb-terrain-more button,
.sb-terrain-submit {
    min-width: 220px;
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--sb-green);
    border-radius: 999px;
    background: #fff;
    color: var(--sb-green);
    font-weight: 700;
    cursor: pointer;
}

.sb-terrain-more button:hover,
.sb-terrain-submit:hover {
    background: var(--sb-green);
    color: #fff;
}

.sb-terrain-submit {
    align-self: flex-start;
    min-width: 8rem;
}

#sb-terrain-dialog {
    z-index: 2000;
}

