/* =====================================================================
   GALLERY PAGE STYLESHEET - שייך לדף הגלריה (gallery.html).
   נטען בנוסף ל-assets/base.css ו-assets/service-page.css (לקלאסים gallery-grid/gallery-item).
   ===================================================================== */

    /* ===== GALLERY HEADER (גרסה ממורכזת של page-header, בלי טופס/עדויות) ===== */
    .page-header-inner.centered {
      grid-template-columns: 1fr;
      text-align: center;
      justify-items: center;
      padding-bottom: 4.5rem;
    }
    .page-header-inner.centered .header-text { max-width: 680px; }
    .page-header-inner.centered .breadcrumb { display: flex; justify-content: center; }
    .page-header-inner.centered p { margin: 0 auto; }

    /* ===== GALLERY INTRO ===== */
    .gallery-page-section { background: #ffffff; }
    .gallery-page-intro {
      text-align: center;
      max-width: 700px;
      margin: 0 auto 3.5rem;
    }

    /* ===== GALLERY ITEM (אפשרות לחיצה לפתיחת lightbox) ===== */
    .gallery-grid .gallery-item { cursor: pointer; }
    .gallery-grid .gallery-item:focus-visible {
      outline: 3px solid var(--blue);
      outline-offset: 3px;
    }

    /* ===== LIGHTBOX ===== */
    .lightbox {
      position: fixed;
      inset: 0;
      background: rgba(10, 20, 30, 0.94);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.25s ease;
      padding: 2rem;
    }
    .lightbox.open { opacity: 1; visibility: visible; }
    .lightbox-content {
      max-width: min(90vw, 1100px);
      max-height: 85vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.8rem;
    }
    .lightbox-content img {
      max-width: 100%;
      max-height: 72vh;
      border-radius: 12px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    }
    .lightbox-caption {
      color: #ffffff;
      font-size: 1.05rem;
      font-weight: 700;
      text-align: center;
    }
    .lightbox-counter {
      color: rgba(255,255,255,0.6);
      font-size: 0.85rem;
    }
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
      position: absolute;
      background: rgba(255,255,255,0.12);
      border: none;
      color: #ffffff;
      cursor: pointer;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s;
      line-height: 1;
    }
    .lightbox-close:hover,
    .lightbox-prev:hover,
    .lightbox-next:hover { background: rgba(255,255,255,0.28); }
    .lightbox-close {
      top: 1.5rem;
      left: 1.5rem;
      width: 44px;
      height: 44px;
      font-size: 1.2rem;
    }
    .lightbox-prev,
    .lightbox-next {
      top: 50%;
      transform: translateY(-50%);
      width: 54px;
      height: 54px;
      font-size: 2rem;
    }
    /* האתר ב-RTL: "הקודם" מוצג בצד ימין, "הבא" בצד שמאל */
    .lightbox-prev { right: 1.2rem; }
    .lightbox-next { left: 1.2rem; }

    /* ===== MOBILE ===== */
    @media (max-width: 600px) {
      .lightbox { padding: 1rem; }
      .lightbox-content img { max-height: 65vh; }
      .lightbox-prev,
      .lightbox-next {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
      }
      .lightbox-close {
        width: 38px;
        height: 38px;
        top: 1rem;
        left: 1rem;
        font-size: 1rem;
      }
      .lightbox-prev { right: 0.5rem; }
      .lightbox-next { left: 0.5rem; }
    }
