/* ═══════════════════════════════════════════════════════════════
   Rise Image Slider  v7.1.4
   All layout/height managed by JS. CSS is presentational only.
═══════════════════════════════════════════════════════════════ */

/* ── WRAPPER ─────────────────────────────────────────────────── */
.rise-slider-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* ── MAIN CONTAINER ──────────────────────────────────────────── */
.rise-slider-main {
    position: relative;
    width: 100%;
    isolation: isolate;
}

/* ── TRACK ───────────────────────────────────────────────────── */
/* Height is set by JS (= active image natural height).
   overflow:hidden clips both slides during transition.          */
.rise-slider-main-track {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* height injected by JS */
}

/* ── ALL SLIDES: always position:absolute ────────────────────── */
/* JS controls transform/opacity/z-index for every transition.
   NO slide ever sits in normal flow — eliminates all height bugs */
.rise-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    will-change: transform, opacity;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translate3d(100%, 0, 0);
}
.rise-slide.active,
.rise-slide.rise-is-animating {
    visibility: visible;
}
.rise-slide.active {
    pointer-events: auto;
}

/* ── IMAGE ───────────────────────────────────────────────────── */
.rise-slide-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    -webkit-user-drag: none;
    user-drag: none;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ── CAPTION ─────────────────────────────────────────────────── */
.rise-slide-caption {
    position: absolute;
    padding: 14px 20px;
    max-width: 540px;
    border-radius: 4px;
    z-index: 4;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
}
.rise-caption-pos-bottomleft   { bottom: 24px; left: 24px; }
.rise-caption-pos-bottomcenter { bottom: 24px; left: 50%; transform: translateX(-50%); }
.rise-caption-pos-bottomright  { bottom: 24px; right: 24px; }
.rise-caption-pos-center       { top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; }
.rise-caption-pos-topleft      { top: 24px; left: 24px; }

.rise-caption-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    line-height: 1.3;
}
.rise-caption-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

/* ── ARROWS ──────────────────────────────────────────────────── */
.rise-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    cursor: pointer;
    outline: none;
    opacity: 0.85;
    transition: background 0.2s, opacity 0.2s, transform 0.2s;
    line-height: 1;
}
.rise-arrow:hover {
    background: rgba(0, 0, 0, 0.75);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}
.rise-prev { left: 14px; }
.rise-next { right: 14px; }

.rise-arrows-outside .rise-slider-main { margin: 0 56px; }
.rise-arrows-outside .rise-prev { left: 6px; }
.rise-arrows-outside .rise-next { right: 6px; }

.rise-arrows-bottom-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}
.rise-arrows-bottom-row .rise-arrow {
    position: static;
    transform: none;
}
.rise-arrows-bottom-row .rise-arrow:hover { transform: scale(1.1); }

/* ── DOTS ────────────────────────────────────────────────────── */
.rise-dots-nav {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
    z-index: 6;
}
.rise-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    cursor: pointer;
    padding: 0;
    outline: none;
    transition: background 0.25s, transform 0.25s;
}
.rise-dot.active,
.rise-dot:hover {
    background: #fff;
    transform: scale(1.3);
}

/* ── SCROLLBAR ───────────────────────────────────────────────── */
.rise-scrollbar-track {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 7;
}
.rise-scrollbar-thumb {
    height: 100%;
    background: #fff;
    border-radius: 2px;
    transition: width 0.35s ease;
}

/* ── THUMBNAILS ──────────────────────────────────────────────── */
.rise-thumbs-nav {
    margin-top: 10px;
    overflow: hidden;
    position: relative;
}
.rise-thumbs-track {
    display: flex;
    gap: 8px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.rise-thumb-item {
    flex: 0 0 auto;
    width: 120px;
    height: 90px;
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: border-color 0.25s, opacity 0.25s, transform 0.2s;
    box-sizing: border-box;
}
.rise-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
}
.rise-thumb-item.active {
    border-color: #fff;
    opacity: 1;
}
.rise-thumb-item:hover:not(.active) {
    opacity: 0.85;
    transform: translateY(-2px);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
    .rise-thumb-item    { width: 80px; height: 60px; }
    .rise-caption-title { font-size: 1rem; }
    .rise-arrow         { width: 34px; height: 34px; font-size: 16px; }
    .rise-prev          { left: 6px; }
    .rise-next          { right: 6px; }
    .rise-arrows-outside .rise-slider-main { margin: 0 44px; }
}
@media (max-width: 480px) {
    .rise-thumb-item    { width: 60px; height: 46px; }
    .rise-slide-caption { padding: 10px 14px; max-width: 88%; }
}
