.tf-image-slider { position: relative; width: 100%; }
.tf-image-slider *, .tf-image-slider *::before, .tf-image-slider *::after { box-sizing: border-box; }
.tf-image-slider .tf-is-viewport {
    position: relative;
    width: 100%;
    height: var(--tf-is-h, 480px);
    overflow: hidden;
    border-radius: var(--tf-is-radius, 0px);
    background: #f2f1ef;
}
.tf-image-slider .tf-is-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}
.tf-image-slider .tf-is-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    -webkit-user-select: none;
    user-select: none;
}
.tf-image-slider .tf-is-slide picture { display: block; width: 100%; height: 100%; }
.tf-image-slider .tf-is-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--tf-is-fit, cover);
    object-position: center;
}

.tf-image-slider[data-height-mode="auto"]:not(.is-fade) .tf-is-viewport { height: auto; }
.tf-image-slider[data-height-mode="auto"]:not(.is-fade) .tf-is-track { align-items: flex-start; }
.tf-image-slider[data-height-mode="auto"]:not(.is-fade) .tf-is-slide { height: auto; }
.tf-image-slider[data-height-mode="auto"]:not(.is-fade) .tf-is-slide img { height: auto; object-fit: initial; }

.tf-image-slider.is-fade .tf-is-track { display: block; position: relative; height: 100%; transition: none; transform: none !important; }
.tf-image-slider.is-fade .tf-is-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.tf-image-slider.is-fade .tf-is-slide.is-active { opacity: 1; pointer-events: auto; z-index: 1; }

.tf-image-slider .tf-is-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: #1c1c22;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
    transition: background .15s ease, opacity .15s ease, transform .15s ease;
}
.tf-image-slider .tf-is-arrow:hover { background: #fff; }
.tf-image-slider .tf-is-arrow:disabled { opacity: .35; cursor: default; }
.tf-image-slider .tf-is-arrow--prev { left: 16px; }
.tf-image-slider .tf-is-arrow--next { right: 16px; }

.tf-image-slider .tf-is-nav { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tf-image-slider .tf-is-nav--dots .tf-is-dot {
    width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(28, 28, 34, .25); cursor: pointer; transition: background .2s ease, width .2s ease;
}
.tf-image-slider .tf-is-nav--dots .tf-is-dot:hover { background: rgba(28, 28, 34, .5); }
.tf-image-slider .tf-is-nav--dots .tf-is-dot.is-active { background: #1c1c22; width: 24px; border-radius: 6px; }

.tf-image-slider .tf-is-nav--thumbnails { gap: 10px; }
.tf-image-slider .tf-is-thumb {
    width: 64px; height: 44px; padding: 0; border: 2px solid transparent; border-radius: 8px;
    overflow: hidden; cursor: pointer; background: #eee; opacity: .6; transition: opacity .2s ease, border-color .2s ease;
    flex: 0 0 auto;
}
.tf-image-slider .tf-is-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tf-image-slider .tf-is-thumb:hover { opacity: .85; }
.tf-image-slider .tf-is-thumb.is-active { opacity: 1; border-color: #1c1c22; }

.tf-image-slider .tf-is-ph {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 8px; color: #9aa0a6; font-size: 14px; background: repeating-linear-gradient(45deg, #f3f3f3, #f3f3f3 12px, #ececec 12px, #ececec 24px);
}
.tf-image-slider .tf-is-ph i { font-size: 28px; }
.tf-image-slider--empty .tf-is-empty {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    min-height: 220px; color: #9aa0a6; font-size: 14px; text-align: center;
    border: 2px dashed rgba(28, 28, 34, .18); border-radius: 14px; padding: 24px;
}
.tf-image-slider--empty .tf-is-empty i { font-size: 34px; }

@media (max-width: 767px) {
    .tf-image-slider .tf-is-viewport { height: var(--tf-is-h-m, 360px); }
    .tf-image-slider[data-height-mode="auto"]:not(.is-fade) .tf-is-viewport { height: auto; }
    .tf-image-slider .tf-is-arrow { width: 36px; height: 36px; font-size: 16px; }
    .tf-image-slider .tf-is-arrow--prev { left: 8px; }
    .tf-image-slider .tf-is-arrow--next { right: 8px; }
    .tf-image-slider .tf-is-nav--thumbnails { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .tf-image-slider .tf-is-thumb { width: 54px; height: 38px; }
}
