﻿
@import url("events.css");

/* =========================================
   GALLERY PAGE - METUKTAKIM
   ========================================= */

.gallery-page {
    margin: 0;
    background: #0b0b0b;
    color: #fff;
    direction: rtl;
}

    .gallery-page * {
        box-sizing: border-box;
    }

    .gallery-page main {
        overflow: hidden;
    }

    /* =========================================
   HERO - CINEMATIC SLIDESHOW
   ========================================= */

    .gallery-page .gallery-hero {
        position: relative;
        isolation: isolate;
        min-height: 78vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        overflow: hidden;
        /* מבטל את תמונת הרקע הקבועה */
        background-image: none !important;
        background-color: #090807;
    }

    /* שכבת המצגת - מתחת לתוכן */
    .gallery-page .gallery-hero-slideshow {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        overflow: hidden;
        pointer-events: none;
    }

    /* תמונות המצגת */
    .gallery-page .gallery-hero-slide {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0;
        visibility: hidden;
        transform: scale(1.04);
        transition: opacity 1.7s ease-in-out, visibility 1.7s ease-in-out;
    }

        /* התמונה הפעילה */
        .gallery-page .gallery-hero-slide.active {
            opacity: 1;
            visibility: visible;
            animation: galleryHeroZoom 6.5s ease-out forwards;
        }

/* אפקט התקרבות קולנועי */
@keyframes galleryHeroZoom {
    from {
        transform: scale(1.04);
    }

    to {
        transform: scale(1.13);
    }
}

/* שכבת כהות מעל התמונות */
.gallery-page .gallery-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.57) 55%, rgba(0, 0, 0, 0.80) );
    pointer-events: none;
}

/* תוכן הפתיח מעל המצגת */
.gallery-page .gallery-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 850px;
    padding: 70px 20px;
    background: transparent;
    text-align: center;
    animation: galleryFadeUp 1.2s ease both;
}

.gallery-eyebrow,
.gallery-small-title {
    color: #d6b77c;
    font-size: 13px;
    letter-spacing: 4px;
}

.gallery-hero h1 {
    font-size: clamp(36px, 5vw, 70px);
    font-weight: 400;
    margin: 25px 0;
    line-height: 1.25;
    text-shadow: 0 5px 25px rgba(0,0,0,.6);
}

.gallery-gold-line {
    width: 75px;
    height: 2px;
    background: #c7a76c;
    margin: 22px auto;
}

.gallery-hero p,
.gallery-intro p,
.gallery-video-section p {
    color: #ddd;
    font-size: 18px;
    line-height: 1.9;
}

.gallery-hero p {
    text-shadow: 0 3px 15px rgba(0,0,0,.7);
}

.gallery-discover {
    display: inline-block;
    margin-top: 25px;
    padding: 13px 35px;
    border: 1px solid #c7a76c;
    color: #e7c891;
    text-decoration: none;
    background: rgba(0,0,0,.12);
    transition: background .3s, color .3s, transform .3s;
}

    .gallery-discover:hover {
        background: #c7a76c;
        color: #111;
        transform: translateY(-3px);
    }

/* =========================================
   GALLERY INTRO
   ========================================= */

.gallery-intro {
    padding: 95px 20px 70px;
    text-align: center;
    background: #0b0b0b;
}

    .gallery-intro h2,
    .gallery-video-section h2 {
        font-size: clamp(28px, 3.5vw, 45px);
        font-weight: 400;
        margin: 18px 0;
    }

    .gallery-intro p {
        max-width: 700px;
        margin: 0 auto;
    }

/* =========================================
   PHOTO GRID
   ========================================= */

.gallery-section {
    padding: 0 35px 100px;
    background: #0b0b0b;
}

.gallery-grid {
    max-width: 1450px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 260px;
    grid-auto-flow: dense;
    gap: 18px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #171717;
    border: 1px solid rgba(198, 163, 100, .22);
    border-radius: 5px;
    opacity: 0;
    transform: translateY(35px);
    transition: opacity .7s ease, transform .7s ease, border-color .35s ease;
}

    .gallery-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .gallery-item:hover {
        border-color: #d6b77c;
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform .7s ease, filter .7s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.07);
        filter: brightness(.82);
    }

    .gallery-item::after {
        content: "✦";
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #e8c990;
        font-size: 34px;
        background: rgba(0,0,0,.08);
        opacity: 0;
        transition: opacity .4s;
        pointer-events: none;
    }

    .gallery-item:hover::after {
        opacity: 1;
    }

.gallery-tall {
    grid-row: span 2;
}

.gallery-wide {
    grid-column: span 2;
}

/* =========================================
   VIDEO SECTION
   ========================================= */

.gallery-video-section {
    padding: 95px 20px;
    text-align: center;
    background: #15120e;
}

.gallery-video-frame {
    width: min(900px, 100%);
    margin: 45px auto 0;
    padding: 9px;
    border: 1px solid #b99a65;
    box-shadow: 0 20px 65px rgba(0,0,0,.4);
}

    .gallery-video-frame video {
        display: block;
        width: 100%;
        max-height: 560px;
        background: #000;
    }

/* =========================================
   ENDING SECTION
   ========================================= */

.gallery-ending {
    text-align: center;
    padding: 100px 20px;
    background: #0b0b0b;
}

    .gallery-ending span {
        letter-spacing: 5px;
        color: #d6b77c;
        font-size: 13px;
    }

    .gallery-ending h2 {
        font-size: clamp(30px, 4vw, 48px);
        font-weight: 400;
    }

    .gallery-ending p {
        color: #ccc;
        font-size: 17px;
    }

    .gallery-ending a {
        display: inline-block;
        margin-top: 25px;
        padding: 14px 45px;
        color: #111;
        background: #c7a76c;
        text-decoration: none;
        transition: .3s;
    }

        .gallery-ending a:hover {
            background: #e5cb96;
        }

/* =========================================
   IMAGE LIGHTBOX
   ========================================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.96);
}

    .gallery-lightbox.open {
        display: flex;
    }

    .gallery-lightbox img {
        max-width: 85vw;
        max-height: 85vh;
        object-fit: contain;
        box-shadow: 0 0 40px rgba(0,0,0,.6);
    }

.lightbox-close,
.lightbox-arrow {
    position: absolute;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.lightbox-close {
    top: 20px;
    left: 30px;
    font-size: 46px;
}

.lightbox-arrow {
    top: 50%;
    transform: translateY(-50%);
    font-size: 45px;
    color: #d6b77c;
}

.lightbox-prev {
    right: 25px;
}

.lightbox-next {
    left: 25px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: #d6b77c;
    font-size: 15px;
}

/* =========================================
   WHATSAPP
   ========================================= */

.gallery-whatsapp {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,.35);
    transition: transform .3s;
}

    .gallery-whatsapp svg {
        width: 32px;
        height: 32px;
    }

    .gallery-whatsapp:hover {
        transform: scale(1.1);
    }

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes galleryFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 220px;
    }

    .gallery-section {
        padding: 0 18px 70px;
    }
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 160px;
        gap: 9px;
    }

    .gallery-wide {
        grid-column: span 2;
    }

    .gallery-tall {
        grid-row: span 2;
    }

    .gallery-hero {
        min-height: 65vh;
    }

    .gallery-hero-content {
        padding: 55px 18px;
    }

    .gallery-hero p,
    .gallery-intro p {
        font-size: 15px;
    }

    .lightbox-arrow {
        font-size: 30px;
    }

    .lightbox-prev {
        right: 7px;
    }

    .lightbox-next {
        left: 7px;
    }
}

/* =========================================
   ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {

    .gallery-item,
    .gallery-item img,
    .gallery-hero-content,
    .gallery-hero-slide {
        transition: none;
        animation: none !important;
    }
}
