.tf-banner-gallery__frame {
    position: relative;
    display: block;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: var(--tf-image-radius, 8px);
    container-type: inline-size;
    container-name: tf-banner-card;
}

.tf-image-gallery--mosaic .tf-banner-gallery__frame {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.tf-image-gallery--mosaic .tf-banner-gallery__frame .tf-image-gallery__link,
.tf-image-gallery--mosaic .tf-banner-gallery__frame .tf-image-gallery__media,
.tf-image-gallery--mosaic .tf-banner-gallery__frame .tf-image-gallery__ph {
    flex: 1 1 auto;
    min-height: 0;
}

.tf-banner-gallery__content {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: min(720px, calc(100% - 24px));
    max-width: calc(100% - 24px);
    max-height: calc(100% - 20px);
    padding: 0 12px;
    text-align: center;
    pointer-events: none;
    box-sizing: border-box;
    overflow: hidden;
}

.tf-banner-gallery__content > * {
    pointer-events: auto;
    align-self: stretch;
    min-width: 0;
    max-width: 100%;
}

.tf-banner-gallery__title {
    margin: 0;
    color: var(--tf-banner-title-color, #fff);
    font-size: clamp(16px, 6.5cqi, var(--tf-title-font-size, var(--tf-banner-title-size, 48px)));
    font-weight: var(--tf-banner-title-weight, 700);
    line-height: 1.15;
    letter-spacing: -0.02em;
    width: 100%;
    overflow: hidden;
}

.tf-banner-gallery__title > span,
.tf-banner-gallery__title [data-tf-field="title"] {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-size: clamp(16px, 6.5cqi, var(--tf-title-font-size, var(--tf-banner-title-size, 48px))) !important;
}

.tf-banner-gallery__subtitle {
    margin: 0;
    color: var(--tf-banner-subtitle-color, #fff);
    font-size: clamp(10px, 3.2cqi, var(--tf-subtitle-font-size, var(--tf-banner-subtitle-size, 13px)));
    font-weight: var(--tf-banner-subtitle-weight, 500);
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    width: 100%;
    overflow: hidden;
}

.tf-banner-gallery__subtitle > span,
.tf-banner-gallery__subtitle [data-tf-field="subtitle"] {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: inherit;
    font-size: clamp(10px, 3.2cqi, var(--tf-subtitle-font-size, var(--tf-banner-subtitle-size, 13px))) !important;
}

.tf-banner-gallery__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-top: 6px;
    max-width: 100%;
    width: auto;
    min-width: 0;
    padding: clamp(8px, 2.5cqi, 12px) clamp(14px, 6cqi, 28px);
    border-radius: var(--tf-banner-btn-radius, 48px);
    background: var(--tf-banner-btn-bg, #fff);
    color: var(--tf-banner-btn-color, #111);
    font-family: var(--tf-banner-btn-font, inherit);
    font-size: clamp(11px, 3.5cqi, var(--tf-button-text-font-size, var(--tf-banner-btn-size, 13px))) !important;
    font-weight: var(--tf-banner-btn-weight, 600);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tf-banner-gallery__btn:hover {
    opacity: 0.92;
    color: var(--tf-banner-btn-color, #111);
}

.tf-banner-gallery__btn span,
.tf-banner-gallery__btn [data-tf-field="button_text"] {
    color: inherit;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: inherit !important;
}

.tf-image-gallery__media--color {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: block;
    background-color: var(--tf-bg-color, #6e7a63);
}

.tf-banner-gallery__content[data-tf-banner-btn-pos="bottom-center"],
.tf-banner-gallery__content:not([data-tf-banner-btn-pos]) {
    left: 50%;
    right: auto;
    top: auto;
    bottom: 12%;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
}

.tf-banner-gallery__content[data-tf-banner-btn-pos="bottom-left"] {
    left: clamp(12px, 4cqi, 24px);
    right: auto;
    top: auto;
    bottom: 12%;
    transform: none;
    align-items: flex-start;
    text-align: left;
}

.tf-banner-gallery__content[data-tf-banner-btn-pos="bottom-right"] {
    left: auto;
    right: clamp(12px, 4cqi, 24px);
    top: auto;
    bottom: 12%;
    transform: none;
    align-items: flex-end;
    text-align: right;
}

.tf-banner-gallery__content[data-tf-banner-btn-pos="center"] {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    align-items: center;
    text-align: center;
}

.tf-banner-gallery__content[data-tf-banner-btn-pos="middle-left"] {
    left: clamp(12px, 4cqi, 24px);
    right: auto;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    align-items: flex-start;
    text-align: left;
}

.tf-banner-gallery__content[data-tf-banner-btn-pos="middle-right"] {
    left: auto;
    right: clamp(12px, 4cqi, 24px);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    align-items: flex-end;
    text-align: right;
}

.tf-banner-gallery__content[data-tf-banner-btn-pos="top-center"] {
    left: 50%;
    right: auto;
    top: clamp(12px, 4cqi, 24px);
    bottom: auto;
    transform: translateX(-50%);
    align-items: center;
    text-align: center;
}

.tf-banner-gallery__content[data-tf-banner-btn-pos="top-left"] {
    left: clamp(12px, 4cqi, 24px);
    right: auto;
    top: clamp(12px, 4cqi, 24px);
    bottom: auto;
    transform: none;
    align-items: flex-start;
    text-align: left;
}

.tf-banner-gallery__content[data-tf-banner-btn-pos="top-right"] {
    left: auto;
    right: clamp(12px, 4cqi, 24px);
    top: clamp(12px, 4cqi, 24px);
    bottom: auto;
    transform: none;
    align-items: flex-end;
    text-align: right;
}

.tf-banner-gallery__content[data-tf-banner-btn-pos="bottom-left"] .tf-banner-gallery__btn,
.tf-banner-gallery__content[data-tf-banner-btn-pos="top-left"] .tf-banner-gallery__btn,
.tf-banner-gallery__content[data-tf-banner-btn-pos="middle-left"] .tf-banner-gallery__btn {
    align-self: flex-start;
}

.tf-banner-gallery__content[data-tf-banner-btn-pos="bottom-right"] .tf-banner-gallery__btn,
.tf-banner-gallery__content[data-tf-banner-btn-pos="top-right"] .tf-banner-gallery__btn,
.tf-banner-gallery__content[data-tf-banner-btn-pos="middle-right"] .tf-banner-gallery__btn {
    align-self: flex-end;
}

.tf-image-gallery--grid .tf-banner-gallery__content,
.tf-image-gallery--mosaic .tf-banner-gallery__content,
.tf-image-gallery--slider .tf-banner-gallery__content {
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    gap: clamp(4px, 2cqi, 10px);
}

@container tf-banner-card (max-width: 520px) {
    .tf-banner-gallery__title,
    .tf-banner-gallery__title > span,
    .tf-banner-gallery__title [data-tf-field="title"] {
        font-size: min(var(--tf-title-font-size, var(--tf-banner-title-size, 48px)), 28px) !important;
        white-space: normal;
        text-overflow: unset;
        overflow-wrap: anywhere;
        line-height: 1.2;
    }

    .tf-banner-gallery__subtitle,
    .tf-banner-gallery__subtitle > span,
    .tf-banner-gallery__subtitle [data-tf-field="subtitle"] {
        font-size: min(var(--tf-subtitle-font-size, var(--tf-banner-subtitle-size, 13px)), 12px) !important;
        white-space: normal;
        text-overflow: unset;
        overflow-wrap: anywhere;
    }

    .tf-banner-gallery__btn {
        font-size: min(var(--tf-button-text-font-size, var(--tf-banner-btn-size, 13px)), 12px) !important;
    }
}

@container tf-banner-card (max-width: 420px) {
    .tf-banner-gallery__content[data-tf-banner-btn-pos="bottom-center"],
    .tf-banner-gallery__content:not([data-tf-banner-btn-pos]),
    .tf-banner-gallery__content[data-tf-banner-btn-pos="bottom-left"],
    .tf-banner-gallery__content[data-tf-banner-btn-pos="bottom-right"] {
        bottom: 8%;
    }

    .tf-banner-gallery__title,
    .tf-banner-gallery__title > span,
    .tf-banner-gallery__title [data-tf-field="title"] {
        font-size: min(var(--tf-title-font-size, var(--tf-banner-title-size, 48px)), 24px) !important;
    }
}

@media (max-width: 767.98px) {
    .tf-banner-gallery__content[data-tf-banner-btn-pos="bottom-center"],
    .tf-banner-gallery__content:not([data-tf-banner-btn-pos]),
    .tf-banner-gallery__content[data-tf-banner-btn-pos="bottom-left"],
    .tf-banner-gallery__content[data-tf-banner-btn-pos="bottom-right"] {
        bottom: 10%;
    }

    .tf-banner-gallery__title,
    .tf-banner-gallery__title > span,
    .tf-banner-gallery__title [data-tf-field="title"] {
        font-size: min(var(--tf-title-font-size, var(--tf-banner-title-size, 48px)), 28px) !important;
        white-space: normal;
        text-overflow: unset;
        overflow-wrap: anywhere;
        line-height: 1.2;
    }

    .tf-banner-gallery__subtitle,
    .tf-banner-gallery__subtitle > span,
    .tf-banner-gallery__subtitle [data-tf-field="subtitle"] {
        font-size: min(var(--tf-subtitle-font-size, var(--tf-banner-subtitle-size, 13px)), 12px) !important;
        white-space: normal;
        text-overflow: unset;
        overflow-wrap: anywhere;
    }

    .tf-banner-gallery__btn {
        font-size: min(var(--tf-button-text-font-size, var(--tf-banner-btn-size, 13px)), 12px) !important;
    }
}

html[data-device="tablet"] .tf-banner-gallery__title,
html[data-device="tablet"] .tf-banner-gallery__title > span,
html[data-device="tablet"] .tf-banner-gallery__title [data-tf-field="title"],
body[data-device="tablet"] .tf-banner-gallery__title,
body[data-device="tablet"] .tf-banner-gallery__title > span,
body[data-device="tablet"] .tf-banner-gallery__title [data-tf-field="title"] {
    font-size: min(var(--tf-title-font-size, var(--tf-banner-title-size, 48px)), 36px) !important;
}

html[data-device="mobile"] .tf-banner-gallery__title,
html[data-device="mobile"] .tf-banner-gallery__title > span,
html[data-device="mobile"] .tf-banner-gallery__title [data-tf-field="title"],
body[data-device="mobile"] .tf-banner-gallery__title,
body[data-device="mobile"] .tf-banner-gallery__title > span,
body[data-device="mobile"] .tf-banner-gallery__title [data-tf-field="title"] {
    font-size: min(var(--tf-title-font-size, var(--tf-banner-title-size, 48px)), 26px) !important;
    white-space: normal;
    text-overflow: unset;
    overflow-wrap: anywhere;
    line-height: 1.2;
}

html[data-device="mobile"] .tf-banner-gallery__subtitle,
html[data-device="mobile"] .tf-banner-gallery__subtitle > span,
html[data-device="mobile"] .tf-banner-gallery__subtitle [data-tf-field="subtitle"],
body[data-device="mobile"] .tf-banner-gallery__subtitle,
body[data-device="mobile"] .tf-banner-gallery__subtitle > span,
body[data-device="mobile"] .tf-banner-gallery__subtitle [data-tf-field="subtitle"] {
    font-size: min(var(--tf-subtitle-font-size, var(--tf-banner-subtitle-size, 13px)), 12px) !important;
    white-space: normal;
    text-overflow: unset;
    overflow-wrap: anywhere;
}

html[data-device="mobile"] .tf-banner-gallery__btn,
body[data-device="mobile"] .tf-banner-gallery__btn {
    font-size: min(var(--tf-button-text-font-size, var(--tf-banner-btn-size, 13px)), 12px) !important;
}

.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover {
    margin: 0;
    width: 100%;
}

.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-section__inner,
.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-image-gallery__slider,
.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-image-gallery__swiper,
.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .swiper-wrapper {
    width: 100%;
    max-width: none;
}

.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-image-gallery__slider {
    padding-inline: 0;
}

.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .swiper-slide,
.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-image-gallery__item,
.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-image-gallery__figure,
.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-banner-gallery__frame {
    width: 100% !important;
    max-width: none;
}

.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-banner-gallery__frame,
.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-image-gallery__media,
.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-image-gallery__ph {
    height: 80vh;
    min-height: 80vh;
    aspect-ratio: auto !important;
    border-radius: 0;
}

.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-image-gallery__nav--prev { left: 16px; }
.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-image-gallery__nav--next { right: 16px; }

.tf-section[data-tf-type="home.hero_banner"] .tf-banner-gallery--cover .tf-image-gallery__swiper .tf-sw-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    margin-top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.tf-section[data-tf-type="home.hero_banner"] .tf-sw-pagination .swiper-pagination-bullet {
    background: rgba(0, 0, 0, 0.28);
    opacity: 1;
}

.tf-section[data-tf-type="home.hero_banner"] .tf-sw-pagination .swiper-pagination-bullet-active {
    background: #111111;
    opacity: 1;
}

.tf-section[data-tf-type="home.hero"] .slideshow-v02 .card-product.card-s2 .card-product_wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}
.tf-section[data-tf-type="home.hero"] .slideshow-v02 .card-product.card-s2 .card-product_wrapper .product-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    overflow: hidden;
    border-radius: inherit;
}
.tf-section[data-tf-type="home.hero"] .slideshow-v02 .card-product.card-s2 .card-product_wrapper .product-img img,
.tf-section[data-tf-type="home.hero"] .slideshow-v02 .card-product.card-s2 .card-product_wrapper img.img-product {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center;
}
