.tlcc-carousel {
    --tlcc-visible: 4;
    --tlcc-surface: transparent;
    --tlcc-surface-soft: transparent;
    --tlcc-text: inherit;
    --tlcc-accent: currentColor;
    --tlcc-control-bg: transparent;
    --tlcc-control-border: currentColor;
    background: var(--tlcc-surface);
    box-sizing: border-box;
    color: var(--tlcc-text);
    margin: 0 auto;
    max-width: min(100%, var(--tlcc-max-width));
    overflow: hidden;
    padding: 4px 48px 34px;
    position: relative;
    width: 100%;
}

.tlcc-carousel,
.tlcc-carousel * {
    box-sizing: border-box;
}

.tlcc-viewport {
    overflow: hidden;
    width: 100%;
}

.tlcc-track {
    display: flex;
    gap: var(--tlcc-space);
    touch-action: pan-y;
    transform: translate3d(0, 0, 0);
    user-select: none;
    will-change: transform;
}

.tlcc-slide {
    flex: 0 0 calc((100% - (var(--tlcc-space) * (var(--tlcc-visible) - 1))) / var(--tlcc-visible));
    min-width: 0;
}

.tlcc-slide-inner {
    color: inherit;
    display: block;
    text-align: center;
    text-decoration: none;
}

.tlcc-slide-inner:focus-visible {
    border-radius: 8px;
    outline: 2px solid var(--tlcc-accent);
    outline-offset: 5px;
}

.tlcc-image-card {
    align-items: center;
    aspect-ratio: var(--tlcc-aspect-ratio);
    background: var(--tlcc-surface-soft);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    max-height: var(--tlcc-image-max-height);
    overflow: hidden;
    width: 100%;
}

.tlcc-image {
    display: block;
    height: 100%;
    object-fit: var(--tlcc-image-fit);
    width: 100%;
}

.tlcc-image-placeholder {
    aspect-ratio: var(--tlcc-aspect-ratio);
    display: block;
    width: 100%;
}

.tlcc-collection-name {
    color: var(--tlcc-text);
    display: block;
    font-size: var(--tlcc-name-font-size);
    font-weight: 800;
    line-height: 1.25;
    margin-top: 12px;
    overflow-wrap: anywhere;
    text-align: center;
    transition: color 180ms ease, transform 180ms ease;
}

a.tlcc-slide-inner:hover .tlcc-collection-name {
    color: var(--tlcc-accent);
    transform: translateY(-1px);
}

.tlcc-arrow {
    align-items: center;
    background: var(--tlcc-control-bg);
    border: 1px solid var(--tlcc-control-border);
    border-radius: 999px;
    color: var(--tlcc-text);
    cursor: pointer;
    display: flex;
    font-size: 34px;
    height: 40px;
    justify-content: center;
    line-height: 1;
    padding: 0 0 4px;
    position: absolute;
    top: calc(50% - 22px);
    transition: background 180ms ease, border-color 180ms ease;
    width: 40px;
    z-index: 2;
}

.tlcc-arrow:hover,
.tlcc-arrow:focus-visible {
    background: var(--tlcc-surface-soft);
    border-color: var(--tlcc-accent);
    outline: none;
}

.tlcc-arrow-prev {
    left: 0;
}

.tlcc-arrow-next {
    right: 0;
}

.tlcc-dots {
    bottom: 2px;
    display: flex;
    gap: 8px;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
}

.tlcc-dot {
    background: var(--tlcc-control-border);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    height: 9px;
    opacity: 0.35;
    padding: 0;
    width: 9px;
}

.tlcc-dot[aria-selected="true"] {
    background: var(--tlcc-accent);
    opacity: 1;
}

.tlcc-dot:focus-visible {
    outline: 2px solid var(--tlcc-accent);
    outline-offset: 3px;
}

.tlcc-admin-message,
.tlcc-builder-placeholder {
    background: var(--tlcc-surface, transparent);
    border: 1px solid var(--tlcc-control-border, currentColor);
    color: var(--tlcc-text, inherit);
    padding: 12px;
}

.tlcc-builder-preview {
    background: var(--tlcc-surface, transparent);
    border: 1px solid var(--tlcc-control-border, currentColor);
    color: var(--tlcc-text, inherit);
    padding: 16px;
}

.tlcc-builder-preview-track {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tlcc-builder-preview-slide {
    min-width: 0;
    text-align: center;
}

.tlcc-builder-preview-slide img,
.tlcc-builder-preview-empty {
    aspect-ratio: 4 / 5;
    background: var(--tlcc-surface-soft, transparent);
    display: block;
    object-fit: contain;
    width: 100%;
}

.tlcc-builder-preview-name {
    color: var(--tlcc-text, inherit);
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    margin-top: 8px;
    overflow-wrap: anywhere;
}

.tlcc-builder-preview-note {
    color: var(--tlcc-text, inherit);
    font-size: 12px;
    margin-top: 12px;
    opacity: 0.7;
}
