.soil-tg-carousel {
    position: relative;
    margin: 0 0 28px;
    border-radius: 18px;
    overflow: hidden;
    background: #0f1a2b;
}

.soil-tg-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.soil-tg-carousel__track::-webkit-scrollbar {
    display: none;
}

.soil-tg-carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: block;
    aspect-ratio: 16 / 10;
    background: #0f1a2b;
}

.soil-tg-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
}

.soil-tg-carousel:not(.is-multi) .soil-tg-carousel__slide {
    aspect-ratio: auto;
    max-height: 640px;
}

.soil-tg-carousel:not(.is-multi) .soil-tg-carousel__slide img {
    height: auto;
    max-height: 640px;
}

.soil-tg-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .88);
    color: #14243d;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: background .2s, transform .2s;
}

.soil-tg-carousel__nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.soil-tg-carousel__nav--prev {
    left: 12px;
}

.soil-tg-carousel__nav--next {
    right: 12px;
}

.soil-tg-carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}

.soil-tg-carousel__dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .5);
    transition: width .2s, background .2s;
}

.soil-tg-carousel__dots span.is-active {
    width: 20px;
    border-radius: 4px;
    background: #fff;
}

.soil-tg-carousel__count {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 26, 43, .7);
    color: #fff;
    font-size: 13px;
}

.soil-tg-video {
    margin: 0 0 28px;
}

.soil-tg-video--telegram iframe {
    width: 100%;
    max-width: 560px;
    min-height: 320px;
    border: 0;
    border-radius: 14px;
    display: block;
}

.soil-tg-video__link {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
}

.soil-tg-video--oembed {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
}

.soil-tg-video--oembed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.soil-news-source {
    margin-top: 24px;
    font-size: 14px;
    opacity: .75;
}

@media (max-width: 640px) {
    .soil-tg-carousel {
        border-radius: 12px;
    }

    .soil-tg-carousel__slide {
        aspect-ratio: 4 / 3;
    }

    .soil-tg-carousel__nav {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

.soil-tg-video--file video {
    width: 100%;
    max-height: 640px;
    border-radius: 14px;
    background: #000;
    display: block;
}

.soil-tg-video--poster {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    background: #0f1a2b;
    text-decoration: none;
}

.soil-tg-video--poster {
    aspect-ratio: 16 / 9;
}

.soil-tg-video--poster img {
    width: 100%;
    height: 100% !important;
    max-height: none;
    object-fit: cover;
    display: block;
    margin: 0;
    transition: transform .4s;
}

.soil-tg-video--poster:hover img {
    transform: scale(1.03);
}

.soil-tg-video__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 76px;
    height: 76px;
    margin: -38px 0 0 -38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}

.soil-tg-video__play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -8px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #14243d;
}

.soil-tg-video__time,
.soil-tg-video__label {
    position: absolute;
    bottom: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 26, 43, .75);
    color: #fff;
    font-size: 13px;
}

.soil-tg-video__time {
    right: 12px;
}

.soil-tg-video__label {
    left: 12px;
}

/* Telegram only gives a 320×180 cover for videos: show it small and sharp over a blurred backdrop */
.soil-tg-video--poster.is-lowres {
    background: #0f1a2b var(--soil-tg-bg) center / cover no-repeat;
}

.soil-tg-video--poster.is-lowres::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(22px) brightness(.7);
    -webkit-backdrop-filter: blur(22px) brightness(.7);
}

.soil-tg-video--poster.is-lowres img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(640px, 82%);
    height: auto !important;
    aspect-ratio: 16 / 9;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .45);
}

.soil-tg-video--poster.is-lowres:hover img {
    transform: translate(-50%, -50%);
}

.soil-tg-video__start {
    all: unset;
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    cursor: pointer;
    z-index: 1;
}

.soil-tg-video--poster:not(.is-lowres) .soil-tg-video__start img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.soil-tg-video--poster:hover .soil-tg-video__play {
    transform: scale(1.08);
}

.soil-tg-video__play {
    transition: transform .2s;
}

.soil-tg-video__choice {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 24px;
    text-align: center;
    color: #fff;
    overflow-y: auto;
    background: rgba(10, 18, 32, .86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.soil-tg-video__choice[hidden] {
    display: none;
}

.soil-tg-video__title {
    margin: 0;
    font-size: clamp(16px, 2.4vw, 22px);
    font-weight: 700;
    color: #fff;
}

.soil-tg-video__hint {
    margin: 0 0 14px;
    font-size: 15px;
    color: rgba(255, 255, 255, .78);
}

.soil-tg-video__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.soil-tg-video__btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .5);
    color: #fff !important;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none !important;
    transition: background .2s;
}

.soil-tg-video__btn:hover {
    background: rgba(255, 255, 255, .16);
}

.soil-tg-video__btn--web {
    background: #2a9de8;
    border-color: #2a9de8;
}

.soil-tg-video__btn--web:hover {
    background: #1f8bd2;
}

.soil-tg-video__close {
    all: unset;
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
    color: #fff;
}

@media (max-width: 640px) {
    .soil-tg-video__choice {
        padding: 14px;
    }

    .soil-tg-video__btn {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .soil-tg-video__actions {
        flex-direction: column;
        width: 100%;
    }

    .soil-tg-video__btn {
        text-align: center;
    }
}

.soil-tg-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.soil-tg-link {
    --c: #2580e8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px 10px 14px;
    border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--c) 9%, #fff);
    color: var(--c) !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}

.soil-tg-link:hover {
    background: var(--c);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--c) 35%, transparent);
}

.soil-tg-link--telegram { --c: #229ed9; }
.soil-tg-link--facebook { --c: #1877f2; }
.soil-tg-link--youtube { --c: #e62117; }
.soil-tg-link--instagram { --c: #d62976; }
.soil-tg-link--web { --c: #28558f; }

/* the side bars of a photo that does not fill the slide: the photo itself, blurred */
.soil-tg-carousel__slide {
    position: relative;
    overflow: hidden;
}

.soil-tg-carousel__slide::before {
    content: "";
    position: absolute;
    inset: -30px;
    background: var(--soil-tg-bg, none) center / cover no-repeat;
    filter: blur(28px) brightness(.72) saturate(1.1);
}

.soil-tg-carousel__slide img {
    position: relative;
}
