/**
 * Frontend styles for TMV Horizontal Scroll.
 */

.tmv-horizontal-section {
    position: relative;
    width: 100%;
}

.tmv-hs-width-full {
    width: 100%;
}

.tmv-hs-width-boxed {
    width: 100%;
}

.tmv-hs-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: transparent;
    color: inherit;
}

.tmv-hs-track {
    display: flex;
    height: 100%;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0.03s linear;
}

/* Each panel is full viewport width and height by default */
.tmv-hs-panel {
    flex: 0 0 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* Stacked mode (applied via JS when horizontal scroll is disabled for a device) */
.tmv-horizontal-section.tmv-hs-stack {
    height: auto !important;
}

.tmv-horizontal-section.tmv-hs-stack .tmv-hs-sticky {
    position: static;
    height: auto;
    overflow: visible;
}

.tmv-horizontal-section.tmv-hs-stack .tmv-hs-track {
    flex-direction: column;
    transform: none !important;
    transition: none;
}

.tmv-horizontal-section.tmv-hs-stack .tmv-hs-panel {
    height: auto;
    min-height: 0;
    flex: 1 0 auto;
}
