/* TF Hero Carousel. Namespaced to avoid affecting existing Themesflat widgets. */
.tf-hero-carousel {
    position: relative;
    width: 100%;
    height: var(--tf-hero-height, 540px);
    overflow: hidden;
    background: #f5f5f5;
    isolation: isolate;
}
.tf-hero-carousel__swiper,
.tf-hero-carousel__slide,
.tf-hero-carousel__picture,
.tf-hero-carousel__link {
    width: 100%;
    height: 100%;
}
.tf-hero-carousel__swiper { overflow: hidden; }
.tf-hero-carousel__picture { display: block; }
.tf-hero-carousel__link { display: block; }
.tf-hero-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--tf-hero-fit, cover);
    object-position: center center;
}
.tf-hero-carousel .swiper-wrapper { display: flex; height: 100%; }
.tf-hero-carousel .swiper-slide { flex-shrink: 0; }
.tf-hero-carousel__arrow {
    position: absolute;
    z-index: 2;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 20, .42);
    color: #fff;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease;
}
.tf-hero-carousel__arrow:hover,
.tf-hero-carousel__arrow:focus-visible { background: rgba(20, 20, 20, .8); color: #fff; }
.tf-hero-carousel__prev { left: 18px; }
.tf-hero-carousel__next { right: 18px; }
.tf-hero-carousel__arrow:focus-visible,
.tf-hero-carousel__link:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.tf-hero-carousel__pagination {
    position: absolute;
    z-index: 2;
    bottom: 18px !important;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 9px;
    pointer-events: none;
}
.tf-hero-carousel__pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    margin: 0 !important;
    background: #fff;
    opacity: .6;
    pointer-events: auto;
    cursor: pointer;
}
.tf-hero-carousel__pagination .swiper-pagination-bullet-active { opacity: 1; }
.tf-hero-carousel__empty { padding: 24px; text-align: center; border: 1px dashed #bcbcbc; }
@media (max-width: 767px) {
    .tf-hero-carousel { height: var(--tf-hero-mobile-height, 310px); }
    .tf-hero-carousel__arrow { width: 33px; height: 33px; font-size: 16px; }
    .tf-hero-carousel__prev { left: 8px; }
    .tf-hero-carousel__next { right: 8px; }
    .tf-hero-carousel__pagination { bottom: 10px !important; }
}
@media (prefers-reduced-motion: reduce) {
    .tf-hero-carousel__arrow { transition: none; }
}
