/* TT Scroll Elements Styles */

.tt-scroll-elements {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.tt-scroll-elements__viewport {
    width: 100%;
    overflow: hidden;
}

.tt-scroll-elements__track {
    display: flex;
    width: max-content;
    gap: 16px;
    animation: tt-scroll-left var(--tt-scroll-speed) linear infinite;
}

.tt-scroll-elements[data-direction="right"] .tt-scroll-elements__track {
    animation: tt-scroll-right var(--tt-scroll-speed) linear infinite;
}

.tt-scroll-elements[data-pause="yes"]:hover .tt-scroll-elements__track {
    animation-play-state: paused;
}

@keyframes tt-scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes tt-scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Item */
.tt-scroll-elements__item {
    position: relative;
    width: 300px;
    height: 350px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
    background-color: #1a1a1a;
}

/* Image */
.tt-scroll-elements__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tt-scroll-elements__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay */
.tt-scroll-elements__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
}

/* Content */
.tt-scroll-elements__content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 3;
    text-align: center;
    box-sizing: border-box;
}

.tt-scroll-elements__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.tt-scroll-elements__description {
    margin: 0;
    font-size: 14px;
    color: #e5e5e5;
    line-height: 1.5;
}

/* =============================================
   Layout Variants
   ============================================= */

/* ---------- Style 2: Card ---------- */
.tt-scroll-elements--style-2 .tt-scroll-elements__item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tt-scroll-elements--style-2 .tt-scroll-elements__image {
    position: relative;
    width: 100%;
    height: 50%;
    flex-shrink: 0;
    z-index: 1;
}

.tt-scroll-elements--style-2 .tt-scroll-elements__content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    z-index: 2;
    box-sizing: border-box;
}

/* ---------- Style 3: Horizontal ---------- */
.tt-scroll-elements--style-3 .tt-scroll-elements__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    overflow: hidden;
}

.tt-scroll-elements--style-3 .tt-scroll-elements__image {
    position: relative;
    width: 40%;
    height: 100%;
    flex-shrink: 0;
    z-index: 1;
}

.tt-scroll-elements--style-3 .tt-scroll-elements__content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    z-index: 2;
    text-align: left;
    box-sizing: border-box;
}

/* ---------- Style 4: Text Only ---------- */
.tt-scroll-elements--style-4 .tt-scroll-elements__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.tt-scroll-elements--style-4 .tt-scroll-elements__content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    z-index: 1;
}

/* ---------- Style 5: Image Only ---------- */
.tt-scroll-elements--style-5 .tt-scroll-elements__track {
    align-items: flex-start;
    height: auto !important;
}

.tt-scroll-elements--style-5 .tt-scroll-elements__item {
    height: auto !important;
    background-color: transparent;
}

.tt-scroll-elements--style-5 .tt-scroll-elements__image {
    position: relative;
    width: 100%;
    height: auto !important;
}

.tt-scroll-elements--style-5 .tt-scroll-elements__image img {
    height: auto !important;
}
