html {
    scroll-behavior: smooth;
}

html, body {
    scroll-behavior: smooth;
    height: 100%;
    margin: 0;
}

.slideOverlay, .slideshow {
    width: 100%;
}
.slideshow {
    float: right;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.slideshow.is-loading #staticCaption,
.slideshow.is-loading .slideshow_caption {
    opacity: 0 !important;
    pointer-events: none;
}
/*.slideshow.is-ready #staticCaption,
.slideshow.is-ready .slideshow_caption {
    opacity: 1 !important;
    transition: opacity .35s ease;
}*/

/* פול סקרין אמיתי (דסקטופ) */
@media (min-width: 769px) {
    .slideshow {
        position: relative !important;
        float: none !important;
        inset: auto !important;
        width: 100% !important;
        min-height: 100dvh;
        overflow: hidden;
    }
}

/* הסליידים עצמם */
.slideshow .slideshow_img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1);
    transition: opacity 600ms ease-in-out, transform 600ms ease-in-out;
}

/* ✅ הסלייד הראשון תמיד גלוי מיד */
.slideshow .slideshow_img.first-slide {
    opacity: 1 !important;
    z-index: 2;
}

.slideshow .slideshow_img.fade-in {
    opacity: 1;
    transform: scale(1.01);
    z-index: 2;
}

.slideshow .slideshow_img.fade-out {
    opacity: 0;
    transform: scale(1);
    z-index: 1;
}

/* שכבת תוכן */
.slideshow .slideshow_right {
    position: absolute;
    top: 0;
    right: 0 !important;
    width: 100%;
    height: 100% !important;
    z-index: 2;
}

/* שכבת תמונה */
.slideshow .slideshow_left {
    position: absolute;
    top: 0;
    left: 0 !important;
    width: 100%;
    height: 100% !important;
    background-color: #000; /* ✅ מונע אפור */
    transition: opacity .35s ease-in-out, filter .35s ease-in-out;
}

/* אם LQIP מוצג – קצת טשטוש עד שמגיע HQ */
.slideshow .slideshow_left.is-lqip {
    filter: blur(6px);
    transform: scale(1.02);
}

/* כשה-HQ נטען – חד */
.slideshow .slideshow_left.is-hq {
    filter: none;
}

/* =========================
   CAPTION (טקסט)
========================= */
.slideshow_caption {
    width: 100%;
    height: 100%;
    right: 0;
    position: absolute;
    inset: 0;
    direction: rtl;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 0;
    z-index: 2;
}

.slideshow_caption .title,
.slideshow_caption .sub_title,
.slideshow_caption .text {
    display:flex;
    justify-content:center;
}

.slideshow_caption .text {
    font-size: 32px;
    line-height: 1.2em;
    direction: rtl;
    margin-bottom: 25px;
}

/* =========================
   BUTTONS
========================= */
.slide_btn_container {
    float: right;
    width: 100%;
    direction: rtl;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide_btns_up {
    float: right;
    width: 100%;
    direction: rtl;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow_btn {
    width: 280px;
    height: 60px;
    padding: 0 30px 2px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #333333;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: pulse 2.5s infinite ease-in-out;
    transition: all 0.35s ease;
}

.slideshow_btns_down {
    float: right;
    width: 100%;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.slideshow_btn_down {
    width: auto;
    height: 45px;
    padding: 0 15px 0px;
    text-align: center;
    font-size: 18px;
    box-sizing: border-box;
    border: 2px solid #f9eadc;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow_btn:hover {
    background-color: rgba(255, 255, 255, 1) !important;
}

.slideshow_btn_down:hover {
    background-color: rgba(51, 51, 51, 1) !important;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(249, 234, 220, 0.5);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 20px rgba(249, 234, 220, 0.8);
    }
}

.slideshow_btn:hover {
    background-color: #b7213c;
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 25px rgba(255,255,255,0.9);
}

.slideshow_btn .slideshow_btn_text {
    font-size: 28px;
    font-weight: 700;
    z-index: 2;
    position: relative;
}

.slideshow_btn_icon {
    margin-right: 5px;
}

.slideshow_btn_text i {
    font-size: 25px;
    color: #333;
    margin-right: 5px;
}

.slideshow_btn_down .slideshow_btn_text {
    font-size: 18px;
    font-weight: 400;
    z-index: 2;
    position: relative;
}

.slideshow_btn_border {
    width: calc(100% - 14px);
    border: 1px solid #333;
    position: absolute;
    height: 43px;
    border-radius: 35px;
    right: 7px;
    top: 5px;
}

/* =========================
   OVERLAY (אם תשתמש)
========================= */
.slideOverlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.3), rgba(0,0,0,.3));
    z-index: 1;
}

/* =========================
   NAV ARROWS + DOTS
========================= */
.slide-prev, .slide-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(0,0,0,.35);
    color: #fff;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: opacity .2s ease, background .2s ease;
}

.slide-prev { left: 18px; }
.slide-next { right: 18px; }

.slide-prev:hover, .slide-next:hover {
    background: rgba(0,0,0,.55);
}

.slide-dots {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.slide-dots .dot {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,.45);
    cursor: pointer;
    padding: 0;
}

.slide-dots .dot.active {
    background: #f9eadc;
    width: 13px;
    height: 13px;
}

/* =========================
   CAPTION ANIMATIONS
========================= */
.slideshow_caption .slideshow_logo,
.slideshow_caption .title,
.slideshow_caption .sub_title,
.slideshow_caption .text,
.slideshow_caption .slide_btn_container {
    opacity: 0;
    transform: translateY(14px);
}

/* ✅ אנימציות ירוצו רק כשיש READY (לא בזמן LOADING) */
.slideshow.is-ready .slideshow_img.show-caption .slideshow_logo {
    animation: fadeUp .55s ease forwards .05s;
}
.slideshow.is-ready .slideshow_img.show-caption .title {
    animation: fadeUp .60s ease forwards .15s;
}
.slideshow.is-ready .slideshow_img.show-caption .sub_title {
    animation: fadeUp .60s ease forwards .30s;
}
.slideshow.is-ready .slideshow_img.show-caption .text {
    animation: fadeUp .60s ease forwards .45s;
}
.slideshow.is-ready .slideshow_img.show-caption .slide_btn_container {
    animation: fadeUp .60s ease forwards .60s;
}

.slideshow_caption .scroll-down-wrap {
    opacity: 0;
    transform: translateY(14px);
}

.slideshow.is-ready .slideshow_img.show-caption .scroll-down-wrap {
    animation: fadeUp .60s ease forwards .75s;
}

#galnorLogoImg {
    opacity: 0;
    transform: scale(.92);
}

.slideshow.is-ready .slideshow_img.show-caption #galnorLogoImg {
    animation: logoPop .5s ease forwards .05s;
}

@keyframes logoPop {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================
   SCROLL DOWN
========================= */
.scroll-down-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 18px;
    position: absolute;
    bottom: 70px;
    z-index: 1000 !important;
}

.scroll-down {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1.5px solid #fff;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
    animation: bob 1.8s ease-in-out infinite;
}

.scroll-down:hover {
    background: #f9eadd;
    border-color: #fff;
    transform: translateY(-1px);
}

.scroll-down-icon {
    position: relative;
    width: 10px;
    height: 10px;
}

.scroll-down-icon::before,
.scroll-down-icon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    display: block;
}

.scroll-down-icon::before {
    width: 10px;
    height: 10px;
    border-right: 2px solid #343433;
    border-bottom: 2px solid #343433;
    transform: rotate(45deg);
}

.scroll-down-icon::after {
    top: -8px;
    width: 2px;
    height: 12px;
    background: #343433;
    border-radius: 1px;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* =========================
   LOGO
========================= */
.slideshow_logo {
    width: 280px;
    margin-bottom: 15px;
}

/* =========================
   KEN BURNS
========================= */
.kenburns {
    will-change: transform;
    animation: kenburns-zoom 18s ease-in-out infinite alternate;
}

@keyframes kenburns-zoom {
    0% { transform: scale(1.02) translateZ(0); }
    100% { transform: scale(1.08) translateZ(0); }
}

/* =========================
   SHAPE
========================= */
.slide_shape {
    width: 100%;
    height: auto;
    position: absolute;
    bottom: -1px;
    z-index: 11;
    display: flex;
    justify-content: center;
}

.slide_shape img { width: 350px; }

/* =========================
   RESPONSIVE
========================= */
@media (min-width: 1438px) {
    .slideshow_caption { padding: 0 50px; }

    .slideshow_caption .title {
        font-size: 55px;
        margin-bottom: 5px;
        text-align: center;
        line-height: 1em;
    }

    .slideshow_caption .sub_title {
        font-size: 50px;
        line-height: 1em;
        text-align: center;
    }

    .slideshow_caption .text {
        font-size: 26px;
        font-weight: 400;
        line-height: 1.3em;
        text-align: center;
    }
}

@media (max-width: 1439px) and (min-width: 769px) {
    .slideshow_caption { padding: 0 50px; }

    .slideshow_caption .title {
        font-size: 65px;
        margin-bottom: 5px;
        text-align: center;
        line-height: 1em;
    }

    .slideshow_caption .sub_title {
        font-size: 50px;
        line-height: 1em;
        margin-bottom: 0px;
        text-align: center;
    }

    .slideshow_caption .text {
        font-size: 26px;
        font-weight: 400;
        line-height: 1.3em;
        text-align: center;
    }
}

@media (max-width: 768px) and (min-width: 319px) {
    :root { --header-mobile: 0px; }

    .slideshow .slideshow_right {
        width: 100%;
        height: 100% !important;
        top: 0%;
    }

    .slideshow .slideshow_left {
        width: 100%;
        height: 100% !important;
        top: 0;
    }

    .slideshow_caption {
        padding: 0 30px;
        align-items: center;
    }

    .slideshow_caption .title {
        font-size: 40px;
        margin-bottom: 0px;
        text-align: center;
        line-height: 1em;
    }

    .slideshow_caption .sub_title {
        font-size: 30px;
        line-height: 1.2em;
        margin-bottom: 5px;
    }

    .slideshow_caption .text {
        font-size: 22px;
        font-weight: 400;
        margin-bottom: 0;
        line-height: 1.4em;
        text-align: center;
    }

    .slide_btn_container { margin-top: 15px; }

    .slideshow_logo {
        width: 240px;
        margin-bottom: 20px;
    }

    .slide-dots { bottom: 14px; }

    .scroll-down-wrap { bottom: 70px; }

    .slide_shape img { width: 250px; }

    .slideshow_btn {
        width: 290px;
        height: 60px;
        padding: 0 10px 2px;
    }

    .slideshow_btn .slideshow_btn_text {
        font-size: 26px;
        font-weight: 700;
    }

    .slide_shape { display: none; }
    .slide-prev, .slide-next { display: none; }
}

/* =========================
   STATIC CAPTION (נשמר)
========================= */
#staticCaption .slideshow_logo,
#staticCaption .title,
#staticCaption .sub_title,
#staticCaption .text,
#staticCaption .slide_btn_container,
#staticCaption .scroll-down-wrap {
    opacity: 0;
    transform: translateY(14px);
}


#staticCaption.show .slideshow_logo {
    animation: fadeUp .55s ease forwards .05s;
}

#staticCaption.show .title {
    animation: fadeUp .60s ease forwards .15s;
}

#staticCaption.show .sub_title {
    animation: fadeUp .60s ease forwards .30s;
}

#staticCaption.show .text {
    animation: fadeUp .60s ease forwards .45s;
}

#staticCaption.show .slide_btn_container {
    animation: fadeUp .60s ease forwards .60s;
}

#staticCaption.show .scroll-down-wrap {
    animation: fadeUp .60s ease forwards .75s;
}

#galnorLogoImgStatic {
    opacity: 0;
    transform: scale(.92);
}

#staticCaption.show #galnorLogoImgStatic {
    animation: logoPop .5s ease forwards .05s;
}
/* מצב טעינה */
/*.slideshow.is-loading .slideshow_right {
    opacity: 0;
    visibility: hidden;
}

.slideshow.is-ready .slideshow_right {
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease;
}*/