.sfj-start {
    --sfj-visible-slides: 3;
    margin: 0;
    padding: clamp(2.25rem, 5vw, 4.75rem) 1rem;
    background: #f7f8f5;
    color: #1f2d28;
}

.sfj-start__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(1.25rem, 3vw, 2.25rem);
    align-items: end;
    max-width: 1180px;
    margin: 0 auto;
}

.sfj-start__content {
    max-width: 720px;
}

.sfj-start__eyebrow {
    margin: 0 0 0.65rem;
    color: #67804f;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.sfj-start__title {
    margin: 0;
    color: #173d2e;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
}

.sfj-start__text {
    max-width: 58rem;
    margin: 0.8rem 0 0;
    color: #43554b;
    font-size: 1rem;
    line-height: 1.65;
}

.sfj-start__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.sfj-start__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border: 2px solid #2d684e;
    border-radius: 6px;
    padding: 0.85rem 1.15rem;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.sfj-start__button:hover,
.sfj-start__button:focus {
    border-color: #173d2e;
    text-decoration: none;
}

.sfj-start__button--primary {
    background: #2d684e;
    color: #fff;
}

.sfj-start__button--primary:hover,
.sfj-start__button--primary:focus {
    background: #173d2e;
    color: #fff;
}

.sfj-start__button--secondary {
    background: #fff;
    color: #2d684e;
}

.sfj-start__button--secondary:hover,
.sfj-start__button--secondary:focus {
    color: #173d2e;
}

.sfj-start__empty {
    grid-column: 1 / -1;
    margin: 0;
    color: #43554b;
}

.sfj-carousel {
    position: relative;
    grid-column: 1 / -1;
}

.sfj-carousel__viewport {
    overflow: hidden;
    border-radius: 8px;
}

.sfj-carousel__track {
    display: flex;
    transition: transform 420ms ease;
    will-change: transform;
}

.sfj-carousel__item {
    position: relative;
    flex: 0 0 calc(100% / var(--sfj-visible-slides));
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 0;
    border-right: 0.75rem solid transparent;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.sfj-carousel__item::after {
    position: absolute;
    inset: 0.5rem 1.25rem 0.5rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: 7px;
    content: "";
    opacity: 0;
    transition: opacity 160ms ease;
}

.sfj-carousel__item:hover::after,
.sfj-carousel__item:focus::after {
    opacity: 1;
}

.sfj-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 16px 36px rgba(20, 39, 32, 0.16);
    transition: transform 240ms ease, filter 240ms ease;
}

.sfj-carousel__item:hover .sfj-carousel__image,
.sfj-carousel__item:focus .sfj-carousel__image {
    filter: saturate(1.08);
    transform: scale(1.025);
}

.sfj-carousel__controls {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    left: 0.15rem;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    transform: translateY(-50%);
}

.sfj-carousel__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    background: rgba(23, 61, 46, 0.82);
    color: #fff;
    font: inherit;
    font-size: 1.8rem;
    line-height: 1;
    pointer-events: auto;
    cursor: pointer;
}

.sfj-carousel__control:disabled {
    opacity: 0.45;
    cursor: default;
}

.sfj-lightbox-open {
    overflow: hidden;
}

.sfj-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: clamp(0.75rem, 3vw, 2rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.sfj-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.sfj-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 21, 17, 0.78);
}

.sfj-lightbox__dialog {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    width: min(1120px, 100%);
    max-height: calc(100vh - 2rem);
    opacity: 0;
    outline: none;
    transform: scale(0.975);
    transition: opacity 180ms ease, transform 180ms ease;
}

.sfj-lightbox.is-open .sfj-lightbox__dialog {
    opacity: 1;
    transform: scale(1);
}

.sfj-lightbox__figure {
    display: grid;
    grid-template-rows: minmax(0, auto) auto;
    min-width: 0;
    max-height: calc(100vh - 2rem);
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
}

.sfj-lightbox__media {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    max-height: min(72vh, 760px);
    overflow: hidden;
    background: #101a16;
}

.sfj-lightbox__media.is-changing {
    animation: sfj-lightbox-slide 260ms ease;
}

.sfj-lightbox__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 760px);
    object-fit: contain;
}

.sfj-lightbox__caption {
    padding: 1rem 1.1rem 1.1rem;
}

.sfj-lightbox__title {
    margin: 0;
    color: #173d2e;
    font-size: 1.1rem;
    line-height: 1.25;
}

.sfj-lightbox__description,
.sfj-lightbox__status {
    margin: 0.4rem 0 0;
    color: #43554b;
    line-height: 1.55;
}

.sfj-lightbox__close,
.sfj-lightbox__nav {
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(23, 61, 46, 0.88);
    color: #fff;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.sfj-lightbox__close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.8rem;
}

.sfj-lightbox__nav {
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
}

@keyframes sfj-lightbox-slide {
    from {
        opacity: 0.72;
        transform: translateX(10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 960px) {
    .sfj-start {
        --sfj-visible-slides: 2;
    }

    .sfj-start__inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .sfj-start__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .sfj-start {
        --sfj-visible-slides: 1;
    }

    .sfj-start__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sfj-carousel__item {
        border-right-width: 0;
    }

    .sfj-carousel__controls {
        right: 0.75rem;
        left: 0.75rem;
    }

    .sfj-lightbox {
        padding: 0.75rem;
    }

    .sfj-lightbox__dialog {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .sfj-lightbox__nav {
        position: absolute;
        top: 42%;
        z-index: 2;
        width: 2.75rem;
        height: 2.75rem;
    }

    .sfj-lightbox__nav--prev {
        left: 0.65rem;
    }

    .sfj-lightbox__nav--next {
        right: 0.65rem;
    }

    .sfj-lightbox__caption {
        padding: 0.85rem;
    }

}
