/* ===== GALLERY IMAGE STYLES ===== */
      .gallery-img {
        display: block;
        max-height: 80vh;
        max-width: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        cursor: zoom-in;
        border-radius: 4px;
        transition: opacity 0.2s ease, transform 0.2s ease;
        margin: 0 auto;
      }

      .gallery-img:hover {
        opacity: 0.88;
        transform: scale(1.01);
      }

      .col-lg-6 .gallery-img {
        max-height: 70vh;
        width: 100%;
        object-fit: cover;
      }

      /* ===== LIGHTBOX MODAL ===== */
      #lightbox {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.93);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        align-items: center;
        justify-content: center;
        flex-direction: column;
      }

      #lightbox.open {
        display: flex;
      }

      .lightbox-inner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        padding: 60px 80px;
        box-sizing: border-box;
      }

      #lightbox-img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        border-radius: 4px;
        box-shadow: 0 8px 60px rgba(0,0,0,0.7);
        user-select: none;
        display: block;
        transition: opacity 0.22s ease;
      }

      #lightbox-img.fading {
        opacity: 0;
      }

      /* Counter */
      .lightbox-counter {
        position: absolute;
        top: 18px;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255,255,255,0.6);
        font-family: Inter, sans-serif;
        font-size: 13px;
        letter-spacing: 0.08em;
        pointer-events: none;
      }

      /* Caption */
      .lightbox-caption {
        position: absolute;
        bottom: 18px;
        left: 50%;
        transform: translateX(-50%);
        color: rgba(255,255,255,0.55);
        font-family: Inter, sans-serif;
        font-size: 13px;
        letter-spacing: 0.04em;
        white-space: nowrap;
        pointer-events: none;
      }

      /* Close button */
      .lightbox-close {
        position: absolute;
        top: 14px;
        right: 18px;
        background: none;
        border: none;
        color: rgba(255,255,255,0.7);
        font-size: 32px;
        cursor: pointer;
        line-height: 1;
        padding: 4px 10px;
        border-radius: 6px;
        transition: color 0.15s, background 0.15s;
        z-index: 10;
      }

      .lightbox-close:hover {
        color: #fff;
        background: rgba(255,255,255,0.1);
      }

      /* Arrow buttons */
      .lightbox-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255,255,255,0.08);
        border: 1px solid rgba(255,255,255,0.15);
        color: rgba(255,255,255,0.85);
        font-size: 28px;
        width: 52px;
        height: 52px;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.18s, color 0.18s, border-color 0.18s;
        z-index: 10;
        flex-shrink: 0;
      }

      .lightbox-arrow:hover {
        background: rgba(255,255,255,0.18);
        color: #fff;
        border-color: rgba(255,255,255,0.35);
      }

      .lightbox-prev { left: 16px; }
      .lightbox-next { right: 16px; }

      .lightbox-arrow:disabled {
        opacity: 0.25;
        cursor: default;
        pointer-events: none;
      }

      /* Thumbnail strip */
      .lightbox-thumbs {
        position: absolute;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        max-width: calc(100vw - 120px);
        overflow-x: auto;
        padding: 4px 2px;
        scrollbar-width: none;
      }

      .lightbox-thumbs::-webkit-scrollbar { display: none; }

      .lightbox-thumb {
        width: 44px;
        height: 30px;
        object-fit: cover;
        border-radius: 3px;
        opacity: 0.45;
        cursor: pointer;
        border: 2px solid transparent;
        flex-shrink: 0;
        transition: opacity 0.15s, border-color 0.15s;
      }

      .lightbox-thumb.active {
        opacity: 1;
        border-color: rgba(255,255,255,0.8);
      }

      .lightbox-thumb:hover:not(.active) {
        opacity: 0.75;
      }

      /* Keyboard hint */
      .lightbox-hint {
        position: absolute;
        bottom: 52px;
        right: 18px;
        color: rgba(255,255,255,0.3);
        font-family: Inter, sans-serif;
        font-size: 11px;
        pointer-events: none;
      }

      @media (max-width: 768px) {
        .lightbox-inner { padding: 50px 60px; }
        .lightbox-arrow { width: 40px; height: 40px; font-size: 20px; }
        .lightbox-prev { left: 8px; }
        .lightbox-next { right: 8px; }
        .lightbox-hint { display: none; }
        .col-lg-6 .gallery-img { max-height: 45vh; }
      }
