/* ===== 3. Text slider: text + fading photos ===== */
.hm-tslider { position: relative; overflow: hidden; }
.hm-tslider__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: clamp(460px, 40vw, 640px);
}

/* Photos */
.hm-tslider__media { position: relative; min-height: 100%; overflow: hidden; }
.hm-tslider__slider { position: absolute; inset: 0; }
.hm-tslider__slider .swiper-wrapper { height: 100%; }
.hm-tslider__slide { position: relative; height: 100%; margin: 0; overflow: hidden; }
.hm-tslider__slide picture { display: contents; }
.hm-tslider__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--focus, 50% 50%);
}
.hm-tslider__slider:not(.swiper-initialized) .hm-tslider__slide:not(:first-child) { display: none; }

/* Text */
.hm-tslider__body {
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(48px, 6vw, 96px) var(--hm-gutter) clamp(48px, 6vw, 96px) clamp(40px, 4vw, 64px);
}
.hm-tslider__content { display: grid; gap: 18px; justify-items: start; max-width: 460px; }
.hm-tslider__title { font-size: clamp(24px, 2.2vw, 32px); }
.hm-tslider__title em { font-style: normal; }
.hm-tslider__text { font-size: 14px; line-height: 1.65; }
.hm-tslider__text p { margin-bottom: .6em; }
.hm-tslider__actions { margin-top: 12px; }
.hm-tslider__btn { min-width: 150px; }

/* Vertical dots on the seam between photo and text */
.hm-tslider__pager {
    position: absolute;
    left: clamp(14px, 1.6vw, 24px);
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding-top: 22%;
}
.hm-tslider__dots { display: flex; flex-direction: column; gap: 10px; }
.hm-tslider__dots .swiper-pagination-bullet {
    display: block;
    width: 7px;
    height: 7px;
    margin: 0 !important;
    padding: 0;
    border: 0;
    background: currentColor;
    opacity: .28;
    cursor: pointer;
    transition: opacity .3s, transform .3s;
}
.hm-tslider__dots .swiper-pagination-bullet-active { opacity: .8; transform: scale(1.15); }
.hm-tslider__count { display: none; }

/* Image on the right */
.hm-tslider--image-right .hm-tslider__media { order: 2; }
.hm-tslider--image-right .hm-tslider__body {
    justify-content: flex-end;
    padding-left: var(--hm-gutter);
    padding-right: clamp(40px, 4vw, 64px);
}
.hm-tslider--image-right .hm-tslider__pager { left: auto; right: clamp(14px, 1.6vw, 24px); }

@media (max-width: 767px) {
    .hm-tslider__grid { grid-template-columns: 1fr; min-height: 0; }
    .hm-tslider__media, .hm-tslider--image-right .hm-tslider__media { order: 0; aspect-ratio: 4 / 3; min-height: 0; }
    .hm-tslider__body, .hm-tslider--image-right .hm-tslider__body {
        display: block;
        padding: 20px var(--hm-gutter) 56px;
    }
    .hm-tslider__pager, .hm-tslider--image-right .hm-tslider__pager {
        position: static;
        justify-content: center;
        padding: 0 0 28px;
    }
    .hm-tslider__dots { flex-direction: row; }
    .hm-tslider__content { max-width: none; }
    .hm-tslider__btn { width: 100%; }
    .hm-tslider__actions { width: 100%; }
}
