/* Tekate Card Deck v1.6 */

:root
{
    --tek-card-deck-animation-ms: 520ms;
    --tek-card-deck-tab-overlap: 18px;
    --tek-card-deck-tab-scale-step: 0.07;
    --tek-card-deck-tab-opacity-step: 0.10;
    --tek-card-deck-tab-min-scale: 0.62;
    --tek-card-deck-dot-size: 12px;
    --tek-card-deck-dot-gap: 8px;
    --tek-card-deck-dots-left-offset: 18px;
    --tek-card-deck-dot-colour: #ffffff;
    --tek-card-deck-dot-outline: rgba(255, 255, 255, 0.92);
}

.p4g-rolodex.tek-card-deck-ready
{
    position: relative;
    overflow: visible;
    touch-action: pan-y;
    user-select: none;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 100%;
}

.p4g-rolodex.tek-card-deck-ready .p4g-card
{
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    transform-origin: center top;
    will-change: transform, opacity;
    transition:
        transform var(--tek-card-deck-animation-ms) cubic-bezier(0.22, 1, 0.36, 1),
        opacity var(--tek-card-deck-animation-ms) cubic-bezier(0.22, 1, 0.36, 1);
    backface-visibility: hidden;
}

.p4g-rolodex.tek-card-deck-ready .p4g-card .p4g-card-top
{
    position: relative;
    z-index: 3;
}

.p4g-rolodex.tek-card-deck-ready .p4g-card .rolodex-card-body
{
    position: relative;
    z-index: 2;
    background: inherit;
    overflow: hidden;
}

.p4g-rolodex.tek-card-deck-ready .p4g-card .rolodex-card-body > .wp-block-heading
{
    margin: 0;
}

.p4g-rolodex.tek-card-deck-ready .p4g-card .rolodex-card-body > .wp-block-heading,
.p4g-rolodex.tek-card-deck-ready .p4g-card .rolodex-card-body > .wp-block-image
{
    flex: 1 1 50%;
    min-width: 0;
}

.p4g-rolodex.tek-card-deck-ready .p4g-card .rolodex-card-body > .wp-block-heading
{
    display: flex;
    align-items: center;
    padding: 1rem;
}

.p4g-rolodex.tek-card-deck-ready .p4g-card .rolodex-card-body > .wp-block-image,
.p4g-rolodex.tek-card-deck-ready .p4g-card .rolodex-card-body > .wp-block-image figure,
.p4g-rolodex.tek-card-deck-ready .p4g-card .rolodex-card-body > .wp-block-image img
{
    height: 100%;
}

.p4g-rolodex-dots
{
    position: absolute;
    top: 50%;
    left: calc(var(--tek-card-deck-dots-left-offset) * -1);
    display: flex;
    flex-direction: column;
    gap: var(--tek-card-deck-dot-gap);
    transform: translate(-100%, -50%);
    z-index: 40;
}

.p4g-rolodex-dot
{
    width: var(--tek-card-deck-dot-size);
    height: var(--tek-card-deck-dot-size);
    border: 1px solid var(--tek-card-deck-dot-outline);
    border-radius: 999px;
    background: transparent;
    padding: 0;
    margin: 0;
    line-height: 1;
    cursor: pointer;
}

.p4g-rolodex-dot.is-active
{
    background: var(--tek-card-deck-dot-colour);
}

.p4g-rolodex-dot:focus-visible
{
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 640px)
{
    .p4g-rolodex-dots
    {
        position: static;
        flex-direction: row;
        justify-content: center;
        transform: none;
        margin-top: 12px;
        left: auto;
        top: auto;
    }
}
