/*
 * Tekate Carousel
 * Version: 1.1.5
 */

.tekate-carousel
{
    /* Space between the nav buttons and the slide viewport */
    --tekate-carousel-nav-gap: 16px;

    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto;
    column-gap: var(--tekate-carousel-nav-gap);
    align-items: center;
}

.tekate-carousel__viewport
{
    grid-row: 1;
    grid-column: 2;
    overflow: hidden;
}

.tekate-carousel__track
{
    display: flex;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

.tekate-carousel__slide
{
    flex: 0 0 100%;
    scroll-snap-align: start;
    min-width: 100%;
    box-sizing: border-box;
}

.tekate-carousel__slide-inner
{
    box-sizing: border-box;
}

.tekate-carousel__arrow
{
    grid-row: 1;
    border: 0;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    opacity: 0.9;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    line-height: 1;
    box-sizing: border-box;
}

.tekate-carousel__arrow--prev
{
    grid-column: 1;
}

.tekate-carousel__arrow--next
{
    grid-column: 3;
}

.tekate-carousel__arrow svg,
.tekate-carousel__arrow .tekate-carousel__icon
{
    width: 18px;
    height: 18px;
    display: block;
}
.tekate-carousel__dots
{
    grid-row: 2;
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.tekate-carousel__dot
{
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    cursor: pointer;
    opacity: 0.5;
}

.tekate-carousel__dot.is-active
{
    opacity: 1;
}

/* Hide controls when disabled by settings (JS toggles display as well) */
.tekate-carousel[data-arrows="0"] .tekate-carousel__arrow
{
    display: none;
}

.tekate-carousel[data-dots="0"] .tekate-carousel__dots
{
    display: none;
}

/* Test content styling (frontend) */
.tekate-carousel-test
{
    border-left: 6px solid rgba(0, 0, 0, 0.18);
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
}

/* Remove button circle when a custom media library image is used as the arrow icon */
.tekate-carousel[data-prev-custom="1"] .tekate-carousel__arrow--prev,
.tekate-carousel[data-next-custom="1"] .tekate-carousel__arrow--next
{
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    width: auto;
    height: auto;
    padding: 0;
    opacity: 1;
}

.tekate-carousel[data-prev-custom="1"] .tekate-carousel__arrow--prev .tekate-carousel__icon--custom,
.tekate-carousel[data-next-custom="1"] .tekate-carousel__arrow--next .tekate-carousel__icon--custom
{
    display: block;
    width: auto;
    height: auto;
}
