/* =========================
   LIGHTING PAGE — isolated + premium (Hero overlay + cards)
   ========================= */
.page--lighting{
    --bg: #0b1010;
    --glass: rgba(255,255,255,.70);
    --stroke: rgba(0,0,0,.08);
    --ink: #111;
    --muted: rgba(17,17,17,.72);
    --brand: #8fb3a5;
    --sand: #d0c9c0;
    --r-lg: 26px;
    --r-md: 18px;
    --shadow: 0 18px 45px rgba(0,0,0,.10);
    --shadow2: 0 10px 26px rgba(0,0,0,.08);
    --print-opacity: .22; /* כמו HOME */
}
/* =========================
   LIGHTING — force dark canvas + bg print (same as HOME)
   requires: <main class="page page--lighting">
   ========================= */

main.page--lighting{
    background: #0b1010 !important;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

/* same background image print as HOME */
main.page--lighting::before{
    content:"";
    position:absolute;
    inset:0;
    background-image: url("/images/bg_2.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: var(--print-opacity, .22);
    filter: saturate(.9) contrast(1.05);
    pointer-events:none;
    z-index: 0;
}

/* lift content above bg layer */
main.page--lighting > *{
    position: relative;
    z-index: 1;
}

/* container */
.page--lighting .lg_container{
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

/* =========================
   HERO (text over image) — same vibe as air/diffusers
   ========================= */
.page--lighting .lg_hero{
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    border-bottom: 1px solid rgba(255,255,255,.14);
    background: #000;
}

.page--lighting .lg_hero__img{
    width: 100%;
    height: clamp(240px, 34vw, 420px);
    object-fit: cover;
    display: block;
    transform: scale(1.01);
}

.page--lighting .lg_hero__overlay{
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    align-items: end;
    padding: 18px 0 22px;
    background:
            radial-gradient(900px 420px at 15% 25%, transparent, rgba(0,0,0,.35)),
            linear-gradient(to top, rgba(0,0,0,.72), transparent 55%);
}

.page--lighting .lg_h1{
    margin: 0 0 6px;
    color: rgba(255,255,255,.92);
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.08;
    font-weight: 900;
}

.page--lighting .lg_sub{
    margin: 0;
    color: rgba(255,255,255,.78);
    max-width: 70ch;
    line-height: 1.7;
    font-size: 1.05em;
}

/* =========================
   Grid wrapper
   ========================= */
.page--lighting .lighting_grid{
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    gap: 18px;
    padding: 22px 0 40px;
}

/* =========================
   Card
   ========================= */
.page--lighting .lighting_card{
    background: var(--glass);
    border: 1px solid var(--stroke);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.page--lighting .lighting_card__head{
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.60);
}

.page--lighting .lighting_card__title{
    margin: 0;
    color: var(--ink);
    font-size: 1.4em;
    font-weight: 1000;
}

/* Body layout: text + gallery */
.page--lighting .lighting_card__body{
    padding: 14px 16px 16px;
    display: grid;
    gap: 14px;
}

@media (min-width: 900px){
    .page--lighting .lighting_card__body{
        grid-template-columns: 1.15fr .85fr;
        align-items: start;
    }
}

/* Description (no pre) */
.page--lighting .lighting_card__desc p{
    margin: 0;
    color: var(--muted);
    font-size: 1.05em;
    line-height: 1.85;
}

/* =========================
   Gallery
   ========================= */
.page--lighting .lighting_gallery{
    display: grid;
    gap: 10px;
}

.page--lighting .lighting_gallery__preview{
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: var(--shadow2);
    aspect-ratio: 16 / 10;
    background: rgba(0,0,0,.06);
    cursor: zoom-in;
    outline: none;
}

.page--lighting .lighting_gallery__preview img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform .35s ease, filter .35s ease;
}

.page--lighting .lighting_gallery__preview:hover img{
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.03);
}

.page--lighting .lighting_gallery__zoom{
    position: absolute;
    left: 10px;
    top: 10px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(0,0,0,.38);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .2s ease, background .2s ease;
}

.page--lighting .lighting_gallery__zoom:hover{
    transform: translateY(-1px);
    background: rgba(0,0,0,.48);
}

/* thumbs */
.page--lighting .lighting_gallery__thumbs{
    display: flex;
    gap: 8px;
    /*flex-wrap: wrap;*/
    justify-content: center;
}

.page--lighting .lighting_thumb{
    /*width: 72px;*/
    /*height: 72px;*/
    width: 100%;
    max-width: 72px;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.12);
    background: rgba(255,255,255,.75);
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,.10);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.page--lighting .lighting_thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page--lighting .lighting_thumb:hover{
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0,0,0,.14);
}

.page--lighting .lighting_thumb.is-active{
    border-color: rgba(143,179,165,.75);
    box-shadow: 0 16px 34px rgba(143,179,165,.18);
}

/* =========================
   Lightbox (GLOBAL selectors, because it's appended to body)
   If you already added these in diffusers.css globally — you can remove this block here.
   ========================= */
.gallery-lightbox{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0);
    opacity: 0;
    z-index: 9999;
    padding: 24px;
    transition: opacity 240ms ease, background 240ms ease;
}

.gallery-lightbox.is-open{
    display: flex;
    opacity: 1;
    background: rgba(0,0,0,.86);
}

.gallery-lightbox__panel{
    position: relative;
    max-width: 92vw;
    max-height: 90vh;
    transform: translateY(10px) scale(.98);
    opacity: 0;
    transition: transform 260ms ease, opacity 260ms ease;
    will-change: transform, opacity;
}

.gallery-lightbox.is-open .gallery-lightbox__panel{
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gallery-lightbox__img{
    display: block;
    max-width: min(1100px, 92vw);
    max-height: 86vh;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0,0,0,.45);
    transition: opacity 220ms ease;
}

.gallery-lightbox__img.is-fading{ opacity: 0; }

.gallery-lightbox__btn,
.gallery-lightbox__close{
    position: absolute;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: .95;
    transition: transform 160ms ease, background 160ms ease, opacity 160ms ease;
}

.gallery-lightbox__btn{
    top: 50%;
    transform: translateY(-50%);
    font-size: 36px;
    line-height: 1;
}

.gallery-lightbox__btn--prev{ right: -64px; }
.gallery-lightbox__btn--next{ left: -64px; }
.gallery-lightbox__close{ top: -56px; left: 0; font-size: 22px; }

@media (max-width: 700px){
    .gallery-lightbox__btn--prev{ left: 12px; right: auto; }
    .gallery-lightbox__btn--next{ right: 12px; left: auto; }
    .gallery-lightbox__close{ top: 12px; left: 12px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
    .page--lighting .lighting_thumb,
    .page--lighting .lighting_gallery__zoom,
    .page--lighting .lighting_gallery__preview img{
        transition: none !important;
    }
}
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
    will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

.reveal--scale { transform: translateY(18px) scale(0.98); }
.reveal--scale.is-in { transform: translateY(0) scale(1); }

/* Stagger */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 550ms ease, transform 550ms ease;
}
.reveal-stagger.is-in > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal-stagger > * { transition: none !important; transform: none !important; opacity: 1 !important; }
}
.lighting_gallery__preview img.is-swap {
    opacity: 0.2;
    transition: opacity 180ms ease;
}