.thwc-wrapper,
.thwc-wrapper * {
    box-sizing: border-box;
}

.thwc-wrapper {
    background: var(--thwc-bg, #f8fcf2);
    color: var(--thwc-text, #111);
    font-family: inherit;
    overflow: hidden;
}

.thwc-section {
    position: relative;
    padding: var(--thwc-section-pt, 72px) 0 var(--thwc-section-pb, 92px);
    border-top: 1px solid var(--thwc-divider, #dce7d4);
}

.thwc-section:first-child {
    border-top: 0;
}

.thwc-inner {
    width: min(var(--thwc-max-width, 1600px), calc(100% - var(--thwc-content-side-gap, 80px) - var(--thwc-content-side-gap, 80px)));
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

/* Header row: Figma-style layout.
   The section number stays ABOVE the heading; description starts on the heading line. */
.thwc-section-headrow {
    display: grid !important;
    grid-template-columns: minmax(260px, var(--thwc-title-width, 520px)) minmax(320px, var(--thwc-description-width, 610px));
    column-gap: var(--thwc-heading-description-gap, 150px);
    row-gap: 0;
    align-items: start;
    justify-content: center;
    margin-bottom: 86px;
}

.thwc-section-heading-block {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    min-width: 0;
}

.thwc-section-number {
    display: block;
    width: auto;
    margin: 0 0 var(--thwc-header-gap, 36px) !important;
    padding: 0 !important;
    font-size: 17px;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--thwc-text, #111);
    text-align: left;
}

.thwc-section-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: var(--thwc-heading-size, 34px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--thwc-text, #111);
}

.thwc-section-title span {
    display: inline;
}

.thwc-accent {
    color: var(--thwc-accent, #8cc63f);
}

.thwc-section-description {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: calc(17px + var(--thwc-header-gap, 36px) - 3px) 0 0;
    font-size: var(--thwc-desc-size, 18px);
    line-height: var(--thwc-desc-lh, 1.45);
    letter-spacing: -0.04em;
    color: var(--thwc-text, #111);
    width: min(100%, var(--thwc-description-width, 610px));
    max-width: var(--thwc-description-width, 610px);
}

.thwc-section-description span {
    display: inline;
}

.thwc-carousel-wrap {
    position: relative;
    width: 100%;
    min-height: 550px;
}

.thwc-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.thwc-carousel:active {
    cursor: grabbing;
}

.thwc-track {
    display: flex;
    align-items: flex-start;
    gap: var(--thwc-gap, 0px);
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.thwc-media-item {
    --thwc-item-offset: 0px;
    flex: 0 0 var(--thwc-item-w, var(--thwc-medium-w, 470px));
    width: var(--thwc-item-w, var(--thwc-medium-w, 470px));
    height: var(--thwc-item-h, var(--thwc-medium-h, 390px));
    margin-top: var(--thwc-item-offset, 0px);
    overflow: hidden;
    border-radius: var(--thwc-radius, 6px);
    background: #ececec;
    transform: translateZ(0);
}

/* Keeps every image, GIF, and video starting from the same top line.
   Individual Top Offset values are ignored while this global option is enabled. */
.thwc-equal-top .thwc-track {
    align-items: flex-start;
}

.thwc-equal-top .thwc-media-item {
    margin-top: 0 !important;
}

.thwc-media-item.thwc-size-small {
    --thwc-item-w: var(--thwc-small-w, 300px);
    --thwc-item-h: var(--thwc-small-h, 310px);
}

.thwc-media-item.thwc-size-medium {
    --thwc-item-w: var(--thwc-medium-w, 470px);
    --thwc-item-h: var(--thwc-medium-h, 390px);
}

.thwc-media-item.thwc-size-large {
    --thwc-item-w: var(--thwc-large-w, 640px);
    --thwc-item-h: var(--thwc-large-h, 510px);
}

.thwc-media-item.thwc-size-xlarge {
    --thwc-item-w: var(--thwc-xlarge-w, 760px);
    --thwc-item-h: var(--thwc-xlarge-h, 510px);
}

.thwc-media-link,
.thwc-media-item img,
.thwc-media-item video {
    display: block;
    width: 100%;
    height: 100%;
}

.thwc-media-item img,
.thwc-media-item video {
    object-fit: cover;
    border: 0;
}

.thwc-arrows {
    position: absolute;
    left: 50%;
    bottom: -52px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    transform: translateX(-50%);
    background: var(--thwc-arrow-bg, rgba(36, 36, 36, 0.55));
    color: var(--thwc-arrow-color, #fff);
    border-radius: 13px;
    min-width: 84px;
    height: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.thwc-arrow {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    width: 41px;
    height: 40px;
    line-height: 36px;
    font-size: 27px;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    transition: background 0.18s ease, opacity 0.18s ease;
}

.thwc-arrow:hover,
.thwc-arrow:focus {
    background: rgba(255,255,255,0.12);
    outline: none;
}

.thwc-arrow-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.22);
}

@media (max-width: 1024px) {
    .thwc-inner {
        width: min(calc(100% - 44px), var(--thwc-max-width, 1600px));
    }

    .thwc-section-headrow {
        grid-template-columns: 1fr;
        row-gap: 24px;
        column-gap: 0;
        justify-content: stretch;
        margin-bottom: 58px;
    }

    .thwc-section-heading-block {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: block !important;
    }

    .thwc-section-description {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: min(100%, var(--thwc-description-width, 610px));
        max-width: 680px;
        margin-top: 0;
    }

    .thwc-carousel-wrap {
        min-height: 440px;
    }

    .thwc-media-item.thwc-size-large,
    .thwc-media-item.thwc-size-xlarge {
        --thwc-item-w: min(72vw, var(--thwc-large-w, 640px));
    }
}

@media (max-width: 767px) {
    .thwc-section {
        padding: 52px 0 76px;
    }

    .thwc-inner {
        width: calc(100% - 40px);
        padding: 0;
    }

    .thwc-section-headrow {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 42px;
    }

    .thwc-section-heading-block {
        grid-column: 1 !important;
        grid-row: 1 !important;
        display: block !important;
    }

    .thwc-section-number {
        width: auto;
        font-size: 15px;
        margin: 0 0 26px !important;
    }

    .thwc-section-title {
        font-size: var(--thwc-heading-size-mobile, 28px);
        line-height: 1;
    }

    .thwc-section-description {
        font-size: 16px;
        letter-spacing: -0.03em;
    }

    .thwc-carousel-wrap {
        min-height: calc(var(--thwc-mobile-h, 280px) + 70px);
    }

    .thwc-media-item,
    .thwc-media-item.thwc-size-small,
    .thwc-media-item.thwc-size-medium,
    .thwc-media-item.thwc-size-large,
    .thwc-media-item.thwc-size-xlarge {
        --thwc-item-w: 82vw;
        --thwc-item-h: var(--thwc-mobile-h, 280px);
        --thwc-item-offset: 0px !important;
    }

    .thwc-arrows {
        bottom: -48px;
    }
}

/* Visible items setting: keeps the requested number of images/GIFs/videos on screen. */
.thwc-fit-visible .thwc-carousel {
    --thwc-fit-w: calc((100% / var(--thwc-visible-desktop, 4)) - var(--thwc-gap, 0px));
}

.thwc-fit-visible .thwc-media-item,
.thwc-fit-visible .thwc-media-item.thwc-size-small,
.thwc-fit-visible .thwc-media-item.thwc-size-medium,
.thwc-fit-visible .thwc-media-item.thwc-size-large,
.thwc-fit-visible .thwc-media-item.thwc-size-xlarge {
    flex-basis: max(160px, var(--thwc-fit-w)) !important;
    width: max(160px, var(--thwc-fit-w)) !important;
}

@media (max-width: 1024px) {
    .thwc-fit-visible .thwc-carousel {
        --thwc-fit-w: calc((100% / var(--thwc-visible-tablet, 2)) - var(--thwc-gap, 0px));
    }
}

@media (max-width: 767px) {
    .thwc-fit-visible .thwc-carousel {
        --thwc-fit-w: calc((100% / var(--thwc-visible-mobile, 1)) - var(--thwc-gap, 0px));
    }

    .thwc-fit-visible .thwc-media-item,
    .thwc-fit-visible .thwc-media-item.thwc-size-small,
    .thwc-fit-visible .thwc-media-item.thwc-size-medium,
    .thwc-fit-visible .thwc-media-item.thwc-size-large,
    .thwc-fit-visible .thwc-media-item.thwc-size-xlarge {
        flex-basis: max(220px, var(--thwc-fit-w)) !important;
        width: max(220px, var(--thwc-fit-w)) !important;
    }
}
