/* Lightbox */
  .lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: grab;
  }
  .lightbox.active { display: block; }

  .lightbox .img-container {
    position: relative;
    display: block;
    align-items: center;
    justify-content: center;
    overflow: auto;
    max-width: 100%;
    max-height: 100%;
  }

  .lightbox img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    max-width: 100%;
    max-height: 100%;
    transition: transform 0.1s ease;
    box-shadow: 0 0 20px rgba(0,0,0,0.9);
    transform-origin: top;
    user-select: none;
  }

  /* Zoom indicator */
  .zoom-level {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }
  .zoom-level.show { opacity: 1; }

  /* Close button */
  .close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
  }