.tf-cat-cards--orbs .tf-cats__orb-card {
    position: relative;
    display: block;
    aspect-ratio: var(--tf-cats-aspect, 1 / 1);
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.tf-cat-cards--orbs .tf-cats__orb-media {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    overflow: hidden;
}

.tf-cat-cards--orbs .tf-cats__orb-media img,
.tf-cat-cards--orbs .tf-cats__orb-media .tf-cats__ph,
.tf-cat-cards--orbs .tf-cats__orb-media .tf-card__ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
    min-height: 0;
}

.tf-cat-cards--orbs .tf-cats__ph {
    min-height: 0;
}

.tf-cats__orb-copy {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 12px 18px;
    background: linear-gradient(180deg, transparent 0%, rgba(16, 14, 12, 0.78) 100%);
    text-align: center;
}

.tf-cats__name--orb {
    font-family: var(--tf-typography-headingFontFamily, var(--tf-typography-fontFamily, "Instrument Serif", Georgia, serif));
    font-size: clamp(14px, 1.4vw, 20px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--tf-cats-label-color, #fff) !important;
}

.tf-cats__orb-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0.78;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tf-cat-cards--orbs .tf-cats__orb-card::after {
    content: "";
    position: absolute;
    inset: 10px;
    z-index: 3;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0);
    pointer-events: none;
    transition: border-color 0.35s ease;
}

.tf-cat-cards--orbs .tf-cats__orb-card:hover::after {
    border-color: rgba(255, 255, 255, 0.42);
}

.tf-cat-cards--orbs .tf-cats__orb-card:hover .tf-cats__orb-cta {
    opacity: 1;
    transform: translateX(3px);
}

/* Captioned discs — name below the circle */
.tf-cat-cards--captioned .tf-cats__dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    overflow: visible;
}

.tf-cat-cards--captioned .tf-cats__dot-media {
    display: block;
    width: 100%;
    aspect-ratio: var(--tf-cats-aspect, 1 / 1);
    border-radius: 50%;
    overflow: hidden;
}

.tf-cat-cards--captioned .tf-cats__dot-media img,
.tf-cat-cards--captioned .tf-cats__dot-media .tf-cats__ph,
.tf-cat-cards--captioned .tf-cats__dot-media .tf-card__ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 50%;
    min-height: 0;
}

.tf-cat-cards--captioned .tf-cats__ph {
    min-height: 0;
    aspect-ratio: var(--tf-cats-aspect, 1 / 1);
}

.tf-cats__name--caption {
    font-family: var(--tf-typography-headingFontFamily, var(--tf-typography-fontFamily, "Instrument Serif", Georgia, serif));
    font-size: clamp(13px, 1.2vw, 18px);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--tf-cats-label-color, inherit) !important;
}

.tf-cat-cards--captioned .tf-cats__dot:hover .tf-cats__name--caption {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.tf-cats__eyebrow,
.tf-cats__eyebrow span,
.tf-section[data-tf-type="home.categories"] .eyebrow-label,
.tf-section[data-tf-type="home.categories"] .eyebrow-label span {
    color: var(--tf-cats-eyebrow-color, inherit);
}

.tf-cats__title,
.tf-cats__title span,
.tf-section[data-tf-type="home.categories"] .tf-cats__title {
    font-family: var(--tf-typography-headingFontFamily, var(--tf-typography-fontFamily, "Instrument Serif", Georgia, serif));
    color: var(--tf-cats-heading-color, inherit);
}

.tf-cats__desc,
.tf-cats__desc span,
.tf-section[data-tf-type="home.categories"] .tf-cats__desc {
    color: var(--tf-cats-subtitle-color, inherit);
}

.tf-cats__name,
.tf-cats__name span,
.tf-section[data-tf-type="home.categories"] .collection-v02 .cls-name,
.tf-section[data-tf-type="home.categories"] .collection-v02 .cls-name span {
    color: var(--tf-cats-label-color, inherit);
}

.tf-cats__ph {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background:
        linear-gradient(135deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.1)),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 8px,
            rgba(0, 0, 0, 0.03) 8px,
            rgba(0, 0, 0, 0.03) 16px
        );
}

.tf-cats__head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
}

.tf-cats__head.sect-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.tf-cats__head .tf-cats__eyebrow {
    margin-bottom: 12px;
}

.tf-cats__head .tf-cats__title {
    margin-bottom: 12px;
}

.tf-cats__head .tf-cats__desc {
    margin-bottom: 0;
    max-width: 42rem;
}

.tf-cats__card,
.tf-cats__tile {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.tf-cats__media,
.tf-cats__thumb {
    position: relative;
    overflow: hidden;
}

.tf-cats__media img,
.tf-cats__thumb img,
.tf-cats__media .tf-cats__ph,
.tf-cats__thumb .tf-cats__ph {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.tf-cat-cards .hover-img .img-style img,
.tf-cats .hover-img .img-style img {
    transition: transform 0.55s ease;
}

.tf-cat-cards .hover-img:hover .img-style img,
.tf-cats .hover-img:hover .img-style img {
    transform: scale(1.06);
}

/* Overlay carousel — one row */
.tf-cat-cards--overlay .tf-cats__card--overlay {
    border-radius: 12px;
}

.tf-cat-cards--overlay .tf-cats__media {
    aspect-ratio: var(--tf-cats-aspect, 3 / 4);
    border-radius: 12px;
}

.tf-cats__overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 18px 18px;
    background: linear-gradient(180deg, transparent 0%, rgba(20, 16, 12, 0.72) 100%);
    z-index: 2;
}

.tf-cats__name--overlay {
    font-family: var(--tf-typography-headingFontFamily, var(--tf-typography-fontFamily, "Instrument Serif", Georgia, serif));
    font-size: clamp(18px, 1.6vw, 26px);
    line-height: 1.15;
    color: var(--tf-cats-label-color, #fff) !important;
}

.tf-cats__arrow {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.tf-cats__card--overlay:hover .tf-cats__arrow {
    transform: translate(2px, -2px);
    background: rgba(255, 255, 255, 0.28);
}

/* Editorial strip — one row */
.tf-cats__tile--editorial {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: visible;
}

.tf-cat-cards--editorial .tf-cats__index {
    font-size: 12px;
    letter-spacing: 0.14em;
    color: var(--tf-cats-eyebrow-color, rgba(24, 24, 27, 0.45));
    font-weight: 500;
}

.tf-cat-cards--editorial .tf-cats__thumb {
    width: 100%;
    aspect-ratio: var(--tf-cats-aspect, 4 / 5);
    height: auto;
    border-radius: 10px;
}

.tf-cats__tile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.tf-cats__name--editorial {
    font-family: var(--tf-typography-headingFontFamily, var(--tf-typography-fontFamily, "Instrument Serif", Georgia, serif));
    font-size: clamp(18px, 1.8vw, 24px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--tf-cats-label-color, inherit) !important;
}

.tf-cats__go {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(24, 24, 27, 0.14);
    font-size: 14px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.tf-cats__tile--editorial:hover .tf-cats__go {
    background: var(--tf-cats-label-color, #1a1a18);
    color: #fff;
    transform: translateX(3px);
}

/* Overlay grid — style 1 cards in a responsive grid */
.tf-cat-cards--overlay-grid .tf-cat-cards__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(var(--tf-cats-cols-desktop, 4), minmax(0, 1fr));
}

@media (max-width: 1199.98px) {
    .tf-cat-cards--overlay-grid .tf-cat-cards__grid {
        grid-template-columns: repeat(var(--tf-cats-cols-tablet, 3), minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .tf-cat-cards--overlay-grid .tf-cat-cards__grid {
        grid-template-columns: repeat(var(--tf-cats-cols-mobile, 2), minmax(0, 1fr));
    }
}

html[data-device="desktop"] .tf-section[data-tf-type="home.categories"] .tf-cat-cards--overlay-grid .tf-cat-cards__grid,
body[data-device="desktop"] .tf-section[data-tf-type="home.categories"] .tf-cat-cards--overlay-grid .tf-cat-cards__grid {
    grid-template-columns: repeat(var(--tf-cats-cols-desktop, 4), minmax(0, 1fr));
}

html[data-device="tablet"] .tf-section[data-tf-type="home.categories"] .tf-cat-cards--overlay-grid .tf-cat-cards__grid,
body[data-device="tablet"] .tf-section[data-tf-type="home.categories"] .tf-cat-cards--overlay-grid .tf-cat-cards__grid {
    grid-template-columns: repeat(var(--tf-cats-cols-tablet, 3), minmax(0, 1fr));
}

html[data-device="mobile"] .tf-section[data-tf-type="home.categories"] .tf-cat-cards--overlay-grid .tf-cat-cards__grid,
body[data-device="mobile"] .tf-section[data-tf-type="home.categories"] .tf-cat-cards--overlay-grid .tf-cat-cards__grid {
    grid-template-columns: repeat(var(--tf-cats-cols-mobile, 2), minmax(0, 1fr));
}
