/* ==========================
   MAIN CONTAINER
========================== */
.shorts-widget {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 16px;
}

/* ==========================
   HEADER AND CONTROLS
========================== */
.shorts-carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.shorts-controls {
    display: inline-flex;
    gap: 6px;
}

.shorts-controls button {
    border: 1px solid var(--grey);
    background: var(--white);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.5s ease;
}

.shorts-controls button:hover:not(:disabled) {
    background: var(--grey);
}

.shorts-controls button:disabled {
    opacity: 0.4;
    cursor: default;
}

/* ==========================
   CAROUSEL WRAPPER
========================== */
.shorts-carousel-track-wrapper {
    position: relative;
    overflow: hidden;
}

/* Carousel row (flex) */
.shorts-track {
    display: flex;
    gap: 10px;
    transition: transform 0.3s ease;
}

/* Each card occupies 1/N of the width (N from JS via --items-per-view) */
.short-card {
    background: #f9fafb;
    border-radius: 12px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: transform 0.1s ease, box-shadow 0.15s ease;
}

/* Active card (optional visual highlight) */
.short-card.is-active {
    background: #e0f2fe;
    box-shadow: 0 0 0 1px #38bdf8;
}

/* ==========================
   VIDEO CONTAINER
========================== */
.short-active-video {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 10px;
    background: var(--black);
}

/* Iframe fills the container */
.short-active-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==========================
   SLIDE ANIMATIONS (Next / Prev)
========================== */
.shorts-track.slide-next {
    animation: slideNext 0.35s ease;
}

.shorts-track.slide-prev {
    animation: slidePrev 0.35s ease;
}

.title {
    font-size: 70px;
    font-weight: 400;
    font-family: 'Gagalin', sans-serif;
    padding: 0;
    margin: 0;
    color: var(--mainColor);
}

.elementor-element-e5ed187 .e-con-inner {
    display: block !important;
}

@keyframes slideNext {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slidePrev {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================
   MOBILE + TABLET: SIDE NAV BUTTONS
========================== */

/* Hidden by default (desktop) */
.shorts-nav-tablet {
    display: none;
}

@media (max-width: 899px) {

    .shorts-track {
        padding-bottom: 50px;
    }

    /* Hide top header buttons on mobile+tablet */
    .shorts-controls {
        display: none;
    }

    .shorts-carousel-track-wrapper {
        position: relative;
    }

    .shorts-nav-tablet {
        display: flex;
        position: absolute;
        bottom: 25px;
        transform: translateY(50%);
        z-index: 10;
        border: 1px solid var(--grey);
        border-radius: 50%;
        width: 34px;
        height: 34px;
        background: transparent;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        cursor: pointer;
        transition: all 0.15s ease, box-shadow 0.15s ease;
    }

    .shorts-nav-tablet:hover:not(:disabled) {
        background: rgba(243, 244, 246, 0.95);
    }

    .shorts-nav-tablet:disabled {
        opacity: 0.4;
        cursor: default;
    }

    .shorts-nav-tablet.prev {
        left: 6px;
    }

    .shorts-nav-tablet.next {
        right: 6px;
    }

    .title {
        font-size: 50px;
    }

}



/* ==========================
   OPTIONAL: REMOVE TITLES
========================== */
.short-title {
    display: none;;
}

/* Icons fix*/
.shorts-widget .icon-left,
.shorts-widget .icon-right {
    /* Safari / WebKit */
    -webkit-mask-image: url("leftarrow-icon.svg");
    -webkit-mask-position: center;
    -webkit-mask-size: cover;
    -webkit-mask-repeat: no-repeat;

    /* (Chromium / Firefox) */
    mask-image: url("leftarrow-icon.svg");
    mask-position: center;
    mask-size: cover;
    mask-repeat: no-repeat;

    width: 20px;
    height: 20px;
    background-color: var(--mainColor);
}

.shorts-widget .icon-right {
    -webkit-mask-image: url("rightarrow-icon.svg");
    mask-image: url("rightarrow-icon.svg");
}

