.edjs__wrap {
    max-width: 100%;
    color: var(--color-text);
}

.edjs__wrap::after {
    display: table;
    clear: both;
    content: "";
}

.edjs__wrap > :first-child {
    margin-top: 0;
}

.edjs__wrap > :last-child {
    margin-bottom: 0;
}

.edjs__header {
    margin: 32px 0 16px;
    color: var(--color-text);
    line-height: 1.15;
    font-weight: 700;
}

h1.edjs__header,
h2.edjs__header {
    font-size: clamp(2.6rem, 4vw, 3.6rem);
}

h3.edjs__header {
    font-size: clamp(2.1rem, 3vw, 2.8rem);
}

h4.edjs__header,
h5.edjs__header,
h6.edjs__header {
    font-size: 1.75rem;
}

.edjs__paragraph,
.edjs__quote-text,
.edjs__list,
.edjs__table,
.edjs__attaches,
.edjs__embed {
    margin: 0 0 24px;
}

.edjs__paragraph {
    color: var(--color-text);
    font-size: 1.625rem;
    line-height: 1.7;
}

.edjs__paragraph a,
.edjs__quote-text a,
.edjs__attaches {
    color: var(--color-accent-strong);
}

.edjs__paragraph a:hover,
.edjs__paragraph a:focus-visible,
.edjs__quote-text a:hover,
.edjs__quote-text a:focus-visible,
.edjs__attaches:hover,
.edjs__attaches:focus-visible {
    color: var(--color-accent);
}

.edjs__image-wrap {
    display: block;
    margin: 0 0 28px;
}

.edjs__image-wrap--wrap-none {
    float: none;
}

.edjs__image-wrap--wrap-text-right,
.edjs__image-wrap--wrap-text-left {
    width: fit-content;
    max-width: 50%;
}

.edjs__image-wrap--wrap-text-right {
    float: left;
    margin: 0 24px 16px 0;
}

.edjs__image-wrap--wrap-text-left {
    float: right;
    margin: 0 0 16px 24px;
}

/* Fallback for a both image without adjacent blocks to form a layout. */
.edjs__image-wrap--wrap-both {
    width: fit-content;
    max-width: 50%;
    margin: 0 auto 28px;
}

.edjs__image-wrap--wrap-text-right .edjs__image,
.edjs__image-wrap--wrap-text-left .edjs__image,
.edjs__image-wrap--wrap-both .edjs__image {
    width: auto;
    max-width: 100%;
}

.edjs__image-both-layout {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
    margin: 0 0 28px;
}

.edjs__image-both-layout__item {
    min-width: 0;
}

.edjs__image-both-layout__item--image {
    display: flex;
    justify-content: center;
}

.edjs__image-both-layout .edjs__image-wrap--wrap-both {
    width: fit-content;
    max-width: 100%;
    margin: 0;
}

.edjs__image {
    display: block;
    width: 100%;
    height: auto;
}

.edjs__image-caption,
.edjs__carousel-item-label,
.edjs__quote-caption {
    margin-top: 12px;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    line-height: 1.5;
}

.edjs__delimiter {
    margin: 32px 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}

.edjs__delimiter--width-25 {
    width: 25%;
}

.edjs__delimiter--width-50 {
    width: 50%;
}

.edjs__delimiter--width-75 {
    width: 75%;
}

.edjs__delimiter--width-100 {
    width: 100%;
}

.edjs__delimiter--thickness-2 {
    border-top-width: 2px;
}

.edjs__delimiter--thickness-3 {
    border-top-width: 3px;
}

.edjs__carousel {
    position: relative;
    margin: 0 0 32px;
    overflow: hidden;
}

.edjs__carousel-wrapper {
    display: flex;
    align-items: stretch;
}

.edjs__carousel-item {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 420px;
    background: #edf4ec;
    overflow: hidden;
}

.edjs__carousel-item img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    object-position: center;
}

.edjs__carousel-button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 48px;
    height: 48px;
    margin-top: -24px;
    border: 1px solid rgba(53, 107, 57, 0.24);
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-accent-strong);
}

.edjs__carousel-button::before {
    content: "";
    display: block;
    width: 12px;
    height: 12px;
    margin: 0 auto;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.edjs__carousel-button--prev {
    left: 12px;
}

.edjs__carousel-button--prev::before {
    transform: rotate(-135deg);
}

.edjs__carousel-button--next {
    right: 12px;
}

.edjs__carousel-button--next::before {
    transform: rotate(45deg);
}

.edjs__carousel-button:hover,
.edjs__carousel-button:focus-visible {
    border-color: var(--color-accent);
    background: #fff;
}

.edjs__carousel-pagination {
    position: static;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}

.edjs__carousel-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    margin: 0;
    background: rgba(53, 107, 57, 0.24);
    opacity: 1;
}

.edjs__carousel-pagination .swiper-pagination-bullet-active {
    background: var(--color-accent-strong);
}

.edjs__quote--wrap {
    margin: 0 0 36px;
    padding: 28px 32px;
    background: linear-gradient(180deg, rgba(237, 244, 236, 0.9) 0%, rgba(232, 241, 230, 0.95) 100%);
    border-left: 6px solid rgba(53, 107, 57, 0.4);
}

.edjs__quote-text {
    margin: 0 0 14px;
    padding: 0;
    border-left: 0;
    color: var(--color-text);
    font-size: 1.875rem;
    line-height: 1.7;
    font-weight: 600;
}

.edjs__quote-caption {
    display: block;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1.5rem;
    line-height: 1.5;
}

.edjs__attaches {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--color-border);
    color: var(--color-accent-strong);
}

.edjs__embed iframe {
    display: block;
    width: 100%;
    max-width: 100%;
}

.edjs__list {
    padding-left: 24px;
    color: var(--color-text);
    font-size: 1.625rem;
    line-height: 1.7;
}

.edjs__list li + li {
    margin-top: 10px;
}

.edjs__table {
    width: 100%;
    border-collapse: collapse;
}

.edjs__table th,
.edjs__table td {
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 1.375rem;
    line-height: 1.5;
    vertical-align: top;
}

.edjs__table th {
    background: var(--color-surface-muted);
    font-weight: 700;
}

@media (max-width: 767px) {
    .edjs__image-both-layout {
        grid-template-columns: 1fr;
    }

    .edjs__image-wrap--wrap-text-right,
    .edjs__image-wrap--wrap-text-left,
    .edjs__image-wrap--wrap-both {
        float: none;
        width: auto;
        max-width: 100%;
        margin: 0 0 28px;
    }

    .edjs__paragraph,
    .edjs__list,
    .edjs__quote-text {
        font-size: 1.375rem;
    }

    .edjs__quote--wrap {
        margin-bottom: 28px;
        padding: 22px 20px;
    }

    .edjs__quote-caption {
        font-size: 1.25rem;
    }

    .edjs__carousel-item {
        min-height: 280px;
    }

    .edjs__carousel-item img {
        min-height: 280px;
    }

    .edjs__carousel-button {
        width: 40px;
        height: 40px;
        margin-top: -20px;
    }
}
